Commit 1a4e4121 by 胡悦

修改loading和config地址

1 parent da8a7015
......@@ -98,7 +98,7 @@
</gl-form>
<div slot="footer" class="dialog-footer">
<gl-button @click="showAddDialog">取 消</gl-button>
<gl-button type="primary" @click="ok">确 定</gl-button>
<gl-button type="primary" v-loading="submitLoading" @click="ok">确 定</gl-button>
</div>
</gl-dialog>
</div>
......@@ -128,6 +128,7 @@ export default {
merchantId: [{ required: true }],
merchantType: [{ required: true }]
},
submitLoading: false,
// 远程搜索
loading: false,
childLoading: false,
......@@ -169,6 +170,7 @@ export default {
this.isAdd = false
this.$validator.validateAll().then((result) => {
if (result) {
this.submitLoading = true
if (this.addList.length !== 0) {
if (this.addList[0].merchantId) {
this.addList.forEach(item => {
......@@ -185,6 +187,7 @@ export default {
notice.okTips()
this.showAddDialog(true)
this.disabledMerchant = false
this.submitLoading = false
}).catch(err => {
notice.errorTips(err)
})
......@@ -194,7 +197,6 @@ export default {
// 显示隐藏添加商户按钮
showAddDialog(t) {
this.$emit('addData', t)
},
// 添加更多按钮
addMore() {
......
......@@ -108,7 +108,7 @@ export default {
this.resetAll()
})
// 初始化
this.$request({ url: 'http://192.168.3.171:7300/mock/5be17454f31545347559d499/config/area_config' }).then(data => {
this.$request({ url: 'http://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/area_config' }).then(data => {
this.AllData = JSON.parse(data.data).provinceInfoList
this.AllData.forEach(element => {
this.provinceList.push({ provinceId: element.provinceId, provinceName: element.provinceName })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!