Showing
2 changed files
with
10 additions
and
4 deletions
@@ -98,9 +98,9 @@ | @@ -98,9 +98,9 @@ | ||
98 | <el-tabs v-model="activeName" @tab-click="tabClick"> | 98 | <el-tabs v-model="activeName" @tab-click="tabClick"> |
99 | <el-tab-pane label="已添加" name="first"> | 99 | <el-tab-pane label="已添加" name="first"> |
100 | <cm-table-page :columns="columns" :dataList="tabFirstList" @loaddata="loadFirstList" | 100 | <cm-table-page :columns="columns" :dataList="tabFirstList" @loaddata="loadFirstList" |
101 | - :showIndex="true" | 101 | + :showIndex="true" :total="countFirst" |
102 | :showBorder="true" :loading="false" | 102 | :showBorder="true" :loading="false" |
103 | - :showPage="false" :showTools="true" :height="(height - 500)"> | 103 | + :showPage="true" :showTools="true" :height="(height - 500)"> |
104 | <template #tools="{scope}"> | 104 | <template #tools="{scope}"> |
105 | <el-button type="text" size="small" | 105 | <el-button type="text" size="small" |
106 | @click.prevent="deleteRes(scope.row,scope.$index)"> | 106 | @click.prevent="deleteRes(scope.row,scope.$index)"> |
@@ -111,7 +111,7 @@ | @@ -111,7 +111,7 @@ | ||
111 | </el-tab-pane> | 111 | </el-tab-pane> |
112 | <el-tab-pane label="未添加" name="second"> | 112 | <el-tab-pane label="未添加" name="second"> |
113 | <cm-table-page :columns="columns" :dataList="tabSecondList" @loaddata="loadSecondList" | 113 | <cm-table-page :columns="columns" :dataList="tabSecondList" @loaddata="loadSecondList" |
114 | - :showIndex="true" | 114 | + :showIndex="true" :total="count" |
115 | :showBorder="true" :loading="false" | 115 | :showBorder="true" :loading="false" |
116 | :showPage="true" :showTools="true" :height="(height - 500)"> | 116 | :showPage="true" :showTools="true" :height="(height - 500)"> |
117 | <template #tools="{scope}"> | 117 | <template #tools="{scope}"> |
@@ -147,6 +147,8 @@ export default { | @@ -147,6 +147,8 @@ export default { | ||
147 | let dialogFormVisible = Vue.ref(false); | 147 | let dialogFormVisible = Vue.ref(false); |
148 | let parentList = Vue.ref([]); | 148 | let parentList = Vue.ref([]); |
149 | let isAdd = Vue.ref(false); | 149 | let isAdd = Vue.ref(false); |
150 | + let count=Vue.ref(0); | ||
151 | + let countFirst=Vue.ref(0); | ||
150 | 152 | ||
151 | let form = Vue.ref({ | 153 | let form = Vue.ref({ |
152 | parentId: '', | 154 | parentId: '', |
@@ -209,6 +211,7 @@ export default { | @@ -209,6 +211,7 @@ export default { | ||
209 | 211 | ||
210 | proxy.$http.get(`/api-web/ContrastAnalysis/added`, getParams(), function (res) { | 212 | proxy.$http.get(`/api-web/ContrastAnalysis/added`, getParams(), function (res) { |
211 | if (res && res.data) { | 213 | if (res && res.data) { |
214 | + proxy.countFirst=res.count; | ||
212 | tabFirstList.value = res.data; | 215 | tabFirstList.value = res.data; |
213 | } | 216 | } |
214 | }); | 217 | }); |
@@ -220,6 +223,7 @@ export default { | @@ -220,6 +223,7 @@ export default { | ||
220 | // } | 223 | // } |
221 | proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams(), function (res) { | 224 | proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams(), function (res) { |
222 | if (res && res.data) { | 225 | if (res && res.data) { |
226 | + proxy.count=res.count; | ||
223 | tabSecondList.value = res.data; | 227 | tabSecondList.value = res.data; |
224 | } | 228 | } |
225 | }); | 229 | }); |
@@ -566,7 +570,9 @@ export default { | @@ -566,7 +570,9 @@ export default { | ||
566 | showDialogForm, | 570 | showDialogForm, |
567 | saveAnalysis, | 571 | saveAnalysis, |
568 | parentList, | 572 | parentList, |
569 | - getChartData | 573 | + getChartData, |
574 | + count, | ||
575 | + countFirst | ||
570 | } | 576 | } |
571 | } | 577 | } |
572 | } | 578 | } |
-
Please register or login to post a comment