取消pc楼层装修提示框,改为无痕更改
parent
d72ce4109d
commit
57ff6c8d70
|
@ -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() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue