fix(金币代理页面): 修复修改功能的接口,并调整搜索条件

This commit is contained in:
hzj 2025-12-10 15:34:51 +08:00
parent a15a5d1074
commit 1f1965fb67

View File

@ -29,8 +29,8 @@
clearable clearable
@change="handleSearch" @change="handleSearch"
> >
<el-option label="显示" :value="false" /> <el-option label="显示" :value="true" />
<el-option label="不显示" :value="true" /> <el-option label="不显示" :value="false" />
</el-select> </el-select>
<el-select <el-select
v-model="listQuery.dealer" v-model="listQuery.dealer"
@ -129,28 +129,18 @@
align="center" align="center"
min-width="100" min-width="100"
/> />
<el-table-column <el-table-column width="200" label="显示" align="center" min-width="100">
width="200"
label="显示/不显示"
align="center"
min-width="100"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.h5Display" v-model="scope.row.h5Display"
:active-value="false" :active-value="true"
:inactive-value="true" :inactive-value="false"
:disabled="scope.row.close" :disabled="scope.row.close"
@change="showSwitchChange(scope.row)" @change="showSwitchChange(scope.row)"
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column width="200" label="正常" align="center" min-width="100">
width="200"
label="正常/关闭"
align="center"
min-width="100"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.close" v-model="scope.row.close"
@ -570,7 +560,7 @@ export default {
const that = this; const that = this;
that.infoData = { that.infoData = {
id: row.userId, id: row.id,
supportedCountries: row.supportedCountries || "", supportedCountries: row.supportedCountries || "",
contactInfo: row.contactInfo || "" contactInfo: row.contactInfo || ""
}; };
@ -634,6 +624,7 @@ export default {
that.updateLoading = true; // that.updateLoading = true; //
updateInfoCP(that.infoData) updateInfoCP(that.infoData)
.then(res => { .then(res => {
that.handleSearch(); //
that.infoData = { that.infoData = {
id: 0, //id id: 0, //id
supportedCountries: "", // supportedCountries: "", //