合并master
commit
d16c446070
|
@ -25,7 +25,7 @@
|
||||||
<span slot="close">关</span>
|
<span slot="close">关</span>
|
||||||
</i-switch>
|
</i-switch>
|
||||||
<Button type="info" placement="right" @click="Template(item)" size="small">编辑</Button>
|
<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">
|
<Poptip confirm title="删除此模板?" @on-ok="delTemplate(item.id)" @on-cancel="cancel">
|
||||||
<Button type="error" size="small">删除</Button>
|
<Button type="error" size="small">删除</Button>
|
||||||
</Poptip>
|
</Poptip>
|
||||||
|
@ -139,9 +139,9 @@ export default {
|
||||||
this.showModal = true;
|
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() {
|
getTemplateList() {
|
||||||
|
|
|
@ -40,15 +40,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
saveTemplate() {
|
saveTemplate() {
|
||||||
// 保存模板
|
// 保存模板
|
||||||
this.$Modal.confirm({
|
this.submitTemplate(this.$route.query.pageShow ? 'OPEN' : 'CLOSE')
|
||||||
title: "是否立即发布?",
|
|
||||||
onOk: () => {
|
|
||||||
this.submitTemplate("OPEN");
|
|
||||||
},
|
|
||||||
onCancel: () => {
|
|
||||||
this.submitTemplate("CLOSE");
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
// 提交模板
|
// 提交模板
|
||||||
submitTemplate(pageShow) {
|
submitTemplate(pageShow) {
|
||||||
|
|
Loading…
Reference in New Issue