From d05cfe8c30a93e7141a4991f5672ecd006171b20 Mon Sep 17 00:00:00 2001 From: 18154758993 <605281283@qq.com> Date: Wed, 3 Dec 2025 09:59:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E5=81=87=E5=8A=9F=E8=83=BD=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/dms/studentDormInfo/index.js | 17 + api/task.js | 48 +- config.js | 12 +- .../handleTask/rtStuQuitSchool/detail.vue | 35 +- pages/Approval/index.vue | 80 +- pages/applyleave/applyleave.vue | 1036 +++++----- pages/applyleave/editLeave.vue | 24 +- pages/dormitory/studentDormInfo/index.vue | 1664 +++++++++-------- .../studentDormInfo/informationCollection.vue | 894 +++++---- 9 files changed, 2065 insertions(+), 1745 deletions(-) diff --git a/api/dms/studentDormInfo/index.js b/api/dms/studentDormInfo/index.js index c1615db..e4ff141 100644 --- a/api/dms/studentDormInfo/index.js +++ b/api/dms/studentDormInfo/index.js @@ -18,6 +18,23 @@ export function addStudent(data) { }) } +// 根据关联表id查看详情 +export function getStudentDetail(id) { + return request({ + url: `/dormitory/srs-dormitory-student/${id}`, + method: 'get' + }) +} + +// 修改学生宿舍关联 +export function updateStudent(data) { + return request({ + url: '/dormitory/srs-dormitory-student/update', + method: 'post', + data + }) +} + // 获取校区 export function listAllCampus() { return request({ diff --git a/api/task.js b/api/task.js index 5ebb085..5ae72bf 100644 --- a/api/task.js +++ b/api/task.js @@ -1,33 +1,33 @@ import request from '@/utils/request' -export function myProcess(data){ - return request({ - 'url': '/flowable/task/myProcess', - 'method': 'get', - data - }) +export function myProcess(params){ + return request({ + url: '/flowable/task/myProcess', + method: 'get', + params + }) } -export function todoList(data){ - return request({ - 'url': '/flowable/task/todoList', - 'method': 'get', - data - }) +export function todoList(params){ + return request({ + url: '/flowable/task/todoList', + method: 'get', + params + }) } -export function finishedList(data){ - return request({ - 'url': '/flowable/task/finishedList', - 'method': 'get', - data - }) +export function finishedList(params){ + return request({ + url: '/flowable/task/finishedList', + method: 'get', + params + }) } -export function flowRecord(data){ - return request({ - 'url': '/flowable/task/flowRecord', - 'method': 'get', - data - }) +export function flowRecord(params){ + return request({ + url: '/flowable/task/flowRecord', + method: 'get', + params + }) } export function complete(data){ return request({ diff --git a/config.js b/config.js index a52d9d3..c582941 100644 --- a/config.js +++ b/config.js @@ -1,8 +1,12 @@ // 应用全局配置 module.exports = { + // 统一通过本机 Nginx 反向代理访问后端 + // 若在同一台机器调试:使用 localhost:8066 + // 若手机在同一局域网:替换为本机局域网 IP,例如 172.16.96.111:8066 + // 页面在 https://zhxg.gxsdxy.cn 下访问,接口同域同协议以避免 CORS // baseUrl: 'https://zhxg.gxsdxy.cn/prod_api', - // baseUrl: 'http://172.16.96.111:8085', - // baseUrl: 'http://192.168.211.22:8085', + // baseUrl: 'https://zhxg.gxsdxy.cn/prod_api', + // 若本地/内网以 HTTP 访问页面,可改为: baseUrl: 'http://localhost:8085', // 应用信息 appInfo: { @@ -28,7 +32,7 @@ module.exports = { /** * 开启cas */ - casEnable: false, + casEnable: true, /** * 单点登录url @@ -38,5 +42,5 @@ module.exports = { /** * 单点登出url */ - caslogoutUrl: 'https://rsso.gxsdxy.cn/logout?service=http://zhxg.gxsdxy.cn/prod_api_test/getinfo', + caslogoutUrl: 'http://rsso.gxsdxy.cn/logout?service=http://zhxg.gxsdxy.cn/prod_api_test/getinfo', } \ No newline at end of file diff --git a/pages/Approval/handleTask/rtStuQuitSchool/detail.vue b/pages/Approval/handleTask/rtStuQuitSchool/detail.vue index d85e40d..2c0e1b3 100644 --- a/pages/Approval/handleTask/rtStuQuitSchool/detail.vue +++ b/pages/Approval/handleTask/rtStuQuitSchool/detail.vue @@ -371,6 +371,7 @@ getRtStuQuitSchoolByProcInsId(procInsId) { getRtStuQuitSchoolByProcInsId(procInsId).then((res) => { this.formData = res.data; + console.log(this.formData) this.get_penalty_type(this.formData.quitType); this.get_category(this.formData.quitCategory); if (this.tag == 1) { @@ -422,9 +423,9 @@ const pages = getCurrentPages(); if (pages && pages.length > 0) { const prevPage = pages[pages.length - 2] || pages[pages.length - 1]; - if (prevPage && typeof prevPage.handleChange === 'function') { - prevPage.handleChange(this.tag || 1); - } + if (prevPage && typeof prevPage.handleChange === 'function') { + prevPage.handleChange(2); + } } } @@ -495,18 +496,18 @@ }); } uni.hideLoading(); - uni.navigateBack({ - success: () => { - const pages = getCurrentPages(); - if (pages && pages.length > 0) { - const prevPage = pages[pages.length - 2] || pages[pages.length - 1]; - if (prevPage && typeof prevPage.handleChange === 'function') { - prevPage.handleChange(this.tag || 1); - } + uni.navigateBack({ + success: () => { + const pages = getCurrentPages(); + if (pages.length > 0) { + const prevPage = pages[pages.length - 2] + if (prevPage && typeof prevPage.getList === 'function') { + prevPage.handleChange(2); } - } - }) + + } + }) }) }, rejectDialogConfirm() { @@ -528,10 +529,10 @@ const pages = getCurrentPages(); if (pages && pages.length > 0) { const prevPage = pages[pages.length - 2] || pages[pages.length - 1]; - if (prevPage && typeof prevPage.handleChange === 'function') { - prevPage.handleChange(this.tag || 1); - console.log('刷新任务数据'); - } + if (prevPage && typeof prevPage.handleChange === 'function') { + prevPage.handleChange(2); + console.log('刷新已办任务数据'); + } } } }) diff --git a/pages/Approval/index.vue b/pages/Approval/index.vue index 82c3f59..104acae 100644 --- a/pages/Approval/index.vue +++ b/pages/Approval/index.vue @@ -8,6 +8,14 @@ + + + + {{ searchDate || '时间' }} + + + + @@ -75,7 +83,9 @@ currentPage: 1, loading: false, // 加载状态标志 topLoading: true, - role: uni.getStorageSync("roles") + role: uni.getStorageSync("roles"), + searchName: '', + searchDate: '' }; }, onLoad(option) { @@ -130,12 +140,42 @@ this.topLoading = true; this.getList(); }, + doSearch() { + this.currentPage = 1; + this.processes = []; + this.topLoading = true; + this.getList(); + }, + resetSearch() { + this.searchName = ''; + this.searchDate = ''; + this.currentPage = 1; + this.processes = []; + this.topLoading = true; + this.getList(); + }, + onDateChange(e) { + this.searchDate = e.detail.value; + }, getList() { this.loading = true; let sdata = { pageNum: this.currentPage, - pageSize: 10 + pageSize: 10, }; + if (this.searchName) { + sdata.startUserName = this.searchName; + } + if (this.searchDate) { + if (this.currentTab === 2) { + // 已办任务:PC端使用 startTime/endTime;时间对应“提交时间” + sdata.startTime = this.searchDate; + sdata.endTime = this.searchDate; + } else { + // 我发起的、待办任务:PC端使用 deployTime;时间对应“提交时间” + sdata.deployTime = this.searchDate; + } + } console.log(this.processes); if (this.currentTab == 0) { myProcess(sdata).then(res => { @@ -320,6 +360,41 @@ } } + .search-bar { + display: flex; + align-items: center; + gap: 8px; + padding: 8px 10px; + background-color: #ffffff; + border-bottom: 1px solid #EDEDED; + position: sticky; + top: 58px; + z-index: 998; + .input { + flex: 1; + border: 1px solid #EDEDED; + border-radius: 4px; + padding: 6px 8px; + height: 36px; + line-height: 36px; + box-sizing: border-box; + } + .picker-text { + border: 1px solid #EDEDED; + border-radius: 4px; + padding: 6px 8px; + color: #555555; + } + button.primary { + border: 1px solid #007aff; + color: #007aff; + } + button.reset { + border: 1px solid #909399; + color: #909399; + } + } + .empty { display: flex; flex-direction: column; @@ -337,6 +412,7 @@ .content { padding-top: 58px; + .list { .item { padding: 20px 10px; diff --git a/pages/applyleave/applyleave.vue b/pages/applyleave/applyleave.vue index 08896a4..4d34c58 100644 --- a/pages/applyleave/applyleave.vue +++ b/pages/applyleave/applyleave.vue @@ -67,7 +67,7 @@ * 请假起始时间: - @@ -75,7 +75,7 @@ * 请假结束时间: - @@ -120,7 +120,7 @@ * 手写签字: - + 重新签名 @@ -145,7 +145,7 @@ --> - + @@ -160,8 +160,8 @@ 4、如有特殊情况需要延长请假时间,会及时向学校或老师做出说明和沟通。 5、意识到请假可能会对我的学业和成绩造成负面影响,我愿意承担相应的责任和后果。 - - 请阅读{{safetime}}s承诺书 + + 请阅读{{ safetime }}s承诺书 @@ -173,569 +173,565 @@ \ No newline at end of file +} + diff --git a/pages/applyleave/editLeave.vue b/pages/applyleave/editLeave.vue index 70ba8f4..e68d4fe 100644 --- a/pages/applyleave/editLeave.vue +++ b/pages/applyleave/editLeave.vue @@ -418,12 +418,12 @@ const pages = getCurrentPages(); if (pages.length > 0) { const prevPage = pages[pages.length - 2] || pages[pages.length - 1] - if (prevPage && typeof prevPage.handleChange === 'function') { - prevPage.handleChange(2); - console.log('刷新已办任务数据'); - } else if (prevPage && typeof prevPage.getLeaveList === 'function') { - prevPage.getLeaveList(); - } + if (prevPage && typeof prevPage.handleChange === 'function') { + prevPage.handleChange(1); + console.log('切回待办任务'); + } else if (prevPage && typeof prevPage.getLeaveList === 'function') { + prevPage.getLeaveList(); + } } } }) @@ -623,12 +623,12 @@ const pages = getCurrentPages(); if (pages.length > 0) { const prevPage = pages[pages.length - 2] || pages[pages.length - 1] - if (prevPage && typeof prevPage.handleChange === 'function') { - prevPage.handleChange(2); - } else if (prevPage && typeof prevPage.getLeaveList === - 'function') { - prevPage.getLeaveList(); - } + if (prevPage && typeof prevPage.handleChange === 'function') { + prevPage.handleChange(1); + } else if (prevPage && typeof prevPage.getLeaveList === + 'function') { + prevPage.getLeaveList(); + } } } }) diff --git a/pages/dormitory/studentDormInfo/index.vue b/pages/dormitory/studentDormInfo/index.vue index e45ad61..6bf5b5e 100644 --- a/pages/dormitory/studentDormInfo/index.vue +++ b/pages/dormitory/studentDormInfo/index.vue @@ -21,8 +21,8 @@ @change="handleGradeChange" class="filter-picker"> - {{ gradeList[gradeIndex] ? gradeList[gradeIndex].gradeName : '全部' }} + {{ gradeList[gradeIndex] ? gradeList[gradeIndex].gradeName + : '全部' }} @@ -34,8 +34,8 @@ - {{ dormAreaList[dormAreaIndex] ? dormAreaList[dormAreaIndex].name : '全部' }} + {{ dormAreaList[dormAreaIndex] ? + dormAreaList[dormAreaIndex].name : '全部' }} @@ -48,8 +48,8 @@ :disabled="!queryParams.campusId" @change="handleParkChange" class="filter-picker" id="park"> - {{ parkList[parkIndex] ? parkList[parkIndex].name : '全部' }} + {{ parkList[parkIndex] ? parkList[parkIndex].name : '全部' + }} @@ -59,7 +59,7 @@ 宿舍 - {{ dormValue || '请输入'}} + {{ dormValue || '请输入' }} @@ -73,8 +73,8 @@ - {{buildingOptions[buildingIndex] ? buildingOptions[buildingIndex].name : '全部'}} + {{ buildingOptions[buildingIndex] ? + buildingOptions[buildingIndex].name : '全部' }} @@ -84,8 +84,8 @@ - {{floorOptions[floorIndex] ? floorOptions[floorIndex].floor : '全部'}} + {{ floorOptions[floorIndex] ? + floorOptions[floorIndex].floor : '全部' }} @@ -95,8 +95,8 @@ - {{dormOptions[dormIndex] ? dormOptions[dormIndex].roomNo : '全部'}} + {{ dormOptions[dormIndex] ? + dormOptions[dormIndex].roomNo : '全部' }} @@ -125,9 +125,17 @@ + + + + @@ -153,6 +161,9 @@ 入住时间: {{ item.checkinTime }} 状态: {{ item.inStatus === '1' ? '已入住' : '未入住' }} + + + @@ -162,860 +173,943 @@ 暂无数据 + + \ No newline at end of file diff --git a/pages/dormitory/studentDormInfo/informationCollection.vue b/pages/dormitory/studentDormInfo/informationCollection.vue index d23154d..8d09ab8 100644 --- a/pages/dormitory/studentDormInfo/informationCollection.vue +++ b/pages/dormitory/studentDormInfo/informationCollection.vue @@ -1,6 +1,6 @@ \ No newline at end of file