CaoGQ123 1 nedēļu atpakaļ
vecāks
revīzija
98d1e9f675
1 mainītis faili ar 9 papildinājumiem un 4 dzēšanām
  1. 9 4
      src/views/news/GoodListApply.vue

+ 9 - 4
src/views/news/GoodListApply.vue

@@ -220,13 +220,18 @@ export default {
       this.$confirm('将此商品通过审核吗?', '提示', {
         confirmButtonText: '通过',
         cancelButtonText: '拒绝',
+        distinguishCancelAndClose: true,  // 关键配置项
         type: 'warning'
       }).then(() => {
         this.upRow(id, 2)
-      }).catch(() => {
-        //输入驳回理由
-        console.log("驳回")
-        this.examineWindow = true;
+      }).catch((the_reback) => {
+
+         if(the_reback=="cancel"){
+                  //输入驳回理由
+                  // console.log("驳回" )
+                  this.examineWindow = true;
+         }    
+		 
       })
     },
     //1.列表和分页相关 start ------------------------------------------------------------>