From 27d4e7c1516f807ab0f751b52806dcc97ca2731e Mon Sep 17 00:00:00 2001 From: fanlin Date: Thu, 22 Jul 2021 09:00:12 +0800 Subject: [PATCH] =?UTF-8?q?bug:=E5=85=A5=E5=BA=93=E6=B5=81=E7=A8=8B--?= =?UTF-8?q?=E5=8F=91=E8=B5=B7=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=8A=8A=E8=A2=AB?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E6=A0=87=E5=87=86=E8=BF=99=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step1.vue | 190 +++++------------- 1 file changed, 48 insertions(+), 142 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index 5808ce1f2..1a71ac13d 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -122,17 +122,12 @@ - - + :nodeKey="nodeKey" @popoverHide="popoverHide"> - - + :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"> - - + :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs"> - - + :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"> - - - {{'手动查找'}} - + + + + + + + + + + + + + + @@ -1127,17 +1104,9 @@ import ProcessTitle from '../../components/ProcessTitle' import {saveTaskFirst} from "api/process"; import TreeSelect from '@/components/treeSelect/treeSelect.vue'; - import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; export default { name: "bzrkStep1", - components: { - ProcessHeader, - ProcessFooter, - ProcessTitle, - TreeSelect, - TreeSelectNew - }, data () { return { standardDrawer: false, @@ -1222,12 +1191,6 @@ key3:4, treeData: [], // 人员数据 modalShowFlag: false, // drawer开关 - modalShowFlag1: false, // drawer开关 - modalShowFlag2: false, // drawer开关 - modalShowFlag3: false, // drawer开关 - modalShowFlag4: false, // drawer开关 - url:'', - urlChild:'', drawerTitle: '', //drawer标题 nodeKey: 'id', defaultCheckedKeys: [], @@ -1367,9 +1330,7 @@ standStateOptions: [], // 文本状态 standSystemOptions: [], // 标准体系 busVppsOptions: [], // 车系体系架构 - busVppsChildOptions: [], // 车系体系架构子集合 modelOptions: [], // 模块体系架构 - modelChildOptions: [], // 模块体系架构子集合 applyArcticOptions: [], // 适用车型 categoryOptions: [], // 能源类型 applyAuthOptions: [], // 适用认证 @@ -1437,6 +1398,12 @@ }, }, }, + components: { + ProcessHeader, + ProcessFooter, + ProcessTitle, + TreeSelect + }, methods: { clearFormData(data){ this.form = { @@ -1661,6 +1628,7 @@ this.zrUserIds.push(data) } + console.log(this.zrUserIds) }else { var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); if(getlist.length == 1) { @@ -1678,38 +1646,6 @@ this.drawerTitle = title this.modalShowFlag = true }, - choiceZRR1 (type, title, id) { - this.drawerTitle = title - this.modalShowFlag1 = true - this.key++ - }, - choiceZRR2 (type, title, id) { - this.drawerTitle = title - this.modalShowFlag2 = true - this.url = '' - this.urlChild = '' - this.url="sarVppsTree/list" - this.urlChild="sarVppsTree/childByList" - this.key1++ - }, - choiceZRR3 (type, title, id) { - this.drawerTitle = title - this.modalShowFlag3 = true - this.url = '' - this.urlChild = '' - this.url="sarVppsTree/list" - this.urlChild="sarVppsTree/childByList" - this.key2++ - }, - choiceZRR4 (type, title, id) { - this.drawerTitle = title - this.modalShowFlag4 = true - this.url = '' - this.urlChild = '' - this.url="sarModelTree/list" - this.urlChild="sarModelTree/childByList" - this.key3++ - }, getTree () { this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { this.treeData = res.data @@ -1953,51 +1889,29 @@ this.fileMadel = true this.fileType = type; }, - popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) { + popoverHide (checkedIds, checkedData) { if(checkedData) { - if(checkedData.length > 0){ - this.form.standSystem = checkedData.map(item => item.menuName).join(",") - }else { - this.form.standSystem = checkedData.menuName - } + this.form.standSystem = checkedData.id + this.form.standSystemName = checkedData.menuName } - this.modalShowFlag1 = false }, - popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) { - if(checkedData) { - if(checkedData.length > 0){ - this.form.cycvppsbm = checkedData.map(item => item.code).join(",") - this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",") - }else { - this.form.cycvppsbm = checkedData.code - this.form.cycvppscn = checkedData.chineseName - } + popoverHideBusVs (checkedIds, checkedData) { + if(checkedData){ + this.form.cycvppsbm = checkedData.code + this.form.cycvppscn = checkedData.chineseName } - this.modalShowFlag2 = false }, - popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) { - if(checkedData) { - if(checkedData.length > 0){ - this.form.kccvppsbm = checkedData.map(item => item.code).join(",") - this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",") - }else { - this.form.kccvppsbm = checkedData.code - this.form.kccvppscn = checkedData.chineseName - } + popoverHideCarVs (checkedIds, checkedData) { + if(checkedData){ + this.form.kccvppsbm = checkedData.code + this.form.kccvppscn = checkedData.chineseName } - this.modalShowFlag3 = false }, - popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) { - if(checkedData) { - if(checkedData.length > 0){ - this.form.dybxh = checkedData.map(item => item.model).join(",") - this.form.dymc = checkedData.map(item => item.name).join(",") - }else { - this.form.dybxh = checkedData.model - this.form.dymc = checkedData.name - } + popoverHideModel (checkedIds, checkedData) { + if(checkedData){ + this.form.dybxh = checkedData.model + this.form.dymc = checkedData.name } - this.modalShowFlag4 = false }, closeDrawer() { this.ListModel = false @@ -2092,14 +2006,6 @@ this.busVppsOptions = res.data }) }, - busVsChildFunc(id){ - this.$http.get('sarVppsTree/childByList', {id:id}, { - _this: this - }, res => { - this.busVppsChildOptions = [] - this.busVppsChildOptions = res.data - }) - }, modelFunc(){ this.$http.get('sarModelTree/list', '', { _this: this