教师档案调整

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[]>([ const schema = reactive<FormsSchema[]>([
{ {
field: "gztime", field: "gzkstime",
label: "开始时间", label: "开始时间",
component: "BasicDateTime", component: "BasicDateTime",
componentProps: { componentProps: {
mode: "year-month", mode: "year-month",
}, },
}, { }, {
field: "jssj", field: "gzjstime",
label: "结束时间", label: "结束时间",
component: "BasicDateTime", component: "BasicDateTime",
componentProps: { componentProps: {

View File

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

View File

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

View File

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

View File

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