Commit 8b7106a1 authored by 黄奎's avatar 黄奎

页面修改

parent 1fdea663
...@@ -551,7 +551,6 @@ ...@@ -551,7 +551,6 @@
MallBaseId: this.getLocalStorage().MallBaseId, MallBaseId: this.getLocalStorage().MallBaseId,
HomeDataList: this.dataList HomeDataList: this.dataList
}; };
console.log("msg", msg);
this.apipost("/api/Tenant/SetMiniProgramMallHome", msg, res => { this.apipost("/api/Tenant/SetMiniProgramMallHome", msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
</el-table-column> </el-table-column>
<el-table-column prop="address" label="操作" width="100"> <el-table-column prop="address" label="操作" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="getModel(scope.row)" size="mini">选择</el-button> <el-button @click="getModel(scope.row)" size="mini">选择</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination background @current-change="handleCurrentChange" <el-pagination background @current-change="handleCurrentChange" :page-size="qMsg.pageSize"
:page-size="qMsg.pageSize" layout="prev, pager, next" :total="total"> layout="prev, pager, next" :total="total">
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
...@@ -45,10 +45,12 @@ ...@@ -45,10 +45,12 @@
}) })
}, },
//选择 //选择
getModel(item){ getModel(item) {
let str=''; var obj = {
str='#'+item.Id+':'+item.TemplateName; Id: item.Id,
this.$emit('getCustom',str) TemplateName: item.TemplateName
}
this.$emit('getCustom', obj)
}, },
}, },
mounted() { mounted() {
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<el-input type="text" v-model="item.NavName" size="small"></el-input> <el-input type="text" v-model="item.NavName" size="small"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="对应模板"> <el-form-item label="对应模板">
<el-input type="text" size="small" v-model="item.TemplateId"> <el-input type="text" size="small" v-model="item.TemplateShowName" :disabled="true">
<el-button slot="append" @click="isShowModule=true,commonIndex=index">选择模板</el-button> <el-button slot="append" @click="isShowModule=true,commonIndex=index">选择模板</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -151,9 +151,12 @@ ...@@ -151,9 +151,12 @@
}, },
methods: { methods: {
//选择模板 //选择模板
getCustom(e){ getCustom(obj){
console.log(obj)
if (this.commonIndex > -1) { if (this.commonIndex > -1) {
this.addMsg.DetailsList[this.commonIndex].TemplateId = e;
this.addMsg.DetailsList[this.commonIndex].TemplateId = obj.Id;
this.addMsg.DetailsList[this.commonIndex].TemplateShowName='#'+obj.Id+':'+obj.TemplateName;
} }
this.isShowModule = false; this.isShowModule = false;
}, },
......
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