浏览代码

文件收集与审批-liujie5账号增加审批权限

hujunwei 2 年之前
父节点
当前提交
24e68ab478
共有 2 个文件被更改,包括 12 次插入14 次删除
  1. 11 13
      src/pages/main/performance/components/dialog.vue
  2. 1 1
      src/pages/main/performance/components/sheet.vue

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

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

+ 1 - 1
src/pages/main/performance/components/sheet.vue

@@ -891,7 +891,7 @@ export default {
       } else {
         // 职位
         let duty = JSON.parse(sessionStorage.userInfo).duty;
-        if (duty === "7" && type === "0") {
+        if ((duty === "7" && type === "0")||(duty === "8" && type === "0")) {
           this.manager_approve = true;
         } else {
           if (type === "2") {