|
@@ -388,7 +388,7 @@
|
|
|
id="merchantInfoManagementEdit-submit-btn"
|
|
|
size="large"
|
|
|
@click="handleSubmit"
|
|
|
- style="padding: 0 60px;">提交</a-button>
|
|
|
+ style="padding: 0 60px;">保存</a-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -526,6 +526,7 @@ export default {
|
|
|
},
|
|
|
// 详情编辑
|
|
|
getDetail () {
|
|
|
+ this.spinning = true
|
|
|
dealerFindUpdateInfoBySn({ sn: this.$route.params.id }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.detailData = res.data
|
|
@@ -544,6 +545,7 @@ export default {
|
|
|
this.getArea('district', this.form.receiveCitySn, 1)
|
|
|
}
|
|
|
}
|
|
|
+ this.spinning = false
|
|
|
})
|
|
|
},
|
|
|
// 提交
|
|
@@ -603,6 +605,7 @@ export default {
|
|
|
},
|
|
|
// 区县变更
|
|
|
areaCharged (val) {
|
|
|
+ console.log(val)
|
|
|
if (val) {
|
|
|
this.form.districtName = this.addrDistrictList.find(item => item.areaSn == val).name
|
|
|
} else {
|
|
@@ -686,7 +689,6 @@ export default {
|
|
|
pageInit () {
|
|
|
this.getArea('province')
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
- this.form = {}
|
|
|
if (this.$route.params.id) { // 编辑页
|
|
|
this.getDetail()
|
|
|
}
|