修改禅道bug
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
:dataSource='areaTable'
|
:dataSource='areaTable'
|
||||||
:pagination='false'
|
:pagination='false'
|
||||||
:loading='loading'
|
:loading='loading'
|
||||||
:scroll='{x: 600}'
|
:scroll="{x: '100%',y:'calc(100vh - 130px)'}"
|
||||||
:rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}'
|
:rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}'
|
||||||
@change='handleTableChange'>
|
@change='handleTableChange'>
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="24" v-if='!required'>
|
<a-row :gutter="24" v-if='combineFlag'>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
@@ -122,18 +122,20 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formInline: {
|
formInline: {
|
||||||
|
|
||||||
},
|
},
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
description:false,
|
description:false,
|
||||||
dictOptions:[],
|
dictOptions:[],
|
||||||
visible: false,
|
visible: false,
|
||||||
|
combineFlag:false,
|
||||||
required:false,
|
required:false,
|
||||||
disabled:false,
|
disabled:false,
|
||||||
rules: {
|
rules: {
|
||||||
separator:[
|
separator:[
|
||||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('MergeSeparator'), trigger: 'change' },
|
{ required: true, message: this.$t('PleaseEnter')+this.$t('MergeSeparator'), trigger: 'change' },
|
||||||
{
|
{
|
||||||
pattern: /[`~!@$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/,
|
pattern: /[`~!@$%^&*()_\-+=<>?:"{}|.\/;'\\[\]·~!@¥%……&*()——\-+={}|《》?:“”【】、;‘'。、]/,
|
||||||
message: this.$t('punctuationmark'),
|
message: this.$t('punctuationmark'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
@@ -166,11 +168,11 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getNameList()
|
this.getNameList()
|
||||||
if(this.formInline.combineFlag == '1'){
|
// if(this.formInline.combineFlag == '1'){
|
||||||
this.required = false
|
// this.required = false
|
||||||
}else{
|
// }else{
|
||||||
this.required = true
|
// this.required = true
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
uploadSuccess(data) {
|
uploadSuccess(data) {
|
||||||
@@ -196,11 +198,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
flagChange(value){
|
flagChange(value){
|
||||||
console.log(value.target.value)
|
|
||||||
if(value.target.value == 2){
|
if(value.target.value == 2){
|
||||||
this.required = false
|
this.combineFlag = true
|
||||||
}else{
|
}else{
|
||||||
this.required = true
|
this.combineFlag = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getNameList() {
|
getNameList() {
|
||||||
@@ -217,6 +218,7 @@ export default {
|
|||||||
this.title = this.$t('ConventionalExport')
|
this.title = this.$t('ConventionalExport')
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.formInline.separator = ','
|
this.formInline.separator = ','
|
||||||
|
this.formInline.combineFlag = '1',
|
||||||
this.formInline = {...this.formInline}
|
this.formInline = {...this.formInline}
|
||||||
this.getConfigure()
|
this.getConfigure()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user