标签管理编辑

This commit is contained in:
caoyang
2022-03-06 22:12:40 +08:00
parent a4e33424ca
commit 694e01305b
5 changed files with 31 additions and 19 deletions
@@ -292,6 +292,15 @@
this.contentOption2.push(res)
}
})
if(this.form.fieldShowType==0){
this.contentOption=[...this.contentOption2]
this.isTagContent=true
}else if(this.form.fieldShowType==3||this.form.fieldShowType=='4'){
this.contentOption=[...this.contentOption1]
this.isTagContent=true
}else{
this.isTagContent=false
}
}
});
},
@@ -111,8 +111,8 @@
columns: [
{
title: this.$t('DisplayArea'),
dataIndex: 'showArea',
key: 'showArea',
dataIndex: 'show_area',
key: 'show_rea',
align: "center",
width: 100,
},
@@ -120,13 +120,13 @@
title: this.$t('enName'),
align: "center",
width: 100,
dataIndex: 'enName',
dataIndex: 'en_name',
},
{
title: this.$t('Module'),
align: "center",
width: 100,
dataIndex: 'isModel_dictText',
dataIndex: 'item_text',
},
{
title: this.$t('SortNumber'),
@@ -186,7 +186,7 @@
}
getAction(`tag/onlCgformArea/page`,params).then(res=>{
if(res.success){
this.areaTable=res.result.records
this.areaTable=res.result
this.total=res.result.total
}
})
@@ -11,8 +11,8 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="editVisible(record.id)" v-if="record.isReadOnly==0">{{$t('edit')}}</a>
<a-divider type="vertical" v-if="record.isReadOnly==0" />
<a @click="editVisible(record.id)" v-if="!record.is_read_only">{{$t('edit')}}</a>
<a-divider type="vertical" v-if="!record.is_read_only" />
<a class="table-del" @click="deleteVisible(record.id)">{{$t('delete')}}</a>
</span>
</a-table>
@@ -51,7 +51,7 @@
</a-form-model>
</a-modal>
<a-table bordered :data-source="tableData" :columns="columns" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :pagination="false" class="tag-con-table">
<a-table :data-source="tableData" :columns="columns" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :pagination="false" class="tag-con-table">
<template slot="action" slot-scope="text, record">
<a class="action-dict" @click="handleDicPop(record)">{{$t('DictionaryConfiguration')}}</a>
@@ -87,37 +87,37 @@
title: this.$t('ChineseName'),
align: "center",
width: 100,
dataIndex: 'dbFieldTxt',
dataIndex: 'db_field_txt',
},
{
title: this.$t('enName'),
align: "center",
width: 100,
dataIndex: 'dbFieldEnName',
dataIndex: 'db_field_en_name',
},
{
title: this.$t('AttributeType'),
align: "center",
width: 100,
dataIndex: 'fieldShowType_dictText',
dataIndex: 'field_show_type_dict_text',
},
{
title: this.$t('FieldLength'),
align: "center",
width: 80,
dataIndex: 'dbLength'
dataIndex: 'db_length'
},
{
title: this.$t('DisplayOrder'),
align: "center",
width: 80,
dataIndex: 'orderNum'
dataIndex: 'order_num'
},
{
title: this.$t('DisplayArea'),
align: "center",
width: 80,
dataIndex: 'showArea_dictText'
dataIndex: 'show_area_dict_text'
},
{
title: this.$t('operation'),
@@ -147,9 +147,12 @@
},
methods:{
getHeader(){
getAction(`tag/onlCgformArea/getHeader`,{flag:3}).then(res=>{
})
// getAction(`tag/onlCgformTag/getHeader`,{flag:3}).then(res=>{
//
// })
// getAction(`tag/onlCgformTag/queryCondition`,{flag:3}).then(res=>{
//
// })
},
//获取展示区域
loadShowArea(){
@@ -200,15 +203,15 @@
}
// console.log('params',params)
if(val==1){
console.log('1')
params.isModel=1
}else if(val==0){
params.isModel=0
}
getAction(`tag/onlCgformTag/page`,params).then(res=>{
if(res.success){
this.total=res.result.total
this.tableData= [ ...res.result.records]
this.tableData= [ ...res.result]
this.spinning=false
}
})