|
@@ -83,33 +83,24 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div class="pagination">
|
|
|
- <el-pagination v-if="total>pageSize"
|
|
|
- :current-page.sync="currentPage"
|
|
|
+ <el-pagination :current-page.sync="currentPage"
|
|
|
@current-change="currentChange"
|
|
|
background
|
|
|
:page-size="pageSize"
|
|
|
- layout="total,prev, pager, next, jumper"
|
|
|
+ :page-sizes="pageSizeArr"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ :layout="pageLayout"
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
- <!-- <div class="pagination">
|
|
|
- <el-pagination v-if="total>pageSize"
|
|
|
- :current-page.sync="currentPage"
|
|
|
- @current-change="currentChange"
|
|
|
- background
|
|
|
- :page-size="pageSize"
|
|
|
- layout="total,prev, pager, next, jumper"
|
|
|
- :total="total">
|
|
|
- </el-pagination>
|
|
|
- </div> -->
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import api from '@api/icss.js';
|
|
|
+import config from '@api/config.js';
|
|
|
|
|
|
export default {
|
|
|
name: 'tag-group',
|
|
@@ -126,7 +117,9 @@ export default {
|
|
|
tagSysName: '', //标签系统名称
|
|
|
},
|
|
|
currentPage: 1,
|
|
|
- pageSize: 10,
|
|
|
+ pageSize: config.pageSize,
|
|
|
+ pageSizeArr:config.pageSizeArr,
|
|
|
+ pageLayout:config.pageLayout,
|
|
|
total: 0,
|
|
|
}
|
|
|
},
|
|
@@ -151,6 +144,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleSizeChange(val){
|
|
|
+ this.pageSize = val;
|
|
|
+ this.getDataList();
|
|
|
+ },
|
|
|
getValue(val) {
|
|
|
// console.log('changeVal', val, this.filter.tagAdscription)
|
|
|
},
|
|
@@ -199,8 +196,10 @@ export default {
|
|
|
addTagGroup() {
|
|
|
const pam = this.searched ? {
|
|
|
currentPage: this.currentPage,
|
|
|
+ pageSize:this.pageSize,
|
|
|
filter: this.filter
|
|
|
- } : {currentPage: this.currentPage};
|
|
|
+ } : {currentPage: this.currentPage,
|
|
|
+ pageSize:this.pageSize};
|
|
|
this.$router.push({name: 'AddLabelGroup', params: pam});
|
|
|
},
|
|
|
modifyTagGroup(row, type) {
|