fix(金币代理页面): 修复修改功能的接口,并调整搜索条件
This commit is contained in:
parent
a15a5d1074
commit
1f1965fb67
@ -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: "", //支持的国家
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user