|
|
@ -134,25 +134,26 @@ export default { |
|
|
} |
|
|
} |
|
|
if(id){ |
|
|
if(id){ |
|
|
this.template_id = id; |
|
|
this.template_id = id; |
|
|
|
|
|
store.commit('SET_CLIENTTEMID', this.template_id); |
|
|
} |
|
|
} |
|
|
if(type == 'add'){ |
|
|
if(type == 'add'){ |
|
|
store.commit('SET_CLIENTTPLREVIEWSTATUS', 1); |
|
|
store.commit('SET_CLIENTTPLREVIEWSTATUS', 1); |
|
|
} |
|
|
} |
|
|
store.commit('SET_CLIENTTEMID', this.template_id); |
|
|
|
|
|
store.commit('SET_CLIENTTEMTYPE', this.type); |
|
|
store.commit('SET_CLIENTTEMTYPE', this.type); |
|
|
|
|
|
|
|
|
const editInfo = JSON.parse(localStorage.getItem('curtplInfo')) || ''; |
|
|
const editInfo = JSON.parse(localStorage.getItem('curtplInfo')) || ''; |
|
|
if(editInfo){ |
|
|
if(editInfo){ |
|
|
this.editInfo = JSON.parse(JSON.stringify(editInfo)); |
|
|
this.editInfo = JSON.parse(JSON.stringify(editInfo)); |
|
|
this.coverInfo = { |
|
|
this.coverInfo = { |
|
|
school:editInfo.school_id, |
|
|
school:editInfo.school_id || editInfo.school , |
|
|
school_name:editInfo.school_name, |
|
|
school_name:editInfo.school_name, |
|
|
college_id:editInfo.college_name == '-1'? '-1' :'1', |
|
|
college_id:editInfo.college_name == '-1'? '-1' :'1', |
|
|
college:editInfo.college_name, |
|
|
college:editInfo.college_name == '-1' ? '' :editInfo.college_name, |
|
|
degree:editInfo.degree_id, |
|
|
degree:editInfo.degree_id, |
|
|
// qrcode_path:editInfo.cover_img |
|
|
// qrcode_path:editInfo.cover_img |
|
|
} |
|
|
} |
|
|
this.template_id = editInfo.id; |
|
|
this.template_id = editInfo.id; |
|
|
|
|
|
console.log(this.coverInfo,'zhixingle---这里'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.getStatusList() |
|
|
this.getStatusList() |
|
|
@ -274,18 +275,19 @@ export default { |
|
|
// 提交基本信息 |
|
|
// 提交基本信息 |
|
|
handleConfirmConfirm(){ |
|
|
handleConfirmConfirm(){ |
|
|
let props={ |
|
|
let props={ |
|
|
school: this.coverInfo.school, |
|
|
school: this.coverInfo.school || this.client_tpl_config.school_id, |
|
|
college: this.coverInfo.college_id == '1' ? this.coverInfo.college : '', |
|
|
college: this.coverInfo.college_id == '1' ? this.coverInfo.college : '', |
|
|
degree: this.coverInfo.degree, |
|
|
degree: this.coverInfo.degree, |
|
|
} |
|
|
} |
|
|
let url = '/supernew/ajax_add_paiban_template' |
|
|
let url = '/supernew/ajax_add_paiban_template' |
|
|
if(this.template_id){ |
|
|
if(this.template_id || this.client_tpl_config.school_id){ |
|
|
props.template_id = this.template_id; |
|
|
props.template_id = this.template_id || localStorage.getItem('template_id'); |
|
|
url ='/supernew/ajax_update_paiban_template_info' |
|
|
url ='/supernew/ajax_update_paiban_template_info' |
|
|
} |
|
|
} |
|
|
if(this.coverInfo.school){ |
|
|
if(this.coverInfo.school){ |
|
|
props.school = this.coverInfo.school; |
|
|
props.school = this.coverInfo.school; |
|
|
} |
|
|
} |
|
|
|
|
|
console.log(url,this.coverInfo,this.client_tpl_config,'000--====000'); |
|
|
// 用来测试哒 |
|
|
// 用来测试哒 |
|
|
// localStorage.setItem('curtplInfo', JSON.stringify({...this.coverInfo,degree_id:this.coverInfo.degree})) |
|
|
// localStorage.setItem('curtplInfo', JSON.stringify({...this.coverInfo,degree_id:this.coverInfo.degree})) |
|
|
// store.commit('SET_CLIENTTEMID', '999'); |
|
|
// store.commit('SET_CLIENTTEMID', '999'); |
|
|
@ -310,13 +312,15 @@ export default { |
|
|
}else{ |
|
|
}else{ |
|
|
console.log(this.coverInfo,'coverInfo信息'); |
|
|
console.log(this.coverInfo,'coverInfo信息'); |
|
|
localStorage.setItem('curtplInfo', JSON.stringify({...this.coverInfo, |
|
|
localStorage.setItem('curtplInfo', JSON.stringify({...this.coverInfo, |
|
|
|
|
|
id:response.data.template_id, |
|
|
college_name:this.coverInfo.college_id == '1' ? this.coverInfo.college : '-1', |
|
|
college_name:this.coverInfo.college_id == '1' ? this.coverInfo.college : '-1', |
|
|
school_name:this.coverInfo.school_name, |
|
|
school_name:this.coverInfo.school_name, |
|
|
degree_id:this.coverInfo.degree})) |
|
|
degree_id:this.coverInfo.degree})) |
|
|
this.template_id = response.data.template_id |
|
|
this.template_id = response.data.template_id |
|
|
} |
|
|
} |
|
|
|
|
|
if(!localStorage.getItem('template_id')){ |
|
|
localStorage.setItem('template_id',this.template_id) |
|
|
localStorage.setItem('template_id',this.template_id) |
|
|
|
|
|
} |
|
|
store.dispatch('fetchClientConfig',{id:this.template_id}); |
|
|
store.dispatch('fetchClientConfig',{id:this.template_id}); |
|
|
store.commit('SET_CLIENTTEMID', this.template_id); |
|
|
store.commit('SET_CLIENTTEMID', this.template_id); |
|
|
|
|
|
|
|
|
@ -343,6 +347,10 @@ export default { |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
|
|
|
.coverInfoPage{ |
|
|
|
|
|
height: calc(100% - 130px); |
|
|
|
|
|
overflow-y: auto; |
|
|
|
|
|
} |
|
|
.flex-common { |
|
|
.flex-common { |
|
|
align-items: flex-start; |
|
|
align-items: flex-start; |
|
|
padding: 24px 32px; |
|
|
padding: 24px 32px; |
|
|
|