From 36c8efced7c38648b1f4df595ec81ce39438a431 Mon Sep 17 00:00:00 2001 From: hanchaobo Date: Fri, 2 Feb 2024 10:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 2 +- pages/handlecase/component/list.vue | 2 +- pages/handlecase/component/uploadEvidence.vue | 49 +++++++------------ pages/im/component/imList.vue | 2 +- 4 files changed, 20 insertions(+), 35 deletions(-) diff --git a/config.js b/config.js index 0cba4a5..12f4bff 100644 --- a/config.js +++ b/config.js @@ -8,7 +8,7 @@ module.exports = { baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest', // baseUrlTJ:'https://api.xayunmei.com/tiaojieapi', // baseUrlZC: 'http://121.40.189.20:8001', - // baseUrlTJ: 'http://121.40.189.20:6001', + // baseUrlTJ: 'http://172.16.1.17:6001', // baseUrl: 'http://172.16.1.24:8001', // baseUrl: 'http://localhost:8080', // baseUrl: 'http://192.168.3.18:9001', diff --git a/pages/handlecase/component/list.vue b/pages/handlecase/component/list.vue index 50c767f..7aeab94 100644 --- a/pages/handlecase/component/list.vue +++ b/pages/handlecase/component/list.vue @@ -21,7 +21,7 @@ 申请人姓名: - {{defalutVal.applicationOrganName}} + {{defalutVal.applicationName}} diff --git a/pages/handlecase/component/uploadEvidence.vue b/pages/handlecase/component/uploadEvidence.vue index 317eded..78aff65 100644 --- a/pages/handlecase/component/uploadEvidence.vue +++ b/pages/handlecase/component/uploadEvidence.vue @@ -97,7 +97,7 @@ + v-model="formData.affiliate.applicationName" placeholder="" /> --> - - - - - @@ -381,7 +375,6 @@ }], items: [], sysType: null, - timeData: null, mediatorList: [] } }, @@ -434,20 +427,20 @@ // } // }, checkboxChange(e) { - let params = parseInt(e.detail.value); + let params = e.detail.value; + params = params.map(Number); this.mediatorList = e.detail.value; - let result = ""; - this.items.forEach(item => { - if (item.mediatorId == params) { - result = { - userId: item.mediatorId, - userName: item.mediatorName - } - } - }) + let result = this.items.filter(element => params.includes(element.mediatorId)); + let userListArr = result.map(({ + mediatorId, + mediatorName + }) => ({ + mediatorId: mediatorId, + mediatorName: mediatorName + })); let arbitrators = { caseFlowId: this.formData.caseFlowId, - userList: [result], + mediatorList: userListArr, }; this.subnitForm.arbitrators = arbitrators; console.log(this.subnitForm.arbitrators, "PPPPPPPPPPPPPP"); @@ -539,17 +532,9 @@ }, submitImg() { if (this.sysType == 2) { - if (this.mediatorList.length > 1) { + if (this.mediatorList.length > 3) { uni.showToast({ - title: '只能选择一个调解员', - icon: 'none', - duration: 1000 - }) - return - } - if (!this.timeData) { - uni.showToast({ - title: '请选择时间', + title: '最多选择三个调解员', icon: 'none', duration: 1000 }) @@ -573,15 +558,15 @@ } else if (this.sysType == 2) { // TODO // 调解提交 - if (this.mediatorList.length > 1) { + if (this.mediatorList.length > 3) { + debugger uni.showToast({ - title: '只能选择一个调解员', + title: '最多选择三个调解员', icon: 'none', duration: 1000 }) return } - this.subnitForm.arbitrators.herDates = [this.timeData]; this.subnitForm.arbitrators.id = this.formData.id; this.subnitForm.arbitrators.miniProgressFlag = 1; updateBooking(this.subnitForm.arbitrators).then(res => { diff --git a/pages/im/component/imList.vue b/pages/im/component/imList.vue index 725ff0a..e0cbe14 100644 --- a/pages/im/component/imList.vue +++ b/pages/im/component/imList.vue @@ -22,7 +22,7 @@ 申请人姓名: - {{defalutVal.applicationOrganName}} + {{defalutVal.applicationName}}