update 后管站点页面添加字段、增加更多查询条件

This commit is contained in:
Lemon
2023-09-18 10:48:39 +08:00
parent d2e1424139
commit 66ddac6730
4 changed files with 79 additions and 2 deletions

View File

@@ -26,6 +26,34 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="管理员姓名" prop="stationAdminName" label-width="90px">
<el-input
v-model="queryParams.stationAdminName"
placeholder="请输入站点管理员姓名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="站点地址" prop="address">
<el-input
v-model="queryParams.address"
placeholder="请输入站点地址"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="站点电话" prop="stationTel">
<el-input
v-model="queryParams.stationTel"
placeholder="请输入站点电话"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
@@ -178,7 +206,8 @@
</el-switch>
</template>
</el-table-column>
<el-table-column label="管理员" align="center" prop="merchantAdminName"/>
<el-table-column label="管理员" align="center" prop="stationAdminName" :formatter="stationAdminNameFormat"/>
<el-table-column label="站点电话" align="center" prop="stationTel" :formatter="stationTelFormat"/>
<!--<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
@@ -238,7 +267,7 @@
<el-input v-model="form.address" maxlength="30" placeholder="请输入站点地址"/>
</el-form-item>
<el-form-item label="站点管理员" prop="merchantAdminName">
<el-form-item label="站点管理员" prop="stationAdminName">
<el-input v-model="form.stationAdminName" placeholder="站点管理员"/>
</el-form-item>
@@ -300,6 +329,7 @@ export default {
aloneApply: null,
accountNumber: null,
capacity: null,
stationAdminName: null,
publicParking: null,
parkingNumber: null,
countryCode: null,
@@ -373,6 +403,14 @@ export default {
console.log("merchantList", this.merchantList)
});
},
// 格式化站点管理员显示
stationAdminNameFormat(row) {
return row.stationAdminName == null ? row.merchantAdminName : row.stationAdminName;
},
// 格式化站点电话显示
stationTelFormat(row) {
return row.stationTel == null ? row.managerPhone : row.stationTel;
},
changeStationFlag(info) {
console.log(info);
updateStation(info).then((response) => {
@@ -438,7 +476,9 @@ export default {
/** 查询充电站信息列表 */
getList() {
this.loading = true;
console.log("queryParams", this.queryParams)
listStation(this.queryParams).then((response) => {
console.log("response", response)
this.stationList = response.rows;
this.total = response.total;
this.loading = false;
@@ -458,6 +498,7 @@ export default {
aloneApply: null,
accountNumber: null,
capacity: null,
stationAdminName: null,
publicParking: null,
parkingNumber: null,
countryCode: null,