|
|
@ -3,12 +3,12 @@ |
|
|
<h3 class="pageTitle">封面信息</h3> |
|
|
<h3 class="pageTitle">封面信息</h3> |
|
|
<div class="client_flex-common flex-common" id=""> |
|
|
<div class="client_flex-common flex-common" id=""> |
|
|
<div class="before_h_title mb24">基本信息</div> |
|
|
<div class="before_h_title mb24">基本信息</div> |
|
|
<el-form :model="coverInfo"> |
|
|
<el-form :model="coverInfo" ref="baseInfoRef"> |
|
|
<GuipInput v-model="coverInfo.name" :client-form-flex="true" label="所属学校" width="356px" /> |
|
|
<GuipInput v-model="coverInfo.school_name" :client-form-flex="true" label="所属学校" width="356px" /> |
|
|
<GuipRadio :options="collegeList" v-model="coverInfo.name" :client-form-flex="true" label="学院" /> |
|
|
<GuipRadio :options="collegeList" v-model="coverInfo.college" :client-form-flex="true" label="学院" /> |
|
|
<GuipInput v-model="coverInfo.name" label="学院名称" :client-form-flex="true" width="356px" /> |
|
|
<GuipInput v-model="coverInfo.college_name" label="学院名称" :client-form-flex="true" width="356px" /> |
|
|
<GuipRadio :options="qualificationList" v-model="coverInfo.name" label="学历" :client-form-flex="true" /> |
|
|
<GuipRadio :options="qualificationList" v-model="coverInfo.qualification" label="学历" :client-form-flex="true" /> |
|
|
<GroupFormBtns cancelText="重置" @cancel="cancelClick('siteForm')" flex="start" |
|
|
<GroupFormBtns cancelText="重置" @cancel="cancelClick('baseInfoRef')" flex="start" |
|
|
@confirm="submitDoctorBaseInfo" /> |
|
|
@confirm="submitDoctorBaseInfo" /> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
@ -59,7 +59,6 @@ export default { |
|
|
qrcode_path: '' |
|
|
qrcode_path: '' |
|
|
}, |
|
|
}, |
|
|
coverInfo: { |
|
|
coverInfo: { |
|
|
name: '' |
|
|
|
|
|
}, |
|
|
}, |
|
|
rules: { |
|
|
rules: { |
|
|
name: [ |
|
|
name: [ |
|
|
@ -98,15 +97,66 @@ export default { |
|
|
value: 5 |
|
|
value: 5 |
|
|
}, |
|
|
}, |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
cancelClick(formName) { |
|
|
cancelClick(formName) { |
|
|
this.$emit('cancel', formName); |
|
|
this.$refs[formName].resetFields(); |
|
|
}, |
|
|
}, |
|
|
submitDoctorBaseInfo() { |
|
|
submitDoctorBaseInfo() { |
|
|
this.$emit('confirm'); |
|
|
console.log(this.coverInfo,'coverInfo信息'); |
|
|
|
|
|
|
|
|
|
|
|
this.$refs['baseInfoRef'].validate((valid) => { |
|
|
|
|
|
if (valid) { |
|
|
|
|
|
console.log('submit!'); |
|
|
|
|
|
this.handleConfirmRefuse() |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
// 提交封面样式信息 |
|
|
|
|
|
updateSiteReportCustomerService() { |
|
|
|
|
|
this.formData.set('url', this.coverInfo.qrcode_path) |
|
|
|
|
|
this.$http('POST', '', |
|
|
|
|
|
this.formData |
|
|
|
|
|
, { |
|
|
|
|
|
headers: { |
|
|
|
|
|
'Content-Type':'multipart/form-data' |
|
|
|
|
|
} |
|
|
|
|
|
}).then(response => { |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
if (response.status) { |
|
|
|
|
|
this.$Message.success(response.info); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$Message.error(response.info); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
console.error(error, 'error') |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 提交基本信息 |
|
|
|
|
|
handleConfirmConfirm(){ |
|
|
|
|
|
try { |
|
|
|
|
|
this.$http('POST', '', { |
|
|
|
|
|
...this.coverInfo |
|
|
|
|
|
}).then(response => { |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
if (response.status) { |
|
|
|
|
|
this.$Message.success(response.info); |
|
|
|
|
|
this.getList() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$Message.error(response.info); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
console.error(error, 'error') |
|
|
|
|
|
}) |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.error('数据加载失败:', error) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleQQkfChange(file, fileList) { |
|
|
handleQQkfChange(file, fileList) { |
|
|
console.log(file, fileList) |
|
|
console.log(file, fileList) |
|
|
|