修改禅道bug

This commit is contained in:
zyx.net
2022-08-05 15:35:44 +08:00
parent 63ef236d3c
commit 471afe5b9c
6 changed files with 12 additions and 7 deletions
@@ -73,7 +73,7 @@
</div>
<a-form-model-item class="itemModel" prop="fileConnectId">
<a-button type="primary" class="button-text"
v-model='formInline.fileConnectId'
v-model:value='formInline.fileConnectId'
@click="clickButtonToUpload('fileTemplateConnectId')">
{{ (formInline.fileConnectId === 'null' || formInline.fileConnectId === '' ||
formInline.fileConnectId == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
@@ -119,7 +119,7 @@ export default {
description:[
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
],
status: [
state: [
{ required: true, message: this.$t('PleaseSelect')+this.$t('status'), trigger: 'change' },
],
fileConnectId: [
@@ -146,6 +146,7 @@ export default {
/** 赋值给当前对应的表单文件 */
this.formInline.fileConnectId = attIdList.join(',')
this.formInline = { ...this.formInline }
this.$refs.ruleForm.clearValidate(['fileConnectId'])
},
clickButtonToUpload(item) {
this.$refs.uploadFile.visible = true
@@ -185,6 +186,7 @@ export default {
},
handleCancel() {
this.visible = false
this.$refs['ruleForm'].clearValidate()
},
handleSubmit() {
if(this.formInline.paramsTemplateName !== undefined) {