Forráskód Böngészése

MFMEA编制-团队成员权限增加项目状态校验代码提交

张少一 5 napja
szülő
commit
209ca78153
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/views/project/index.vue

+ 3 - 3
src/views/project/index.vue

@@ -33,7 +33,7 @@
                         <!-- 项目状态 -->
                         <a-col :xl='6' :lg='8' :md='12' :sm='24' :xs='24'>
                           <a-form-item :label="$t('plan.basic-information.project-state')" class='projectNoBox'>
-                            <a-input v-model="BaseInfo.projectState" :disabled='true' :label="$t('plan.basic-information.project-state')" />
+                            <a-input v-model="BaseInfo.projectStateName" :disabled='true' :label="$t('plan.basic-information.project-state')" />
                           </a-form-item>
                         </a-col>
                         <!-- 年 -->
@@ -308,7 +308,7 @@ export default {
             modelOrPlatform: response.data.modelOrPlatform,
             secrecyLevel: response.data.secrecyLevel,
             projectName: response.data.projectName,
-            projectState: response.data.projectState,
+            projectStateName: response.data.projectStateName,
             year: response.data.year,
             companyCode: response.data.companyCode,
             customerCode: response.data.customerCode,
@@ -335,7 +335,7 @@ export default {
           let userInfo = response.data.currentUser;
           localStorage.setItem("userInfo", JSON.stringify(userInfo));
 
-          this.isOwner = userInfo.userId == response.data.ownerId && response.data.lifeState === '10';
+          this.isOwner = userInfo.userId == response.data.ownerId && response.data.lifeState === '10' && response.data.projectState !== '6';
           //储存 是否能添加评审意见 flag
           this.$store.dispatch("fmeaTree/set", {
             key: "commentsFlag",