|
@@ -55,10 +55,10 @@ const api = {
|
|
// stucorplist: `/adminapi${process.env.NODE_ENV === 'development' ? '' : ' / jobs'}/studentcorp`,
|
|
// stucorplist: `/adminapi${process.env.NODE_ENV === 'development' ? '' : ' / jobs'}/studentcorp`,
|
|
// stucorpupdate: `/adminapi${process.env.NODE_ENV === 'development' ? '' : ' / jobs'}/studentcorp`,
|
|
// stucorpupdate: `/adminapi${process.env.NODE_ENV === 'development' ? '' : ' / jobs'}/studentcorp`,
|
|
// stucorpdelete: `/adminapi${process.env.NODE_ENV === 'development' ? '' : ' / jobs'}/studentcorp/{id}`,
|
|
// stucorpdelete: `/adminapi${process.env.NODE_ENV === 'development' ? '' : ' / jobs'}/studentcorp/{id}`,
|
|
- stucorp: `/api/stud/studentcorp`,
|
|
|
|
- stucorpsearch: '/api/stud/studentcorp',
|
|
|
|
- stucorplist: '/api/stud/studentcorp',
|
|
|
|
- stucorpdelete: '/api/stud/studentcorp/{id}',
|
|
|
|
|
|
+ // stucorp: `/api/stud/studentcorp`,
|
|
|
|
+ stucorp: '/api/jobs/studentcorp',
|
|
|
|
+ stucorplist: '/api/jobs/studentcorp',
|
|
|
|
+ stucorpdelete: '/api/jobs/studentcorp/{id}',
|
|
//测试前缀${process.env.NODE_ENV === 'development' ? '/adminapi' : '${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}'}
|
|
//测试前缀${process.env.NODE_ENV === 'development' ? '/adminapi' : '${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}'}
|
|
//审核过的企业(主站用)
|
|
//审核过的企业(主站用)
|
|
getCorps: `/api/corp/corps/`,
|
|
getCorps: `/api/corp/corps/`,
|
|
@@ -369,7 +369,7 @@ export default new Vuex.Store({
|
|
}
|
|
}
|
|
if (type === 'search') {
|
|
if (type === 'search') {
|
|
let { id, studid, corpid } = data;
|
|
let { id, studid, corpid } = data;
|
|
- result = await this.$axios.$get(api.stucorpsearch, {}, { studid: studid, corpid: corpid });
|
|
|
|
|
|
+ result = await this.$axios.$get(api.stucorp, { id: id }, { studid: studid, corpid: corpid });
|
|
}
|
|
}
|
|
if (type === 'update') {
|
|
if (type === 'update') {
|
|
let { info, id } = data;
|
|
let { info, id } = data;
|