【bug】

补全页面增删改提示
pet
shanao 2024-12-11 11:36:29 +08:00
parent f8dc14aab4
commit 7599d76cb2
11 changed files with 221 additions and 1 deletions

View File

@ -123,10 +123,18 @@ export default {
} }
).then((data) => { ).then((data) => {
if (data.result === 'success') { if (data.result === 'success') {
this.$message({
message: '移除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '移除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {

View File

@ -5,6 +5,9 @@
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getQuery"> <el-button class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
搜索 搜索
</el-button> </el-button>
<el-button class="filter-item" type="default" icon="el-icon-search" @click="resetQuery">
重置
</el-button>
<div class="ui-foot"> <div class="ui-foot">
<el-button type="primary" @click="goBack"></el-button> <el-button type="primary" @click="goBack"></el-button>
@ -98,6 +101,10 @@ export default {
this.listISLOADing = false this.listISLOADing = false
}) })
}, },
resetQuery() {
this.KEYWORDS = ''
this.getList()
},
//* ************************************************************* //* *************************************************************
handleAdd(id, name) { handleAdd(id, name) {
@ -115,10 +122,18 @@ export default {
} }
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result == 'success') {
this.$message({
message: '添加成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '添加失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {

View File

@ -231,12 +231,20 @@ export default {
dataSave() { dataSave() {
this.listLoading = true this.listLoading = true
requestFN('/major/checkpoint/save', this.form).then((data) => { requestFN('/major/checkpoint/save', this.form).then((data) => {
this.$message({
message: '操作成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '操作失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}, },
@ -248,11 +256,19 @@ export default {
}).then(() => { }).then(() => {
this.listLoading = true this.listLoading = true
requestFN('/major/checkpoint/delete', { id: id }).then((data) => { requestFN('/major/checkpoint/delete', { id: id }).then((data) => {
if (data.result == 'success') { if (data.result === 'success') {
this.$message({
message: '删除成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}).catch(() => { }).catch(() => {

View File

@ -262,12 +262,20 @@ export default {
dataSave() { dataSave() {
this.listLoading = true this.listLoading = true
requestFN('/major/drainage/save', this.form).then((data) => { requestFN('/major/drainage/save', this.form).then((data) => {
this.$message({
message: '操作成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '操作失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}, },
@ -280,10 +288,18 @@ export default {
this.listLoading = true this.listLoading = true
requestFN('/major/drainage/delete', { id: id }).then((data) => { requestFN('/major/drainage/delete', { id: id }).then((data) => {
if (data.result == 'success') { if (data.result == 'success') {
this.$message({
message: '删除成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}).catch(() => {}) }).catch(() => {})
@ -302,12 +318,20 @@ export default {
}).then(() => { }).then(() => {
this.listLoading = true this.listLoading = true
requestFN('/major/drainage/deleteAll', { ids: ids }).then(() => { requestFN('/major/drainage/deleteAll', { ids: ids }).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}).catch(() => {}) }).catch(() => {})

View File

@ -554,12 +554,20 @@ export default {
requestFN( requestFN(
'/shelterRefuge/save', this.form '/shelterRefuge/save', this.form
).then((data) => { ).then((data) => {
this.$message({
message: '操作成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '操作失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}, },
@ -578,10 +586,18 @@ export default {
} }
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result == 'success') {
this.$message({
message: '删除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {
@ -614,12 +630,20 @@ export default {
ids: ids ids: ids
} }
).then(() => { ).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {

View File

@ -292,8 +292,16 @@ export default {
'/file/upload', '/file/upload',
formData formData
).then((data) => { ).then((data) => {
this.$message({
message: '上传成功',
type: 'success'
})
fun(data.fileurl) fun(data.fileurl)
}).catch((e) => { }).catch((e) => {
this.$message({
message: '上传失败',
type: 'error'
})
}) })
}, },
//* **************************************** //* ****************************************
@ -543,12 +551,20 @@ export default {
requestFN( requestFN(
'/rescueEquip/save', this.form '/rescueEquip/save', this.form
).then((data) => { ).then((data) => {
this.$message({
message: '操作成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '操作失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}, },
@ -567,10 +583,18 @@ export default {
} }
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result == 'success') {
this.$message({
message: '删除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {
@ -603,12 +627,20 @@ export default {
ids: ids ids: ids
} }
).then(() => { ).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {

View File

@ -285,8 +285,16 @@ export default {
'/file/upload', '/file/upload',
formData formData
).then((data) => { ).then((data) => {
this.$message({
message: '上传成功',
type: 'success'
})
fun(data.fileurl) fun(data.fileurl)
}).catch((e) => { }).catch((e) => {
this.$message({
message: '上传失败',
type: 'error'
})
}) })
}, },
//* **************************************** //* ****************************************
@ -527,12 +535,20 @@ export default {
requestFN( requestFN(
'/equipmentfacilities/save', this.form '/equipmentfacilities/save', this.form
).then((data) => { ).then((data) => {
this.$message({
message: '操作成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '操作失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}, },
@ -551,10 +567,18 @@ export default {
} }
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result == 'success') {
this.$message({
message: '删除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {
@ -587,12 +611,20 @@ export default {
ids: ids ids: ids
} }
).then(() => { ).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {

View File

@ -284,12 +284,20 @@ export default {
dataSave() { dataSave() {
this.listLoading = true this.listLoading = true
requestFN('/major/resource/save', this.form).then((data) => { requestFN('/major/resource/save', this.form).then((data) => {
this.$message({
message: '操作成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '操作失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}, },
@ -302,10 +310,18 @@ export default {
this.listLoading = true this.listLoading = true
requestFN('/major/resource/delete', { id: id }).then((data) => { requestFN('/major/resource/delete', { id: id }).then((data) => {
if (data.result == 'success') { if (data.result == 'success') {
this.$message({
message: '删除成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}).catch(() => {}) }).catch(() => {})
@ -324,12 +340,20 @@ export default {
}).then(() => { }).then(() => {
this.listLoading = true this.listLoading = true
requestFN('/major/resource/deleteAll', { ids: ids }).then(() => { requestFN('/major/resource/deleteAll', { ids: ids }).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}).catch(() => {}) }).catch(() => {})

View File

@ -290,8 +290,16 @@ export default {
'/file/upload', '/file/upload',
formData formData
).then((data) => { ).then((data) => {
this.$message({
message: '上传成功',
type: 'success'
})
fun(data.fileurl) fun(data.fileurl)
}).catch((e) => { }).catch((e) => {
this.$message({
message: '上传失败',
type: 'error'
})
}) })
}, },
//* **************************************** //* ****************************************
@ -540,12 +548,20 @@ export default {
requestFN( requestFN(
'/rescueSupplies/save', this.form '/rescueSupplies/save', this.form
).then((data) => { ).then((data) => {
this.$message({
message: '操作成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '操作失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}, },
@ -564,10 +580,18 @@ export default {
} }
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result == 'success') {
this.$message({
message: '删除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.getList() this.getList()
} }
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {
@ -600,12 +624,20 @@ export default {
ids: ids ids: ids
} }
).then(() => { ).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listISLOADing = false this.listISLOADing = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listISLOADing = false this.listISLOADing = false
}) })
}).catch(() => { }).catch(() => {

View File

@ -211,6 +211,7 @@ export default {
this.keySelect.FIRE_DEVICE_TYPE_ID = '' this.keySelect.FIRE_DEVICE_TYPE_ID = ''
this.keySelect.FIRE_REGION_ID = '' this.keySelect.FIRE_REGION_ID = ''
this.keySelect.FIRE_DEVICE_CODE = '' this.keySelect.FIRE_DEVICE_CODE = ''
this.keySelect.FIRE_POINT_NAME = ''
this.getList() this.getList()
}, },
getDict() { getDict() {

View File

@ -253,10 +253,18 @@ export default {
'/emergencyequipment/' + this.dialogType, '/emergencyequipment/' + this.dialogType,
this.form this.form
).then((data) => { ).then((data) => {
this.$message({
message: '操作成功',
type: 'success'
})
this.listLoading = false this.listLoading = false
this.dialogFormEdit = false this.dialogFormEdit = false
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '操作失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
} else { } else {
@ -287,6 +295,10 @@ export default {
this.listQuery.page = 1 this.listQuery.page = 1
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message({
message: '删除失败',
type: 'error'
})
this.listLoading = false this.listLoading = false
}) })
}).catch(() => { }).catch(() => {