文档拆分列表修改
This commit is contained in:
@@ -257,6 +257,24 @@
|
||||
// console.log('drawerVisible',this.drawerVisible)
|
||||
},
|
||||
methods: {
|
||||
//获取选项内容
|
||||
loadContent(){
|
||||
let params = {};
|
||||
getAction(``,params).then((res)=>{
|
||||
if(res.success){
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取展示区域
|
||||
loadShowArea(){
|
||||
let params = {};
|
||||
getAction(``,params).then((res)=>{
|
||||
if(res.success){
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
add () {
|
||||
this.edit({});
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<tabTable :tableData="tableData" :columns="taglabColumns" @visibleEd="visibleEd" @visibleDelete="visibleDelete" ></tabTable>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="文档拆分" force-render>
|
||||
<tabTable :tableData="tableData" :columns="tagSplit"></tabTable>
|
||||
<tabTable :tableData="tableData" :columns="tagSplit" @visibleEd="visibleEd" @visibleDelete="visibleDelete"></tabTable>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
@@ -199,7 +199,8 @@
|
||||
drawerVisible:false,
|
||||
value:1,
|
||||
editId:'',
|
||||
submitEdit:'add'
|
||||
submitEdit:'add',
|
||||
key:1,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -244,11 +245,13 @@
|
||||
},
|
||||
//标签项管理tab切换
|
||||
callbackTab(value){
|
||||
this.key=value
|
||||
if(value==1){
|
||||
|
||||
this.loadData(1)
|
||||
// this.tableData=this.taglab
|
||||
// this.tableData=this.taglabSplit
|
||||
}else if(value=2){
|
||||
}else if(value==2){
|
||||
this.loadData(0)
|
||||
}
|
||||
},
|
||||
@@ -278,8 +281,9 @@
|
||||
this.titleTag=title
|
||||
this.editId=id
|
||||
this.submitEdit='edit'
|
||||
|
||||
let params={
|
||||
id:id
|
||||
id:id,
|
||||
}
|
||||
getAction(`tag/onlCgformTag/queryById`,params).then(res=>{
|
||||
if(res.success){
|
||||
@@ -300,15 +304,23 @@
|
||||
// })
|
||||
deleteAction(`tag/onlCgformTag/delete`,params).then(res=>{
|
||||
if(res.success){
|
||||
this.loadData(1)
|
||||
this.$message('删除成功')
|
||||
|
||||
if(this.key==1){
|
||||
this.loadData(1)
|
||||
}else if(this.key==2){
|
||||
this.loadData(0)
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
//新增关闭
|
||||
closeTag(val){
|
||||
this.drawerVisible=val
|
||||
this.loadData(1)
|
||||
if(this.key==1){
|
||||
this.loadData(1)
|
||||
}else if(this.key==2){
|
||||
this.loadData(0)
|
||||
}
|
||||
},
|
||||
afterVisibleChange(val){
|
||||
// console.log('val',val)
|
||||
|
||||
Reference in New Issue
Block a user