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)