合并master
This commit is contained in:
		
						commit
						d16c446070
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user