...
|
...
|
@@ -55,13 +55,13 @@ export default { |
|
|
}
|
|
|
}
|
|
|
|
|
|
let getDialtestList = () => {
|
|
|
let getDialtestList = (currentPage) => {
|
|
|
let params = {
|
|
|
faultNo: props.faultNo,
|
|
|
targetType: props.targetType.toLocaleLowerCase(),
|
|
|
//lsq 更多列表 增加分页 2022-08-09
|
|
|
page:props.page,
|
|
|
limit:props.limit
|
|
|
page:currentPage?currentPage:props.page,
|
|
|
limit:currentPage?pageSize.value:props.limit
|
|
|
}
|
|
|
|
|
|
store.dispatch('getFaultList', params).then((res) => {
|
...
|
...
|
@@ -70,6 +70,11 @@ export default { |
|
|
card.value = res.data[0].faultFixInfoList;
|
|
|
//lsq 更多列表增加分页总条数 2022-08-09
|
|
|
count.value = res.count;
|
|
|
//lsq 卡片分页时刷新数据 2022-08-12
|
|
|
if(currentPage){
|
|
|
cardData.value=[];
|
|
|
getDialtestCard(dialTest.value.faultFixInfoList);
|
|
|
}
|
|
|
}
|
|
|
}).catch(e => {
|
|
|
console.log(e);
|
...
|
...
|
@@ -163,6 +168,31 @@ export default { |
|
|
}
|
|
|
}
|
|
|
})
|
|
|
//start lsq 卡片分页功能 2022-08-12
|
|
|
let currentPage = Vue.ref(1);
|
|
|
let pageSize = Vue.ref(props.limit);
|
|
|
// 每页展示多少条
|
|
|
let handleSizeChange = (val) => {
|
|
|
currentPage.value = 1
|
|
|
pageSize.value = val;
|
|
|
getDialtestList(currentPage.value);
|
|
|
}
|
|
|
// 切换页码
|
|
|
let handleCurrentChange = (val) => {
|
|
|
currentPage.value = val;
|
|
|
getDialtestList(currentPage.value);
|
|
|
}
|
|
|
let prePage = (val) => {
|
|
|
currentPage.value = val-1;
|
|
|
getDialtestList(currentPage.value);
|
|
|
}
|
|
|
|
|
|
// 切换页码
|
|
|
let nextPage = (val) => {
|
|
|
currentPage.value = val+1;
|
|
|
getDialtestList(currentPage.value);
|
|
|
}
|
|
|
//end 2022-08-12
|
|
|
return {
|
|
|
card,
|
|
|
count,
|
...
|
...
|
@@ -177,7 +207,13 @@ export default { |
|
|
openKpiList,
|
|
|
getFaultItemValue: service.getFaultItemValue,
|
|
|
openDiagnosticItem,
|
|
|
visibilityChange
|
|
|
visibilityChange,
|
|
|
currentPage,
|
|
|
pageSize,
|
|
|
handleSizeChange,
|
|
|
handleCurrentChange,
|
|
|
prePage,
|
|
|
nextPage
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|