@@ -2148,8 +2191,10 @@ export default { modalShowFlag2: false, // drawer开关 modalShowFlag3: false, // drawer开关 modalShowFlag4: false, // drawer开关 + modalShowFlag5: false, url: '', urlChild: '', + modelType: 'TRUCK', drawerTitle: '', //drawer标题 nodeKey: 'id', nodeKeyCode: 'code', @@ -2252,6 +2297,7 @@ export default { defaultCheckedKeys1: [], defaultCheckedKeys2: [], defaultCheckedKeys3: [], + defaultCheckedKeys4: [], defaultCodeProps: { children: 'children', label: 'code' @@ -2438,6 +2484,8 @@ export default { KCCVPPSCN: '', DYBXH: '', DYMC: '', + DYBXHCAR: '', + DYMCCAR: '', CYSD: '', CLLX: '', NYLX: '', @@ -2577,6 +2625,8 @@ export default { KCCVPPSCN: '', DYBXH: '', DYMC: '', + DYBXHCAR: '', + DYMCCAR: '', CYSD: '', CLLX: '', NYLX: '', @@ -3053,7 +3103,17 @@ export default { this.modalShowFlag4 = true this.url = '' this.urlChild = '' - this.url = "sarModelTree/list" + this.modelType = type + this.url = "sarModelTree/listByType" + this.urlChild = "sarModelTree/childByList" + }, + choiceZRR5(type, title, id) { + this.drawerTitle = title + this.modalShowFlag5 = true + this.url = '' + this.urlChild = '' + this.modelType = type + this.url = "sarModelTree/listByType" this.urlChild = "sarModelTree/childByList" }, popoverHideQuery(ids, attrField) { @@ -3122,6 +3182,22 @@ export default { popoverHideModelCancel() { this.modalShowFlag4 = false }, + popoverCarHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) { + if (checkedData && checkedData.length != 0) { + if (checkedData.length > 0) { + this.sarStandardsInfoEO.DYBXHCAR = checkedData.map(item => item.model).join(",") + this.sarStandardsInfoEO.DYMCCAR = checkedData.map(item => item.name).join(",") + } else { + this.sarStandardsInfoEO.DYBXHCAR = checkedData.model + this.sarStandardsInfoEO.DYMCCAR = checkedData.name + } + this.modalShowFlag5 = false + } + this.$forceUpdate() + }, + popoverCarHideModelCancel() { + this.modalShowFlag5 = false + }, busVsFunc() { this.$http.get('sarVppsTree/list', '', { _this: this diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index 93b18b308..aaf0eb6cd 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -659,14 +659,14 @@
@@ -1816,14 +1861,17 @@ export default { modalShowFlag2: false, // drawer开关 modalShowFlag3: false, // drawer开关 modalShowFlag4: false, // drawer开关 + modalShowFlag5: false, url: '', urlChild: '', + modelType: 'TRUCK', drawerTitle: '', //drawer标题 nodeKey: 'id', defaultCheckedKeys: [], defaultCheckedKeys1: [], defaultCheckedKeys2: [], defaultCheckedKeys3: [], + defaultCheckedKeys4: [], defaultCodeProps: { children: 'children', label: 'code' @@ -2168,6 +2216,8 @@ export default { KCCVPPSCN: '', DYBXH: '', DYMC: '', + DYBXHCAR: '', + DYMCCAR: '', CYSD: '', CLLX: '', NYLX: '', @@ -2593,7 +2643,17 @@ export default { this.modalShowFlag4 = true this.url = '' this.urlChild = '' - this.url = "sarModelTree/list" + this.modelType = type + this.url = "sarModelTree/listByType" + this.urlChild = "sarModelTree/childByList" + }, + choiceZRR5(type, title, id) { + this.drawerTitle = title + this.modalShowFlag5 = true + this.url = '' + this.urlChild = '' + this.modelType = type + this.url = "sarModelTree/listByType" this.urlChild = "sarModelTree/childByList" }, popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) { @@ -2642,6 +2702,22 @@ export default { }, popoverHideModelCancel() { this.modalShowFlag4 = false }, + popoverCarHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) { + if (checkedData && checkedData.length != 0) { + if (checkedData.length > 0) { + this.sarStandardsInfoEO.DYBXHCAR = checkedData.map(item => item.model).join(",") + this.sarStandardsInfoEO.DYMCCAR = checkedData.map(item => item.name).join(",") + } else { + this.sarStandardsInfoEO.DYBXHCAR = checkedData.model + this.sarStandardsInfoEO.DYMCCAR = checkedData.name + } + this.modalShowFlag5 = false + } + this.$forceUpdate() + }, + popoverCarHideModelCancel() { + this.modalShowFlag5 = false + }, // 将文本状态的id与name对应 setMap(data) { data.forEach(item => { From 157e35192f971c32f14eb09c0df9fa4d6e1bba56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 17 Feb 2022 19:10:54 +0800 Subject: [PATCH 12/12] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E5=BD=92=E6=A1=A3=E4=BD=8D=E7=BD=AE=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step1.vue | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index ebbbcd779..376fb2101 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -2314,25 +2314,27 @@ export default { }, {}, res => { if (res.ok) { this.treeListOptions = res.data - this.$http.get('sarStandardsInfo/sar-standards-info/getStandMenuId', { - standId: bringData.id, - }, {}, reson => { - if (reson.ok) { - let treeList = '' - let treeListId = '' - reson.data.forEach(item=>{ - this.treeCheckedKeys.push(item.menuId) - if (treeList.length > 0) { - treeList += ',' - treeListId += ',' - } - treeList += item.menuName - treeListId += item.menuId - }) - this.form.treeListName = treeList - this.form.treeListId = treeListId - } - }) + if(bringData.standNumber){ + this.$http.get('sarStandardsInfo/sar-standards-info/getStandMenuId', { + standId: bringData.id, + }, {}, reson => { + if (reson.ok) { + let treeList = '' + let treeListId = '' + reson.data.forEach(item=>{ + this.treeCheckedKeys.push(item.menuId) + if (treeList.length > 0) { + treeList += ',' + treeListId += ',' + } + treeList += item.menuName + treeListId += item.menuId + }) + this.form.treeListName = treeList + this.form.treeListId = treeListId + } + }) + } } }) }, @@ -2985,6 +2987,7 @@ export default { }, treeHideCancel() { + this.treeListOptions = [] this.modalShowTree = false }, popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {