fix: 后端接口改为java,联调接口修改。
This commit is contained in:
@@ -858,7 +858,7 @@ function resUsetInfo() {
|
||||
function getWarnMsg() {
|
||||
const warnParams = ref({
|
||||
pageSize: 10,
|
||||
curPage: 1,
|
||||
pageNum: 1,
|
||||
});
|
||||
msgWarn(warnParams.value).then((res: any) => {
|
||||
if (res.statusCode == 200) {
|
||||
@@ -922,14 +922,15 @@ function changeMode() {
|
||||
// 塘口模式1
|
||||
function pond1() {
|
||||
getPond1().then((res: any) => {
|
||||
if (res.statusCode == 200) {
|
||||
if (res.code == 200) {
|
||||
const pondIds = [];
|
||||
res.data.forEach((item: any) => {
|
||||
const rows = res.rows || [];
|
||||
rows.forEach((item: any) => {
|
||||
pondIds.push(item.id);
|
||||
let num = 3;
|
||||
const msg = item.warnCodeInfo.warnDescription;
|
||||
const showPh = !alarmJudgeCode(item.warnCodeInfo.warnCode, 1);
|
||||
const showSa = !alarmJudgeCode(item.warnCodeInfo.warnCode, 2);
|
||||
const msg = item.warnCodeInfo?.warnDescription || '';
|
||||
const showPh = !alarmJudgeCode(item.warnCodeInfo?.warnCode, 1);
|
||||
const showSa = !alarmJudgeCode(item.warnCodeInfo?.warnCode, 2);
|
||||
if (msg) {
|
||||
item.isPh = showPh;
|
||||
item.isSa = showSa;
|
||||
@@ -950,18 +951,18 @@ function pond1() {
|
||||
item.up = true;
|
||||
|
||||
});
|
||||
pondList.value = res.data;
|
||||
pondList.value = rows;
|
||||
setTimeout(() => {
|
||||
showTour.value = res.data.length == 0 ? true : false;
|
||||
showTour.value = rows.length == 0 ? true : false;
|
||||
}, 500);
|
||||
selPond.value = selPond.value
|
||||
? selPond.value
|
||||
: res.data.length > 0
|
||||
? Number(res.data[0]["id"])
|
||||
: rows.length > 0
|
||||
? Number(rows[0]["id"])
|
||||
: undefined;
|
||||
if (selPond.value) {
|
||||
if (!pondIds.includes(selPond.value)) {
|
||||
selPond.value = res.data.length > 0 ? Number(res.data[0]["id"]) : undefined;
|
||||
selPond.value = rows.length > 0 ? Number(rows[0]["id"]) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user