1
This commit is contained in:
@@ -99,7 +99,7 @@
|
|||||||
:before-close="handleClose">
|
:before-close="handleClose">
|
||||||
<el-form class="ai-form" :model="form" label-width="120px" ref="form">
|
<el-form class="ai-form" :model="form" label-width="120px" ref="form">
|
||||||
<el-form-item label="店铺" style="width: 100%;" prop="targetMallId" :rules="[{ required: true, message: '请选择店铺', trigger: 'blur' }]">
|
<el-form-item label="店铺" style="width: 100%;" prop="targetMallId" :rules="[{ required: true, message: '请选择店铺', trigger: 'blur' }]">
|
||||||
<el-select v-model="form.targetMallId" placeholder="请选择">
|
<el-select v-model="form.targetMallId" placeholder="请选择" @change="getCateList">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in $store.state.mallList"
|
v-for="item in $store.state.mallList"
|
||||||
:key="item.mallId"
|
:key="item.mallId"
|
||||||
@@ -170,10 +170,23 @@ import { Message } from 'element-ui'
|
|||||||
this.getList()
|
this.getList()
|
||||||
if (this.$store.state.mallList.length > 0) {
|
if (this.$store.state.mallList.length > 0) {
|
||||||
this.productPage.mallId = this.$store.state.mallList[0].mallId
|
this.productPage.mallId = this.$store.state.mallList[0].mallId
|
||||||
|
|
||||||
|
this.getCateList()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
getCateList () {
|
||||||
|
console.log(222)
|
||||||
|
sendChromeAPIMessage({
|
||||||
|
url: 'bg-anniston-mms/category/children/list',
|
||||||
|
needMallId: true,
|
||||||
|
mallId: this.productPage.mallId,
|
||||||
|
}).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
getList () {
|
getList () {
|
||||||
this.$http.post('/api/product/myPage',null,{
|
this.$http.post('/api/product/myPage',null,{
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
Reference in New Issue
Block a user