From 7df0371a1947aa9428ece757e03ed4aa0d958299 Mon Sep 17 00:00:00 2001 From: tianq Date: Mon, 27 Mar 2023 17:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tuceng/anquan/anquanxuncha/index.vue | 13 +- .../tuceng/anquan/shebei/addForm.vue | 18 +- .../shequzhili/tuceng/anquan/shebei/index.vue | 23 +- .../tuceng/anquan/yinhuan/addForm.vue | 17 +- .../tuceng/anquan/yinhuan/index.vue | 30 +- .../tuceng/anquan/yinhuan/record.vue | 2 +- .../tuceng/chengshiguanli/addForm.vue | 416 ++++++++++++++++ .../tuceng/chengshiguanli/index.vue | 444 ++++++++++++++++- .../shequzhili/tuceng/gonggong/addForm.vue | 416 ++++++++++++++++ .../shequzhili/tuceng/gonggong/index.vue | 444 ++++++++++++++++- .../shequzhili/tuceng/gonggong/record.vue | 428 +++++++++++++++++ .../tuceng/gonggongfuwu/addForm.vue | 417 ++++++++++++++++ .../shequzhili/tuceng/gonggongfuwu/index.vue | 451 ++++++++++++++++++ .../tuceng/yingji/changsuo/addForm.vue | 412 ++++++++++++++++ .../tuceng/yingji/changsuo/index.vue | 436 ++++++++++++++++- .../tuceng/yingji/changsuo/record.vue | 428 +++++++++++++++++ .../shequzhili/tuceng/yingji/wuzi/addForm.vue | 416 ++++++++++++++++ .../shequzhili/tuceng/yingji/wuzi/index.vue | 449 ++++++++++++++++- .../shequzhili/tuceng/yingji/wuzi/record.vue | 428 +++++++++++++++++ .../tuceng/yingji/zizuzhi/addForm.vue | 413 ++++++++++++++++ .../tuceng/yingji/zizuzhi/index.vue | 445 ++++++++++++++++- .../tuceng/yingji/zizuzhi/record.vue | 428 +++++++++++++++++ 22 files changed, 6926 insertions(+), 48 deletions(-) create mode 100644 src/views/modules/shequzhili/tuceng/chengshiguanli/addForm.vue create mode 100644 src/views/modules/shequzhili/tuceng/gonggong/addForm.vue create mode 100644 src/views/modules/shequzhili/tuceng/gonggong/record.vue create mode 100644 src/views/modules/shequzhili/tuceng/gonggongfuwu/addForm.vue create mode 100644 src/views/modules/shequzhili/tuceng/gonggongfuwu/index.vue create mode 100644 src/views/modules/shequzhili/tuceng/yingji/changsuo/addForm.vue create mode 100644 src/views/modules/shequzhili/tuceng/yingji/changsuo/record.vue create mode 100644 src/views/modules/shequzhili/tuceng/yingji/wuzi/addForm.vue create mode 100644 src/views/modules/shequzhili/tuceng/yingji/wuzi/record.vue create mode 100644 src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue create mode 100644 src/views/modules/shequzhili/tuceng/yingji/zizuzhi/record.vue diff --git a/src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/index.vue b/src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/index.vue index bdeaa2a2f..d0252b1ab 100644 --- a/src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/index.vue +++ b/src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/index.vue @@ -80,9 +80,9 @@ - + - + @@ -158,6 +158,7 @@ export default { placeTypeList: [], //场所类型 tableData: [], resultArray: [{ value: '0', label: '合格' }, { value: '1', label: '不合格' }], + placeCategoryArray: [{ value: '0', label: '九小场所' }, { value: '1', label: '企事业单位' }], pageNo: 1, pageSize: window.localStorage.getItem('pageSize') || 20, @@ -209,12 +210,13 @@ export default { this.$message.error(msg); } }, + //场所类型 async loadplaceType() { - const url = '/gov/org/coverage/dict-select-list/enterprise_patrol'; + const url = '/sys/dict/data/dictlist'; + let params = { - // agencyId: this.agencyId, - // purpose: 'query' + dictType: 'ic_enterprise_place_type' }; const { data, code, msg } = await requestPost(url, params); if (code === 0) { @@ -223,6 +225,7 @@ export default { this.$message.error(msg); } }, + async handleExport() { // 导出 const url = '/actual/base/enterprise/export'; diff --git a/src/views/modules/shequzhili/tuceng/anquan/shebei/addForm.vue b/src/views/modules/shequzhili/tuceng/anquan/shebei/addForm.vue index e83eed2f2..caca0c05d 100644 --- a/src/views/modules/shequzhili/tuceng/anquan/shebei/addForm.vue +++ b/src/views/modules/shequzhili/tuceng/anquan/shebei/addForm.vue @@ -130,7 +130,7 @@ export default { gridList: [], //所属网格list--场所区域 placeTypeList: [], //场所类型 resultArray: [{ value: '0', label: '合格' }, { value: '1', label: '不合格' }], - equipmentCategoryCodeArray: [{ value: '0', label: '九小场所' }, { value: '1', label: '企事业单位' }], + equipmentCategoryCodeArray: [], list: {}, formData: { equipmentName: '', @@ -170,10 +170,12 @@ export default { this.user = this.$store.state.user; this.agencyId = this.user.agencyId; this.startLoading(); + this.loadCategory(); // this.loadGrid(); // this.loadplaceType(); if (this.pageType != 'add') { this.getDetail(); + } else { this.initMap(); } @@ -182,6 +184,20 @@ export default { }, methods: { + async loadCategory() { + const url = '/sys/dict/data/dictlist'; + + let params = { + dictType: 'safety_equipment_category' + }; + + const { data, code, msg } = await requestPost(url, params); + if (code === 0) { + this.equipmentCategoryCodeArray = data; + } else { + this.$message.error(msg); + } + }, async loadGrid() { const url = '/gov/org/customergrid/gridoption'; let params = { diff --git a/src/views/modules/shequzhili/tuceng/anquan/shebei/index.vue b/src/views/modules/shequzhili/tuceng/anquan/shebei/index.vue index 1acff51b7..005fcdb95 100644 --- a/src/views/modules/shequzhili/tuceng/anquan/shebei/index.vue +++ b/src/views/modules/shequzhili/tuceng/anquan/shebei/index.vue @@ -135,7 +135,7 @@ export default { placeTypeList: [], //场所类型 tableData: [], resultArray: [{ value: '0', label: '合格' }, { value: '1', label: '不合格' }], - equipmentCategoryCodeArray: [{ value: '0', label: '九小场所' }, { value: '1', label: '企事业单位' }], + equipmentCategoryCodeArray: [], pageNo: 1, pageSize: window.localStorage.getItem('pageSize') || 20, total: 1, @@ -159,6 +159,7 @@ export default { this.agencyId = this.user.agencyId; this.loadGrid(); this.loadplaceType(); + this.loadCategory(); this.getTableData(); }, methods: { @@ -200,7 +201,21 @@ export default { this.$message.error(msg); } }, + //设备类型 + async loadCategory() { + const url = '/sys/dict/data/dictlist'; + let params = { + dictType: 'safety_equipment_category' + }; + + const { data, code, msg } = await requestPost(url, params); + if (code === 0) { + this.equipmentCategoryCodeArray = data; + } else { + this.$message.error(msg); + } + }, async handleImport() { // 导入 }, @@ -238,8 +253,8 @@ export default { }); }, handleAdd(row, type) { - if (row.equipmentId) { - this.detailId = row.equipmentId; + if (row.id) { + this.detailId = row.id; } this.pageType = type; if (type == 'view') { @@ -271,7 +286,7 @@ export default { type: 'warning' }) .then(() => { - this.del(rowData.equipmentId); + this.del(rowData.id); }) .catch(err => {}); }, diff --git a/src/views/modules/shequzhili/tuceng/anquan/yinhuan/addForm.vue b/src/views/modules/shequzhili/tuceng/anquan/yinhuan/addForm.vue index a95f9d24d..47316b863 100644 --- a/src/views/modules/shequzhili/tuceng/anquan/yinhuan/addForm.vue +++ b/src/views/modules/shequzhili/tuceng/anquan/yinhuan/addForm.vue @@ -6,13 +6,13 @@ - + @@ -28,9 +28,8 @@ clearable placeholder="请输入" > - - -
+ +
-
+
{{ formData.reportTime }} {{ formData.dangerPlaceName }} - {{ formData.gridName }} + {{ formData.gridName }} {{ formData.dangerContent }} - {{ formData.handleStateName }} + {{ formData.handleStateName }} {{ formData.reportPerson }} {{ formData.mobile }} @@ -182,7 +181,7 @@ export default { agencyId: '', gridList: [], //所属网格list--场所区域 placeTypeList: [], //场所类型 - resultArray: [{ value: '0', label: '合格' }, { value: '1', label: '不合格' }], + handleStateArray: [{ value: '0', label: '待处理' }, { value: '1', label: '处理完成' }], equipmentCategoryCodeArray: [{ value: '0', label: '九小场所' }, { value: '1', label: '企事业单位' }], list: {}, formData: { diff --git a/src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue b/src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue index beb5d091e..3560c4fc7 100644 --- a/src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue +++ b/src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue @@ -19,18 +19,17 @@ - + - + @@ -70,19 +69,14 @@ - - - - - - - - - + + + + + + + + - +