审阅合并代码,修复盘点专业数据等一些小问题
parent
b50a1323f9
commit
6adb649eca
|
@ -35,17 +35,10 @@ const actions = {
|
||||||
commit('SET_TOKEN', response.token)
|
commit('SET_TOKEN', response.token)
|
||||||
commit('SET_ID_CARD', username)
|
commit('SET_ID_CARD', username)
|
||||||
// 解码jwt 获得role
|
// 解码jwt 获得role
|
||||||
<<<<<<< HEAD
|
|
||||||
// let payload = response.token.split('.')[1]
|
|
||||||
// let data = JSON.parse(decodeURIComponent(escape(window.atob(payload))));
|
|
||||||
// let role = data.role
|
|
||||||
// commit('SET_ROLE', role)
|
|
||||||
=======
|
|
||||||
let payload = response.token.split('.')[1]
|
let payload = response.token.split('.')[1]
|
||||||
let data = JSON.parse(decodeURIComponent(escape(window.atob(payload))));
|
let data = JSON.parse(decodeURIComponent(escape(window.atob(payload))));
|
||||||
let role = data.role
|
let role = data.role
|
||||||
commit('SET_ROLE', role)
|
commit('SET_ROLE', role)
|
||||||
>>>>>>> a025baf3ccfea2fef8bc69b80776e0c33d2153a5
|
|
||||||
// 存储到本地 关闭页面后,自动登录的功能还在考虑
|
// 存储到本地 关闭页面后,自动登录的功能还在考虑
|
||||||
// if (response.code == 0) {
|
// if (response.code == 0) {
|
||||||
// sessionStorage['zssr_token'] = response.token;
|
// sessionStorage['zssr_token'] = response.token;
|
||||||
|
|
|
@ -76,22 +76,23 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table> -->
|
</el-table> -->
|
||||||
<el-row>
|
<el-row>
|
||||||
<p v-for="(item,index) in chosen_row[0].content">{{index+1}}.{{item}}</p>
|
<p v-for="(item, index) in chosen_row[0].content" :key="index">{{index+1}}.{{item}}</p>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row
|
<el-row
|
||||||
v-for="(row, row_index) in current_matrix_obj"
|
v-for="(row, row_index) in current_matrix_obj"
|
||||||
|
:key="row_index"
|
||||||
style="display: flex; justify-content: space-between"
|
style="display: flex; justify-content: space-between"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
v-for="(item, col_index) in current_matrix_obj[row_index].value"
|
v-for="(item, col_index) in current_matrix_obj[row_index].value"
|
||||||
|
:key="col_index"
|
||||||
v-model="current_matrix_obj[row_index].value[col_index].value"
|
v-model="current_matrix_obj[row_index].value[col_index].value"
|
||||||
type="number"
|
type="number"
|
||||||
oninput="if(value.length>1)value=value.slice(0,1)"
|
oninput="if(value.length>1)value=value.slice(0,1)"
|
||||||
style="width:45px"
|
style="width:45px"
|
||||||
:disabled="col_index===row_index?true:false"
|
:disabled="col_index===row_index?true:false"
|
||||||
@input="input_change(event,row_index,col_index)"
|
@input="input_change(event,row_index,col_index)"
|
||||||
></input>
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-button style="float:right" @click="postMatrix">提交</el-button>
|
<el-button style="float:right" @click="postMatrix">提交</el-button>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
|
@ -376,6 +376,7 @@ export default {
|
||||||
console.log("err", err);
|
console.log("err", err);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
industryExperience() {
|
industryExperience() {
|
||||||
|
|
|
@ -602,7 +602,6 @@ export default {
|
||||||
fullSchoolData: {},
|
fullSchoolData: {},
|
||||||
workSchoolData: {},
|
workSchoolData: {},
|
||||||
schoolCategory: ["211", "985"],
|
schoolCategory: ["211", "985"],
|
||||||
majorData: [],
|
|
||||||
fullMajorData: [],
|
fullMajorData: [],
|
||||||
workMajorData: [],
|
workMajorData: [],
|
||||||
|
|
||||||
|
@ -1054,25 +1053,22 @@ export default {
|
||||||
tempArr.push(workSchoolData["级别"][key]);
|
tempArr.push(workSchoolData["级别"][key]);
|
||||||
}
|
}
|
||||||
this.workSchoolData["级别"] = tempArr;
|
this.workSchoolData["级别"] = tempArr;
|
||||||
|
|
||||||
//专业
|
//专业
|
||||||
|
// 全日制专业
|
||||||
tempArr = [];
|
tempArr = [];
|
||||||
tempObj = { 类别: "全日制" };
|
let fullMajorData = resData['全日制专业']
|
||||||
Object.assign(tempObj, resData["全日制专业"]);
|
for (let major in fullMajorData) {
|
||||||
tempArr.push(tempObj);
|
tempArr.push({name: major, value: fullMajorData[major]})
|
||||||
tempObj = { 类别: "在职" };
|
|
||||||
Object.assign(tempObj, resData["在职专业"]);
|
|
||||||
tempArr.push(tempObj);
|
|
||||||
this.majorData = tempArr;
|
|
||||||
tempArr = [];
|
|
||||||
tempArr2 = [];
|
|
||||||
for (let major in this.majorData[0]) {
|
|
||||||
tempArr.push({ name: major, value: this.majorData[0][major] });
|
|
||||||
}
|
}
|
||||||
this.fullMajorData = tempArr;
|
this.fullMajorData = tempArr;
|
||||||
for (let major in this.majorData[1]) {
|
// 在职专业
|
||||||
tempArr2.push({ name: major, value: this.majorData[1][major] });
|
tempArr = []
|
||||||
this.workMajorData = tempArr2;
|
let workMajorData = resData['在职专业']
|
||||||
|
for (let major in workMajorData) {
|
||||||
|
tempArr.push({name: major, value: workMajorData[major]})
|
||||||
}
|
}
|
||||||
|
this.workMajorData = tempArr;
|
||||||
},
|
},
|
||||||
(err) => {
|
(err) => {
|
||||||
console.log("err", err);
|
console.log("err", err);
|
||||||
|
@ -1907,30 +1903,10 @@ export default {
|
||||||
},
|
},
|
||||||
showFullMajorPie() {
|
showFullMajorPie() {
|
||||||
let option = {
|
let option = {
|
||||||
grid: [
|
|
||||||
{
|
|
||||||
x: "70%",
|
|
||||||
y: "20%",
|
|
||||||
width: "30%",
|
|
||||||
height: "60%",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
xAxis: [
|
|
||||||
{
|
|
||||||
gridIndex: 0,
|
|
||||||
type: "category",
|
|
||||||
data: this.majorCategory,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
yAxis: [
|
|
||||||
{
|
|
||||||
gridIndex: 0,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
title: [
|
title: [
|
||||||
{
|
{
|
||||||
text: "全日制教育专业分布饼图",
|
text: "全日制教育专业分布饼图",
|
||||||
x: "20%",
|
x: "center",
|
||||||
y: "3%",
|
y: "3%",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -1942,8 +1918,8 @@ export default {
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
type: "pie",
|
type: "pie",
|
||||||
radius: "50%",
|
// radius: "50%",
|
||||||
center: ["30%", "50%"],
|
// center: ["30%", "50%"],
|
||||||
data: this.fullMajorData,
|
data: this.fullMajorData,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -1952,30 +1928,10 @@ export default {
|
||||||
},
|
},
|
||||||
showWorkMajorPie() {
|
showWorkMajorPie() {
|
||||||
let option = {
|
let option = {
|
||||||
grid: [
|
|
||||||
{
|
|
||||||
x: "70%",
|
|
||||||
y: "20%",
|
|
||||||
width: "30%",
|
|
||||||
height: "60%",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
xAxis: [
|
|
||||||
{
|
|
||||||
gridIndex: 0,
|
|
||||||
type: "category",
|
|
||||||
data: this.majorCategory,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
yAxis: [
|
|
||||||
{
|
|
||||||
gridIndex: 0,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
title: [
|
title: [
|
||||||
{
|
{
|
||||||
text: "在职教育专业分布饼图",
|
text: "在职教育专业分布饼图",
|
||||||
x: "20%",
|
x: "center",
|
||||||
y: "3%",
|
y: "3%",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -1987,8 +1943,8 @@ export default {
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
type: "pie",
|
type: "pie",
|
||||||
radius: "50%",
|
// radius: "50%",
|
||||||
center: ["30%", "50%"],
|
// center: ["30%", "50%"],
|
||||||
data: this.workMajorData,
|
data: this.workMajorData,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -1999,12 +1955,6 @@ export default {
|
||||||
if (tab.label == "在职") {
|
if (tab.label == "在职") {
|
||||||
setTimeout(this.showWorkMajorPie, 10);
|
setTimeout(this.showWorkMajorPie, 10);
|
||||||
}
|
}
|
||||||
console.log(this.majorData);
|
|
||||||
console.log(this.degreeData);
|
|
||||||
personApi.getReviewEducation().then((res) => {
|
|
||||||
console.log(res.data);
|
|
||||||
});
|
|
||||||
console.log(this.fullEduData);
|
|
||||||
},
|
},
|
||||||
showFullCheckBar() {
|
showFullCheckBar() {
|
||||||
let option = {
|
let option = {
|
||||||
|
|
|
@ -38,17 +38,9 @@ module.exports = {
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
'/': {
|
'/': {
|
||||||
// target: 'http://127.0.0.1:4523/m1/1256020-0-default/',
|
|
||||||
<<<<<<< HEAD
|
|
||||||
// target: 'http://127.0.0.1:8000',
|
|
||||||
// target: 'http://192.168.31.102:8000',
|
|
||||||
// target: 'http://222.20.95.239:8000',
|
|
||||||
target: 'http://127.0.0.1:4523/m1/1256020-0-default',
|
|
||||||
// target: 'http://127.0.0.1:8123',
|
|
||||||
=======
|
|
||||||
// target: 'http://222.20.95.239:8000',
|
// target: 'http://222.20.95.239:8000',
|
||||||
|
// target: 'http://127.0.0.1:4523/m1/1256020-0-default',
|
||||||
target: 'http://127.0.0.1:8123',
|
target: 'http://127.0.0.1:8123',
|
||||||
>>>>>>> a025baf3ccfea2fef8bc69b80776e0c33d2153a5
|
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue