|
|
@ -39,7 +39,15 @@ export default { |
|
|
this.editInfo = editInfo; |
|
|
this.editInfo = editInfo; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapState(['client_tpl_config']), |
|
|
...mapState(['client_tpl_config','client_tpl_id']), |
|
|
|
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
'client_tpl_config.status':{ |
|
|
|
|
|
handler(newVal){ |
|
|
|
|
|
this.is_use_templete = newVal; |
|
|
|
|
|
}, |
|
|
|
|
|
immediate:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
updatePayAutoRefund() { |
|
|
updatePayAutoRefund() { |
|
|
@ -49,14 +57,14 @@ export default { |
|
|
this.time = Date.now(); |
|
|
this.time = Date.now(); |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
console.log(this.is_use_templete,'this.is_use_templete=='); |
|
|
console.log(this.client_tpl_id,'client_tpl_id==='); |
|
|
this.$http('POST', '/supernew/ajax_update_paiban_template_status', { |
|
|
this.$http('POST', '/supernew/ajax_update_paiban_template_status', { |
|
|
status: this.is_use_templete , |
|
|
status: this.is_use_templete , |
|
|
template_id:this.$route.query.id |
|
|
template_id:this.$route.query.id || this.client_tpl_id |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (response.status) { |
|
|
if (response.status) { |
|
|
store.dispatch('fetchClientConfig',{id:this.$route.query.id || localStorage.getItem('template_id')}); |
|
|
store.dispatch('fetchClientConfig',{id:this.$route.query.id || this.client_tpl_id}); |
|
|
this.$Message.success(response.info); |
|
|
this.$Message.success(response.info); |
|
|
} else { |
|
|
} else { |
|
|
this.$Message.error(response.info); |
|
|
this.$Message.error(response.info); |
|
|
|