diff --git a/src/views/security_commitment/promise_book/components/list.vue b/src/views/security_commitment/promise_book/components/list.vue index 1c80b01..97b0068 100644 --- a/src/views/security_commitment/promise_book/components/list.vue +++ b/src/views/security_commitment/promise_book/components/list.vue @@ -241,18 +241,37 @@ export default { this.$confirm(`确定要删除当前承诺书吗?`, { type: 'warning' }).then(() => { + const loading = this.$loading({ + lock: true, + text: 'Loading', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) requestFN( - '/corppromise/delete', - { - PROMISE_ID - } + '/corppromise/peopledetails?showCount=10¤tPage=1', + { PROMISE_ID: PROMISE_ID } ).then((data) => { - this.listQuery.limit = this.listQuery.limit - this.listQuery.page = this.listQuery.page - this.$message.success('操作成功') - this.getList() + if ((!data.varList) || data.varList.length > 0) { + this.$message.error('当前承诺书已经被使用,不能删除') + loading.close() + return + } + requestFN( + '/corppromise/delete', + { + PROMISE_ID + } + ).then((data) => { + this.listQuery.limit = this.listQuery.limit + this.listQuery.page = this.listQuery.page + this.$message.success('操作成功') + this.getList() + }).catch((e) => { + this.$message.success('操作失败') + }) + loading.close() }).catch((e) => { - this.$message.success('操作失败') + loading.close() }) }).catch(() => {}) } diff --git a/src/views/xgf/audit/components/edit.vue b/src/views/xgf/audit/components/edit.vue index 2e0317c..6e98470 100644 --- a/src/views/xgf/audit/components/edit.vue +++ b/src/views/xgf/audit/components/edit.vue @@ -172,7 +172,7 @@ { - this.employmentTypeList = data.list + const employmentTypeList = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes') + this.employmentTypeList = this.removeEmptyChildren(employmentTypeList) }) requestFN( '/xgf/dictionaries/getLevels', @@ -929,35 +930,6 @@ export default { // 获取数据字典数据 getDictByDicId(dicId) { - /* var dicListVal = [] - return new Promise((resolve) => { - let id = '' - if (!dicId) { - id = '0' - } else { - id = dicId - } - requestFN( - '/dictionaries/getLevelsAndSCount', - { - DICTIONARIES_ID: id - } - ).then((data) => { - if (data.list.length > 0) { - dicListVal = data.list.map((e) => { - if (e.zcount == '0') { - return { value: e.DICTIONARIES_ID.toString(), numValue: e.BIANMA.toString(), label: e.NAME, id: e.DICTIONARIES_ID, leaf: true } - } else { - return { value: e.DICTIONARIES_ID.toString(), numValue: e.BIANMA.toString(), label: e.NAME, id: e.DICTIONARIES_ID, children: [], leaf: false } - } - }) - } else { - dicListVal = undefined - } - return resolve(dicListVal) - }).catch((e) => { - }) - }) */ }, // 地图相关 mapOpen() { diff --git a/src/views/xgf/flow/components/list.vue b/src/views/xgf/flow/components/list.vue index bf01575..27767b3 100644 --- a/src/views/xgf/flow/components/list.vue +++ b/src/views/xgf/flow/components/list.vue @@ -67,7 +67,7 @@ import vueQr from 'vue-qr' import apply from './apply' import user from './user.vue' import SendUtil from './sendUtil.vue' -import UserInfo from './userInfo.vue' +import UserInfo from '../../flowApply/components/userInfo.vue' export default { components: { UserInfo, SendUtil, Pagination, apply, vueQr, user }, diff --git a/src/views/xgf/flow/components/userInfo.vue b/src/views/xgf/flow/components/userInfo.vue deleted file mode 100644 index 3b7e987..0000000 --- a/src/views/xgf/flow/components/userInfo.vue +++ /dev/null @@ -1,409 +0,0 @@ - - - - - - diff --git a/src/views/xgf/flowApply/components/userInfo.vue b/src/views/xgf/flowApply/components/userInfo.vue index bb3a701..05b7242 100644 --- a/src/views/xgf/flowApply/components/userInfo.vue +++ b/src/views/xgf/flowApply/components/userInfo.vue @@ -154,7 +154,12 @@ - + + +