Commit 1a4e4121 by 胡悦

修改loading和config地址

1 parent da8a7015
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
</gl-form> </gl-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<gl-button @click="showAddDialog">取 消</gl-button> <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> </div>
</gl-dialog> </gl-dialog>
</div> </div>
...@@ -128,6 +128,7 @@ export default { ...@@ -128,6 +128,7 @@ export default {
merchantId: [{ required: true }], merchantId: [{ required: true }],
merchantType: [{ required: true }] merchantType: [{ required: true }]
}, },
submitLoading: false,
// 远程搜索 // 远程搜索
loading: false, loading: false,
childLoading: false, childLoading: false,
...@@ -169,6 +170,7 @@ export default { ...@@ -169,6 +170,7 @@ export default {
this.isAdd = false this.isAdd = false
this.$validator.validateAll().then((result) => { this.$validator.validateAll().then((result) => {
if (result) { if (result) {
this.submitLoading = true
if (this.addList.length !== 0) { if (this.addList.length !== 0) {
if (this.addList[0].merchantId) { if (this.addList[0].merchantId) {
this.addList.forEach(item => { this.addList.forEach(item => {
...@@ -185,6 +187,7 @@ export default { ...@@ -185,6 +187,7 @@ export default {
notice.okTips() notice.okTips()
this.showAddDialog(true) this.showAddDialog(true)
this.disabledMerchant = false this.disabledMerchant = false
this.submitLoading = false
}).catch(err => { }).catch(err => {
notice.errorTips(err) notice.errorTips(err)
}) })
...@@ -194,7 +197,6 @@ export default { ...@@ -194,7 +197,6 @@ export default {
// 显示隐藏添加商户按钮 // 显示隐藏添加商户按钮
showAddDialog(t) { showAddDialog(t) {
this.$emit('addData', t) this.$emit('addData', t)
}, },
// 添加更多按钮 // 添加更多按钮
addMore() { addMore() {
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
this.resetAll() 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 = JSON.parse(data.data).provinceInfoList
this.AllData.forEach(element => { this.AllData.forEach(element => {
this.provinceList.push({ provinceId: element.provinceId, provinceName: element.provinceName }) 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!