优化页面select选择器

This commit is contained in:
2023-12-01 16:25:44 +08:00
parent 574ccc203c
commit 5a4044a08f
2 changed files with 43 additions and 38 deletions

View File

@@ -142,6 +142,7 @@
<el-select
v-model="form.merchantId"
clearable placeholder="请选择运营商"
@change="$forceUpdate()"
>
<el-option
v-for="item in merchantList"
@@ -263,7 +264,7 @@ export default {
// 获取运营商列表
getMerchantList() {
getMerchantList().then((response) => {
console.log("getMerchantList response", response)
// console.log("getMerchantList response", response);
this.merchantList = response.obj;
this.form.merchantId = this.merchantList[0].merchantId
})