diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casebasic.vue b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casebasic.vue
index 6cba0bd..4f91032 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casebasic.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casebasic.vue
@@ -23,7 +23,7 @@
-
+
下载
@@ -34,7 +34,7 @@
查看
编辑
- 删除
+ 删除
@@ -107,7 +107,7 @@
附件 |
下载 |
- 案件总结 |
+ 案件总结 |
内容 |
@@ -322,6 +322,7 @@ export default {
this.dialogFormEdit = false
this.varList = []
this.listQuery.page = 1
+ this.$message.success('保存成功')
this.getList()
}).catch((e) => {
this.listLoading = false
@@ -341,11 +342,13 @@ export default {
id: id
}
).then((data) => {
- if (data.result == 'success') {
+ if (data.result === 'success') {
this.listLoading = false
+ this.$message.success('删除成功')
this.getList()
}
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
@@ -382,8 +385,10 @@ export default {
this.varList = []
this.listQuery.page = 1
this.$refs.multipleTable.clearSelection()
+ this.$message.success('删除成功')
this.getList()
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casesummary.vue b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casesummary.vue
index af64771..3160b58 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casesummary.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/case_library/components/casesummary.vue
@@ -11,20 +11,19 @@
-
-
+
- 下载
+ 下载
-
+
- 查看
- 编辑
- 删除
+ 查看
+ 编辑
+ 删除
@@ -32,7 +31,6 @@
添加
-
@@ -160,8 +158,13 @@ export default {
this.FFILE = fileList
},
upload(fun) {
+ const loading = this.$loading({
+ lock: true,
+ text: '正在上传',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
const formData = new FormData()
-
for (let i = 0; i < this.FFILE.length; i++) {
if (this.FFILE[i].raw) {
formData.append('FFILE', this.FFILE[i].raw)
@@ -172,7 +175,11 @@ export default {
formData
).then((data) => {
fun(data.fileurl)
+ this.$message.success('保存成功')
+ loading.close()
}).catch((e) => {
+ this.$message.error('保存失败')
+ loading.close()
})
},
//* *******************列表查询******************************
@@ -253,7 +260,7 @@ export default {
},
//* *****************************删除********************************
handleDelete(id, name) {
- this.$confirm('确定要删除[' + name + ']吗?', {
+ this.$confirm('确定要删除吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@@ -265,11 +272,13 @@ export default {
id: id
}
).then((data) => {
- if (data.result == 'success') {
+ if (data.result === 'success') {
this.listLoading = false
this.getList()
+ this.$message.success('删除成功')
}
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/dangerous_goods/index.vue b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/dangerous_goods/index.vue
index 0b550b1..d3e3851 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/dangerous_goods/index.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/dangerous_goods/index.vue
@@ -253,8 +253,10 @@ export default {
this.dialogFormEdit = false
this.varList = []
this.listQuery.page = 1
+ this.$message.success('保存成功')
this.getList()
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
},
@@ -272,11 +274,13 @@ export default {
id: id
}
).then((data) => {
- if (data.result == 'success') {
+ if (data.result === 'success') {
this.listLoading = false
+ this.$message.success('删除成功')
this.getList()
}
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
@@ -284,8 +288,6 @@ export default {
},
makeAll() {
const _selectData = this.$refs.multipleTable.selection
- console.info('_selectData')
- console.info(_selectData)
if (_selectData == null || _selectData.length == 0) {
this.$message({
message: '请选中要删除的项...',
@@ -313,8 +315,10 @@ export default {
this.varList = []
this.listQuery.page = 1
this.$refs.multipleTable.clearSelection()
+ this.$message.success('删除成功')
this.getList()
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/hazardous_chemicals/index.vue b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/hazardous_chemicals/index.vue
index 66bcf99..88f7346 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/hazardous_chemicals/index.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/hazardous_chemicals/index.vue
@@ -256,7 +256,9 @@ export default {
this.varList = []
this.listQuery.page = 1
this.getList()
+ this.$message.success('保存成功')
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
},
@@ -274,11 +276,13 @@ export default {
id: id
}
).then((data) => {
- if (data.result == 'success') {
+ if (data.result === 'success') {
this.listLoading = false
+ this.$message.success('删除成功')
this.getList()
}
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/production_process/index.vue b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/production_process/index.vue
index 2c19584..488baae 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/production_process/index.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/production_process/index.vue
@@ -228,7 +228,9 @@ export default {
this.varList = []
this.listQuery.page = 1
this.getList()
+ this.$message.success('保存成功')
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
},
@@ -246,11 +248,13 @@ export default {
id: id
}
).then((data) => {
- if (data.result == 'success') {
+ if (data.result === 'success') {
this.listLoading = false
this.getList()
+ this.$message.success('删除成功')
}
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
@@ -287,8 +291,10 @@ export default {
this.varList = []
this.listQuery.page = 1
this.$refs.multipleTable.clearSelection()
+ this.$message.success('删除成功')
this.getList()
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/regulatory_library/index.vue b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/regulatory_library/index.vue
index 60ee319..3d75ef4 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/regulatory_library/index.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_knowledge/regulatory_library/index.vue
@@ -34,7 +34,7 @@
编辑
- 删除
+ 删除
@@ -195,9 +195,10 @@ export default {
this.listLoading = false
this.dialogFormAdd = false
this.getList(this.DICTIONARIES_ID, 1)
-
+ this.$message.success('保存成功')
this.msg = 'add'
}).catch((e) => {
+ this.$message.error(e)
this.resMsg = e.resMsg
this.listLoading = false
})
@@ -214,7 +215,9 @@ export default {
this.dialogFormAdd = false
this.getList(this.DICTIONARIES_ID, 1)
this.msg = 'add'
+ this.$message.success('保存成功')
}).catch((e) => {
+ this.$message.error(e)
this.resMsg = e.resMsg
this.listLoading = false
})
@@ -229,8 +232,6 @@ export default {
this.FFILE = fileList
},
confirm() {
- debugger
- // this.form.TYPE_DIC_ID = this.DICTIONARIES_ID
if (this.form.TYPE_DIC_ID === '' || this.form.TYPE_DIC_ID === null) {
this.$message({
message: '请选择法规类型...',
@@ -243,7 +244,6 @@ export default {
if (this.FFILE.length > 0) {
this.upload((v) => {
this.$refs.upload.clearFiles()
-
this.uploadfileurl = v
if (this.form.ID) {
this.RegulationsEdit()
@@ -264,8 +264,13 @@ export default {
})
},
upload(fun) {
+ const loading = this.$loading({
+ lock: true,
+ text: '正在上传文件,请稍候...',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
const formData = new FormData()
-
for (let i = 0; i < this.FFILE.length; i++) {
if (this.FFILE[i].raw) {
formData.append('FFILE', this.FFILE[i].raw)
@@ -276,7 +281,10 @@ export default {
formData
).then((data) => {
fun(data.fileurl)
+ loading.close()
}).catch((e) => {
+ this.$message.error(e)
+ loading.close()
})
},
//* ************************下载********************************
@@ -395,11 +403,13 @@ export default {
id: id
}
).then((data) => {
- if (data.result == 'success') {
+ if (data.result === 'success') {
this.listLoading = false
this.getList(this.DICTIONARIES_ID, 1)
+ this.$message.success('删除成功')
}
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {
diff --git a/src/views/emergen_cyrescue/emergency_map_icon/components/add.vue b/src/views/emergen_cyrescue/emergency_map_icon/components/add.vue
index c0a5fe7..2fbe7de 100644
--- a/src/views/emergen_cyrescue/emergency_map_icon/components/add.vue
+++ b/src/views/emergen_cyrescue/emergency_map_icon/components/add.vue
@@ -1,7 +1,7 @@
-
+
@@ -13,7 +13,7 @@
:value="item.DICTIONARIES_ID"/>
-
+
{
this.confirm(data.fileurl)
+ loading.close()
}).catch((e) => {
- console.log(e)
+ loading.close()
})
} else {
this.confirm(this.form.FILE_PATH)
@@ -99,7 +117,9 @@ export default {
this.loading = false
this.handleClose()
this.$emit('refresh')
+ this.$message.success('保存成功')
}).catch((e) => {
+ this.$message.error(e)
this.loading = false
})
},
@@ -120,7 +140,7 @@ export default {
NAME: '',
TYPE: '',
TYPE_NAME: '',
- FILE_PATH: [],
+ FILE_PATH: '',
file: []
}
this.visible = false
diff --git a/src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/list.vue b/src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/list.vue
index f481f3b..8bb18d4 100644
--- a/src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/list.vue
+++ b/src/views/emergen_cyrescue/emergency_report/duty_management/shift_registration/components/list.vue
@@ -567,12 +567,13 @@ export default {
'/workingSchedule/upload',
formData
).then((data) => {
- if (data.code === '200') {
+ if (data.code === 200) {
this.$message.success('导入成功')
} else {
this.$message.error(data.msg)
}
loading.close()
+ this.getList()
fun()
}).catch((e) => {
console.log(e)
diff --git a/src/views/emergen_cyrescue/emergency_team/rescue_team/components/addPeople.vue b/src/views/emergen_cyrescue/emergency_team/rescue_team/components/addPeople.vue
index 6e701b8..b697239 100644
--- a/src/views/emergen_cyrescue/emergency_team/rescue_team/components/addPeople.vue
+++ b/src/views/emergen_cyrescue/emergency_team/rescue_team/components/addPeople.vue
@@ -127,6 +127,19 @@ export default {
this.$message.success('保存成功')
this.visible = false
this.$emit('flush', 'flush')
+ this.form = {
+ YJ_EMERGENCY_TEAM_USER_ID: '',
+ YJ_EMERGENCY_TEAM_INFO_ID: '',
+ NAME: '',
+ SEX: '',
+ AGE: '',
+ PHONE: '',
+ TELEPHONE: '',
+ REMARK: '',
+ TEAM_POSITION: '',
+ COMPANY_NAME: '',
+ COMPANY_POSITION: ''
+ }
})
.catch((e) => {
console.error(e)
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 e294322..42c5419 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
@@ -5,7 +5,7 @@
-
+
@@ -775,7 +775,9 @@ export default {
this.varList = []
this.listQuery.page = 1
this.getList()
+ this.$message.success('保存成功')
}).catch((e) => {
+ this.$message.error('保存失败')
this.listLoading = false
})
},
@@ -799,6 +801,7 @@ export default {
this.getList()
}
}).catch((e) => {
+ this.$message.error(e)
this.listLoading = false
})
}).catch(() => {