Browse Source

电签代码小修改

zhangh 3 years ago
parent
commit
abfaf5334d
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/views/certificate/list.vue

+ 13 - 1
src/views/certificate/list.vue

@@ -150,7 +150,19 @@ export default {
       this.goRegister(id)
     },
     deleteList (ids) {//删除按钮
-      this.remove({ ids })
+      let _that = this
+      this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        _that.remove({ ids })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
+        });
+      });
     },
     async remove (ids) {
       const { data: res } = await remove(ids)