...
|
...
|
@@ -188,26 +188,23 @@ export default { |
|
|
busTypeArr.value = types;
|
|
|
loeadTable();
|
|
|
}
|
|
|
|
|
|
// 查询参数
|
|
|
let getParams = () =>{
|
|
|
return {
|
|
|
let getParams = Vue.ref({
|
|
|
keyWords: keyWords.value,
|
|
|
resType: resTypeArr.value.join(','),
|
|
|
kpiId: kpiTypeArr.value.join(','),
|
|
|
busId: busTypeArr.value.join(','),
|
|
|
configId: config.value,
|
|
|
page: 1,
|
|
|
limit: 50
|
|
|
}
|
|
|
}
|
|
|
limit: 10
|
|
|
})
|
|
|
|
|
|
let loadFirstList = (reload) => {
|
|
|
// if (!reload && tabFirstList.value.length > 0) {
|
|
|
// return false;
|
|
|
// }
|
|
|
if(isSign.value){//true为编辑,false为新增
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/added`, getParams(), function (res) {
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/added`, getParams.value, function (res) {
|
|
|
if (res && res.success) {
|
|
|
proxy.countFirst = res.count;
|
|
|
tabFirstList.value = res.data;
|
...
|
...
|
@@ -220,7 +217,7 @@ export default { |
|
|
// if (!reload && tabSecondList.value.length > 0) {
|
|
|
// return false;
|
|
|
// }
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams(), function (res) {
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams.value, function (res) {
|
|
|
if (res && res.success) {
|
|
|
proxy.count = res.count;
|
|
|
tabSecondList.value = res.data;
|
...
|
...
|
@@ -228,6 +225,21 @@ export default { |
|
|
});
|
|
|
}
|
|
|
|
|
|
let getPageInfoFirst = ({page, limit}) => {
|
|
|
getParams.value.page = page;
|
|
|
getParams.value.limit = limit;
|
|
|
|
|
|
// 下一页搜索
|
|
|
loadFirstList();
|
|
|
}
|
|
|
let getPageInfoSecond = ({page, limit}) => {
|
|
|
getParams.value.page = page;
|
|
|
getParams.value.limit = limit;
|
|
|
|
|
|
// 下一页搜索
|
|
|
loadSecondList();
|
|
|
}
|
|
|
|
|
|
|
|
|
let tabClick = (tab, event) => {
|
|
|
let name = tab.paneName;
|
...
|
...
|
@@ -542,6 +554,8 @@ export default { |
|
|
deleteRes,
|
|
|
onBtnSearch,
|
|
|
onReset,
|
|
|
getPageInfoFirst,
|
|
|
getPageInfoSecond,
|
|
|
|
|
|
getResType,
|
|
|
getKpiType,
|
...
|
...
|
|