diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/addfrom.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/addfrom.vue index 3e355f1..40e4133 100644 --- a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/addfrom.vue +++ b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/addfrom.vue @@ -11,15 +11,15 @@ - + - + - - + + - - - - - - - - - - + - + :options="yhPLANGRADEthree" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + 危化品事故 + 爆炸 + 火灾 + 水灾 + 其他 + + + + + - - + + + + + + +
+ + + + + + +
+
+
+
+ + + + + - - - - 点击上传 - - - - - - - 点击上传 - - - - - - - - - - 点击上传 - - - - - - - 点击上传 - - - - - - - - - + + + @@ -202,57 +100,112 @@ - + - 救援队伍 - - + + + + + + + + + + + + + +
- 返回 - 保存 - 保存并进入下一步 + 返回 + 保存 + 保存并进入下一步 + + 上一步 + 下一步
+ + + + + +
+ +
关键词:
+
+ +
+ + +
+
+ +
+ +
+
- - - diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/list.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/list.vue index 561f12c..06e8011 100644 --- a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/list.vue @@ -9,15 +9,15 @@ - - - + + + @@ -37,30 +37,12 @@ + + + diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanwenben.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanwenben.vue new file mode 100644 index 0000000..3e8b938 --- /dev/null +++ b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanwenben.vue @@ -0,0 +1,115 @@ + + + + + + diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanziling.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanziling.vue new file mode 100644 index 0000000..f759248 --- /dev/null +++ b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanziling.vue @@ -0,0 +1,389 @@ + + + + + + diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanziyuan.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanziyuan.vue new file mode 100644 index 0000000..000975e --- /dev/null +++ b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/yvanziyuan.vue @@ -0,0 +1,385 @@ + + + + + + diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/zuzhijiagou.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/zuzhijiagou.vue index d6ac037..3bb5ecf 100644 --- a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/zuzhijiagou.vue +++ b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/zuzhijiagou.vue @@ -1,6 +1,20 @@ @@ -52,10 +140,16 @@ export default { name: 'Yingjizhuangjia', components: { Pagination, Treeselect }, props: { - + planid: { + type: String, + default() { + return '' + } } }, data() { return { + rules: [], + listISLOADing: false, listQuery: { page: 1, limit: 20 @@ -68,30 +162,136 @@ export default { label: 'name' }, total: 0, - treeData: [] + treeData: [], + //* ***机构维护******* + jigoumainid: '0', + jigouname: '', + dialogjigouShow: false, + jigoufrom: {}, + //* ******人员********* + renyuanfrom: {}, + dialogrenyuanShow: false } }, created() { this.getTreeList() - this.getDEPARTMENTList(0) + this.getDEPARTMENTList('') }, methods: { + renyuanadd() { + this.dialogrenyuanShow = true + this.renyuanfrom = {} + }, + updaterenyuanPeople(row) { + this.dialogrenyuanShow = true + this.jigouname = row.PLANNINGDEPARTMENT_NAME + this.renyuanfrom = { + PLANNINGPERSONNEL_ID: row.PLANNINGPERSONNEL_ID, + NAME: row.NAME, + + DUTIES: row.DUTIES, + POSITION: row.POSITION, + LINKPHONE: row.LINKPHONE, + URGENTLINKPHONE: row.URGENTLINKPHONE + + } + }, + deleterenyuanPeople(id) { + this.listISLOADing = true + requestFN( + '/plan/planningDepartment/deletePersonnel', { id: id } + ).then((data) => { + this.$message({ + message: '移除成功', + type: 'success' + }) + + this.listISLOADing = false + this.getDEPARTMENTList() + }).catch((e) => { + this.listISLOADing = false + }) + }, + renyuanconfirm() { + this.listISLOADing = true + this.renyuanfrom.FIRERESERVEPLAN_ID = this.planid + this.renyuanfrom.PLANNINGDEPARTMENT_ID = this.jigoumainid + requestFN( + '/plan/planningDepartment/savePersonnel', this.renyuanfrom + ).then((data) => { + this.$message({ + message: '添加成功', + type: 'success' + }) + this.dialogrenyuanShow = false + this.listISLOADing = false + this.getDEPARTMENTList(this.jigoumainid) + }).catch((e) => { + this.listISLOADing = false + }) + }, + + //* ************************** + jigouAdd() { + this.jigoufrom = {} + this.dialogjigouShow = true + }, + jigoudelete() { + this.listISLOADing = true + requestFN( + '/plan/planningDepartment/delete', { id: this.jigoumainid } + ).then((data) => { + this.$message({ + message: '移除成功', + type: 'success' + }) + + this.listISLOADing = false + this.getTreeList() + }).catch((e) => { + this.listISLOADing = false + }) + }, + jigouconfirm() { + this.listISLOADing = true + this.jigoufrom.FIRERESERVEPLAN_ID = this.planid + this.jigoufrom.PARENT_ID = this.jigoumainid + requestFN( + '/plan/planningDepartment/save', this.jigoufrom + ).then((data) => { + this.$message({ + message: '添加成功', + type: 'success' + }) + this.dialogjigouShow = false + this.listISLOADing = false + this.getTreeList() + }).catch((e) => { + this.listISLOADing = false + }) + }, + filterNode(value, data) { if (!value) return true return data.name.indexOf(value) !== -1 }, handleNodeClick(node, data, value) { - this.form.PARENT_ID = node.id - this.getDEPARTMENTList(node.id) + this.jigoumainid = node.id + + this.jigouname = node.name + this.getDEPARTMENTList(this.jigoumainid) }, getTreeList() { this.treeLoading = true requestFN( - '/department/listTree', - {} + '/plan/planningDepartment/getTree', + { + FIRERESERVEPLAN_ID: this.planid, + proid: '0' + } ).then((data) => { this.treeLoading = false - this.treeData = JSON.parse(data.zTreeNodes) + this.treeData = data.data }).catch((e) => { this.treeLoading = false }) @@ -101,15 +301,14 @@ export default { this.listLoading = true this.varList = [] requestFN( - '/department/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page, + '/plan/planningDepartment/personnelList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page, { - DEPARTMENT_ID: DEPARTMENT_ID + PLANNINGDEPARTMENT_ID: DEPARTMENT_ID, + FIRERESERVEPLAN_ID: this.planid } ).then((data) => { this.listLoading = false this.varList = data.varList - this.form.PARENT_ID = data.PARENT_ID - this.form.LEVEL = data.LEVEL this.total = data.page.totalResult this.hasButton() }).catch((e) => { diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan/index.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan/index.vue index 3cec13b..9859403 100644 --- a/src/views/emergen_cyrescue/emergency_plan/company_plan/index.vue +++ b/src/views/emergen_cyrescue/emergency_plan/company_plan/index.vue @@ -18,7 +18,6 @@ export default { methods: { huidiao() { - console.log('sdfsdsfd') this.$refs.list.getList() }