|
|
|
@ -9,7 +9,7 @@ |
|
|
|
<GuipInput v-model="coverInfo.college_name" label="学院名称" :client-form-flex="true" width="356px" /> |
|
|
|
<GuipRadio :options="qualificationList" v-model="coverInfo.qualification" label="学历" :client-form-flex="true" /> |
|
|
|
<GroupFormBtns cancelText="重置" @cancel="cancelClick('baseInfoRef')" flex="start" |
|
|
|
@confirm="submitDoctorBaseInfo" /> |
|
|
|
@confirm="submitCoverInfo" /> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div class="client_flex-common flex-common mt12" id=""> |
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<GroupFormBtns cancelText="重置" @cancel="cancelClick('siteForm')" flex="start" |
|
|
|
@confirm="submitDoctorBaseInfo" /> |
|
|
|
@confirm="uploadCoverTpl" /> |
|
|
|
</div> |
|
|
|
<div class="save-button flex"> |
|
|
|
<GuipButton type="primary" :btnstyle="{width:'144px',height:'46px'}" @click="submitFun">收录完成</GuipButton> |
|
|
|
@ -96,16 +96,18 @@ export default { |
|
|
|
label: '继续教育', |
|
|
|
value: 5 |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
formData: new FormData(), |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
// this.getCoverInfo(); |
|
|
|
this.getCoverInfo(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getCoverInfo(){ |
|
|
|
this.$http('POST', '/api', {}, { |
|
|
|
async getCoverInfo(){ |
|
|
|
this.$http('POST', '/supernew/ajax_get_paiban_template_list', {}, { |
|
|
|
}).then(response => { |
|
|
|
console.log(response,'=======999'); |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
this.$Message.success(response.info); |
|
|
|
@ -120,7 +122,8 @@ export default { |
|
|
|
cancelClick(formName) { |
|
|
|
this.$refs[formName].resetFields(); |
|
|
|
}, |
|
|
|
submitDoctorBaseInfo() { |
|
|
|
// 提交封面基本信息 |
|
|
|
submitCoverInfo() { |
|
|
|
console.log(this.coverInfo,'coverInfo信息'); |
|
|
|
|
|
|
|
this.$refs['baseInfoRef'].validate((valid) => { |
|
|
|
@ -132,17 +135,12 @@ export default { |
|
|
|
return false; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
// 提交封面样式信息 |
|
|
|
updateSiteReportCustomerService() { |
|
|
|
this.formData.set('url', this.coverInfo.qrcode_path) |
|
|
|
this.$http('POST', '', |
|
|
|
this.formData |
|
|
|
, { |
|
|
|
headers: { |
|
|
|
'Content-Type':'multipart/form-data' |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
uploadCoverTpl() { |
|
|
|
this.formData.set('template_id', '1') |
|
|
|
this.$http('POST', '/supernew/upload_paiban_template_cover', this.formData).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
this.$Message.success(response.info); |
|
|
|
@ -156,8 +154,14 @@ export default { |
|
|
|
}, |
|
|
|
// 提交基本信息 |
|
|
|
handleConfirmConfirm(){ |
|
|
|
// let props={ |
|
|
|
// template_id, |
|
|
|
// school, |
|
|
|
// college, |
|
|
|
// degree |
|
|
|
// } |
|
|
|
try { |
|
|
|
this.$http('POST', '', { |
|
|
|
this.$http('POST', '/supernew/ajax_update_paiban_template_info', { |
|
|
|
...this.coverInfo |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
@ -177,10 +181,28 @@ export default { |
|
|
|
}, |
|
|
|
handleQQkfChange(file, fileList) { |
|
|
|
console.log(file, fileList) |
|
|
|
// let fileObj = file.raw |
|
|
|
// this.formData.set('qq_qrcode', fileObj) |
|
|
|
let fileObj = file.raw |
|
|
|
this.formData.set('file', fileObj) |
|
|
|
|
|
|
|
}, |
|
|
|
submitFun() { |
|
|
|
// let props = { |
|
|
|
// configdata, |
|
|
|
// template_id |
|
|
|
// } |
|
|
|
this.$http('POST', '/supernew/upload_paiban_template_cover', { |
|
|
|
|
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
this.$Message.success(response.info); |
|
|
|
} else { |
|
|
|
this.$Message.error(response.info); |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|