From 80bddf21770be208456a6ca33e12dc4bce14a22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=BE=8E=E8=8D=A3?= <10755671+mei-rong-he@user.noreply.gitee.com> Date: Tue, 26 May 2026 16:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B2=97=E4=BD=8D=E5=BD=93=E7=8F=AD=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=8F=AD=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subPages/FO/2currentClassRecordEdit.vue | 73 ++++++++++++++++++- 1 file changed, 70 insertions(+), 3 deletions(-) diff --git a/pages/apply/subPages/FO/2currentClassRecordEdit.vue b/pages/apply/subPages/FO/2currentClassRecordEdit.vue index 0ac8bed..f4c4c7d 100644 --- a/pages/apply/subPages/FO/2currentClassRecordEdit.vue +++ b/pages/apply/subPages/FO/2currentClassRecordEdit.vue @@ -7,6 +7,11 @@ + + + + @@ -92,6 +97,8 @@ 提交 + @@ -113,7 +120,8 @@ transformData } from '../../../../utils/common' import { - getRequest, + getRequest, + getClassLists, } from '../../../../services/apply/FOServices/FOServices'; import config from '../../../../config/common' import { @@ -136,7 +144,10 @@ SUPPLIES_USED: 1, ORG_ID: "", ENABLE_STATUS: 0, - IS_HANDOVER: true, + IS_HANDOVER: true, + Nav_Class: { + NAME: '' + }, }, subModel: { Nav_User: {}, @@ -147,6 +158,11 @@ type: 'string', required: true, trigger: ['blur', 'change'] + }, + 'Nav_Class.NAME': { + type: 'string', + required: true, + trigger: ['blur', 'change'] }, 'CURRENT_CLASS_MEASURE': { type: 'string', @@ -215,7 +231,11 @@ currentOperateUser: {}, showPopup: false, userLists: [], - curTotal: 0, + curTotal: 0, + monitorLists: [], + currentOperateMonitor: {}, + curTotalMonitor: 0, + showPopupMonitor: false, showDelModalIndexPerson: undefined, enumsData: {}, // 存储所有枚举数据(键:枚举名称,值:处理后的枚举列表) enumsText: {} // 存储枚举文本列表(用于下拉选择等场景) @@ -297,6 +317,53 @@ this.model.UserNames = strUserName; }) + }, + handleChangeMonitor(name) { + this.currentOperateMonitor = name + this.showPopupMonitor = true + this.handleSearchMonitor('init') + }, + handleSearchMonitor(val, pageIndex) { + const orgId = uni.getStorageSync('orgId') + const json = initFilter(orgId, "", "NAME", '', pageIndex) + + if (val !== 'init') { + const tempGroup = initFilterGroup(false); + extendGroupRule(tempGroup, 'NAME', 9, val) + extendFilterGroup(json, tempGroup); + } + json.Limit = 20 + if (pageIndex) { + json.Start = (pageIndex - 1) * 20; + } + + if (this.currentOperateMonitor == 'Nav_Class') { + extendInclude(json, 'Nav_ClassDetail'); + getClassLists(json).then(res => { + if (res.IsSuccessful) { + this.monitorLists = res.Data.map(i => { + return { + ...i, + name: i.NAME, + code: i.CODE + } + }) + this.curTotalMonitor = res.TotalCount + } + }) + } + + }, + handleSelectedMonitor(val) { + this.showPopupMonitor = false + if (this.currentOperateMonitor == 'Nav_Class') { + this.model.Nav_Class = val + this.model.CLASS_ID = val.ID + } + this.currentOperateMonitor = val + }, + handleClosePopupMonitor() { + this.showPopupMonitor = false }, handleSearchUser(val, pageIndex) { const json = initFilter(this.ORG_ID, "", "NAME", '', pageIndex)