Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service
This commit is contained in:
12
packageCa/apiCa/job.js
Normal file
12
packageCa/apiCa/job.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import request from '@/packageCa/utilCa/request.js'
|
||||
|
||||
const api = {}
|
||||
// 获取职业大类 中类
|
||||
api.queryJobDictionaryListByParentCode = (code) => request.globalRequest(`/Job/QueryJobDictionaryListByParentCode?code=${code}`,'GET', {}, 1)
|
||||
// 搜索
|
||||
api.queryJobListByParentCode = (name,code) => request.globalRequest(`/Job/QueryJobListByParentCode?name=${name}&code=${code}`,'GET', {}, 1)
|
||||
// 职业详情
|
||||
api.queryJobDetailById = (id) => request.globalRequest(`/Job/QueryCeremonyDetail?id=${id}`,'GET', {}, 2)
|
||||
|
||||
export default api
|
||||
|
||||
34
packageCa/apiCa/studentProfile.js
Normal file
34
packageCa/apiCa/studentProfile.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/packageCa/utilCa/request.js'
|
||||
|
||||
const api = {}
|
||||
// 获取生涯罗盘
|
||||
api.getCareerCompassList = (name) => request.globalRequest(`/GXCareerPlan/GetGXWechatCoursePlanList`,'GET', {})
|
||||
// 保存生涯罗盘--职业方向
|
||||
api.saveGXCareerPlan = (jobId) => request.globalRequest(`/GXCareerPlan/SaveGXCareerPlan?jobId=${jobId}`,'POST', {})
|
||||
// 生涯罗盘--获取职业规划
|
||||
api.getGXCareerPlanList = (keyword,page,ps) => request.globalRequest(`/GXCareerPlan/GetGXCareerPlanList?keyword=${keyword}&page=${page}&ps=${ps}`,'GET', {})
|
||||
|
||||
// smart目标制定:获取学习目标
|
||||
api.querySmartTargets = () => request.globalRequest(`/GXStudent/QuerySmartTargets`,'GET', {})
|
||||
// smart目标制定:获取单个目标
|
||||
api.querySmartInfo = (encodeId) => request.globalRequest(`/GXStudent/QuerySmartInfo?encodeId=${encodeId}`,'GET', {})
|
||||
// smart目标制定:保存smart目标
|
||||
api.saveSmartTarget = (data) => request.globalRequest(`/GXStudent/SaveSmartTargetNew`,'POST', data)
|
||||
// smart目标制定:删除Smart目标
|
||||
api.deleteSmartTarg = (encodeId) => request.globalRequest(`/GXStudent/DeleteSmartTarg?encodeId=${encodeId}`,'POST', {})
|
||||
// smart目标制定:获取年度计划
|
||||
api.queryPlanList = (encodeId) => request.globalRequest(`/GXStudent/QueryPlanList?encodeId=${encodeId}`,'GET', {})
|
||||
// smart目标制定:保存年度计划
|
||||
api.savePlanList = (data) => request.globalRequest(`/GXStudent/SavePlanListNew`,'POST', data)
|
||||
|
||||
// 获取生涯档案(高校
|
||||
api.getGXWechatStudentProfile = () => request.globalRequest(`/GXStudentProfile/GetGXStudentProfile`,'GET', {})
|
||||
|
||||
//获取职业路径职业列表
|
||||
api.queryCareerPath = () => request.globalRequest(`/GXStudent/QueryCareerPath`,'POST', {})
|
||||
// 获取职业详情,参数encodeId 加密id
|
||||
api.queryPathInfo = (encodeId) => request.globalRequest(`/GXStudent/QueryPathInfo?encodeId=${encodeId}`,'POST', {})
|
||||
|
||||
|
||||
export default api
|
||||
|
||||
54
packageCa/apiCa/testManage.js
Normal file
54
packageCa/apiCa/testManage.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/packageCa/utilCa/request.js'
|
||||
|
||||
const api = {}
|
||||
|
||||
// 测评列表
|
||||
api.queryTaskListForWeChart = () => request.globalRequest(`/TestRecordProcess/GetTestTypeList`,'GET', {})
|
||||
// 获取测评题目
|
||||
api.queryTestContent = (type) => request.globalRequest(`/TestManage/QueryTestContent?type=${type}`,'GET', {})
|
||||
|
||||
// 保存工作价值
|
||||
api.saveWorkValuesResult = (data) => request.globalRequest(`/TestManagenew/SaveWorkValuesResultNew`,'POST', data)
|
||||
// 保存人格测评
|
||||
api.saveCharacterTestResult = (data) => request.globalRequest(`/TestManagenew/SavePersonTestNew`,'POST', data)
|
||||
// 保存兴趣测评
|
||||
api.saveInterestTestResult = (data) => request.globalRequest(`/TestManagenew/SaveInterestTestNew`,'POST', data)
|
||||
//保存测评结果(通用能力,多元能力,领导力)
|
||||
api.saveCustomTestResult = (data) => request.globalRequest(`/TestManagenew/SaveCustomTestResultNew`,'POST', data)
|
||||
|
||||
// 获取兴趣测评结果
|
||||
api.queryInterestTestResult = (year,term,recordId) => request.globalRequest(`/TestManage/QueryInterestTestResult?year=${year}&term=${term}&recordId=${recordId}`,'GET', {})
|
||||
// 获取工作价值结果
|
||||
api.workValuesResult = (year,term,recordId) => request.globalRequest(`/TestManage/QueryWorkValuesResult?year=${year}&term=${term}&recordId=${recordId}`,'GET', {})
|
||||
// 获取人格测评结果
|
||||
api.personalityTestResult = (year,term,recordId) => request.globalRequest(`/TestManage/QueryPersonalityTestResult?year=${year}&term=${term}&recordId=${recordId}`,'GET', {})
|
||||
// 获取测评结果(通用能力,多元能力,领导力)
|
||||
api.queryCustomTestResult = (testType,year,term,recordId) => request.globalRequest(`/TestManage/QueryCustomTestResult?type=${testType}&year=${year}&term=${term}&recordId=${recordId}`,'GET', {})
|
||||
|
||||
//小程序获取时间维度接口(所有生涯测评)
|
||||
api.getCareerYearAndTermList = (testType) => request.globalRequest(`/TestManage/GetCareerYearAndTermList?testType=${testType}`,'GET', {})
|
||||
|
||||
//兴趣测评对比数据
|
||||
api.getInterestTestGroupResult = (year,term,schoolId,gradeId,classId,sex,departId,userId,recordId) => request.globalRequest(`/TestManage/GetInterestTestGroupResult?year=${year}&term=${term}&schoolId=${schoolId}&gradeid=${gradeId}&classid=${classId}&sex=${sex}&departId=${departId}&userId=${userId}&recordId=${recordId}`,'GET', {})
|
||||
//人格测评对比数据
|
||||
api.getPersonTestGroupResult = (year,term,schoolId,gradeId,classId,sex,departId,userId,recordId) => request.globalRequest(`/TestManage/GetPersonTestGroupResult?year=${year}&term=${term}&schoolId=${schoolId}&gradeid=${gradeId}&classid=${classId}&sex=${sex}&departId=${departId}&userId=${userId}&recordId=${recordId}`,'GET', {})
|
||||
//工作价值观测评对比数据
|
||||
api.getWorkValuesTestGroupResult = (year,term,schoolId,gradeId,classId,sex,departId,userId,recordId) => request.globalRequest(`/TestManage/GetWorkValuesTestGroupResult?year=${year}&term=${term}&schoolId=${schoolId}&gradeid=${gradeId}&classid=${classId}&sex=${sex}&departId=${departId}&userId=${userId}&recordId=${recordId}`,'GET', {})
|
||||
|
||||
//多元能力测评对比数据
|
||||
api.getMultipleAbilityGroupResult = (year,term,schoolId,gradeId,classId,sex,departId,userId,recordId) => request.globalRequest(`/TestManage/GetMultipleAbilityGroupResult?year=${year}&term=${term}&schoolId=${schoolId}&gradeid=${gradeId}&classid=${classId}&sex=${sex}&departId=${departId}&userId=${userId}&recordId=${recordId}`,'GET', {})
|
||||
|
||||
//通用职业能力测评对比数据
|
||||
api.getBeCurrentJobGroupResult = (year,term,schoolId,gradeId,classId,sex,departId,userId,recordId) => request.globalRequest(`/TestManage/GetBeCurrentJobGroupResult?year=${year}&term=${term}&schoolId=${schoolId}&gradeid=${gradeId}&classid=${classId}&sex=${sex}&departId=${departId}&userId=${userId}&recordId=${recordId}`,'GET', {})
|
||||
//获取测评分类标签
|
||||
api.getTestTypeTagLIst = () => request.globalRequest(`/TestRecordProcess/GetTestTypeList`,'GET', {})
|
||||
|
||||
//获取测评报告日期列表
|
||||
api.getCareerYearAndTermListNew = (testType,userId) => request.globalRequest(`/TestManage/GetCareerYearAndTermListNew?testType=${testType}&userId=${userId}`,'GET', {})
|
||||
|
||||
// 保存测评答题过程记录
|
||||
api.saveTestRecordProcess = (data) => request.globalRequest(`/TestRecordProcess/SaveTestRecordProcess`,'POST', data)
|
||||
|
||||
|
||||
export default api
|
||||
|
||||
16
packageCa/apiCa/user.js
Normal file
16
packageCa/apiCa/user.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import request from '@/packageCa/utilCa/request.js'
|
||||
|
||||
const api = {}
|
||||
|
||||
//根据openId,获取token,并判断用户是否已绑定账号
|
||||
api.queryKaShiToken = (userId,name) => request.globalRequest(`/Home/QueryKaShiToken?userId=${userId}&name=${name}&schoolId=2371`,'GET', {})
|
||||
// 获取ai面试路径
|
||||
api.queryAIUrl = (userId,name) => request.globalRequest(`/Home/QueryAIUrl?userId=${userId}&name=${name}&schoolId=2371`,'GET', {})
|
||||
|
||||
// 获取个人档案
|
||||
api.queryStudentProfile = () => request.globalRequest(`/StudentResource/QueryStudentProfile`,'GET', {})
|
||||
|
||||
|
||||
export default api
|
||||
|
||||
|
||||
@@ -81,8 +81,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/job.js"
|
||||
import api1 from "@/apiCa/user.js"
|
||||
import api from "@/packageCa/apiCa/job.js"
|
||||
import api1 from "@/packageCa/apiCa/user.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/job.js"
|
||||
import api from "@/packageCa/apiCa/job.js"
|
||||
import jobList from "@/packageCa/job/jobList.json";
|
||||
export default {
|
||||
data() {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/job.js"
|
||||
import api from "@/packageCa/apiCa/job.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/job.js"
|
||||
import api from "@/packageCa/apiCa/job.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/testManage.js"
|
||||
import api from "@/packageCa/apiCa/testManage.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import api from "@/apiCa/testManage.js"
|
||||
import api from "@/packageCa/apiCa/testManage.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/testManage.js"
|
||||
import api from "@/packageCa/apiCa/testManage.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/testManage.js"
|
||||
import api from "@/packageCa/apiCa/testManage.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/testManage.js"
|
||||
import api from "@/packageCa/apiCa/testManage.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/user.js"
|
||||
import api from "@/packageCa/apiCa/user.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/user.js"
|
||||
import api from "@/packageCa/apiCa/user.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/testManage.js";
|
||||
import api from "@/packageCa/apiCa/testManage.js";
|
||||
export default {
|
||||
props: {
|
||||
testType: {
|
||||
|
||||
@@ -73,9 +73,9 @@
|
||||
<script>
|
||||
import testHead from "@/packageCa/testReport/components/testHead.vue"
|
||||
import contrastBox from "@/packageCa/testReport/components/contrastBox.vue"
|
||||
import api from "@/apiCa/testManage.js";
|
||||
import api from "@/packageCa/apiCa/testManage.js";
|
||||
import theme from '@/uni_modules/lime-echart/static/walden.json';
|
||||
const echarts = require('../../uni_modules/lime-echart/static/echarts.min.js');
|
||||
const echarts = require('../../utilCa/echarts.min.js');
|
||||
// import * as echarts from '@/uni_modules/lime-echart/static/echarts.min';
|
||||
// // 注册主题
|
||||
// echarts.registerTheme('theme', theme);
|
||||
|
||||
@@ -243,9 +243,9 @@
|
||||
<script>
|
||||
import testHead from "@/packageCa/testReport/components/testHead.vue"
|
||||
import contrastBox from "@/packageCa/testReport/components/contrastBox.vue"
|
||||
import api from "@/apiCa/testManage.js";
|
||||
import api from "@/packageCa/apiCa/testManage.js";
|
||||
import theme from '@/uni_modules/lime-echart/static/walden.json';
|
||||
const echarts = require('../../uni_modules/lime-echart/static/echarts.min.js');
|
||||
const echarts = require('../../utilCa/echarts.min.js');
|
||||
// import * as echarts from '@/uni_modules/lime-echart/static/echarts.min';
|
||||
// // 注册主题
|
||||
// echarts.registerTheme('theme', theme);
|
||||
|
||||
@@ -112,10 +112,10 @@
|
||||
<script>
|
||||
import testHead from "@/packageCa/testReport/components/testHead.vue"
|
||||
import contrastBox from "@/packageCa/testReport/components/contrastBox.vue"
|
||||
import api from "@/apiCa/testManage.js"
|
||||
import api from "@/packageCa/apiCa/testManage.js"
|
||||
import wayData from "./multipleAbilityData.json";
|
||||
import theme from '@/uni_modules/lime-echart/static/walden.json';
|
||||
const echarts = require('../../uni_modules/lime-echart/static/echarts.min.js');
|
||||
const echarts = require('../../utilCa/echarts.min.js');
|
||||
// import * as echarts from '@/uni_modules/lime-echart/static/echarts.min';
|
||||
// // 注册主题
|
||||
// echarts.registerTheme('theme', theme);
|
||||
|
||||
@@ -400,9 +400,9 @@
|
||||
import testHead from "@/packageCa/testReport/components/testHead.vue"
|
||||
import contrastBox from "@/packageCa/testReport/components/contrastBox.vue"
|
||||
import opts from "./chartOpts.js"
|
||||
import api from "@/apiCa/testManage.js";
|
||||
import api from "@/packageCa/apiCa/testManage.js";
|
||||
import theme from '@/uni_modules/lime-echart/static/walden.json';
|
||||
const echarts = require('../../uni_modules/lime-echart/static/echarts.min.js');
|
||||
const echarts = require('../../utilCa/echarts.min.js');
|
||||
// import * as echarts from '@/uni_modules/lime-echart/static/echarts.min';
|
||||
// // 注册主题
|
||||
// echarts.registerTheme('theme', theme);
|
||||
|
||||
@@ -41,9 +41,9 @@
|
||||
<script>
|
||||
import testHead from "@/packageCa/testReport/components/testHead.vue"
|
||||
import contrastBox from "@/packageCa/testReport/components/contrastBox.vue"
|
||||
import api from "@/apiCa/testManage.js";
|
||||
import api from "@/packageCa/apiCa/testManage.js";
|
||||
import theme from '@/uni_modules/lime-echart/static/walden.json';
|
||||
const echarts = require('../../uni_modules/lime-echart/static/echarts.min.js');
|
||||
const echarts = require('../../utilCa/echarts.min.js');
|
||||
// import * as echarts from '@/uni_modules/lime-echart/static/echarts.min';
|
||||
// // 注册主题
|
||||
// echarts.registerTheme('theme', theme);
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/studentProfile.js"
|
||||
import api from "@/packageCa/apiCa/studentProfile.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/studentProfile.js"
|
||||
import api from "@/packageCa/apiCa/studentProfile.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -251,8 +251,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/user.js"
|
||||
import api1 from "@/apiCa/studentProfile.js"
|
||||
import api from "@/packageCa/apiCa/user.js"
|
||||
import api1 from "@/packageCa/apiCa/studentProfile.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/studentProfile.js"
|
||||
import api from "@/packageCa/apiCa/studentProfile.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from "@/apiCa/studentProfile.js"
|
||||
import api from "@/packageCa/apiCa/studentProfile.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
13
packageCa/utilCa/config.js
Normal file
13
packageCa/utilCa/config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
let baseUrl = ""
|
||||
// #ifdef MP-WEIXIN
|
||||
// 编译项目,因为使用插件lime-echart,echart文件过大,需要非压缩代码方式编译,不然会很慢,发布的时候才压缩代码方式编译
|
||||
if (wx.getAccountInfoSync().miniProgram.envVersion === 'develop') {
|
||||
baseUrl = 'https://localhost:7026' // 开发环境
|
||||
} else {
|
||||
baseUrl = 'https://yanxueapi.51xuanxiao.com' // 生产环境
|
||||
}
|
||||
// #endif
|
||||
|
||||
export {
|
||||
baseUrl
|
||||
}
|
||||
1
packageCa/utilCa/echarts.min.js
vendored
Normal file
1
packageCa/utilCa/echarts.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
20
packageCa/utilCa/imageUrl.js
Normal file
20
packageCa/utilCa/imageUrl.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// 公共图片基地址
|
||||
const BASE_IMAGE_URL = 'https://51xuanxiao.oss-cn-hangzhou.aliyuncs.com/Resource/xcx_sygh';
|
||||
|
||||
/**
|
||||
* 图片地址拼接方法
|
||||
* @param {string} path - 图片路径(相对于基地址的路径)
|
||||
* @param {string} [process] - OSS图片处理参数,例如:'image/resize,m_fixed,w_348/quality,q_80'
|
||||
* @returns {string} 完整的图片URL
|
||||
*/
|
||||
export function ossImageUrl(path, process) {
|
||||
|
||||
// 如果有处理参数,拼接处理参数
|
||||
if (process) {
|
||||
return `${BASE_IMAGE_URL}/${path}?x-oss-process=${process}`;
|
||||
}
|
||||
|
||||
// 没有处理参数时,直接返回原始路径
|
||||
return `${BASE_IMAGE_URL}/${path}`;
|
||||
}
|
||||
|
||||
48
packageCa/utilCa/request.js
Normal file
48
packageCa/utilCa/request.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import { baseUrl} from './config.js'
|
||||
|
||||
const request = {}
|
||||
const headers = {}
|
||||
|
||||
request.globalRequest = (url, method, data, power, type) => {
|
||||
// 权限判断 因为有的接口请求头可能需要添加的参数不一样,所以这里做了区分
|
||||
// 1 == 不通过access_token校验的接口
|
||||
// 2 == 文件下载接口列表
|
||||
const userInfo = uni.getStorageSync('CAuserInfo')
|
||||
headers['Token'] = userInfo.token
|
||||
return uni.request({
|
||||
timeout: 60000,
|
||||
url: baseUrl + url,
|
||||
method,
|
||||
data: data,
|
||||
dataType: 'json',
|
||||
header: headers
|
||||
}).then(res => {
|
||||
if (res.data.Result) {
|
||||
return res.data
|
||||
} else {
|
||||
throw res.data
|
||||
}
|
||||
}).catch(parmas => {
|
||||
switch (parmas.status) {
|
||||
case 401:
|
||||
uni.showToast({
|
||||
title: parmas.msg,
|
||||
icon: 'none',
|
||||
duration: 3500
|
||||
})
|
||||
uni.removeStorageSync("CAuserInfo");
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}, 2800)
|
||||
break
|
||||
default:
|
||||
console.error(parmas);
|
||||
return Promise.reject()
|
||||
break
|
||||
}
|
||||
})
|
||||
}
|
||||
export default request
|
||||
|
||||
Reference in New Issue
Block a user