区域关联支付国家 页面逻辑调整

This commit is contained in:
tianfeng 2026-05-26 16:06:57 +08:00
parent 01dbbc053a
commit 4bbfc06ba4

View File

@ -122,22 +122,7 @@
/>
</el-select>
</el-form-item>
<el-form-item v-if="form.id" prop="relationIds" :label="$t('pages.payRegionRelation.form.enabledCountries')">
<el-select v-model="form.relationIds" :placeholder="$t('pages.payRegionRelation.placeholder.select')" style="width:100%;">
<el-option
v-for="(item, index) in countryList"
:key="index"
:label="item.country.countryName"
:value="item.id"
>
<span style="float: left;">
<img :src="item.country.nationalFlag" style="width: 28px; height: 18px;margin: 0px 2px;">
</span>
<span style="float: left;margin-left:10px">{{ item.country.countryName }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item v-if="!form.id" prop="relationIds" :label="$t('pages.payRegionRelation.form.enabledCountries')">
<el-form-item prop="relationIds" :label="$t('pages.payRegionRelation.form.enabledCountries')">
<el-select v-model="form.relationIds" multiple :placeholder="$t('pages.payRegionRelation.placeholder.select')" style="width:100%;">
<el-option
v-for="(item, index) in countryList"
@ -214,7 +199,6 @@ export default {
listQuery: {
cursor: 1,
limit: 20,
sysOrigin: 'HALAR',
groupType: 'OPEN_PAY_COUNTRY',
relationId: '',
region: '',
@ -300,7 +284,7 @@ export default {
this.textOptTitle = 'pages.payRegionRelation.dialog.editTitle'
this.formVisible = true
this.form = Object.assign(this.form, row)
this.form.relationIds = row.relationId
this.form.relationIds = row.relationId ? [row.relationId] : []
},
handleClose() {
this.formVisible = false
@ -338,7 +322,6 @@ export default {
})
return
}
that.form.relationIds = [that.form.relationIds]
updateRegionRelation(that.form).then(res => {
that.$opsMessage.success()
that.submitLoading = false