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