LiuJ 1 周之前
父節點
當前提交
bebdfd7100
共有 1 個文件被更改,包括 9 次插入4 次删除
  1. 9 4
      src/views/news/noticeListApply.vue

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

@@ -209,17 +209,22 @@ export default {
       //设置待审核的id
       this.editId = id;
       console.log(id)
-      this.$confirm('将此商品通过审核吗?', '提示', {
+      this.$confirm('将此通知通过审核吗?', '提示', {
         confirmButtonText: '通过',
         cancelButtonText: '拒绝',
+        distinguishCancelAndClose: true,  // 关键配置项,用于区分取消和关闭按钮
         type: 'warning'
       }).then(() => {
 
         this.upRow(id, 2)
-      }).catch(() => {
+      }).catch((the_reback) => {
         //输入驳回理由
-        console.log("驳回")
-        this.examineWindow = true;
+        if (the_reback == "cancel") {
+          //输入驳回理由
+          // console.log("驳回" )
+          this.examineWindow = true;
+        }
+
       })
     },