diff --git a/ruoyi-ui/src/views/merchant/index.vue b/ruoyi-ui/src/views/merchant/index.vue index 968dde56..5977a887 100644 --- a/ruoyi-ui/src/views/merchant/index.vue +++ b/ruoyi-ui/src/views/merchant/index.vue @@ -317,7 +317,7 @@ 准入渠道 禁入渠道 - + :value="item.id + ''"> @@ -778,7 +778,7 @@ export default { huaBeiMiddle: 0, huaBeiHigh: 0, zhiMa: null, - channelLimnit: [] + channelLimit: [] }; this.resetForm("form"); }, @@ -811,7 +811,11 @@ export default { getMerchant(id).then((response) => { this.form = response.data; this.form.period = this.form.period ? this.form.period.split(",") : []; - this.form.period = this.form.channelLimnit ? this.form.channelLimnit.split(",") : []; + this.form.channelLimit = this.form.channelLimit ? this.form.channelLimit.split(",") : []; + let checkedCount = this.form.period.length; + this.checkAll = checkedCount === this.cityOptions.length; + this.isIndeterminate = + checkedCount > 0 && checkedCount < this.cityOptions.length; this.open = true; this.title = "修改商户"; }); @@ -825,8 +829,8 @@ export default { if (params.period) { params.period = params.period.join(","); } - if (params.channelLimnit) { - params.channelLimnit = params.channelLimnit.join(","); + if (params.channelLimit) { + params.channelLimit = params.channelLimit.join(","); } updateMerchant(params).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -838,8 +842,8 @@ export default { if (params.period) { params.period = params.period.join(","); } - if (params.channelLimnit) { - params.channelLimnit = params.channelLimnit.join(","); + if (params.channelLimit) { + params.channelLimit = params.channelLimit.join(","); } addMerchant(params).then((response) => { this.$modal.msgSuccess("新增成功"); diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 5dcf1e43..06b80296 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://y787tf.natappfree.cc`, + target: `http://r6a2wb.natappfree.cc`, // target: `http://124.222.144.55/dev-api`, changeOrigin: true, pathRewrite: {