Authored by 鲁尚清

对比分析配置列表增加分页,运维文档管理增加全选按钮

... ... @@ -65,7 +65,7 @@
</el-button>
</div>
<div class="select-all">
<div class="select-all" v-if="isSelect">
<el-button type="primary" :size="$global.elementSize" @click="selectAll()" v-if="activeBtn == 'view'" >
{{selectText}}
... ... @@ -73,7 +73,7 @@
</div>
<!-- <div style="text-align: right;width: 150px">
<div style="text-align: right;width: 150px">
<el-button-group>
<el-button :size="$global.elementSize" :type="activeBtn == 'view' ? 'primary' : ''"
... ... @@ -85,7 +85,7 @@
<i class="iconfont icon-liebiao"></i>
</el-button>
</el-button-group>
</div>-->
</div>
</div>
<!--列表-->
<div v-if="activeBtn == 'list'">
... ...
... ... @@ -42,6 +42,11 @@ export default {
type: Boolean,
default: false
},
//是否展示全选按钮
isSelect:{
type:Boolean,
default:false
}
},
data() {
return {
... ...
... ... @@ -113,7 +113,7 @@
<cm-table-page :columns="columns" :dataList="tabSecondList" @loaddata="loadSecondList"
:showIndex="true"
:showBorder="true" :loading="false"
:showPage="false" :showTools="true" :height="(height - 500)">
:showPage="true" :showTools="true" :height="(height - 500)">
<template #tools="{scope}">
<el-button type="text" size="small" @click.prevent="addRes(scope.row,scope.$index)">
<i class="el-icon-plus"/> 添加
... ...
<div class="container">
<cm-document></cm-document>
<cm-document :isSelect="true"></cm-document>
</div>
... ...