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 f618920..8f90b8c 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
@@ -3,13 +3,21 @@
-
+
+
+
+
+
+
+
+
@@ -377,9 +385,10 @@ import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import moment from 'moment'
import { upload } from '@/utils/upload'
+import SelectTree from '@/components/SelectTree'
import SelectZhiBanUser from '../../../emergency_report/duty_management/shift_registration/components/selectZhiBanUser.vue'
export default {
- components: { SelectZhiBanUser, Treeselect, Pagination },
+ components: { SelectZhiBanUser, SelectTree, Treeselect, Pagination },
data() {
return {
exceltempFormAdd: false,
@@ -429,6 +438,7 @@ export default {
children: 'nodes',
label: 'NAME'
},
+ defaultProps1: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
ORGAN_ID: null,
DepartmentData: [],
normalizer(node) {
@@ -448,16 +458,23 @@ export default {
methods: {
//* *************部门组件查询*************************
getDepartmentList(fun) {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
- this.ORGAN_ID = this.DepartmentData[0].id
- fun()
- console.log(this.DepartmentData)
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // this.ORGAN_ID = this.DepartmentData[0].id
+ // fun()
+ // console.log(this.DepartmentData)
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
handleDepartmentChange(value) {
diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_address_book/components/addressbook.vue b/src/views/emergen_cyrescue/emergency_information/emergency_address_book/components/addressbook.vue
index f01dda2..35d4437 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_address_book/components/addressbook.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_address_book/components/addressbook.vue
@@ -122,10 +122,9 @@ export default {
rules: {
OFFICE_PHONE: [
{ required: true, message: '办公电话不能为空', trigger: 'blur' },
- { min: 11, max: 11, message: '请输入11位手机号码', trigger: 'blur' },
{
- pattern: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
- message: '请输入正确的手机号码'
+ pattern: /^1[3-9]\d{9}$|^0\d{2,3}-\d{7,8}$/,
+ message: '请输入正确的手机号码或座机号码'
}
],
MOVE_PHONE: [
diff --git a/src/views/emergen_cyrescue/emergency_information/security_agency/assurance_management/components/list.vue b/src/views/emergen_cyrescue/emergency_information/security_agency/assurance_management/components/list.vue
index b64c950..9429823 100644
--- a/src/views/emergen_cyrescue/emergency_information/security_agency/assurance_management/components/list.vue
+++ b/src/views/emergen_cyrescue/emergency_information/security_agency/assurance_management/components/list.vue
@@ -198,13 +198,21 @@
-
+
+
+
+
+
+
+
+
@@ -262,8 +270,9 @@ import Pagination from '@/components/Pagination'
import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
+import SelectTree from '@/components/SelectTree'
export default {
- components: { Treeselect, Pagination },
+ components: { Treeselect, SelectTree, Pagination },
data() {
return {
// 地图相关
@@ -293,6 +302,7 @@ export default {
dialogFormEdit: false,
dialogFormShow: false,
dialogType: 'add',
+ defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
form: {
ID: '',
ORG_NAME: '',
@@ -530,13 +540,20 @@ export default {
})
},
getDepartmentList() {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
getTreeList() {
diff --git a/src/views/emergen_cyrescue/emergency_information/security_agency/institutional_management/components/list.vue b/src/views/emergen_cyrescue/emergency_information/security_agency/institutional_management/components/list.vue
index e6e24d0..f035221 100644
--- a/src/views/emergen_cyrescue/emergency_information/security_agency/institutional_management/components/list.vue
+++ b/src/views/emergen_cyrescue/emergency_information/security_agency/institutional_management/components/list.vue
@@ -240,12 +240,20 @@
-
+
+
+
+
+
+
+
@@ -318,9 +326,10 @@ import Pagination from '@/components/Pagination'
import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
+import SelectTree from '@/components/SelectTree'
export default {
- components: { Treeselect, Pagination },
+ components: { Treeselect, SelectTree, Pagination },
data() {
return {
@@ -339,7 +348,7 @@ export default {
dialogFormMap: false,
LATITUDE: '',
LONGITUDE: '',
-
+ defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
listQuery: {
page: 1,
limit: 10
@@ -602,13 +611,20 @@ export default {
this.$parent.ticketType = ticketType
},
getDepartmentList() {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
getTreeList() {
diff --git a/src/views/emergen_cyrescue/emergency_information/security_agency/transportation_management/components/list.vue b/src/views/emergen_cyrescue/emergency_information/security_agency/transportation_management/components/list.vue
index 2ee9a49..4fd958c 100644
--- a/src/views/emergen_cyrescue/emergency_information/security_agency/transportation_management/components/list.vue
+++ b/src/views/emergen_cyrescue/emergency_information/security_agency/transportation_management/components/list.vue
@@ -166,13 +166,21 @@
-
+
+
+
+
+
+
+
+
@@ -245,8 +253,9 @@ import Pagination from '@/components/Pagination'
import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
+import SelectTree from '@/components/SelectTree'
export default {
- components: { Treeselect, Pagination },
+ components: { Treeselect, SelectTree, Pagination },
data() {
return {
// 地图相关
@@ -335,6 +344,7 @@ export default {
caseSummaryList: [],
treeData: [],
DepartmentData: [],
+ defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
yjorgTypeData: [],
normalizer(node) {
return {
@@ -381,13 +391,20 @@ export default {
this.$parent.ticketType = ticketType
},
getDepartmentList() {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
getTreeList() {
diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan-check/components/list.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan-check/components/list.vue
index 089598f..1d6cfba 100644
--- a/src/views/emergen_cyrescue/emergency_plan/company_plan-check/components/list.vue
+++ b/src/views/emergen_cyrescue/emergency_plan/company_plan-check/components/list.vue
@@ -98,7 +98,7 @@ export default {
this.$parent.CASE_ID = id
},
setCheck() {
- if (!this.AUDIT_STATUS || this.AUDIT_STATUS === ''){
+ if (!this.AUDIT_STATUS || this.AUDIT_STATUS === '') {
this.$message.error('请选择是否通过')
return
}
diff --git a/src/views/emergen_cyrescue/emergency_team/rescue_team/components/list.vue b/src/views/emergen_cyrescue/emergency_team/rescue_team/components/list.vue
index 42c5419..ccc353a 100644
--- a/src/views/emergen_cyrescue/emergency_team/rescue_team/components/list.vue
+++ b/src/views/emergen_cyrescue/emergency_team/rescue_team/components/list.vue
@@ -217,13 +217,22 @@
-
+
+
+
+
+
+
+
+
+
@@ -374,9 +383,10 @@ import Pagination from '@/components/Pagination'
import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
+import SelectTree from '@/components/SelectTree'
export default {
- components: { Treeselect, Pagination },
+ components: { Treeselect, SelectTree, Pagination },
data() {
return {
// 地图相关
@@ -475,6 +485,7 @@ export default {
treeData: [],
DepartmentData: [],
yjTypeData: [],
+ defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
normalizer(node) {
return {
id: node.DICTIONARIES_ID,
@@ -526,14 +537,21 @@ export default {
this.$parent.ticketType = ticketType
},
getDepartmentList() {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
- console.log(this.DepartmentData)
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // console.log(this.DepartmentData)
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
getTreeList() {
diff --git a/src/views/emergen_cyrescue/resource_management/emergency_shelter/components/list.vue b/src/views/emergen_cyrescue/resource_management/emergency_shelter/components/list.vue
index fda13b8..dfd6710 100644
--- a/src/views/emergen_cyrescue/resource_management/emergency_shelter/components/list.vue
+++ b/src/views/emergen_cyrescue/resource_management/emergency_shelter/components/list.vue
@@ -115,12 +115,13 @@
-
@@ -174,8 +175,9 @@ import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { upload } from '@/utils/upload'
+import SelectTree from '@/components/SelectTree'
export default {
- components: { Treeselect, Pagination },
+ components: { Treeselect, SelectTree, Pagination },
data() {
return {
@@ -194,7 +196,7 @@ export default {
dialogFormMap: false,
LATITUDE: '',
LONGITUDE: '',
-
+ defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
listQuery: {
page: 1,
limit: 10
@@ -302,13 +304,20 @@ export default {
},
//* ****************************************
getDepartmentList() {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
getTreeList() {
diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipment.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipment.vue
index dbef053..d2a2442 100644
--- a/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipment.vue
+++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipment.vue
@@ -103,12 +103,20 @@
-
+
+
+
+
+
+
+
@@ -163,8 +171,9 @@ import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { upload } from '@/utils/upload'
+import SelectTree from '@/components/SelectTree'
export default {
- components: { Treeselect, Pagination },
+ components: { Treeselect, SelectTree, Pagination },
props: {
resourceLibraryId: {
type: String,
@@ -253,6 +262,7 @@ export default {
yjrescueEquipData: [],
DepartmentData: [],
+ defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
normalizer(node) {
return {
id: node.DICTIONARIES_ID,
@@ -306,13 +316,20 @@ export default {
},
//* ****************************************
getDepartmentList() {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
getyjrescueEquipDataList() {
diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/supplies.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/supplies.vue
index a04ee0d..e0c47f7 100644
--- a/src/views/emergen_cyrescue/resource_management/equipment_library/components/supplies.vue
+++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/supplies.vue
@@ -103,12 +103,20 @@
-
+
+
+
+
+
+
+
@@ -160,8 +168,9 @@ import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { upload } from '@/utils/upload'
+import SelectTree from '@/components/SelectTree'
export default {
- components: { Treeselect, Pagination },
+ components: { Treeselect, SelectTree, Pagination },
props: {
resourceLibraryId: {
type: String,
@@ -186,7 +195,7 @@ export default {
dialogFormMap: false,
LATITUDE: '',
LONGITUDE: '',
-
+ defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
listQuery: {
page: 1,
limit: 10
@@ -304,13 +313,20 @@ export default {
},
//* ****************************************
getDepartmentList() {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
getyjrescueSuppliesDataList() {
diff --git a/src/views/emergen_cyrescue/resource_management/fireInfo_report/components/list.vue b/src/views/emergen_cyrescue/resource_management/fireInfo_report/components/list.vue
index 2b002d9..557646a 100644
--- a/src/views/emergen_cyrescue/resource_management/fireInfo_report/components/list.vue
+++ b/src/views/emergen_cyrescue/resource_management/fireInfo_report/components/list.vue
@@ -74,7 +74,7 @@
- 返 回
+ 返 回
-
+
+
+
+
+
+
+
@@ -176,8 +184,9 @@ import { requestFN } from '@/utils/request'
import { Treeselect } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { upload } from '@/utils/upload'
+import SelectTree from '@/components/SelectTree'
export default {
- components: { Treeselect, Pagination },
+ components: { Treeselect, SelectTree, Pagination },
data() {
return {
@@ -241,6 +250,7 @@ export default {
yjrescueEquipData: [],
treeData: [],
DepartmentData: [],
+ defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
normalizer(node) {
return {
id: node.DICTIONARIES_ID,
@@ -286,13 +296,20 @@ export default {
},
//* ****************************************
getDepartmentList() {
- requestFN('/department/listAll').then((data) => {
- this.DepartmentData = data.list.map(item => ({
- id: item.department_ID,
- label: item.name
- }))
+ // requestFN('/department/listAll').then((data) => {
+ // this.DepartmentData = data.list.map(item => ({
+ // id: item.department_ID,
+ // label: item.name
+ // }))
+ // }).catch((e) => {
+ // console.error('获取主管单位数据失败', e)
+ // })
+ requestFN(
+ '/department/listTree',
+ {}
+ ).then((data) => {
+ this.DepartmentData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
- console.error('获取主管单位数据失败', e)
})
},
getTreeList() {