diff --git a/src/api/trainService/index.js b/src/api/trainService/index.js
index c89c816..65cb98e 100644
--- a/src/api/trainService/index.js
+++ b/src/api/trainService/index.js
@@ -195,4 +195,12 @@ export function setJson(data) {
method: 'post',
data,
})
+}
+// 导出excel
+export function exportExcelF(id) {
+ return request({
+ url: '/personal/download/resume/' + id,
+ method: 'get',
+ responseType: 'blob',
+ })
}
\ No newline at end of file
diff --git a/src/views/trainService/signlist.vue b/src/views/trainService/signlist.vue
index a648992..c239fac 100644
--- a/src/views/trainService/signlist.vue
+++ b/src/views/trainService/signlist.vue
@@ -384,6 +384,7 @@ export default {
this.$nextTick(() => {
if (row.data) {
this.$refs.jsontool.jsonData = row.data
+ this.$refs.jsontool.formatCode()
} else {
this.$refs.jsontool.jsonData =
'[{"name":"姓名","type":"input","key":"name","value":""},{"title":"在校职务","type":"input","key":"title","value":""},{"mobile":"手机号","type":"input","key":"mobile","value":""},{"college":"院校全称","type":"input","key":"college","value":""},{"address":"院校所在地址","type":"input","key":"address","value":""},{"payType":"培训付款方式","type":"radio","key":"payType","value":["公对公转账,请于报到前提供截图","现场支付(公务卡、微信、支付宝、现金)"]},{"sex":"性别","type":"radio","key":"sex","value":["男","女"]},{"hotel":"是否需要统一安排住宿","type":"radio","key":"hotel","value":["大床房(付房费全额)","标间(独立居住、付全额房费)","标间(拼房、付房费一半),无指定合住人员","标间(拼房、付房费一半),指定合住人员","其他,请说明,包括非指定日期的订房","无须订房,自行安排"]},{"addWeixin":"是否添加业务负责人微信","type":"radio","key":"addWeixin","value":["是","否"]},{"suggestion":"针对此次培训,您还有什么建议","type":"textarea","key":"suggestion","value":""}]'
@@ -516,7 +517,9 @@ export default {
searchUp(rwo) {
// this.activeR = rwo
// this.getStudentList()
- this.$router.push(`/signupStudent?id=${rwo.trainClassId}&type=${rwo.classType}`)
+ this.$router.push(`/signupStudent?id=${rwo.trainClassId}&type=${rwo.classType}&name=${rwo.trainClassName}`)
+
+ rwo.data && localStorage.setItem('jsondata', rwo.data)
},
async getStudentList() {
const res = await searchNum(this.activeR.trainClassId)
diff --git a/src/views/trainService/signupStudent.vue b/src/views/trainService/signupStudent.vue
index 8b1ef8f..d32e777 100644
--- a/src/views/trainService/signupStudent.vue
+++ b/src/views/trainService/signupStudent.vue
@@ -21,7 +21,9 @@
重置
-
+
@@ -88,7 +90,8 @@