zhangh %!s(int64=2) %!d(string=hai) anos
pai
achega
8ed9f46121
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      src/views/manager/projectinfo/tree.vue

+ 5 - 5
src/views/manager/projectinfo/tree.vue

@@ -266,14 +266,14 @@
                 <el-button
                   size="mini"
                   type="primary"
-                  v-throttle='2000'
+                  v-throttle='3000'
                   v-show="scope.row.status==0"
                   @click="hideMD(scope.row)"
                 >隐藏</el-button>
                 <el-button
                   size="mini"
                   type="primary"
-                  v-throttle='2000'
+                  v-throttle='3000'
                   v-show="scope.row.status==1"
                   @click="hideMD(scope.row)"
                 >激活</el-button>
@@ -1699,7 +1699,7 @@ export default {
       })
     },
     async hideMD (row) {//隐藏按钮
-      const code = await this.updateStatus(row.pkeyId)
+      const code = await this.updateStatus(row.pkeyId, row.status)
       if (code == 200) {
         if (row.status == 0) {
           row.status = 1
@@ -1708,12 +1708,12 @@ export default {
         }
       }
     },
-    async updateStatus (pKeyId) {//隐藏功能
+    async updateStatus (pKeyId, status) {//隐藏功能激活
       const { data: res } = await updateStatus({ pKeyId })
       if (res.code == 200) {
         this.$message({
           type: 'success',
-          message: '隐藏成功'
+          message: status == 0 ? '隐藏成功' : '激活成功'
         })
       }
       return res.code