Authored by 鲁尚清

对比分析配置新增页面的列表修改总条数

... ... @@ -98,9 +98,9 @@
<el-tabs v-model="activeName" @tab-click="tabClick">
<el-tab-pane label="已添加" name="first">
<cm-table-page :columns="columns" :dataList="tabFirstList" @loaddata="loadFirstList"
:showIndex="true"
:showIndex="true" :total="countFirst"
: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="deleteRes(scope.row,scope.$index)">
... ... @@ -111,7 +111,7 @@
</el-tab-pane>
<el-tab-pane label="未添加" name="second">
<cm-table-page :columns="columns" :dataList="tabSecondList" @loaddata="loadSecondList"
:showIndex="true"
:showIndex="true" :total="count"
:showBorder="true" :loading="false"
:showPage="true" :showTools="true" :height="(height - 500)">
<template #tools="{scope}">
... ...
... ... @@ -147,6 +147,8 @@ export default {
let dialogFormVisible = Vue.ref(false);
let parentList = Vue.ref([]);
let isAdd = Vue.ref(false);
let count=Vue.ref(0);
let countFirst=Vue.ref(0);
let form = Vue.ref({
parentId: '',
... ... @@ -209,6 +211,7 @@ export default {
proxy.$http.get(`/api-web/ContrastAnalysis/added`, getParams(), function (res) {
if (res && res.data) {
proxy.countFirst=res.count;
tabFirstList.value = res.data;
}
});
... ... @@ -220,6 +223,7 @@ export default {
// }
proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams(), function (res) {
if (res && res.data) {
proxy.count=res.count;
tabSecondList.value = res.data;
}
});
... ... @@ -566,7 +570,9 @@ export default {
showDialogForm,
saveAnalysis,
parentList,
getChartData
getChartData,
count,
countFirst
}
}
}
... ...