Commit c0901f18 by lixiaomin

修改轮播位置

parent 2a9bd14d
......@@ -49,12 +49,7 @@
</template>
</el-table-column>
<el-table-column label="适用范围" align="center" prop="areaLimitDesc"/>
<el-table-column label="轮播位置" align="center" prop="target">
<template slot-scope="scope">
<span v-if="scope.row.target == 1">菜单页顶部</span>
<span v-if="scope.row.target == 2">我的页banner</span>
</template>
</el-table-column>
<el-table-column label="轮播位置" align="center" prop="targetStr"/>
<el-table-column label="轮播顺序" align="center" prop="sort" />
<el-table-column label="链接地址" align="center" prop="page" />
<el-table-column label="状态" align="center" prop="state">
......@@ -97,7 +92,7 @@
</el-row>
<el-row>
<el-form-item label="轮播位置" prop="target">
<el-select v-model="form.target" placeholder="请选择" clearable style="width: 300px;">
<el-select v-model="form.target" placeholder="请选择" clearable style="width: 300px;" multiple>
<el-option label="我的页banner" value='2' />
<el-option label="菜单页顶部" value='1' />
</el-select>
......@@ -174,7 +169,7 @@ export default {
id:null,
type:'',
state:null,
target:null,
target:[],
shopIds:[],
area:[],
city:[],
......@@ -273,7 +268,7 @@ export default {
this.form.id=null;
this.form.image="";
this.form.page="";
this.form.target="";
this.form.target=[];
this.storesRange=[];
this.form.sort="";
this.form.shopIds=[],
......@@ -286,12 +281,11 @@ export default {
this.title="修改轮播图";
let obj=Object.assign({},row);
this.form=obj;
this.form.target=obj.target+"";
this.form.target=obj.target;
let list=this.getMap();
getShopAreaTree().then((response) => {
if(response.code==200){
let treeList=response.data;
console.log("treeList ",treeList);
//填充省市区的label值
for(let i=0;i<treeList.length;i++){
treeList[i].label=list.get(treeList[i].value);
......
......@@ -48,11 +48,7 @@
</template>
</el-table-column>
<el-table-column label="适用范围" align="center" prop="areaLimitDesc"/>
<el-table-column label="轮播位置" align="center" prop="target">
<template slot-scope="scope">
<span v-if="scope.row.target == 0">菜单轮播</span>
</template>
</el-table-column>
<el-table-column label="轮播位置" align="center" prop="targetStr"/>
<el-table-column label="轮播顺序" align="center" prop="sort" />
<el-table-column label="链接地址" align="center" prop="page" />
<el-table-column label="状态" align="center" prop="state">
......@@ -95,7 +91,7 @@
</el-row>
<el-row>
<el-form-item label="轮播位置" prop="target">
<el-select v-model="form.target" placeholder="请选择" clearable style="width: 300px;">
<el-select v-model="form.target" placeholder="请选择" clearable style="width: 300px;" multiple>
<el-option label="菜单轮播" value='0' />
</el-select>
</el-form-item>
......@@ -171,7 +167,7 @@ export default {
id:null,
type:'',
state:null,
target:null,
target:[],
shopIds:[],
area:[],
city:[],
......@@ -270,7 +266,7 @@ export default {
this.form.id=null;
this.form.image="";
this.form.page="";
this.form.target="";
this.form.target=[];
this.storesRange=[];
this.form.sort="";
this.form.shopIds=[],
......@@ -283,12 +279,11 @@ export default {
this.title="修改轮播图";
let obj=Object.assign({},row);
this.form=obj;
this.form.target=obj.target+"";
this.form.target=obj.target;
let list=this.getMap();
getShopAreaTree().then((response) => {
if(response.code==200){
let treeList=response.data;
console.log("treeList ",treeList);
//填充省市区的label值
for(let i=0;i<treeList.length;i++){
treeList[i].label=list.get(treeList[i].value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment