提交 18b24c22 authored 作者: 王鹏飞's avatar 王鹏飞

修改ciis配置文件

上级 5ecec6e8
......@@ -7,6 +7,7 @@
@error="handleError"
:default-active="currentActive"
>
<template v-slot:content v-if="currentActive === 'application_pay'"> 自定义缴报名费 </template>
</vue-form>
</div>
</template>
......@@ -31,11 +32,6 @@ export default {
menus
}
},
computed: {
submenu() {
return this.menus[0].children
}
},
methods: {
handleChange(value) {
this.currentActive = value
......
......@@ -2,13 +2,13 @@ export default {
id: 'admission_xy',
title: '入学协议',
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { attachments = [] } = data.data.material
const filelist = attachments.filter(item => {
const ADMISSION_AGREEMENT = attachments.filter(item => {
return item.file_type_id === 'ADMISSION_AGREEMENT'
})
return { filelist }
return { ADMISSION_AGREEMENT }
}
},
form: {
......@@ -18,10 +18,10 @@ export default {
{
type: 'v-upload',
required: true,
model: 'filelist',
model: 'ADMISSION_AGREEMENT',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'ADMISSION_AGREEMENT' }
},
prepend: '2寸照片:以电子版的形式上传文件',
......
......@@ -6,7 +6,7 @@ export default {
id: 'application_declare',
title: '申请申明',
update: {
action: '/v1.0/application-materials/submit/1005'
action: '/api/enrollment/v1.0/application-materials/submit/1005'
},
form: {
model: { isAgree: [] },
......@@ -16,7 +16,8 @@ export default {
values: [{ label: '同意', value: 1 }],
model: 'isAgree',
rules: [{ required: true, message: '请阅读协议', trigger: 'change' }],
prepend: `<p>我提供的所有报名材料信息皆准确和完整。我同意在需要的情况下提交原件以确认我的报名资格。由于报名材料中的虚假、错误信息或重大遗漏导致不录取或取消学籍的后果由我个人承担。 我理解并同意所有报名材料归紫荆教育所有,无论考生录取与否均不退回。我授权紫荆教育使用报名表中的信息查询本人学习和工作记录。</p>`
prepend:
'<p>我提供的所有报名材料信息皆准确和完整。我同意在需要的情况下提交原件以确认我的报名资格。由于报名材料中的虚假、错误信息或重大遗漏导致不录取或取消学籍的后果由我个人承担。 我理解并同意所有报名材料归紫荆教育所有,无论考生录取与否均不退回。我授权紫荆教育使用报名表中的信息查询本人学习和工作记录。</p>'
}
]
}
......
<template>
<app-layout>
<vue-form
:menus="menus"
@change="handleChange"
@success="handleSuccess"
@error="handleError"
:default-active="currentActive"
>
</vue-form>
</app-layout>
</template>
<script>
import AppLayout from '../layout.vue'
import menu from './index'
export default {
components: { AppLayout },
data() {
return {
menu: menu,
currentActive: 'application_info'
}
},
methods: {
handleChange(value) {
this.currentActive = value
console.log('页面切换了', value)
},
handleSuccess(data) {
console.log('提交成功了', data)
this.$message({ type: 'success', message: data.message })
// this.getProgress()
},
handleError(data) {
console.log('提交失败了', data)
this.$message({ type: 'error', message: data.message })
}
}
}
</script>
......@@ -7,10 +7,10 @@ export default {
title: '学习目的',
required: true,
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { answers = [] } = data.data.material
let [first = {}, second = {}] = answers
const [first = {}, second = {}] = answers
return {
qid1: first.qid || '1',
question1:
......@@ -24,7 +24,7 @@ export default {
}
},
update: {
action: '/v1.0/application-materials/1005/put',
action: '/api/enrollment/v1.0/application-materials/1005/put',
beforeRequest(data) {
return {
answers: [
......
......@@ -7,7 +7,7 @@ export default {
title: '工作经验',
required: true,
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { careers = [] } = data.data.material
return careers.map(item => {
......@@ -20,10 +20,10 @@ export default {
}
},
update: {
action: '/v1.0/application-materials/1005/put',
action: '/api/enrollment/v1.0/application-materials/1005/put',
beforeRequest(data) {
const careers = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return [
......
......@@ -7,7 +7,7 @@ export default {
title: '教育背景',
required: true,
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { educations = [] } = data.data.material
return educations.map(item => {
......@@ -20,10 +20,10 @@ export default {
}
},
update: {
action: '/v1.0/application-materials/1005/put',
action: '/api/enrollment/v1.0/application-materials/1005/put',
beforeRequest(data) {
const educations = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return [
......
......@@ -7,9 +7,9 @@ export default {
title: '个人信息',
required: true,
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { basic_info = {}, attachments = [] } = data.data.material
const { basic_info: basicInfo = {}, attachments = [] } = data.data.material
const attachment = attachments.reduce(
(result, item) => {
const types = ['ID_CARD_FRONT', 'ID_CARD_BACK', 'HK_ID_CARD', 'PASSPORT', 'OTHER_ID_CARD_PHOTO']
......@@ -22,17 +22,17 @@ export default {
},
{ ID_CARD_FRONT: [], ID_CARD_BACK: [], HK_ID_CARD: [], PASSPORT: [], OTHER_ID_CARD_PHOTO: [] }
)
return Object.assign({}, basic_info, attachment)
return Object.assign({}, { basic_info: basicInfo }, attachment)
}
},
update: {
action: '/v1.0/application-materials/1005/put',
action: '/api/enrollment/v1.0/application-materials/1005/put',
beforeRequest(data) {
const basic_info = ['phone_number', 'email', 'id_type'].reduce((result, key) => {
const basicInfo = ['phone_number', 'email', 'id_type'].reduce((result, key) => {
result[key] = data[key]
return result
}, {})
return { basic_info }
return { basic_info: basicInfo }
}
},
form: {
......@@ -69,8 +69,8 @@ export default {
label: '身份证照片(正面)',
model: 'ID_CARD_FRONT',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'ID_CARD_FRONT' },
limit: 1
},
......@@ -85,8 +85,8 @@ export default {
label: '身份证照片(背面)',
model: 'ID_CARD_BACK',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'ID_CARD_BACK' },
limit: 1
},
......@@ -101,8 +101,8 @@ export default {
label: '港澳台身份证',
model: 'HK_ID_CARD',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'HK_ID_CARD' },
limit: 1
},
......@@ -117,8 +117,8 @@ export default {
label: '护照',
model: 'PASSPORT',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'PASSPORT' },
limit: 1
},
......@@ -133,8 +133,8 @@ export default {
label: '其他证件',
model: 'OTHER_ID_CARD_PHOTO',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'OTHER_ID_CARD_PHOTO' },
limit: 1
},
......
......@@ -6,14 +6,14 @@ export default {
id: 'application_info_honor',
title: '荣誉奖励',
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { honors = [] } = data.data.material
return honors
}
},
update: {
action: '/v1.0/application-materials/1005/put',
action: '/api/enrollment/v1.0/application-materials/1005/put',
beforeRequest(data) {
const honors = data.map(item => {
return ['time', 'title', 'institution_cn'].reduce((result, key) => {
......
......@@ -7,9 +7,9 @@ export default {
title: '个人信息',
required: true,
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { basic_info = {}, attachments = [] } = data.data.material
const { basic_info: basicInfo = {}, attachments = [] } = data.data.material
const attachment = attachments.reduce(
(result, item) => {
const types = ['ID_CARD_FRONT', 'ID_CARD_BACK', 'HK_ID_CARD', 'PASSPORT', 'OTHER_ID_CARD_PHOTO']
......@@ -22,16 +22,16 @@ export default {
},
{ ID_CARD_FRONT: [], ID_CARD_BACK: [], HK_ID_CARD: [], PASSPORT: [], OTHER_ID_CARD_PHOTO: [] }
)
return Object.assign({}, basic_info, attachment)
return Object.assign({}, basicInfo, attachment)
}
},
update: {
action: '/v1.0/application-materials/1005/put',
action: '/api/enrollment/v1.0/application-materials/1005/put',
beforeRequest(data) {
// let [province, city] = data.city.split('-')
// data.address_province = province
// data.address_city = city
const basic_info = [
const basicInfo = [
'phone_number',
'email',
'id_type',
......@@ -50,7 +50,7 @@ export default {
result[key] = data[key]
return result
}, {})
return { basic_info }
return { basic_info: basicInfo }
}
},
form: {
......@@ -87,8 +87,8 @@ export default {
label: '身份证照片(正面)',
model: 'ID_CARD_FRONT',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'ID_CARD_FRONT' },
limit: 1
},
......@@ -103,8 +103,8 @@ export default {
label: '身份证照片(背面)',
model: 'ID_CARD_BACK',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'ID_CARD_BACK' },
limit: 1
},
......@@ -119,8 +119,8 @@ export default {
label: '港澳台身份证',
model: 'HK_ID_CARD',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'HK_ID_CARD' },
limit: 1
},
......@@ -135,8 +135,8 @@ export default {
label: '护照',
model: 'PASSPORT',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'PASSPORT' },
limit: 1
},
......@@ -151,8 +151,8 @@ export default {
label: '其他证件',
model: 'OTHER_ID_CARD_PHOTO',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'OTHER_ID_CARD_PHOTO' },
limit: 1
},
......
......@@ -6,7 +6,7 @@ export default {
id: 'application_info_training',
title: '所受培训',
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { trainings = [] } = data.data.material
return trainings.map(item => {
......@@ -19,10 +19,10 @@ export default {
}
},
update: {
action: '/v1.0/application-materials/1005/put',
action: '/api/enrollment/v1.0/application-materials/1005/put',
beforeRequest(data) {
const trainings = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return ['start_date', 'end_date', 'institution_cn', 'course_cn'].reduce((result, key) => {
......
......@@ -7,16 +7,16 @@ export default {
title: '推荐信',
required: true,
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { reco_letters = [] } = data.data.material
return reco_letters
const { reco_letters: recoLetters = [] } = data.data.material
return recoLetters
}
},
update: {
action: '/v1.0/application-materials/1005/put',
action: '/api/enrollment/v1.0/application-materials/1005/put',
beforeRequest(data) {
const reco_letters = data.map(item => {
const recoLetters = data.map(item => {
return ['provider_name', 'provider_phone_number', 'provider_email', 'provider_relationship'].reduce(
(result, key) => {
result[key] = item[key]
......@@ -25,7 +25,7 @@ export default {
{}
)
})
return { reco_letters }
return { reco_letters: recoLetters }
}
},
form: {
......
......@@ -2,7 +2,7 @@ export default {
id: 'application_wfzzm',
title: '无犯罪证明',
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { attachments = [] } = data.data.material
const NO_CRIMINAL_CERT = attachments.filter(item => {
......@@ -20,8 +20,8 @@ export default {
required: true,
model: 'NO_CRIMINAL_CERT',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'NO_CRIMINAL_CERT' }
},
prepend: `
......
......@@ -2,7 +2,7 @@ export default {
id: 'interview_byz',
title: '学位证书',
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { attachments = [] } = data.data.material
const DEGREE_CERT_CN = attachments.filter(item => {
......@@ -20,8 +20,8 @@ export default {
required: true,
model: 'DEGREE_CERT_CN',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'DEGREE_CERT_CN' }
},
append: '注意事项:需要将证书原件扫描或拍照后提交,请确保证书内容清晰可辨。'
......
......@@ -2,7 +2,7 @@ export default {
id: 'interview_cjd',
title: '成绩单(中+英)',
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { attachments = [] } = data.data.material
return attachments.reduce(
......@@ -33,8 +33,8 @@ export default {
required: true,
model: 'REPORT_CARD_CN',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'REPORT_CARD_CN' }
}
},
......@@ -44,8 +44,8 @@ export default {
required: true,
model: 'REPORT_CARD_EN',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'REPORT_CARD_EN' }
}
}
......
......@@ -2,7 +2,7 @@ export default {
id: 'interview_zp',
title: '2寸照片',
get: {
action: '/v1.0/application-materials/1005',
action: '/api/enrollment/v1.0/application-materials/1005',
callback(data) {
const { attachments = [] } = data.data.material
const PERSONAL_PHOTO_FOR_ID = attachments.filter(item => {
......@@ -20,8 +20,8 @@ export default {
required: true,
model: 'PERSONAL_PHOTO_FOR_ID',
attrs: {
action: '/v1.0/application-materials/attachments/1005/put',
deleteAction: '/v1.0/application-materials/attachments/1005/delete',
action: '/api/enrollment/v1.0/application-materials/attachments/1005/put',
deleteAction: '/api/enrollment/v1.0/application-materials/attachments/1005/delete',
data: { file_type: 'PERSONAL_PHOTO_FOR_ID' }
},
prepend: '2寸照片:以电子版的形式上传文件',
......
......@@ -20,7 +20,7 @@ export default {
data: { project_id: 1001 },
beforeRequest(data) {
const records = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return [
......@@ -119,9 +119,7 @@ export default {
],
label: '行业类别',
model: 'industry',
rules: [
{ required: true, message: '请选择行业类别', trigger: 'change' }
]
rules: [{ required: true, message: '请选择行业类别', trigger: 'change' }]
},
{
type: 'input-form',
......@@ -150,9 +148,7 @@ export default {
],
label: '职位类型',
model: 'job_type',
rules: [
{ required: true, message: '请选择职位类型', trigger: 'change' }
]
rules: [{ required: true, message: '请选择职位类型', trigger: 'change' }]
},
{
type: 'input-form',
......@@ -182,14 +178,11 @@ export default {
model: 'company_profile',
attrs: {
type: 'textarea',
placeholder:
'300字左右,包括所属行业在业内的位置,经营时间,业务规模,发展前景等信息',
placeholder: '300字左右,包括所属行业在业内的位置,经营时间,业务规模,发展前景等信息',
rows: '4'
},
placeholder: '请输入公司(单位)简介',
rules: [
{ required: true, message: '请输入公司(单位)简介', trigger: 'blur' }
]
rules: [{ required: true, message: '请输入公司(单位)简介', trigger: 'blur' }]
}
]
}
......
......@@ -20,7 +20,7 @@ export default {
data: { project_id: 1001 },
beforeRequest(data) {
const records = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return [
......@@ -68,17 +68,13 @@ export default {
type: 'input-form',
label: '学校所在国家',
model: 'school_country',
rules: [
{ required: true, message: '请输入学校所在国家', trigger: 'blur' }
]
rules: [{ required: true, message: '请输入学校所在国家', trigger: 'blur' }]
},
{
type: 'input-form',
label: '学校所在城市',
model: 'school_city',
rules: [
{ required: true, message: '请输入学校所在城市', trigger: 'blur' }
]
rules: [{ required: true, message: '请输入学校所在城市', trigger: 'blur' }]
},
{
type: 'input-form',
......@@ -101,9 +97,7 @@ export default {
],
label: '学历/学位',
model: 'degree',
rules: [
{ required: true, message: '请选择学历/学位', trigger: 'change' }
]
rules: [{ required: true, message: '请选择学历/学位', trigger: 'change' }]
}
]
}
......
......@@ -20,16 +20,13 @@ export default {
data: { project_id: 1001 },
beforeRequest(data) {
const records = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return ['start_date', 'end_date', 'institute_cn', 'course_cn'].reduce(
(result, key) => {
return ['start_date', 'end_date', 'institute_cn', 'course_cn'].reduce((result, key) => {
result[key] = item[key]
return result
},
{}
)
}, {})
})
return { records }
}
......
......@@ -20,7 +20,7 @@ export default {
data: { project_id: 1000 },
beforeRequest(data) {
const records = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return [
......@@ -124,9 +124,7 @@ export default {
{ label: '学术/科研,农/林/牧/渔跨领域经营', value: 45 },
{ label: '其他', value: 90 }
],
rules: [
{ required: true, message: '请选择行业类别', trigger: 'change' }
]
rules: [{ required: true, message: '请选择行业类别', trigger: 'change' }]
},
/* 工作部门 */
{
......
......@@ -20,16 +20,10 @@ export default {
data: { project_id: 1000 },
beforeRequest(data) {
const records = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return [
'start_date',
'end_date',
'school_name_cn',
'major_cn',
'degree'
].reduce((result, key) => {
return ['start_date', 'end_date', 'school_name_cn', 'major_cn', 'degree'].reduce((result, key) => {
result[key] = item[key]
return result
}, {})
......@@ -92,9 +86,7 @@ export default {
{ label: '研究生/博士', value: 7 },
{ label: '其他', value: 9 }
],
rules: [
{ required: true, message: '请选择学历/学位', trigger: 'change' }
]
rules: [{ required: true, message: '请选择学历/学位', trigger: 'change' }]
}
]
}
......
......@@ -20,16 +20,13 @@ export default {
data: { project_id: 1000 },
beforeRequest(data) {
const records = data.map(item => {
let [startDate, endDate] = item.dates
const [startDate, endDate] = item.dates
item.start_date = startDate
item.end_date = endDate
return ['start_date', 'end_date', 'institute_cn', 'course_cn'].reduce(
(result, key) => {
return ['start_date', 'end_date', 'institute_cn', 'course_cn'].reduce((result, key) => {
result[key] = item[key]
return result
},
{}
)
}, {})
})
return { records }
}
......
{
"name": "@ezijing/vue-form",
"version": "0.1.16",
"version": "0.2.1",
"private": false,
"description": "基于Vue Element-UI的表单",
"scripts": {
......
......@@ -10,8 +10,10 @@
</template>
<template v-else>
<v-card v-bind="page" v-on="$listeners">
<slot name="content">
<div class="v-layout-html" v-html="page.html" v-if="page.html"></div>
<v-form-pane v-bind="page" v-on="$listeners" v-if="page.form"></v-form-pane>
</slot>
</v-card>
</template>
</slot>
......
......@@ -37,7 +37,7 @@ httpRequest.interceptors.request.use(
httpRequest.interceptors.response.use(
function(response) {
const { data } = response
if (data.error === '1') {
if (data.error.toString() === '1') {
return Promise.reject(data)
}
return response.data
......
......@@ -13,6 +13,16 @@ module.exports = {
key: fs.readFileSync(path.join(__dirname, './cert/dev.ezijing.com.key')),
cert: fs.readFileSync(path.join(__dirname, './cert/dev.ezijing.com.pem'))
},
proxy: 'http://enrollment-test.c3f0f1f4826b94e23a2c355a9dac8a299.cn-beijing.alicontainer.com'
proxy: {
'/api/enrollment': {
target: 'http://enrollment-test.c3f0f1f4826b94e23a2c355a9dac8a299.cn-beijing.alicontainer.com',
ws: true,
changeOrigin: true,
pathRewrite: {
'/api/enrollment': '/'
}
}
}
// proxy: 'http://enrollment-test.c3f0f1f4826b94e23a2c355a9dac8a299.cn-beijing.alicontainer.com'
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论