Browse Source

修改页面弹窗

LiFei 6 years ago
parent
commit
5821410151
2 changed files with 28 additions and 12 deletions
  1. 9 2
      src/views/company/CompanyAuthenticationList.vue
  2. 19 10
      src/views/position/PositionList.vue

+ 9 - 2
src/views/company/CompanyAuthenticationList.vue

@@ -164,8 +164,11 @@
       //审核确认
       confirm1(record){
         let that = this;
-       that.$confirm({
+        const modal =that.$confirm({
        title: "审核",
+       closable:true,
+        keyboard: false,
+        maskClosable: true,
        content:record.enterpriseName,
         okText:"通过",
         cancelText:"不通过",
@@ -179,7 +182,11 @@
            }
          })
        },
-        onCancel() {
+        onCancel(e) {
+         if(e.triggerCancel){
+           return;
+         }
+          modal.destroy()
           auditHpUser({ id: record.id,authenticationStatus:2 }).then((res) => {
             if (res.success) {
               that.$message.success(res.message)

+ 19 - 10
src/views/position/PositionList.vue

@@ -203,8 +203,11 @@
       //审核确认
       confirm1(record){
         let that = this;
-        that.$confirm({
+        const modal =that.$confirm({
           title: "审核",
+          closable:true,
+          keyboard: false,
+          maskClosable: true,
           content:record.enterpriseName,
           okText:"通过",
           cancelText:"不通过",
@@ -218,15 +221,21 @@
               }
             })
           },
-          onCancel() {
-            auditHpUser({ id: record.id,authenticationStatus:2 }).then((res) => {
-              if (res.success) {
-                that.$message.success(res.message)
-                that.loadData();
-              } else {
-                that.$message.warning(res.message)
-              }
-            })
+          onCancel(e) {
+            if(e.triggerCancel){
+                  return;
+            }else{
+              modal.destroy()
+              auditHpUser({ id: record.id,authenticationStatus:2 }).then((res) => {
+                if (res.success) {
+                  that.$message.success(res.message)
+                  that.loadData();
+                } else {
+                  that.$message.warning(res.message)
+                }
+              })
+            }
+
           },
         })
       },