合并master

master
lemon橪 2021-06-17 14:15:21 +08:00
commit d16c446070
2 changed files with 4 additions and 12 deletions

View File

@ -25,7 +25,7 @@
<span slot="close"></span>
</i-switch>
<Button type="info" placement="right" @click="Template(item)" size="small">编辑</Button>
<Button type="success" placement="right" @click="decorate(item.id)" size="small">装修</Button>
<Button type="success" placement="right" @click="decorate(item)" size="small">装修</Button>
<Poptip confirm title="删除此模板?" @on-ok="delTemplate(item.id)" @on-cancel="cancel">
<Button type="error" size="small">删除</Button>
</Poptip>
@ -139,9 +139,9 @@ export default {
this.showModal = true;
},
decorate(id) {
decorate(val) {
//
this.$router.push({ name: "renovation", query: { id: id } });
this.$router.push({ name: "renovation", query: { id: val.id,pageShow:val.pageShow } });
},
getTemplateList() {

View File

@ -40,15 +40,7 @@ export default {
methods: {
saveTemplate() {
//
this.$Modal.confirm({
title: "是否立即发布?",
onOk: () => {
this.submitTemplate("OPEN");
},
onCancel: () => {
this.submitTemplate("CLOSE");
},
});
this.submitTemplate(this.$route.query.pageShow ? 'OPEN' : 'CLOSE')
},
//
submitTemplate(pageShow) {