修改禅道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
@@ -42,7 +42,7 @@
<a-input class="box-input add-input"
type="textarea"
:placeholder="$t('PleaseEnter')+$t('fileDeclaration')"
v-model="formInline.fileDescription"/>
v-model.trim="formInline.fileDescription"/>
</a-form-model-item>
</div>
</a-col>
@@ -146,6 +146,7 @@ export default {
this.visible = true
return
}else{
this.$refs['ruleForm'].clearValidate()
this.visible = false
}
},
@@ -209,6 +210,7 @@ export default {
/** 赋值给当前对应的表单文件 */
this.formInline[this.uploadName] = attIdList.join(',')
this.formInline = { ...this.formInline }
this.$refs.ruleForm.clearValidate(['fileKey'])
},
clickButtonToUpload(item) {
this.$refs.uploadFile.perentHandleFunc()
+2 -1
View File
@@ -132,7 +132,7 @@
size="middle"
:loading="loading"
:pagination="false"
:scroll="{x: true}"
:scroll="{x: '100%',y:'calc(100vh - 130px)'}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -630,6 +630,7 @@ export default {
},
handleCancelMenuRight() {
this.menuRightVisible = false
this.$refs['ruleForm'].clearValidate()
},
//增加文件夹确定
hideModalMenuRight() {
@@ -36,7 +36,7 @@
size="middle"
:loading="loading"
:pagination="false"
:scroll="{x: true}"
:scroll="{x: '100%',y:'calc(100vh - 130px)'}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -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) {
@@ -37,7 +37,7 @@
size="middle"
:loading="loading"
:pagination="false"
:scroll="{x: true}"
:scroll="{x: '100%',y:'calc(100vh - 130px)'}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -77,7 +77,7 @@
size="middle"
:loading="loading"
:pagination="false"
:scroll="{x: true}"
:scroll="{x: '100%',y:'calc(100vh - 130px)'}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"