教师档案调整
This commit is contained in:
parent
f60f7c759e
commit
253ac80c88
@ -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: {
|
||||
|
||||
@ -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: {
|
||||
|
||||
@ -121,7 +121,7 @@ const schema = reactive<FormsSchema[]>([
|
||||
{
|
||||
field: "qqtime",
|
||||
label: "起聘时间",
|
||||
component: "BasicDateTimes",
|
||||
component: "BasicDateTime",
|
||||
componentProps: {
|
||||
mode: "year-month",
|
||||
},
|
||||
|
||||
@ -157,7 +157,7 @@ const [register, { getValue, setValue, setSchema }] = useForm({
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "jsTime",
|
||||
field: "jltime",
|
||||
label: "教龄计算时间",
|
||||
component: "BasicDateTime",
|
||||
componentProps: {
|
||||
|
||||
@ -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) {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user