Commit 644f1b7a authored by liuyangyang's avatar liuyangyang

告警页面联调

parent 5f81dda4
......@@ -76,6 +76,7 @@
<common-table
:data="tableData.list"
:columns="tableColumns"
:total="total"
:default-page-size="pageSize"
@pagination-change="handlePaginationChange"
:pagination-texts="{
......@@ -278,6 +279,7 @@ const openDialog = (item) => {
equDialog.value = true;
};
const total = ref(0);
const getAlarmList = () => {
const url = "/alarm/getAlarmListPage";
const params = {
......@@ -302,6 +304,7 @@ const getAlarmList = () => {
return getDataFun(url, params).then((res) => {
if (res && res.data) {
tableData.list = res.data.list || [];
total.value = res.data.total;
} else {
return [];
}
......@@ -331,10 +334,9 @@ const equPending = () => {
: "",
};
return getDataFun(url, params).then((res) => {
if (res && res.data) {
tableData.list = res.data.list || [];
} else {
return [];
if (res && res.code == 1) {
equDialog.value = false;
getAlarmList();
}
});
};
......
......@@ -51,6 +51,7 @@
:data="tableData.list"
:columns="tableColumns"
:default-page-size="20"
:total="total"
@pagination-change="handlePaginationChange"
:pagination-texts="{
total: '共',
......@@ -197,6 +198,7 @@ const tableData = reactive({
],
});
const total = ref(0);
const getAllDustList = () => {
const url = "/bag/cycle/getReplaceListPage";
console.log(formInline.value.date);
......@@ -220,6 +222,7 @@ const getAllDustList = () => {
return getDataFun(url, params).then((res) => {
if (res && res.data) {
tableData.list = res.data.records || [];
total.value = res.data.total;
} else {
return [];
}
......
......@@ -48,7 +48,8 @@
<common-table
:data="tableData.list"
:columns="tableColumns"
:default-page-size="10"
:default-page-size="20"
:total="total"
@pagination-change="handlePaginationChange"
:pagination-texts="{
total: '共',
......@@ -242,6 +243,7 @@ const onReset = () => {
getManagementList();
};
const total = ref(0);
const getManagementList = () => {
const url = "/alarm/getSuspendDeviceListPage";
const params = {
......@@ -255,6 +257,7 @@ const getManagementList = () => {
return getDataFun(url, params).then((res) => {
if (res && res.data) {
tableData.list = res.data.list || [];
total.value = res.data.total;
}
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment