修改禅道bug

This commit is contained in:
zyx.net
2022-08-08 16:04:34 +08:00
parent df6bb893f4
commit 02fe0b4daf
2 changed files with 13 additions and 11 deletions
@@ -40,7 +40,7 @@
:dataSource='areaTable'
:pagination='false'
:loading='loading'
:scroll='{x: 600}'
:scroll="{x: '100%',y:'calc(100vh - 130px)'}"
:rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}'
@change='handleTableChange'>
@@ -78,7 +78,7 @@
</div>
</a-col>
</a-row>
<a-row :gutter="24" v-if='!required'>
<a-row :gutter="24" v-if='combineFlag'>
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
@@ -122,18 +122,20 @@ export default {
data() {
return {
formInline: {
},
confirmLoading: false,
description:false,
dictOptions:[],
visible: false,
combineFlag:false,
required:false,
disabled:false,
rules: {
separator:[
{ required: true, message: this.$t('PleaseEnter')+this.$t('MergeSeparator'), trigger: 'change' },
{
pattern: /[`~!@$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~@%&*\-+={}|']/,
pattern: /[`~!@$%^&*()_\-+=<>?:"{}|.\/;'\\[\]·~@%&*\-+={}|']/,
message: this.$t('punctuationmark'),
trigger: 'blur'
}
@@ -166,11 +168,11 @@ export default {
},
mounted() {
this.getNameList()
if(this.formInline.combineFlag == '1'){
this.required = false
}else{
this.required = true
}
// if(this.formInline.combineFlag == '1'){
// this.required = false
// }else{
// this.required = true
// }
},
methods: {
uploadSuccess(data) {
@@ -196,11 +198,10 @@ export default {
})
},
flagChange(value){
console.log(value.target.value)
if(value.target.value == 2){
this.required = false
this.combineFlag = true
}else{
this.required = true
this.combineFlag = false
}
},
getNameList() {
@@ -217,6 +218,7 @@ export default {
this.title = this.$t('ConventionalExport')
this.formInline = {}
this.formInline.separator = ','
this.formInline.combineFlag = '1',
this.formInline = {...this.formInline}
this.getConfigure()
this.$nextTick(() => {