From cf30193ceb739ffab0940c70c686b05db6491046 Mon Sep 17 00:00:00 2001 From: yuezhihang Date: Wed, 21 Jul 2021 16:25:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=9B=9E=E6=98=BE=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=EF=BC=81=EF=BC=81=EF=BC=81=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/processCenter/pages/creatProcess/xmpg/step3.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue index 70146884e..22b171a3f 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue @@ -505,6 +505,13 @@ export default { this.showColumn = true; }); this.modalshowflag2 = false; + //不要删除 By 宋伟佳 + console.log(this.$refs.multipleTable.clearSelection()) + this.$nextTick(() => { + for(var i=0;i Date: Wed, 21 Jul 2021 16:26:58 +0800 Subject: [PATCH 2/3] commit --- src/components/index.js | 2 + src/components/roleTree/index.vue | 175 +++++++++++ .../pages/creatProcess/bzdy/step1-1.vue | 158 +++------- .../pages/creatProcess/bzdy/step1.vue | 271 +++--------------- .../pages/creatProcess/bzdy/step2.vue | 67 ++--- 5 files changed, 283 insertions(+), 390 deletions(-) create mode 100644 src/components/roleTree/index.vue diff --git a/src/components/index.js b/src/components/index.js index e5167f1b8..50327d085 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -21,6 +21,7 @@ import AdvancedQuery from './advancedQuery' // 高级查询 import GenerationNumber from './generationNumber' // 生成企标编号组件 import RoleUserTree from './roleUserTree' // 根据部门和角色查询人员 import DeptRoleTree from './deptRoleTree' // 根据部门查询角色 +import RoleTree from './roleTree' // 查询所有机构及人员 import SQTree from './SQTree' import OrgTable from './OrgTable' @@ -46,6 +47,7 @@ const install = function (Vue) { Vue.component('DeptRoleTree', DeptRoleTree) Vue.component('SQTree', SQTree) Vue.component('OrgTable', OrgTable) + Vue.component('RoleTree', RoleTree) } export default { diff --git a/src/components/roleTree/index.vue b/src/components/roleTree/index.vue new file mode 100644 index 000000000..fa5a0597e --- /dev/null +++ b/src/components/roleTree/index.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step1-1.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step1-1.vue index 178d7f8c3..5b24794bb 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step1-1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step1-1.vue @@ -154,57 +154,19 @@ @submit="handleSubmit" > - - - - - - - - - - + + 0) { - this.nodeList2 = this.roleForm.dockUserList.split(',') - } - this.modalshowflag2 = true - }, - saveUserInfo2 () { + checkedRole2 (data) { var idList = '' var nameList = '' - this.$refs.tree2.getCheckedNodes().concat(this.$refs.tree2.getHalfCheckedNodes()).forEach( item => { + data.forEach( item => { if (nameList.length > 0) { nameList += ',' idList += ',' @@ -342,10 +290,35 @@ }) this.roleForm.dockUserList = idList this.roleForm.dockUserName = nameList - this.modalshowflag2 = false }, - cancleUserInfo2 () { - this.modalshowflag2 = false + checkedRole (data) { + if (this.type === 'dockUser') { + this.roleForm.dockUser = data[0].id + this.roleForm.dockUserName = data[0].name + } else if (this.type === 'ministerUser') { + this.roleForm.ministerUser = data[0].id + this.roleForm.ministerUserName = data[0].name + } else if (this.type === 'directorUser') { + this.roleForm.directorUser = data[0].id + this.roleForm.directorUserName = data[0].name + } else if (this.type === 'presidentUser') { + this.roleForm.presidentUser = data[0].id + this.roleForm.presidentUserName = data[0].name + } + }, + choiceZRRS () { + this.nodeList2 = [] + if ( this.roleForm.dockUserList.length > 0) { + this.nodeList2 = this.roleForm.dockUserList.split(',') + } + this.modalshowflag2 = true + }, + choiceZRR (type, title, id) { + this.nodeList = [] + this.nodeList.push(id) + this.type = type + this.drawerTitle = title + this.modalshowflag = true }, // 导入按钮 上传之前的钩子 beginImportFile (file) { @@ -388,46 +361,6 @@ fileUpload () { this.fileMadel = true }, - saveUserInfo () { - if (this.type === 'dockUser') { - this.roleForm.dockUser = this.roleRow.id - this.roleForm.dockUserName = this.roleRow.name - } else if (this.type === 'ministerUser') { - this.roleForm.ministerUser = this.roleRow.id - this.roleForm.ministerUserName = this.roleRow.name - } else if (this.type === 'directorUser') { - this.roleForm.directorUser = this.roleRow.id - this.roleForm.directorUserName = this.roleRow.name - } else if (this.type === 'presidentUser') { - this.roleForm.presidentUser = this.roleRow.id - this.roleForm.presidentUserName = this.roleRow.name - } - this.modalshowflag = false - }, - cancleUserInfo () { - this.modalshowflag = false - }, - drawerCheck (data) { - var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); - if(getlist.length == 1) { - this.roleRow = getlist[0] - }else { - this.$refs.tree.setCheckedKeys([data.id]); - this.roleRow = this.$refs.tree.getCheckedNodes()[0] - } - }, - choiceZRR (type, title, id) { - this.nodeList = [] - this.nodeList.push(id) - this.type = type - this.drawerTitle = title - this.modalshowflag = true - }, - getTree () { - this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { - this.treeData = res.data - }) - }, handleTabs(name) { this.active = name }, @@ -490,7 +423,6 @@ }, mounted () { this.getData() - this.getTree() } } diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue index be0700a43..f9ba573ed 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue @@ -154,116 +154,19 @@ @submit="handleSubmit" > - - - - - - - - - - - - 导入中... - - - - - - - - - - - - - 导入中... - + + { - this.treeData1 = res.data - this.treeLoading = false - }) - } else { - this.open1 = true - } - }, - filterText2 (val) { - if (val.length) { - this.open2 = false - this.treeLoading = true - this.$http.get('SarInstitution/institution/institutionAndUser', { - userName: val - }, {}, res => { - this.treeData2 = res.data - this.treeLoading = false - }) - } else { - this.open2 = true - } - }, - }, methods: { - loadNode(node, resolve) { - if (node.level === 0) { - return resolve(this.treeData); - } - this.getChildren(node, resolve) - }, - getChildren (node, resolve) { - this.$http.get('SarInstitution/institution/getNext', { - institutionId: node.key - }, {}, res => { - resolve(res) - }) - }, - choiceZRRS () { - this.nodeList2 = [] - if ( this.roleForm.dockUserList.length > 0) { - this.nodeList2 = this.roleForm.dockUserList.split(',') - } - this.filterText2 = '' - this.modalshowflag2 = true - }, - saveUserInfo2 () { + checkedRole2 (data) { var idList = '' var nameList = '' - this.$refs.tree2.getCheckedNodes().concat(this.$refs.tree2.getHalfCheckedNodes()).forEach( item => { + data.forEach( item => { if (nameList.length > 0) { nameList += ',' idList += ',' @@ -441,10 +280,35 @@ export default { }) this.roleForm.dockUserList = idList this.roleForm.dockUserName = nameList - this.modalshowflag2 = false }, - cancleUserInfo2 () { - this.modalshowflag2 = false + checkedRole (data) { + if (this.type === 'dockUser') { + this.roleForm.dockUser = data[0].id + this.roleForm.dockUserName = data[0].name + } else if (this.type === 'ministerUser') { + this.roleForm.ministerUser = data[0].id + this.roleForm.ministerUserName = data[0].name + } else if (this.type === 'directorUser') { + this.roleForm.directorUser = data[0].id + this.roleForm.directorUserName = data[0].name + } else if (this.type === 'presidentUser') { + this.roleForm.presidentUser = data[0].id + this.roleForm.presidentUserName = data[0].name + } + }, + choiceZRRS () { + this.nodeList2 = [] + if ( this.roleForm.dockUserList.length > 0) { + this.nodeList2 = this.roleForm.dockUserList.split(',') + } + this.modalshowflag2 = true + }, + choiceZRR (type, title, id) { + this.nodeList = [] + this.nodeList.push(id) + this.type = type + this.drawerTitle = title + this.modalshowflag = true }, // 导入按钮 上传之前的钩子 beginImportFile (file) { @@ -487,49 +351,6 @@ export default { fileUpload () { this.fileMadel = true }, - saveUserInfo () { - if (this.type === 'dockUser') { - this.roleForm.dockUser = this.roleRow.id - this.roleForm.dockUserName = this.roleRow.name - } else if (this.type === 'ministerUser') { - this.roleForm.ministerUser = this.roleRow.id - this.roleForm.ministerUserName = this.roleRow.name - } else if (this.type === 'directorUser') { - this.roleForm.directorUser = this.roleRow.id - this.roleForm.directorUserName = this.roleRow.name - } else if (this.type === 'presidentUser') { - this.roleForm.presidentUser = this.roleRow.id - this.roleForm.presidentUserName = this.roleRow.name - } - this.modalshowflag = false - }, - cancleUserInfo () { - this.modalshowflag = false - }, - drawerCheck (data) { - var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); - if(getlist.length == 1) { - this.roleRow = getlist[0] - }else { - this.$refs.tree.setCheckedKeys([data.id]); - this.roleRow = this.$refs.tree.getCheckedNodes()[0] - } - }, - choiceZRR (type, title, id) { - this.nodeList = [] - this.nodeList.push(id) - this.type = type - this.drawerTitle = title - this.filterText1 = '' - this.modalshowflag = true - }, - getTree () { - this.treeLoading = true - this.$http.get('SarInstitution/institution/getFirstInstitution', {}, {}, res=> { - this.treeData = res - this.treeLoading = false - }) - }, handleTabs(name) { this.active = name }, @@ -591,9 +412,7 @@ export default { }) } }, - mounted () { - this.getTree() - } + mounted () {} } diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue index 1169ad9bf..299d6dbe8 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue @@ -82,31 +82,12 @@ @submit="handleSubmit" > - - - - - + @@ -123,15 +104,9 @@ commentText: '', taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, - roleRow: {}, - nodeList: [], + nodeList2: [], type: '', - defaultProps: { - children: 'children', - label: 'name' - }, - treeData: [], // 人员数据 - modalshowflag: false, // drawer开关 + modalshowflag2: false, // drawer开关 drawerTitle: '', //drawer标题 textarea: '', // 意见 ListModel: false, // 新增编辑抽屉开关 @@ -159,13 +134,10 @@ ProcessTitle }, methods: { - updateFile () { - window.location.href = '/api/att/attFile/downloadFile?fileId=' + this.form.model - }, - saveUserInfo () { + checkedRole2 (data) { var idList = '' var nameList = '' - this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()).forEach( item => { + data.forEach( item => { if (nameList.length > 0) { nameList += ',' idList += ',' @@ -175,22 +147,16 @@ }) this.form.responUserList = idList this.form.responUserListName = nameList - this.modalshowflag = false }, - cancleUserInfo () { - this.modalshowflag = false + updateFile () { + window.location.href = '/api/att/attFile/downloadFile?fileId=' + this.form.model }, choiceZRR () { - this.nodeList = [] - if (this.form.responUserList.length > 0) { - this.nodeList = this.form.responUserList.split(',') + this.nodeList2 = [] + if ( this.form.responUserList.length > 0) { + this.nodeList2 = this.form.responUserList.split(',') } - this.modalshowflag = true - }, - getTree () { - this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { - this.treeData = res.data - }) + this.modalshowflag2 = true }, handleTabs(name) { this.active = name @@ -238,7 +204,6 @@ }, }, mounted () { - this.getTree() this.getData() } } From a9c7a5b4d2122daeec32df505cd4a0a4a1dfca40 Mon Sep 17 00:00:00 2001 From: shen_yan_pu <1975145892@qq.com> Date: Wed, 21 Jul 2021 16:28:32 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=9B=BD=E5=AE=B6=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/addEdit.vue | 127 +++++++++++++++++- .../pages/details.vue | 13 +- .../pages/otherAddEit.vue | 2 +- 3 files changed, 139 insertions(+), 3 deletions(-) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 8b3390df2..712ae4209 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -378,6 +378,9 @@ align="center" width="210px" label="标准实施日期"> + - + @@ -498,6 +507,87 @@ + + + + + {{ editRowData.standSortShow }} {{ editRowData.standNumber }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +