| | |
| | | <el-form ref="storeForm" :model="storeForm" label-width="100px" class="config-form"> |
| | | <el-form-item label="门店名称"> |
| | | <el-select v-model="storeForm.poiId" placeholder="请点击右侧查询按钮获取门店信息" style="width: 400px;"> |
| | | <el-option v-for="item in storeList" :key="item" :label="item" :value="item"></el-option> |
| | | <el-option |
| | | v-for="item in storeList" |
| | | :key="item.poiId" |
| | | :label="item.poiName" |
| | | :value="item.poiId" /> |
| | | </el-select> |
| | | <el-button @click="queryStore" style="margin-left: 10px;">查询门店</el-button> |
| | | </el-form-item> |
| | |
| | | this.form.accountId = res.accountId || '' |
| | | this.storeForm.poiId = res.poiId || '' |
| | | } |
| | | if (this.form.appkey && this.form.secret && this.form.accountId) { |
| | | this.queryStore() |
| | | } |
| | | }).catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | |
| | | clientKey: this.form.appkey, |
| | | clientSecret: this.form.secret |
| | | }).then(() => { |
| | | this.queryStore() |
| | | this.$message.success('保存成功') |
| | | }).catch(e => { |
| | | this.$tip.apiFailed(e) |