取消pc楼层装修提示框,改为无痕更改

master
lemon橪 2021-06-17 14:11:13 +08:00
parent d72ce4109d
commit 57ff6c8d70
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) {