商品更新时间
This commit is contained in:
parent
30f27dc831
commit
48bec930f2
@ -449,6 +449,7 @@ export default {
|
||||
// console.log(value);
|
||||
},
|
||||
async handleChange1(value){
|
||||
console.log(value);
|
||||
const data = {area_code:value[0]}
|
||||
const promise = await getShopAddressApi_two(data)
|
||||
console.log(promise.data)
|
||||
@ -459,7 +460,11 @@ export default {
|
||||
}
|
||||
console.log(this.form.info1)
|
||||
},
|
||||
async handleChange2(value){
|
||||
async handleChange2(value,ID){
|
||||
console.log(value,ID);
|
||||
if(value!==value){
|
||||
this.form.info2=0
|
||||
}
|
||||
const data = {street_code:value[0]}
|
||||
const promise = await getShopAddressApi_three(data)
|
||||
for(let item of promise.data){
|
||||
@ -475,6 +480,7 @@ export default {
|
||||
// id = item.id
|
||||
// }
|
||||
// }
|
||||
console.log(e);
|
||||
if(this.form.info instanceof Array){
|
||||
this.form.area_id = this.form.info[0]
|
||||
}else{
|
||||
@ -488,7 +494,7 @@ export default {
|
||||
if(this.form.info2 instanceof Array){
|
||||
this.form.village_id = this.form.info2[0]
|
||||
}else{
|
||||
this.form.village_id = this.form.info2
|
||||
this.form.village_id = this.form.info2[14]
|
||||
}
|
||||
// this.form.street_id = this.form.info1[0]
|
||||
// this.form.village_id = id
|
||||
@ -557,6 +563,7 @@ export default {
|
||||
this.open2(res.message)
|
||||
//编辑弹出层
|
||||
this.popFormVisible=false
|
||||
|
||||
}
|
||||
} catch (error) {
|
||||
this.open4(error.message)
|
||||
@ -708,6 +715,7 @@ export default {
|
||||
this.add =false
|
||||
const promise = await merchantUpdateApi(id)
|
||||
console.log('promise',promise);
|
||||
console.log(this.form);
|
||||
const res = promise.data
|
||||
this.merid = res.mer_id
|
||||
this.form.mer_name = res.mer_name //商户名称
|
||||
@ -729,10 +737,10 @@ export default {
|
||||
this.handleChange1(val)
|
||||
this.form.info1 = res.geo_address.street_id //code
|
||||
this.form.info2 = res.geo_address.village_id //id
|
||||
|
||||
let vala = []
|
||||
let ID=res.geo_address.street_id
|
||||
vala.push(res.geo_address.street_id)
|
||||
this.handleChange2(vala)
|
||||
this.handleChange2(vala,ID)
|
||||
this.form.commission_rate = res.commission_rate
|
||||
this.form.mer_keyword = res.mer_keyword
|
||||
this.form.mer_address = res.mer_address
|
||||
|
@ -142,6 +142,7 @@
|
||||
</el-rate>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="update_time" label="更新时间" min-width="150" />
|
||||
<el-table-column prop="rank" label="排序" min-width="70" />
|
||||
<el-table-column prop="status" label="是否显示" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
|
Loading…
x
Reference in New Issue
Block a user