标签管理编辑
This commit is contained in:
@@ -292,6 +292,15 @@
|
|||||||
this.contentOption2.push(res)
|
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: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('DisplayArea'),
|
title: this.$t('DisplayArea'),
|
||||||
dataIndex: 'showArea',
|
dataIndex: 'show_area',
|
||||||
key: 'showArea',
|
key: 'show_rea',
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
@@ -120,13 +120,13 @@
|
|||||||
title: this.$t('enName'),
|
title: this.$t('enName'),
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
width: 100,
|
||||||
dataIndex: 'enName',
|
dataIndex: 'en_name',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('Module'),
|
title: this.$t('Module'),
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
width: 100,
|
||||||
dataIndex: 'isModel_dictText',
|
dataIndex: 'item_text',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('SortNumber'),
|
title: this.$t('SortNumber'),
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
}
|
}
|
||||||
getAction(`tag/onlCgformArea/page`,params).then(res=>{
|
getAction(`tag/onlCgformArea/page`,params).then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
this.areaTable=res.result.records
|
this.areaTable=res.result
|
||||||
this.total=res.result.total
|
this.total=res.result.total
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="editVisible(record.id)" v-if="record.isReadOnly==0">{{$t('edit')}}</a>
|
<a @click="editVisible(record.id)" v-if="!record.is_read_only">{{$t('edit')}}</a>
|
||||||
<a-divider type="vertical" v-if="record.isReadOnly==0" />
|
<a-divider type="vertical" v-if="!record.is_read_only" />
|
||||||
<a class="table-del" @click="deleteVisible(record.id)">{{$t('delete')}}</a>
|
<a class="table-del" @click="deleteVisible(record.id)">{{$t('delete')}}</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-modal>
|
</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">
|
<template slot="action" slot-scope="text, record">
|
||||||
<a class="action-dict" @click="handleDicPop(record)">{{$t('DictionaryConfiguration')}}</a>
|
<a class="action-dict" @click="handleDicPop(record)">{{$t('DictionaryConfiguration')}}</a>
|
||||||
|
|||||||
@@ -87,37 +87,37 @@
|
|||||||
title: this.$t('ChineseName'),
|
title: this.$t('ChineseName'),
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
width: 100,
|
||||||
dataIndex: 'dbFieldTxt',
|
dataIndex: 'db_field_txt',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enName'),
|
title: this.$t('enName'),
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
width: 100,
|
||||||
dataIndex: 'dbFieldEnName',
|
dataIndex: 'db_field_en_name',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('AttributeType'),
|
title: this.$t('AttributeType'),
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
width: 100,
|
||||||
dataIndex: 'fieldShowType_dictText',
|
dataIndex: 'field_show_type_dict_text',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('FieldLength'),
|
title: this.$t('FieldLength'),
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 80,
|
width: 80,
|
||||||
dataIndex: 'dbLength'
|
dataIndex: 'db_length'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('DisplayOrder'),
|
title: this.$t('DisplayOrder'),
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 80,
|
width: 80,
|
||||||
dataIndex: 'orderNum'
|
dataIndex: 'order_num'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('DisplayArea'),
|
title: this.$t('DisplayArea'),
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 80,
|
width: 80,
|
||||||
dataIndex: 'showArea_dictText'
|
dataIndex: 'show_area_dict_text'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
@@ -147,9 +147,12 @@
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getHeader(){
|
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(){
|
loadShowArea(){
|
||||||
@@ -200,15 +203,15 @@
|
|||||||
}
|
}
|
||||||
// console.log('params',params)
|
// console.log('params',params)
|
||||||
if(val==1){
|
if(val==1){
|
||||||
|
console.log('1')
|
||||||
params.isModel=1
|
params.isModel=1
|
||||||
}else if(val==0){
|
}else if(val==0){
|
||||||
params.isModel=0
|
params.isModel=0
|
||||||
}
|
}
|
||||||
getAction(`tag/onlCgformTag/page`,params).then(res=>{
|
getAction(`tag/onlCgformTag/page`,params).then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
|
|
||||||
this.total=res.result.total
|
this.total=res.result.total
|
||||||
this.tableData= [ ...res.result.records]
|
this.tableData= [ ...res.result]
|
||||||
this.spinning=false
|
this.spinning=false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user