From cdbeacee285b970e235a5bad0a949636f9033de6 Mon Sep 17 00:00:00 2001 From: liujun Date: Mon, 22 Jan 2024 16:38:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=A5=E5=B9=B2bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/flow/components/entrust.vue | 189 +++++++++++++++++++++ src/views/xgf/flow/components/list.vue | 10 +- src/views/xgf/flow/components/sendUtil.vue | 50 ++---- 3 files changed, 210 insertions(+), 39 deletions(-) create mode 100644 src/views/xgf/flow/components/entrust.vue diff --git a/src/views/xgf/flow/components/entrust.vue b/src/views/xgf/flow/components/entrust.vue new file mode 100644 index 0000000..88f2e0c --- /dev/null +++ b/src/views/xgf/flow/components/entrust.vue @@ -0,0 +1,189 @@ + + + + + diff --git a/src/views/xgf/flow/components/list.vue b/src/views/xgf/flow/components/list.vue index 0c25b19..dcf0f3a 100644 --- a/src/views/xgf/flow/components/list.vue +++ b/src/views/xgf/flow/components/list.vue @@ -39,10 +39,11 @@ - + @@ -56,6 +57,7 @@ + @@ -68,9 +70,10 @@ import apply from './apply' import user from './user.vue' import SendUtil from './sendUtil.vue' import UserInfo from '../../flow_audit/userInfo.vue' +import Entrust from './entrust.vue' export default { - components: { UserInfo, SendUtil, Pagination, apply, vueQr, user }, + components: { Entrust, UserInfo, SendUtil, Pagination, apply, vueQr, user }, directives: { waves }, data() { return { @@ -165,6 +168,9 @@ export default { approve(row) { this.$refs.sendUtil.init(row) }, + entrust(row) { + this.$refs.entrust.init(row) + }, getUserInfo(row) { this.$refs.userInfo.init(row) }, diff --git a/src/views/xgf/flow/components/sendUtil.vue b/src/views/xgf/flow/components/sendUtil.vue index 5cf5078..655580d 100644 --- a/src/views/xgf/flow/components/sendUtil.vue +++ b/src/views/xgf/flow/components/sendUtil.vue @@ -12,7 +12,7 @@ - + - + @@ -117,18 +117,7 @@ export default { this.visible = true this.heirloom = JSON.stringify(e) this.form.list = JSON.stringify(e) - this.info = e[0] - if (this.info.FLOWS_TYPE === '0') { - if (this.info.FLOWS_STEP === 0) { - this.isShow = true - await this.getDepartmentTree() - } else { - this.isShow = false - } - } else { - this.isShow = true - await this.getCorpDepartmentTree() - } + this.getDepartmentTree() this.loading = false }, sendMessage(e) { @@ -174,29 +163,16 @@ export default { }, getPeopleList(e) { this.form.APPOINT_DEPARTMENT_NAME = e.name - if (this.info.FLOWS_TYPE === '0') { - requestFN( - '/user/listAll', - { - DEPARTMENT_ID: e.id - } - ).then((data) => { - this.peopleList = data.userList - }).catch((e) => { - console.log(e) - }) - } else { - requestFN( - '/user/listAllManageAndCorp', - { - DEPARTMENT_ID: e.id - } - ).then((data) => { - this.peopleList = data.userList - }).catch((e) => { - console.log(e) - }) - } + requestFN( + '/user/listAll', + { + DEPARTMENT_ID: e.id + } + ).then((data) => { + this.peopleList = data.userList + }).catch((e) => { + console.log(e) + }) }, chooseUser(e) { const entity = JSON.parse(e)