|
@@ -24,46 +24,62 @@
|
|
|
style="margin-top: 60px"
|
|
|
></containerTitle>
|
|
|
<basic-container>
|
|
|
- <el-row>
|
|
|
- <el-col :span="18">
|
|
|
- <avue-form
|
|
|
- ref="form"
|
|
|
- class="trading-form"
|
|
|
- v-model="form"
|
|
|
- :option="option"
|
|
|
- />
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <avue-form class="img-form" :option="option4" v-model="form" />
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
<avue-form
|
|
|
ref="form"
|
|
|
class="trading-form"
|
|
|
v-model="form"
|
|
|
- :option="option2"
|
|
|
+ :option="option"
|
|
|
/>
|
|
|
</basic-container>
|
|
|
- <containerTitle title="详细信息"></containerTitle>
|
|
|
+ <containerTitle title="事业编考试的记录"></containerTitle>
|
|
|
<basic-container>
|
|
|
- <avue-form
|
|
|
- ref="form"
|
|
|
- class="trading-form"
|
|
|
- v-model="form"
|
|
|
- :option="option3"
|
|
|
- />
|
|
|
+ <avue-crud
|
|
|
+ ref="crud"
|
|
|
+ :option="option2"
|
|
|
+ :data="dataList"
|
|
|
+ :table-loading="loading"
|
|
|
+ @saveColumn="saveColumn"
|
|
|
+ :cell-style="cellStyle"
|
|
|
+ >
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="dataList.push({ $cellEdit: true })"
|
|
|
+ size="small"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
+ >新增
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ <template slot="menu" slot-scope="{ row, index }">
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ @click="rowCell(row, index)"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
+ >编辑</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ @click="rowDel(row, index)"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
</basic-container>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { detail, submit } from "@/api/basicData/facultyManagement";
|
|
|
+import { detail, submit, delItem } from "@/api/basicData/facultyManagement";
|
|
|
export default {
|
|
|
name: "index",
|
|
|
data() {
|
|
|
return {
|
|
|
form: {},
|
|
|
+ dataList: [],
|
|
|
option: {
|
|
|
menuBtn: false,
|
|
|
labelWidth: 100,
|
|
@@ -78,51 +94,7 @@ export default {
|
|
|
trigger: "blur"
|
|
|
}
|
|
|
],
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "工号",
|
|
|
- prop: "code",
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "",
|
|
|
- trigger: "blur"
|
|
|
- }
|
|
|
- ],
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "曾用名",
|
|
|
- prop: "usedName",
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "性别",
|
|
|
- prop: "gender",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=sex",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "籍贯",
|
|
|
- prop: "nativePlace",
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "民族",
|
|
|
- prop: "nation",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationa_lity",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 8
|
|
|
+ span: 6
|
|
|
},
|
|
|
{
|
|
|
label: "身份证",
|
|
@@ -134,89 +106,13 @@ export default {
|
|
|
trigger: "blur"
|
|
|
}
|
|
|
],
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "出生日期",
|
|
|
- prop: "birthdate",
|
|
|
- type: "date",
|
|
|
- valueFormat: "yyyy-MM-dd",
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "婚姻状况",
|
|
|
- prop: "maritalStatus",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=marital_status",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "政治面貌",
|
|
|
- prop: "politicsStatus",
|
|
|
- type: "select",
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=politics_status",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "加入日期",
|
|
|
- prop: "joiningDate",
|
|
|
- type: "date",
|
|
|
- valueFormat: "yyyy-MM-dd",
|
|
|
- span: 8
|
|
|
- },
|
|
|
- {
|
|
|
- label: "健康状况",
|
|
|
- prop: "healthCondition",
|
|
|
- type: "select",
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=health_condition",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 8
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- option2: {
|
|
|
- menuBtn: false,
|
|
|
- labelWidth: 100,
|
|
|
- column: [
|
|
|
- {
|
|
|
- label: "血型",
|
|
|
- prop: "bloodType",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=blood_type",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "家庭住址",
|
|
|
- prop: "familyAddress",
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "邮政编码",
|
|
|
- prop: "postalCode",
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "户口性质",
|
|
|
- prop: "category",
|
|
|
+ label: "性别",
|
|
|
+ prop: "gender",
|
|
|
type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=category",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=sex",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictValue"
|
|
@@ -224,87 +120,15 @@ export default {
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "户口所在地",
|
|
|
- prop: "residentCity",
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
label: "联系电话",
|
|
|
prop: "phone",
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "电子邮箱",
|
|
|
- prop: "emailAddress",
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "宗教信仰",
|
|
|
- prop: "faith",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=faith",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "紧急联系人",
|
|
|
- prop: "contacts",
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "紧急联系人电话",
|
|
|
- prop: "contactNumber",
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "国别",
|
|
|
- prop: "nationnality",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationnality",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "港澳台侨",
|
|
|
- prop: "indentation",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=TF_status",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 6
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- option3: {
|
|
|
- menuBtn: false,
|
|
|
- labelWidth: 100,
|
|
|
- column: [
|
|
|
- {
|
|
|
- label: "编制类别",
|
|
|
- prop: "compileCategory",
|
|
|
- type: "select",
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=compile_category",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "身份类别",
|
|
|
- prop: "identityCategory",
|
|
|
+ label: "学历",
|
|
|
+ prop: "code",
|
|
|
type: "select",
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=identity_category",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=marital_status",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictValue"
|
|
@@ -312,52 +136,24 @@ export default {
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "教师类别",
|
|
|
- prop: "teacherCategory",
|
|
|
- type: "select",
|
|
|
- dataType: "string",
|
|
|
- multiple: true,
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=teacher_category",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
+ label: "入职时间",
|
|
|
+ prop: "joiningDate",
|
|
|
+ type: "date",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "工作状态",
|
|
|
- prop: "workingCondition",
|
|
|
- type: "select",
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=working_condition",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
+ label: "转正时间",
|
|
|
+ prop: "birthdate",
|
|
|
+ type: "date",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "现工作单位",
|
|
|
- prop: "currentEmployer",
|
|
|
- span: 12
|
|
|
- },
|
|
|
- {
|
|
|
- label: "所在校区",
|
|
|
- prop: "inCampus",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=in_campus",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "",
|
|
|
- trigger: "blur"
|
|
|
- }
|
|
|
- ],
|
|
|
+ label: "校龄开始日期",
|
|
|
+ prop: "schoolAgeSalaryDate",
|
|
|
+ type: "date",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
@@ -379,32 +175,7 @@ export default {
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "所在院系",
|
|
|
- prop: "department",
|
|
|
- type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=department",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 6
|
|
|
- },
|
|
|
- {
|
|
|
- label: "所在教研室",
|
|
|
- prop: "inStaffRoom",
|
|
|
- type: "select",
|
|
|
- dataType: "string",
|
|
|
- multiple: true,
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=in_staff_room",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 6,
|
|
|
- row: true
|
|
|
- },
|
|
|
- {
|
|
|
- label: "双师",
|
|
|
+ label: "是否班主任",
|
|
|
prop: "doubleTeachers",
|
|
|
type: "radio",
|
|
|
dataType: "string",
|
|
@@ -416,11 +187,11 @@ export default {
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "专业带头人",
|
|
|
- prop: "professionalLeader",
|
|
|
- type: "radio",
|
|
|
- dataType: "string",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=TF_status",
|
|
|
+ label: "职务",
|
|
|
+ prop: "compileCategory",
|
|
|
+ type: "select",
|
|
|
+ dicUrl:
|
|
|
+ "/api/blade-system/dict-biz/dictionary?code=compile_category",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictValue"
|
|
@@ -428,41 +199,34 @@ export default {
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
- label: "骨干教师",
|
|
|
- prop: "coreTeacher",
|
|
|
- type: "radio",
|
|
|
- dataType: "string",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=TF_status",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- span: 6,
|
|
|
- row: true
|
|
|
- },
|
|
|
- {
|
|
|
- label: "专业特长",
|
|
|
- prop: "professionalExpertise",
|
|
|
+ label: "备注",
|
|
|
+ prop: "remarks",
|
|
|
type: "textarea",
|
|
|
- span: 24
|
|
|
+ span: 24,
|
|
|
+ minRows: 2
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- option4: {
|
|
|
- menuBtn: false,
|
|
|
- labelWidth: 100,
|
|
|
+ option2: {
|
|
|
+ align: "center",
|
|
|
+ addBtn: false,
|
|
|
+ refreshBtn: false,
|
|
|
+ editBtn: false,
|
|
|
+ delBtn: false,
|
|
|
+ border: true,
|
|
|
+ menuWidth: 120,
|
|
|
column: [
|
|
|
{
|
|
|
- label: "个人头像",
|
|
|
- prop: "headPortrait",
|
|
|
- type: "upload",
|
|
|
- listType: "picture-img",
|
|
|
- dataType: "string",
|
|
|
- action: "/api/blade-resource/oss/endpoint/put-file",
|
|
|
- propsHttp: {
|
|
|
- res: "data",
|
|
|
- url: "link"
|
|
|
- }
|
|
|
+ label: "考试日期",
|
|
|
+ prop: "birthdate",
|
|
|
+ type: "date",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
+ cell: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ prop: "remarks",
|
|
|
+ cell: true
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -477,12 +241,19 @@ export default {
|
|
|
if (this.detailData.id) {
|
|
|
this.getDetail(this.detailData.id);
|
|
|
}
|
|
|
+ if (this.detailData.status == 1) {
|
|
|
+ this.option.disabled = true;
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
+ cellStyle() {
|
|
|
+ return "padding:0;height:40px;";
|
|
|
+ },
|
|
|
getDetail(id) {
|
|
|
detail(id)
|
|
|
.then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ this.dataList = res.data.data.causeList;
|
|
|
})
|
|
|
.finally(() => {
|
|
|
// this.loading = false;
|
|
@@ -490,15 +261,46 @@ export default {
|
|
|
// this.pageLoading = false;
|
|
|
});
|
|
|
},
|
|
|
+ rowCell(row, index) {
|
|
|
+ if (row.$cellEdit == true) {
|
|
|
+ this.$set(row, "$cellEdit", false);
|
|
|
+ } else {
|
|
|
+ this.$set(row, "$cellEdit", true);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ rowDel(row, index) {
|
|
|
+ this.$confirm("确定删除数据?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ if (row.id) {
|
|
|
+ delItem(row.id).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "删除成功!"
|
|
|
+ });
|
|
|
+ this.dataList.splice(index, 1);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "删除成功!"
|
|
|
+ });
|
|
|
+ this.dataList.splice(index, 1);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//修改提交触发
|
|
|
editCustomer() {
|
|
|
this.$refs["form"].validate((valid, done) => {
|
|
|
done();
|
|
|
if (valid) {
|
|
|
- submit({ ...this.form })
|
|
|
+ submit({ ...this.form, causeList: this.dataList })
|
|
|
.then(res => {
|
|
|
this.$message.success("保存成功");
|
|
|
this.form = res.data.data;
|
|
|
+ this.dataList = res.data.data.causeList;
|
|
|
})
|
|
|
.finally(() => {});
|
|
|
} else {
|