|
@@ -433,14 +433,22 @@ export default {
|
|
},
|
|
},
|
|
// 刪除
|
|
// 刪除
|
|
async handleDelete(id) {
|
|
async handleDelete(id) {
|
|
- const res = await this.delete(id);
|
|
|
|
- if (this.$checkRes(res)) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '删除信息成功',
|
|
|
|
- type: 'success',
|
|
|
|
- });
|
|
|
|
- this.search();
|
|
|
|
- }
|
|
|
|
|
|
+ this.$confirm('您确定要删除此信息吗?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(async () => {
|
|
|
|
+ const res = await this.delete(id);
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '删除信息成功',
|
|
|
|
+ type: 'success',
|
|
|
|
+ });
|
|
|
|
+ this.search();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
},
|
|
},
|
|
// 图片
|
|
// 图片
|
|
uploadSuccess({ type, data }) {
|
|
uploadSuccess({ type, data }) {
|