|
|
@@ -206,7 +206,11 @@
|
|
|
style="max-height: 680px; overflow: auto; margin: 20px 0px"
|
|
|
>
|
|
|
<el-form-item label="学校名称" prop="schoolName">
|
|
|
- <el-select v-model="poppleData2.schoolName" filterable placeholder="请选择">
|
|
|
+ <el-select
|
|
|
+ v-model="poppleData2.schoolName"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in schoolNameList"
|
|
|
:key="item.value"
|
|
|
@@ -288,7 +292,11 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="院系" prop="department">
|
|
|
- <el-select v-model="poppleData2.department" filterable placeholder="请选择">
|
|
|
+ <el-select
|
|
|
+ v-model="poppleData2.department"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in departmentList"
|
|
|
:key="item.value"
|
|
|
@@ -356,6 +364,7 @@ import pagination from "@/components/pagination";
|
|
|
import userInfo from "@/components/userInfoS";
|
|
|
import userStudyInfo from "@/components/userStudyInfo";
|
|
|
import VDistpicker from "v-distpicker";
|
|
|
+import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
components: {
|
|
|
searchBox,
|
|
|
@@ -531,6 +540,7 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
+ computed: { ...mapGetters(["UserDict"]) },
|
|
|
mounted() {
|
|
|
this.search();
|
|
|
this.getDictData();
|
|
|
@@ -601,31 +611,29 @@ export default {
|
|
|
let academicDegree = [];
|
|
|
let educationalSystem = [];
|
|
|
let departm = [];
|
|
|
- this.$store.state.UserDict.forEach((item, index) => {
|
|
|
- if (item.dictType == "marry_status") {
|
|
|
- marryArrays.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
- }
|
|
|
- if (item.dictType == "politic_status") {
|
|
|
- politicArrays.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
- }
|
|
|
- if (item.dictType == "full_time_school") {
|
|
|
- fullTime.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
- }
|
|
|
- if (item.dictType == "edu_level") {
|
|
|
- eduLevel.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
- }
|
|
|
- if (item.dictType == "academic_degree") {
|
|
|
- academicDegree.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
- }
|
|
|
- if (item.dictType == "educational_system") {
|
|
|
- educationalSystem.push({
|
|
|
- value: item.dictLabel,
|
|
|
- label: item.dictLabel,
|
|
|
- });
|
|
|
- }
|
|
|
- if (item.dictType == "department") {
|
|
|
- departm.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
- }
|
|
|
+ this.UserDict["marry_status"].forEach((item, index) => {
|
|
|
+ marryArrays.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
+ });
|
|
|
+ this.UserDict["politic_status"].forEach((item, index) => {
|
|
|
+ politicArrays.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
+ });
|
|
|
+ this.UserDict["full_time_school"].forEach((item, index) => {
|
|
|
+ fullTime.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
+ });
|
|
|
+ this.UserDict["edu_level"].forEach((item, index) => {
|
|
|
+ eduLevel.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
+ });
|
|
|
+ this.UserDict["academic_degree"].forEach((item, index) => {
|
|
|
+ academicDegree.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
+ });
|
|
|
+ this.UserDict["educational_system"].forEach((item, index) => {
|
|
|
+ educationalSystem.push({
|
|
|
+ value: item.dictLabel,
|
|
|
+ label: item.dictLabel,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ this.UserDict["department"].forEach((item, index) => {
|
|
|
+ departm.push({ value: item.dictLabel, label: item.dictLabel });
|
|
|
});
|
|
|
this.marryList = marryArrays;
|
|
|
this.politic = politicArrays;
|
|
|
@@ -657,6 +665,10 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.dialogBox = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.poppleData1.clearValidate();
|
|
|
+ this.$refs.poppleData2.clearValidate();
|
|
|
+ });
|
|
|
},
|
|
|
async submit(formName) {
|
|
|
var self = this;
|
|
|
@@ -765,8 +777,8 @@ export default {
|
|
|
studentStatusImg: this.poppleData2.studentStatusImg,
|
|
|
userSchoolId: this.poppleData2.userSchoolId,
|
|
|
};
|
|
|
- console.log(data1,9);
|
|
|
- console.log(data2,8);
|
|
|
+ console.log(data1, 9);
|
|
|
+ console.log(data2, 8);
|
|
|
this.$api.editappuser(data1).then((res) => {
|
|
|
if (res.code === 200) {
|
|
|
self.$api.editappuserschoolinfo(data2).then((resb) => {
|
|
|
@@ -787,9 +799,9 @@ export default {
|
|
|
this.activeIndex = 0;
|
|
|
},
|
|
|
close() {
|
|
|
- this.poppleData1 = {}
|
|
|
- this.dialogBox = false;
|
|
|
- this.activeIndex = 0;
|
|
|
+ this.poppleData1 = {};
|
|
|
+ this.dialogBox = false;
|
|
|
+ this.activeIndex = 0;
|
|
|
},
|
|
|
handleSizeChange(v) {
|
|
|
this.pageSize = v;
|