教师档案调整

This commit is contained in:
hb 2025-06-17 13:25:27 +08:00
parent f60f7c759e
commit 253ac80c88
5 changed files with 25 additions and 14 deletions

View File

@ -54,14 +54,14 @@ import {cloneDeep, map} from "lodash";
const schema = reactive<FormsSchema[]>([
{
field: "gztime",
field: "gzkstime",
label: "开始时间",
component: "BasicDateTime",
componentProps: {
mode: "year-month",
},
}, {
field: "jssj",
field: "gzjstime",
label: "结束时间",
component: "BasicDateTime",
componentProps: {

View File

@ -86,7 +86,7 @@ const updatePositionYears = (itemValue: any) => {
const schema = reactive<FormsSchema[]>([
{
field: "gwjbId",
field: "gwlbId",
label: "岗位类别",
component: "BasicPicker",
componentProps: {
@ -97,7 +97,7 @@ const schema = reactive<FormsSchema[]>([
},
},
{
field: "xj",
field: "gwjbId",
label: "岗位级别",
component: "BasicPicker",
componentProps: {
@ -108,7 +108,7 @@ const schema = reactive<FormsSchema[]>([
},
},
{
field: "gwrztime",
field: "gwrzkstime",
label: "岗位聘用开始时间",
component: "BasicDateTime",
componentProps: {
@ -132,7 +132,7 @@ const schema = reactive<FormsSchema[]>([
},
},
{
field: "gwpyjssj",
field: "gwrzjstime",
label: "岗位聘用结束时间",
component: "BasicDateTime",
componentProps: {

View File

@ -121,7 +121,7 @@ const schema = reactive<FormsSchema[]>([
{
field: "qqtime",
label: "起聘时间",
component: "BasicDateTimes",
component: "BasicDateTime",
componentProps: {
mode: "year-month",
},

View File

@ -157,7 +157,7 @@ const [register, { getValue, setValue, setSchema }] = useForm({
},
},
{
field: "jsTime",
field: "jltime",
label: "教龄计算时间",
component: "BasicDateTime",
componentProps: {

View File

@ -131,18 +131,29 @@ const [register, { getValue, setValue }] = useForm({
});
if (getFile.dzzw && typeof getFile.dzzw == "string") {
setValue({ ...getFile, dzzw: getFile.dzzw.split(",") });
setValue({
...getFile,
dzzw: getFile.dzzw.split(","),
qtzw: getFile.qtzw && typeof getFile.qtzw == "string" ? getFile.qtzw.split(",") : []
});
} else {
if (getFile.qtzw && typeof getFile.qtzw == "string") {
setValue({ ...getFile, qtzw: getFile.qtzw.split(",") });
} else {
setValue({ ...getFile, dzzw: [], qtzw: [] });
}
setValue({
...getFile,
dzzw: [],
qtzw: getFile.qtzw && typeof getFile.qtzw == "string" ? getFile.qtzw.split(",") : []
});
}
async function submit() {
try {
const value = await getValue();
// dzzw qtzw
if (Array.isArray(value.dzzw)) {
value.dzzw = value.dzzw.join(',');
}
if (Array.isArray(value.qtzw)) {
value.qtzw = value.qtzw.join(',');
}
setFile({ ...getFile, ...value });
navigateTo("/pages/view/hr/teacherProfile/TitleInfo");
} catch (error) {}