Commit 0d8d87b8 by Cat

zd 教师电子档案 修改

parent 67725b50
......@@ -73,11 +73,7 @@
<template slot-scope="{ row }">
{{
row.state == 1
? "未发布"
: row.state == 2
? "已发布"
: row.state == 3
? "已填写"
? "编辑"
: row.state == 4
? "已提交"
: row.state == 5
......@@ -157,37 +153,30 @@
>
<template slot-scope="scope">
<!-- 已发布 -->
<div>
<el-button
v-if="scope.row.state <= 3"
size="mini"
type="text"
@click="handleSubmit(scope.row)"
<div v-if="scope.row.state == '4'">
<el-button size="mini" type="text" @click="handleSubmit(scope.row)"
>提交
</el-button>
<el-button
v-if="scope.row.state <= 3"
size="mini"
type="text"
@click="handleReject(scope.row)"
<el-button size="mini" type="text" @click="handleReject(scope.row)"
>驳回
</el-button>
<el-button
v-if="scope.row.state <= 3"
size="mini"
type="text"
@click="handleEdit(scope.row)"
<!-- <el-button size="mini" type="text" @click="handleEdit(scope.row)"
>修改
</el-button>
</el-button> -->
</div>
<!--已提交-->
<div>
<!-- v-if="scope.row.state == '5'" -->
<el-button
v-if="scope.row.state >= 3"
size="mini"
type="text"
@click="handleCheck(scope.row)"
<div v-if="scope.row.state == '1'">
<el-button size="mini" type="text" @click="handleCheck(scope.row)"
>查看
</el-button>
</div>
<div v-if="scope.row.state == '5'">
<el-button size="mini" type="text" @click="handleCheck(scope.row)"
>查看
</el-button>
</div>
<div v-if="scope.row.state == '9'">
<el-button size="mini" type="text" @click="handleCheck(scope.row)"
>查看
</el-button>
</div>
......@@ -234,11 +223,31 @@
v-model="dialogForm.teacherName"
></el-input>
</el-form-item>
<el-form-item label="性别:" style="padding-right: 10px">
<!-- <el-form-item label="性别:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.sex"
></el-input>
</el-form-item> -->
<el-form-item
:disabled="true"
label="性别:"
style="padding-right: 10px"
>
<el-select
:readonly="check == true ? true : false"
v-model="dialogForm.sex"
placeholder="请输入性别"
style="width: 100%"
>
<el-option
v-for="dict in dict.type.sys_user_sex"
:key="dict.value"
:label="dict.label"
:value="dict.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="年龄:" style="padding-right: 10px">
<el-input
......@@ -252,11 +261,31 @@
v-model="dialogForm.title"
></el-input>
</el-form-item>
<el-form-item label="学历:" style="padding-right: 10px">
<!-- <el-form-item label="学历:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.education"
></el-input>
</el-form-item> -->
<el-form-item
:disabled="true"
label="学历:"
style="padding-right: 10px"
>
<el-select
:readonly="check == true ? true : false"
v-model="dialogForm.education"
style="width: 100%"
placeholder="请选择学历"
>
<el-option
v-for="dict in dict.type.education"
:key="dict.value"
:label="dict.label"
:value="dict.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="政治面貌:" style="padding-right: 10px">
<el-input
......@@ -604,6 +633,8 @@ import {
} from "@/api/smartSchool/teacherFiles/teacherElectronicFile";
export default {
name: "gradeElectronicRecord",
dicts: ["sys_user_sex", "education"],
data() {
return {
completedCount: "", //填写
......@@ -688,6 +719,7 @@ export default {
getGradeTnfo(params).then((res) => {
this.tableData = res.rows;
console.log(res, 11111111);
this.total = res.total;
this.yfb = res.yfb;
this.yqr = res.yqr;
......@@ -752,6 +784,7 @@ export default {
const id = row.id;
getFileTnfo(id).then((res) => {
this.dialogForm = res.data;
console.log(this.dialogForm, 2222222);
this.title = "基本信息查看";
this.tableFirstData = res.data.thesisList;
this.tableSecondData = res.data.materialList;
......
......@@ -61,17 +61,11 @@
<template slot-scope="{ row }">
{{
row.state == 1
? "未发布"
: row.state == 2
? "已发布"
: row.state == 3
? "已填写"
? "编辑"
: row.state == 4
? "已提交"
: row.state == 5
? "已确认"
: row.state == 7
? "已结束"
: row.state == 9
? "驳回"
: ""
......@@ -90,15 +84,10 @@
min-width="150"
prop="endTime"
/>
<el-table-column
fixed="right"
label="操作"
align="center"
min-width="200"
>
<el-table-column fixed="right" label="操作" align="center">
<template slot-scope="scope">
<!-- 未填写 -->
<div v-if="scope.row.state === 4">
<div v-if="scope.row.state == '1'">
<el-button size="mini" type="text" @click="handleEdit(scope.row)"
>填写
</el-button>
......@@ -109,7 +98,29 @@
>提交
</el-button>
</div>
<el-button size="mini" type="text" @click="handleCheck(scope.row)"
<div v-if="scope.row.state == '9'">
<el-button size="mini" type="text" @click="handleEdit(scope.row)"
>填写
</el-button>
<el-button size="mini" type="text" @click="handleEdit(scope.row)"
>修改
</el-button>
<el-button size="mini" type="text" @click="handleSubmit(scope.row)"
>提交
</el-button>
</div>
<el-button
v-if="scope.row.state == '4'"
size="mini"
type="text"
@click="handleCheck(scope.row)"
>查看
</el-button>
<el-button
v-if="scope.row.state == '5'"
size="mini"
type="text"
@click="handleCheck(scope.row)"
>查看
</el-button>
<div></div>
......@@ -217,10 +228,20 @@
label="学历:"
style="padding-right: 10px"
>
<el-input
v-model="form.education"
<el-select
:disabled="form.state == '4' ? true : false"
></el-input>
v-model="form.education"
style="width: 100%"
placeholder="请选择学历"
>
<el-option
v-for="dict in dict.type.education"
:key="dict.value"
:label="dict.label"
:value="dict.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:disabled="true"
......@@ -611,7 +632,7 @@ import {
} from "@/api/smartSchool/teacherFiles/teacherElectronicFile";
export default {
name: "personElectronicRecord",
dicts: ["sys_user_sex"],
dicts: ["sys_user_sex", "education"],
data() {
return {
// 遮罩层
......@@ -684,6 +705,7 @@ export default {
};
getTeacherTnfo(params).then((res) => {
this.tableData = res.rows;
console.log(this.tableData, "this.tableData11111");
this.tableDataInfo = res.rows.map((item) => {
return item.fid; // 如果需要将 fid 属性单独提取出来,可以返回一个包含 fid 的新数组
});
......@@ -820,9 +842,9 @@ export default {
this.title = "基本信息修改";
this.dialogVisible = true;
const id = row.fid;
console.log(id, 33333333333333);
getFileTnfo(id).then((res) => {
this.form = res.data;
console.log(res.data, "填写按钮");
this.title = "基本信息查看";
this.tableFirstData = res.data.thesisList;
this.tableSecondData = res.data.materialList;
......@@ -868,6 +890,7 @@ export default {
},
//提交按钮
handleSubmit(row) {
console.log(row, "提交row");
const id = row.fid;
this.$modal
.confirm("是否提交该活动?")
......@@ -883,6 +906,7 @@ export default {
console.error(err);
});
},
//弹窗确定按钮
confirmDialog(row) {
this.$refs["form"].validate((valid) => {
......
......@@ -68,11 +68,7 @@
<template slot-scope="{ row }">
{{
row.state == 1
? "未发布"
: row.state == 2
? "已发布"
: row.state == 3
? "已填写"
? "编辑"
: row.state == 4
? "已提交"
: row.state == 5
......@@ -206,7 +202,7 @@
:disabled="status == '7' ? true : false"
></el-input>
</el-form-item>
<el-form-item
<!-- <el-form-item
:disabled="true"
label="学历:"
style="padding-right: 10px"
......@@ -215,6 +211,26 @@
v-model="form.education"
:disabled="status == '7' ? true : false"
></el-input>
</el-form-item> -->
<el-form-item
:disabled="true"
label="学历:"
style="padding-right: 10px"
>
<el-select
:disabled="status == '7' ? true : false"
v-model="form.education"
style="width: 100%"
placeholder="请选择学历"
>
<el-option
v-for="dict in dict.type.education"
:key="dict.value"
:label="dict.label"
:value="dict.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:disabled="true"
......@@ -607,7 +623,7 @@ import {
export default {
name: "dataReceiver",
dicts: ["sys_user_sex"],
dicts: ["sys_user_sex", "education"],
data() {
return {
// 遮罩层
......
......@@ -406,7 +406,6 @@ export default {
},
//弹窗确定按钮
confirmDialog() {
this.loading = true;
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
......@@ -422,9 +421,10 @@ export default {
// 新增
addTeacherNotice(this.form)
.then((response) => {
this.getList();
this.$modal.loading("正在加载数据,请稍等...");
this.$message.success("新增成功");
this.dialogVisible = false;
this.getList();
})
.catch((err) => {});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment