diff --git a/jero-web/src/views/documentManage/tags/tabs/tabTable.vue b/jero-web/src/views/documentManage/tags/tabs/tabTable.vue
index efad20c91..a99a89799 100644
--- a/jero-web/src/views/documentManage/tags/tabs/tabTable.vue
+++ b/jero-web/src/views/documentManage/tags/tabs/tabTable.vue
@@ -7,7 +7,7 @@
rowKey="id"
:columns="columns"
:dataSource="tableData"
- :pagination="ipagination"
+ :pagination="false"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
@@ -15,7 +15,7 @@
属性名称
编辑
-
+
删除-->
+
@@ -34,6 +45,11 @@
name: 'tabTable',
data(){
return{
+ queryParams:{
+ pageNo:1,
+ pageSize:10
+
+ },
selectedRowKeys: [],
loading: false,
ipagination:true,
@@ -42,7 +58,8 @@
},
props:{
tableData:Array,
- columns:Array
+ columns:Array,
+ total:Number
},
mounted() {
// console.log('colum',this.tableData,this.columns)
@@ -60,7 +77,17 @@
},
deleteVisible(id){
this.$emit('visibleDelete',id)
- }
+ },
+ //点击页数
+ onChangePage(page,pageSize){
+ this.queryParams.pageNo = page
+ this.$emit('queryParams',this.queryParams)
+ },
+ //一页显示条数
+ SizeChange(page,pageSize){
+ this.queryParams.pageSize = pageSize
+ this.$emit('queryParams',this.queryParams)
+ },
}
}
@@ -70,5 +97,8 @@
.table-del{
color: red;
}
+ .page{
+ margin-top: 20px;
+ }
}
\ No newline at end of file
diff --git a/jero-web/src/views/documentManage/tags/tabs/tagItem.vue b/jero-web/src/views/documentManage/tags/tabs/tagItem.vue
index c247144e8..257bd5550 100644
--- a/jero-web/src/views/documentManage/tags/tabs/tagItem.vue
+++ b/jero-web/src/views/documentManage/tags/tabs/tagItem.vue
@@ -1,58 +1,60 @@
-
-
-
-
-
-
-
-
-
-
-
- {{item.label}}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.label}}
+
+
+
+
{{$t('query')}}
{{$t('reset')}}
-
-
-
-
-
-
-
-
-
- {{$t('add')}}
-
+
+
+
+
+
+
+
+
+
+ {{$t('add')}}
+
-
展示区域管理
-
-
-
-
-
-
-
-
+ 展示区域管理
+
+
+
+
+
+
+
+
+
@@ -73,8 +75,6 @@
data(){
return{
queryParam:{
- area:'', //显示区域
- tagName:'', //标签项名称
page:1,
pageSize:10,
},
@@ -86,11 +86,11 @@
areas:[
{
value: 1,
- label:'文档库'
+ label:'基本信息'
},
{
value:2,
- label:'文档条款'
+ label:'文本信息'
}
],
tableData:[],
@@ -201,6 +201,7 @@
editId:'',
submitEdit:'add',
key:1,
+ total:0
}
},
mounted() {
@@ -208,10 +209,18 @@
},
methods:{
searchQuery(){
-
+ if(this.key==1){
+ this.loadData(1)
+ }else if(this.key==2){
+ this.loadData(0)
+ }
},
searchReset(){
-
+ this.queryParam={
+ pageNo:0,
+ pageSize: 10
+ }
+ this.searchQuery()
},
handleAdd(){
this.drawerVisible=true
@@ -230,6 +239,7 @@
//标签项管理文档库初始数据
loadData(val){
let params={
+ ...this.queryParam,
isModel:1
}
if(val==1){
@@ -239,6 +249,7 @@
}
getAction(`tag/onlCgformTag/page`,params).then(res=>{
if(res.success){
+ this.total=res.result.total
this.tableData= [ ...res.result.records]
}
})
@@ -345,6 +356,16 @@
}
})
+ },
+ //接收查询条件
+ queryParams(val){
+ this.queryParam=val
+ if(this.key==1){
+ this.loadData(1)
+ }else if(this.key==2){
+ this.loadData(0)
+ }
+
}
}
}