测试问题修改6

This commit is contained in:
zzyuan 2025-03-28 13:23:54 +08:00
parent 7428bbe72a
commit 3ef015d70c
5 changed files with 24 additions and 11 deletions

View File

@ -578,6 +578,8 @@
"endDateTime":this.formatDate(this.dateRange[1]) "endDateTime":this.formatDate(this.dateRange[1])
} }
param.type=1 param.type=1
this.tableListData1 = []
this.total1 = 0
accSubsidyRechargePageApi(param).then(response => { accSubsidyRechargePageApi(param).then(response => {
this.tableListData1 = response.data.pageVO.records; this.tableListData1 = response.data.pageVO.records;
this.total1 = Number(response.data.pageVO.total); this.total1 = Number(response.data.pageVO.total);
@ -635,6 +637,8 @@
"endDateTime":this.formatDate(this.dateRange[1]) "endDateTime":this.formatDate(this.dateRange[1])
} }
param.type=2 param.type=2
this.tableListData2 = []
this.total2 = 0
accSubsidyClearPageApi(param).then(response => { accSubsidyClearPageApi(param).then(response => {
this.tableListData2 = response.data.pageVO.records; this.tableListData2 = response.data.pageVO.records;
this.total2 = Number(response.data.pageVO.total); this.total2 = Number(response.data.pageVO.total);
@ -656,7 +660,9 @@
"size": this.queryParams3.pageSize, "size": this.queryParams3.pageSize,
"startDateTime":this.formatDate(this.dateRange[0]), "startDateTime":this.formatDate(this.dateRange[0]),
"endDateTime":this.formatDate(this.dateRange[1]) "endDateTime":this.formatDate(this.dateRange[1])
} }
this.tableListData3 = []
this.total3 = 0
accSubsidyRepealPageApi(param).then(response => { accSubsidyRepealPageApi(param).then(response => {
this.tableListData3 = response.data.pageVO.records; this.tableListData3 = response.data.pageVO.records;
this.total3 = Number(response.data.pageVO.total); this.total3 = Number(response.data.pageVO.total);
@ -679,6 +685,8 @@
"startDateTime":this.formatDate(this.dateRange[0]), "startDateTime":this.formatDate(this.dateRange[0]),
"endDateTime":this.formatDate(this.dateRange[1]) "endDateTime":this.formatDate(this.dateRange[1])
} }
this.tableListData4 = []
this.total4 = 0
accSubsidyHandReceivePageApi(param).then(response => { accSubsidyHandReceivePageApi(param).then(response => {
this.tableListData4 = response.data.resultPage.records; this.tableListData4 = response.data.resultPage.records;
this.total4 = Number(response.data.resultPage.total); this.total4 = Number(response.data.resultPage.total);

View File

@ -250,6 +250,8 @@
"startDateTime":this.formatDate(this.dateRange[0]), "startDateTime":this.formatDate(this.dateRange[0]),
"endDateTime":this.formatDate(this.dateRange[1]) "endDateTime":this.formatDate(this.dateRange[1])
} }
this.tableListData = []
this.total = 0
if(this.activeName=='cust'){ if(this.activeName=='cust'){
param.type=0 param.type=0
accountSubsidyCustPageApi(param).then(response => { accountSubsidyCustPageApi(param).then(response => {

View File

@ -279,6 +279,8 @@
"startDate":this.formatDate(this.dateRange[0]), "startDate":this.formatDate(this.dateRange[0]),
"endDate":this.formatDate(this.dateRange[1]) "endDate":this.formatDate(this.dateRange[1])
} }
this.tableListData = []
this.total = 0
if(this.activeName=='cust'){ if(this.activeName=='cust'){
accountConsumeCustPageApi(param).then(response => { accountConsumeCustPageApi(param).then(response => {
this.tableListData = response.resultPage.records; this.tableListData = response.resultPage.records;

View File

@ -268,6 +268,8 @@
"startDate":this.formatDate(this.dateRange[0]), "startDate":this.formatDate(this.dateRange[0]),
"endDate":this.formatDate(this.dateRange[1]) "endDate":this.formatDate(this.dateRange[1])
} }
this.tableListData = []
this.total = 0
if(this.activeName=='cust'){ if(this.activeName=='cust'){
walletConsumeCustPageApi(param).then(response => { walletConsumeCustPageApi(param).then(response => {
this.tableListData = response.resultPage.records; this.tableListData = response.resultPage.records;

View File

@ -6,18 +6,18 @@
v-model="queryParams.deviceSearchInfo" v-model="queryParams.deviceSearchInfo"
placeholder="请输入关键字" placeholder="请输入关键字"
clearable clearable
style="width: 300px" style="width: 400px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="所属区域" prop="areaIdList"> <el-form-item label="所属区域" prop="areaIdList">
<el-cascader style="width: 400px" <el-cascader style="width: 400px"
v-model="queryParams.areaIdList" :show-all-levels="false" :filterable="true" v-model="queryParams.areaIdList" :show-all-levels="false" :filterable="true"
:options="treeOptions" :props="treeProps" collapse-tags :options="treeOptions" :props="treeProps" collapse-tags clearable
@change="handleTreeChange"></el-cascader> @change="handleTreeChange"></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="所属食堂" prop="canteenIdList"> <el-form-item label="所属食堂" prop="canteenIdList">
<el-select v-model="queryParams.canteenIdList" placeholder="请选择所属食堂" collapse-tags :multiple="true" style="width: 400px;" @change="changeQueryCanteen"> <el-select v-model="queryParams.canteenIdList" placeholder="请选择所属食堂" collapse-tags clearable :multiple="true" style="width: 400px;" @change="changeQueryCanteen">
<el-option v-for="item in canteenOptions" <el-option v-for="item in canteenOptions"
:key="item.canteenId" :key="item.canteenId"
:label="item.canteenName" :label="item.canteenName"
@ -27,7 +27,7 @@
</el-form-item> </el-form-item>
<br> <br>
<el-form-item label="所属档口" prop="stallIdList"> <el-form-item label="所属档口" prop="stallIdList">
<el-select v-model="queryParams.stallIdList" placeholder="请选择所属档口" collapse-tags :multiple="true" style="width: 500px;"> <el-select v-model="queryParams.stallIdList" placeholder="请选择所属档口" collapse-tags clearable :multiple="true" style="width: 400px;">
<el-option v-for="item in stallOptions" <el-option v-for="item in stallOptions"
:key="item.stallId" :key="item.stallId"
:label="item.stallName" :label="item.stallName"
@ -36,7 +36,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="通讯状态" prop=""> <el-form-item label="通讯状态" prop="">
<el-select v-model="queryParams.onlineState" placeholder="请选择通讯状态" style="width: 300px;"> <el-select v-model="queryParams.onlineState" placeholder="请选择通讯状态" style="width: 400px;" clearable>
<el-option v-for="item in statusOptions" <el-option v-for="item in statusOptions"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
@ -580,7 +580,8 @@
menuSubData:[], menuSubData:[],
}; };
}, },
mounted(){ mounted(){
this.getTreeData();
if(this.$route.query.areaId){ if(this.$route.query.areaId){
this.queryParams.areaIdList.push(this.$route.query.areaId+'') this.queryParams.areaIdList.push(this.$route.query.areaId+'')
getCanteenByAreaApi({ getCanteenByAreaApi({
@ -596,9 +597,7 @@
this.queryParams.stallIdList.push(this.$route.query.stallId+'') this.queryParams.stallIdList.push(this.$route.query.stallId+'')
} }
}); });
}); });
}else{
this.getTreeData();
} }
this.getList() this.getList()
}, },
@ -659,7 +658,7 @@
"deviceType":20 "deviceType":20
} }
} }
console.log("param",param)
let str = base64.encode(JSON.stringify(param)) let str = base64.encode(JSON.stringify(param))
// console.log(str) // console.log(str)
getDeviceListPageApi({"content":str}).then(response => { getDeviceListPageApi({"content":str}).then(response => {