Parcourir la source

页面富文本字段去掉

LiFei il y a 6 ans
Parent
commit
e9e6f016ff
1 fichiers modifiés avec 8 ajouts et 6 suppressions
  1. 8 6
      src/views/hwversion/modules/HwVersionModal.vue

+ 8 - 6
src/views/hwversion/modules/HwVersionModal.vue

@@ -29,7 +29,7 @@
           <j-dict-select-tag  v-decorator="['appSystem', validatorRules.appSystem]"  :type="'radio'" @change="selectAppSystem" :triggerChange="true" dictCode="app_system"/>
         </a-form-item>
 
-
+        <template v-if="model.appSystem==0">
         <a-form-item label="下载地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
           <a-upload
             name="file"
@@ -47,7 +47,7 @@
             <span style="margin-left: 10px">请上传文件</span>
           </a-upload>
         </a-form-item>
-
+        </template>
           
         <a-form-item label="是否强制更新" :labelCol="labelCol" :wrapperCol="wrapperCol">
           <j-dict-select-tag  v-decorator="['isForceUpdate', validatorRules.isForceUpdate]"  :type="'radio'" @change="selectIsForceUpdate" :triggerChange="true" dictCode="is_force_update"/>
@@ -194,11 +194,13 @@
         this.visible = false;
       },
       handleOk () {
+   if(this.model.appSystem==0){
+     if(!this.model.downUrl || this.fileList.length==0){
+       this.$message.warning('请上传下载文件')
+       return
+     }
 
-        if(!this.model.downUrl || this.fileList.length==0){
-          this.$message.warning('请上传下载文件')
-          return
-        }
+   }
 
         const that = this;
         // 触发表单验证