暂存工作台的修改

This commit is contained in:
2025-02-20 17:28:45 +08:00
parent 5d617f2282
commit 16a03fbb4b
10 changed files with 126 additions and 48 deletions

View File

@@ -3,7 +3,7 @@ import { getParkSimpleMeterList } from "../../service/meter"
import { alertInfo } from "../../utils/index";
import request from "../../utils/request"
import { payWays, feeType } from "../../utils/data";
import { getTenementList } from "../../service/tenement";
import { getTenementList, getWxTenementList } from "../../service/tenement";
const { OK } = request;
// components/searchSelect/index.js
@@ -17,6 +17,7 @@ Component({
type: String,
show: Boolean,
park: String,
isBack: Boolean,
},
observers: {
"show,type": function(newShow, newType) {
@@ -120,8 +121,8 @@ Component({
})
},
async onSearchTenement() {
const { searchText = "", park } = this.data;
const { code, message, data = [] } = await getTenementList({keyword: searchText, park});
const { searchText = "", park, isBack } = this.data;
const { code, message, data = [] } = isBack ? await getWxTenementList({keyword: searchText, park}) : await getTenementList({keyword: searchText, park});
if (code !== OK) {
alertInfo(message)
return