教师档案调整
This commit is contained in:
parent
1d1d8c795c
commit
7a05e5e544
14797
src/api/base/ChinaCitys.json
Normal file
14797
src/api/base/ChinaCitys.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -85,17 +85,6 @@ const updatePositionYears = (itemValue: any) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const schema = reactive<FormsSchema[]>([
|
const schema = reactive<FormsSchema[]>([
|
||||||
// {
|
|
||||||
// field: "xj",
|
|
||||||
// label: "薪级",
|
|
||||||
// component: "BasicPicker",
|
|
||||||
// componentProps: {
|
|
||||||
// api: dicApi,
|
|
||||||
// param: { pid: 434953981 },
|
|
||||||
// rangeKey: "dictionaryValue",
|
|
||||||
// savaKey: "dictionaryCode",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
field: "gwjbId",
|
field: "gwjbId",
|
||||||
label: "岗位类别",
|
label: "岗位类别",
|
||||||
@ -107,6 +96,17 @@ const schema = reactive<FormsSchema[]>([
|
|||||||
savaKey: "dictionaryCode",
|
savaKey: "dictionaryCode",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: "xj",
|
||||||
|
label: "岗位级别",
|
||||||
|
component: "BasicPicker",
|
||||||
|
componentProps: {
|
||||||
|
api: dicApi,
|
||||||
|
param: {pid: 434953981},
|
||||||
|
rangeKey: "dictionaryValue",
|
||||||
|
savaKey: "dictionaryCode",
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: "gwrztime",
|
field: "gwrztime",
|
||||||
label: "岗位聘用开始时间",
|
label: "岗位聘用开始时间",
|
||||||
@ -188,7 +188,7 @@ const schema = reactive<FormsSchema[]>([
|
|||||||
// savaKey: "key",
|
// savaKey: "key",
|
||||||
// },
|
// },
|
||||||
// },
|
// },
|
||||||
{
|
/*{
|
||||||
field: "dzzw",
|
field: "dzzw",
|
||||||
label: "职务",
|
label: "职务",
|
||||||
component: "BasicPicker",
|
component: "BasicPicker",
|
||||||
@ -198,7 +198,7 @@ const schema = reactive<FormsSchema[]>([
|
|||||||
rangeKey: "dictionaryValue",
|
rangeKey: "dictionaryValue",
|
||||||
savaKey: "dictionaryCode",
|
savaKey: "dictionaryCode",
|
||||||
},
|
},
|
||||||
},
|
},*/
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const education = reactive<any>({
|
const education = reactive<any>({
|
||||||
|
|||||||
@ -19,10 +19,27 @@ import { dicApi, findDicTreeByPidApi } from "@/api/system/dic";
|
|||||||
import { useDataStore } from "@/store/modules/data";
|
import { useDataStore } from "@/store/modules/data";
|
||||||
import { map } from "lodash";
|
import { map } from "lodash";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
import chinaCitys from "@/api/base/ChinaCitys.json";
|
||||||
|
|
||||||
const { getFile, setFile } = useDataStore();
|
const { getFile, setFile } = useDataStore();
|
||||||
const jsjg = ref("");
|
const jsjg = ref("");
|
||||||
|
|
||||||
|
// 转换省市区数据为树形结构
|
||||||
|
const cityTreeData = computed(() => {
|
||||||
|
return chinaCitys.map(province => ({
|
||||||
|
text: province.province,
|
||||||
|
value: province.code,
|
||||||
|
children: province.citys.map(city => ({
|
||||||
|
text: city.city,
|
||||||
|
value: city.code,
|
||||||
|
children: city.areas.map(area => ({
|
||||||
|
text: area.area,
|
||||||
|
value: area.code
|
||||||
|
}))
|
||||||
|
}))
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
// 计算日期与当前日期相差的年数
|
// 计算日期与当前日期相差的年数
|
||||||
const calculateYearDiff = (startDate: string) => {
|
const calculateYearDiff = (startDate: string) => {
|
||||||
if (!startDate) return "";
|
if (!startDate) return "";
|
||||||
@ -41,9 +58,7 @@ const [register, { getValue, setValue, setSchema }] = useForm({
|
|||||||
field: "jsdah",
|
field: "jsdah",
|
||||||
label: "档案号",
|
label: "档案号",
|
||||||
component: "BasicInput",
|
component: "BasicInput",
|
||||||
componentProps: {
|
componentProps: {},
|
||||||
disabled: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "jsxm",
|
field: "jsxm",
|
||||||
@ -67,15 +82,15 @@ const [register, { getValue, setValue, setSchema }] = useForm({
|
|||||||
label: "籍贯",
|
label: "籍贯",
|
||||||
component: "BasicDataPicker",
|
component: "BasicDataPicker",
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: findDicTreeByPidApi,
|
range: cityTreeData.value,
|
||||||
param: { pid: 3701 },
|
rangeKey: "text",
|
||||||
rangeKey: "dictionaryValue",
|
savaKey: "value",
|
||||||
savaKey: "dictionaryCode",
|
|
||||||
onChange: (e: any) => {
|
onChange: (e: any) => {
|
||||||
jsjg.value = map(e.detail.value, (item) => {
|
const selectedNodes = e.detail.data;
|
||||||
return item.text;
|
if (selectedNodes && selectedNodes.length > 0) {
|
||||||
}).join("");
|
jsjg.value = selectedNodes.map((node: any) => node.text).join("");
|
||||||
},
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -251,7 +266,7 @@ const [register, { getValue, setValue, setSchema }] = useForm({
|
|||||||
component: "BasicInput",
|
component: "BasicInput",
|
||||||
componentProps: {},
|
componentProps: {},
|
||||||
},
|
},
|
||||||
{
|
/*{
|
||||||
field: "gwjbId",
|
field: "gwjbId",
|
||||||
label: "岗位级别",
|
label: "岗位级别",
|
||||||
component: "BasicPicker",
|
component: "BasicPicker",
|
||||||
@ -272,7 +287,7 @@ const [register, { getValue, setValue, setSchema }] = useForm({
|
|||||||
rangeKey: "dictionaryValue",
|
rangeKey: "dictionaryValue",
|
||||||
savaKey: "dictionaryCode",
|
savaKey: "dictionaryCode",
|
||||||
},
|
},
|
||||||
},
|
},*/
|
||||||
{
|
{
|
||||||
field: "sbkh",
|
field: "sbkh",
|
||||||
label: "社保卡号",
|
label: "社保卡号",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user