Authored by 鲁尚清

【1039】 【对比分析优化】未添加列表优化-点击未添加,将当前已添加的数据作为参数传递给未添加列表接口

@@ -208,7 +208,7 @@ export default { @@ -208,7 +208,7 @@ export default {
208 busId: busTypeArr.value.join(','), 208 busId: busTypeArr.value.join(','),
209 configId: config.value, 209 configId: config.value,
210 page: 1, 210 page: 1,
211 - limit: 10 211 + limit: 10,
212 }) 212 })
213 213
214 let loadFirstList = (reload) => { 214 let loadFirstList = (reload) => {
@@ -229,6 +229,15 @@ export default { @@ -229,6 +229,15 @@ export default {
229 // if (!reload && tabSecondList.value.length > 0) { 229 // if (!reload && tabSecondList.value.length > 0) {
230 // return false; 230 // return false;
231 // } 231 // }
  232 + //lsq 未添加的列表中增加已添加列表的参数,未添加中不显示已添加的数据 2022-08-30
  233 + let addedId=[];
  234 + if(tabFirstList.value && tabFirstList.value.length>0){
  235 + tabFirstList.value.map(item=>{
  236 + addedId.push({resId:item.resId,kpiId:item.kpiId,flag:item.flag});
  237 + })
  238 + }
  239 + getParams.value.addedId=JSON.stringify(addedId) //lsq 已添加的id集
  240 +
232 proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams.value, function (res) { 241 proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams.value, function (res) {
233 if (res && res.success) { 242 if (res && res.success) {
234 proxy.count = res.count; 243 proxy.count = res.count;