|
|
@@ -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;
|
|
|
// 触发表单验证
|