Selaa lähdekoodia

修改需求再次发布问题

LiFei 6 vuotta sitten
vanhempi
commit
943ccd1afc
1 muutettua tiedostoa jossa 17 lisäystä ja 0 poistoa
  1. 17 0
      src/views/requiremanager/modules/HwRequirementModal.vue

+ 17 - 0
src/views/requiremanager/modules/HwRequirementModal.vue

@@ -306,8 +306,10 @@
         this.edit({})
       },
       edit(record) {
+
         this.form.resetFields()
         this.model = Object.assign({}, record)
+        console.log( 111,this.model)
         this.visible = true
         this.$nextTick(() => {
           this.form.setFieldsValue(pick(this.model, 'platformCompanyId','companyId', 'code', 'name',  'description', 'qualification', 'acceptanceCriteria', 'number', 'stage', 'price', 'provinceCode', 'cityCode', 'countryCode', 'provinceCityCountry', 'address', 'serviceContract', 'authenticationStatus', 'expiryDate', 'createTime', 'serviceFeeRate', 'isOn','typeEdit','companyAuthenticationStatus','serviceTimeRange','serviceStartDate','serviceEndDate'))
@@ -329,6 +331,21 @@
 
         //回显文件
         this.editFileList(this.model.serviceContract)
+
+
+        //没有选择企业权限时componyid(部门id)掷为null
+        //获取页面权限
+        let authList = JSON.parse(sessionStorage.getItem(USER_AUTH) || "[]");
+        var bo=false;
+        for (var auth of authList) {
+          if(auth.action == 'require:saas') {
+                bo=true
+          }
+        }
+        if(!bo){
+          this.model.companyId=null
+          this.form.setFieldsValue({ companyId:null})
+        }
       },
       close() {
         this.$emit('close')