From d72e37dd8e6bca304922dbc18b78c6df5eecb239 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 13 Aug 2024 14:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=80=BC=E7=8F=AD=E4=BA=BA=E5=91=98=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E6=98=AF=E7=B3=BB=E7=BB=9F=E4=B8=AD=E7=9A=84=E4=BA=BA?= =?UTF-8?q?=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shift_registration/components/list.vue | 77 +++---- .../shift_registration/index.vue | 4 +- .../shift_registration/components/list.vue | 39 ++-- .../components/selectZhiBanUser.vue | 201 ++++++++++++++++++ 4 files changed, 248 insertions(+), 73 deletions(-) create mode 100644 src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/selectZhiBanUser.vue diff --git a/src/views/emergen_cyrescue/duty_management/shift_registration/components/list.vue b/src/views/emergen_cyrescue/duty_management/shift_registration/components/list.vue index 13207a1..24e76e8 100644 --- a/src/views/emergen_cyrescue/duty_management/shift_registration/components/list.vue +++ b/src/views/emergen_cyrescue/duty_management/shift_registration/components/list.vue @@ -2,32 +2,27 @@
- - - - - 模版下载 + 模版下载~~~~ 导入 - 清空本月 + 清空本月 搜索 @@ -54,7 +49,6 @@ prop="name" label="值班领导" width="180"> - @@ -381,8 +377,9 @@ import { Treeselect } from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' import moment from 'moment' import { upload } from '@/utils/upload' +import SelectZhiBanUser from '../../../emergency_report/duty_management/shift_registration/components/selectZhiBanUser.vue' export default { - components: { Treeselect, Pagination }, + components: { SelectZhiBanUser, Treeselect, Pagination }, data() { return { exceltempFormAdd: false, @@ -493,27 +490,13 @@ export default { this.getAddressList() }, getTreeNode(node, resolve) { - if (node.level === 0) { - requestFN( - '/yjcommunicate/getCommunicateGroupLevels', - { - regulationsId: '' - } - ).then((data) => { - resolve(data.list) - }).catch((e) => { - }) - } else { - requestFN( - '/yjcommunicate/getCommunicateGroupLevels', - { - regulationsId: node.data.DICTIONARIES_ID - } - ).then((data) => { - resolve(data.list) - }).catch((e) => { - }) - } + requestFN( + 'department/listAll', {} + ).then((data) => { + resolve(data.list) + }).catch((e) => { + console.log(e) + }) }, filterNode(value, data) { if (!value) return true @@ -528,20 +511,12 @@ export default { getAddressList() { this.listLoading = true requestFN( - '/yjcommunicate/listAddressBook?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page, - { - groupId: this.addressgroupId, - addressName: this.addressName, - addressSex: this.addressSex - } + 'department/listTree', {} ).then((data) => { this.listLoading = false - this.adressvarList = data.varList - this.total = data.page.totalResult + }).catch((e) => { + this.listLoading = false }) - .catch((e) => { - this.listLoading = false - }) }, addSysChoice() { this.dialogPeopleFormEdit = false @@ -670,13 +645,12 @@ export default { this.listLoading = true requestFN('/workingSchedule/deletePeople', { id: id }).then((data) => { this.listLoading = false - // this.varList = [] - // this.getList() }).catch((e) => { this.listLoading = false }) }, addPeopleTz(dynamicTags, id, type, dity_type) { + console.log('??????') this.formPeople = { MAIN_ID: id, PEOPLE_TYPE: type, @@ -685,7 +659,8 @@ export default { PEOPLE_SOURCE: '1' } this.dynamicTags = dynamicTags - this.dialogPeopleFormEdit = true + console.log('????') + this.$refs.selectZhiBanUser.init(this.formPeople) }, // 保存值班人员 savePeople() { @@ -715,14 +690,11 @@ export default { this.formPeople.ids = ids this.formPeople.PEOPLE_SOURCE = 2 - // this.listLoading = true requestFN('/workingSchedule/savePeopleMian2', this.formPeople).then((data) => { - // this.listLoading = false this.dialogFormAddSysChoiceShow = false - // this.varList = [] this.getList2() }).catch((e) => { - // this.listLoading = false + console.log(e) }) }, //* ******************************************* @@ -765,7 +737,6 @@ export default { }, getQuery() { - // this.$refs.multipleTable.clearSelection() this.getList() } } diff --git a/src/views/emergen_cyrescue/duty_management/shift_registration/index.vue b/src/views/emergen_cyrescue/duty_management/shift_registration/index.vue index ac13f74..765f84b 100644 --- a/src/views/emergen_cyrescue/duty_management/shift_registration/index.vue +++ b/src/views/emergen_cyrescue/duty_management/shift_registration/index.vue @@ -1,7 +1,7 @@ + +