Browse Source

刘洁5权限开启、模板下发只能一次处理

hujunwei 2 years ago
parent
commit
2c48005006

+ 13 - 4
src/pages/main/performance/components/dialog.vue

@@ -16,7 +16,11 @@
     <div slot="footer">
       <slot name="footer">
         <el-button @click="handleCancel" size="small">取消</el-button>
-        <el-button @click="handleConfirm" type="primary" size="small"
+        <el-button
+          @click="handleConfirm"
+          type="primary"
+          size="small"
+          :disabled="this.btnDisabled"
           >确定</el-button
         >
       </slot>
@@ -53,14 +57,19 @@ export default {
     },
     destroy: {
       type: Boolean,
-      default: false
-    }
+      default: false,
+    },
   },
-  mounted() {
+  data() {
+    return {
+      btnDisabled: false,
+    };
   },
+  mounted() {},
   methods: {
     //   确定的回调
     handleConfirm() {
+      this.btnDisabled = true;
       this.$emit("confirm", false);
     },
     //   取消的回调

+ 2 - 2
src/pages/main/performance/department.vue

@@ -43,7 +43,7 @@
                 type="primary"
                 v-if="
                   edit_form.status === '0' &&
-                  (duty === '7' || duty === '3' || duty === '4')
+                  (duty === '8' || duty === '7' || duty === '3' || duty === '4')
                 "
                 @click="handleTransfer"
                 >转派</el-button
@@ -55,7 +55,7 @@
                   (edit_form.status === '2' ||
                     edit_form.status === '6' ||
                     edit_form.status === '7') &&
-                  (duty === '7' || duty === '3' || duty === '4') &&
+                  (duty === '8' ||duty === '7' || duty === '3' || duty === '4') &&
                   reviewType === duty
                 "
                 @click="handleApprove"