diff --git a/frontend/src/api/teachBusiness/courseRunning.js b/frontend/src/api/teachBusiness/courseRunning.js index 04ecfd69..af854637 100644 --- a/frontend/src/api/teachBusiness/courseRunning.js +++ b/frontend/src/api/teachBusiness/courseRunning.js @@ -71,8 +71,8 @@ export function getScheduleAdjustDetail(ssdksqbh) { * 提交调课申请 * POST /course-running/adjust/submit * 请求体(ScheduleAdjustApplyDTO)核心字段:sskcbbh 课次编号、sy 调课事由、rq 调课后新日期、 - * jc 调课后新节次、nd 年度、sqjybh 申请教员编号(可选 ydsjap 原日期节次描述、xydrwbh/kbh/ - * kcbbh/xydmc/jysdh/yjsbh/xjsbh/kcmc/sqjyxm 由课次自动带出) + * jc 调课后新节次、nd 年度;sqjybh/xydrwbh/kbh/kcbbh/xjsbh 为可选关联字段, + * roomList/teacherList/teamList/supportList 为调整后的关联明细。 */ export function submitScheduleAdjust(data) { return request({ diff --git a/frontend/src/views/student/warningCondition/index.vue b/frontend/src/views/student/warningCondition/index.vue index d81be073..a31c3073 100644 --- a/frontend/src/views/student/warningCondition/index.vue +++ b/frontend/src/views/student/warningCondition/index.vue @@ -20,11 +20,11 @@ - - - - - + + + + + @@ -253,7 +253,7 @@ export default { mc: '', pxlx: '', pxcc: '', - ty: '' + ty: 0 }, // ==================== 列表数据 ==================== @@ -317,10 +317,7 @@ export default { pageNum: this.pageNum, pageSize: this.pageSize } - // 状态:0 启用 / 1 停用(选中时才传) - if (this.searchForm.ty !== '' && this.searchForm.ty !== null && this.searchForm.ty !== undefined) { - params.ty = this.searchForm.ty - } + params.ty = this.searchForm.ty // 其余文本条件非空时才传 ;['mc', 'pxlx', 'pxcc'].forEach(key => { if (this.searchForm[key] !== '' && this.searchForm[key] !== null && this.searchForm[key] !== undefined) { @@ -349,7 +346,7 @@ export default { mc: '', pxlx: '', pxcc: '', - ty: '' + ty: 0 } this.pageNum = 1 this.fetchList() @@ -541,4 +538,4 @@ export default { user-select: none; } } - \ No newline at end of file + diff --git a/frontend/src/views/subjectMajor/discipline/index.vue b/frontend/src/views/subjectMajor/discipline/index.vue index a77d6a0a..4a8b328a 100644 --- a/frontend/src/views/subjectMajor/discipline/index.vue +++ b/frontend/src/views/subjectMajor/discipline/index.vue @@ -25,8 +25,11 @@ - - 停用 + + + + + @@ -322,10 +325,7 @@ export default { pageNum: this.pageNum, pageSize: this.pageSize } - // 状态:勾选「停用」时仅查已停用(ty=1),未勾选则查询全部 - if (this.searchForm.ty) { - params.ty = 1 - } + params.ty = this.searchForm.ty ? 1 : 0 // 其余文本条件非空时才传 ;['zymc', 'zydm', 'zyfx', 'xnz', 'pxlx2'].forEach(key => { const value = this.searchForm[key] diff --git a/frontend/src/views/subjectMajor/major/index.vue b/frontend/src/views/subjectMajor/major/index.vue index 1a6571f7..598e346b 100644 --- a/frontend/src/views/subjectMajor/major/index.vue +++ b/frontend/src/views/subjectMajor/major/index.vue @@ -45,11 +45,11 @@ - - - - - + + + + + @@ -367,7 +367,7 @@ export default { pxlx2: '', pxcc: '', xkzyxxbsh: '', - ty: '' + ty: 0 }, // ==================== 列表数据 ==================== @@ -460,10 +460,7 @@ export default { pageNum: this.pageNum, pageSize: this.pageSize } - // 状态:0 启用 / 1 停用(选中时才传) - if (this.searchForm.ty !== '' && this.searchForm.ty !== null && this.searchForm.ty !== undefined) { - params.ty = this.searchForm.ty - } + params.ty = this.searchForm.ty // 其余文本条件非空时才传 ;['zymc', 'zyfx', 'zydm', 'xnz', 'pxlx', 'pxlx2', 'pxcc', 'xkzyxxbsh'].forEach(key => { if (this.searchForm[key] !== '' && this.searchForm[key] !== null && this.searchForm[key] !== undefined) { @@ -497,7 +494,7 @@ export default { pxlx2: '', pxcc: '', xkzyxxbsh: '', - ty: '' + ty: 0 } this.pageNum = 1 this.fetchList() diff --git a/frontend/src/views/system/dept/index.vue b/frontend/src/views/system/dept/index.vue index 601e226b..cb6231d6 100644 --- a/frontend/src/views/system/dept/index.vue +++ b/frontend/src/views/system/dept/index.vue @@ -9,15 +9,11 @@ @keyup.enter.native="handleQuery" /> - - - - + + + + + 搜索 @@ -206,7 +202,7 @@ export default { // 查询参数 queryParams: { deptName: undefined, - status: undefined + status: '0' }, // 表单参数 form: {}, diff --git a/frontend/src/views/system/dict/data.vue b/frontend/src/views/system/dict/data.vue index 4ad1f322..0acb25fe 100644 --- a/frontend/src/views/system/dict/data.vue +++ b/frontend/src/views/system/dict/data.vue @@ -19,15 +19,11 @@ @keyup.enter.native="handleQuery" /> - - - - + + + + + 搜索 @@ -253,7 +249,7 @@ export default { pageSize: 10, dictType: undefined, dictLabel: undefined, - status: undefined + status: '0' }, // 表单参数 form: {}, diff --git a/frontend/src/views/system/dict/index.vue b/frontend/src/views/system/dict/index.vue index bab1b55d..7079dbb3 100644 --- a/frontend/src/views/system/dict/index.vue +++ b/frontend/src/views/system/dict/index.vue @@ -19,20 +19,11 @@ @keyup.enter.native="handleQuery" /> - - - - + + + + + \ No newline at end of file + diff --git a/frontend/src/views/system/menu/index.vue b/frontend/src/views/system/menu/index.vue index 49fac46c..d5c0144e 100644 --- a/frontend/src/views/system/menu/index.vue +++ b/frontend/src/views/system/menu/index.vue @@ -9,15 +9,11 @@ @keyup.enter.native="handleQuery" /> - - - - + + + + + 搜索 @@ -352,7 +348,8 @@ export default { // 查询参数 queryParams: { menuName: undefined, - visible: undefined + visible: undefined, + status: '0' }, // 表单参数 form: {}, diff --git a/frontend/src/views/system/post/index.vue b/frontend/src/views/system/post/index.vue index 6bdc3a3b..c8a6fd23 100644 --- a/frontend/src/views/system/post/index.vue +++ b/frontend/src/views/system/post/index.vue @@ -17,15 +17,11 @@ @keyup.enter.native="handleQuery" /> - - - - + + + + + 搜索 @@ -190,7 +186,7 @@ export default { pageSize: 10, postCode: undefined, postName: undefined, - status: undefined + status: '0' }, // 表单参数 form: {}, diff --git a/frontend/src/views/system/role/index.vue b/frontend/src/views/system/role/index.vue index 17468da6..0cda7bb0 100644 --- a/frontend/src/views/system/role/index.vue +++ b/frontend/src/views/system/role/index.vue @@ -19,20 +19,11 @@ @keyup.enter.native="handleQuery" /> - - - - + + + + + \ No newline at end of file + diff --git a/frontend/src/views/system/user/index.vue b/frontend/src/views/system/user/index.vue index 30bc674c..97f6389a 100644 --- a/frontend/src/views/system/user/index.vue +++ b/frontend/src/views/system/user/index.vue @@ -10,10 +10,11 @@ - - - - + + + + + @@ -230,7 +231,7 @@ export default { pageSize: 10, userName: undefined, phonenumber: undefined, - status: undefined, + status: '0', deptId: undefined }, // 列信息 diff --git a/frontend/src/views/teachBusiness/syllabus/index.vue b/frontend/src/views/teachBusiness/syllabus/index.vue index cda41159..43c212f0 100644 --- a/frontend/src/views/teachBusiness/syllabus/index.vue +++ b/frontend/src/views/teachBusiness/syllabus/index.vue @@ -10,11 +10,11 @@ - - - - - + + + + + @@ -296,7 +296,7 @@ export default { loading: false, searchForm: { zydh: '', - ty: '' + ty: 0 }, tableData: [], total: 0, @@ -381,8 +381,8 @@ export default { fetchList() { this.loading = true const { zydh, ty } = this.searchForm - // 专业代号与停用标识同时给出时走后端 /listByZydhAndTy;否则查全部后本地过滤 - const useApiQuery = zydh && ty !== '' && ty !== null && ty !== undefined + // 专业代号存在时走后端组合查询;否则查全部后按停用标识过滤 + const useApiQuery = Boolean(zydh) const req = useApiQuery ? listSyllabusByZydhAndTy(zydh, ty) : listSyllabus() @@ -390,9 +390,7 @@ export default { let list = response.data || [] if (!useApiQuery) { if (zydh) list = list.filter(i => i.zydh && i.zydh.indexOf(zydh) !== -1) - if (ty !== '' && ty !== null && ty !== undefined) { - list = list.filter(i => Number(i.ty) === Number(ty)) - } + list = list.filter(i => Number(i.ty) === Number(ty)) } this.tableData = list this.total = list.length @@ -408,7 +406,7 @@ export default { this.fetchList() }, handleReset() { - this.searchForm = { zydh: '', ty: '' } + this.searchForm = { zydh: '', ty: 0 } this.fetchList() }, handleSelectionChange(val) { diff --git a/frontend/src/views/teachBusiness/timetableAdjust/index.vue b/frontend/src/views/teachBusiness/timetableAdjust/index.vue index 71e96de4..154e3705 100644 --- a/frontend/src/views/teachBusiness/timetableAdjust/index.vue +++ b/frontend/src/views/teachBusiness/timetableAdjust/index.vue @@ -99,16 +99,23 @@ - + - + 选择可供调课课次 - + @@ -118,20 +125,34 @@ - - + + - + - + - + + + - +