提交1
This commit is contained in:
parent
b431e1bff5
commit
3ee472f690
@ -79,7 +79,7 @@ export default {
|
|||||||
minDate: {
|
minDate: {
|
||||||
type: Number,
|
type: Number,
|
||||||
// 最小默认值为前10年
|
// 最小默认值为前10年
|
||||||
default: new Date(new Date().getFullYear() - 10, 0, 1).getTime()
|
default: new Date(new Date().getFullYear() - 80, 0, 1).getTime()
|
||||||
},
|
},
|
||||||
// 可选的最小小时,仅mode=time有效
|
// 可选的最小小时,仅mode=time有效
|
||||||
minHour: {
|
minHour: {
|
||||||
|
|||||||
@ -261,7 +261,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/view/hr/teacherProfile/position",
|
"path": "pages/view/hr/teacherProfile/position",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任教任职",
|
"navigationBarTitleText": "任职情况",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -48,17 +48,25 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useForm } from "@/components/BasicForm/hooks/useForm";
|
|
||||||
import {useDataStore} from "@/store/modules/data";
|
import {useDataStore} from "@/store/modules/data";
|
||||||
import { navigateTo, navigateBack } from "@/utils/uniapp";
|
import {navigateBack, navigateTo} from "@/utils/uniapp";
|
||||||
import {cloneDeep, map} from "lodash";
|
import {cloneDeep, map} from "lodash";
|
||||||
|
|
||||||
const schema = reactive<FormsSchema[]>([
|
const schema = reactive<FormsSchema[]>([
|
||||||
{
|
{
|
||||||
field: "gztime",
|
field: "gztime",
|
||||||
label: "起止时间",
|
label: "开始时间",
|
||||||
component: "BasicDateTimes",
|
component: "BasicDateTime",
|
||||||
componentProps: {},
|
componentProps: {
|
||||||
|
mode: "year-month",
|
||||||
|
},
|
||||||
|
}, {
|
||||||
|
field: "jssj",
|
||||||
|
label: "结束时间",
|
||||||
|
component: "BasicDateTime",
|
||||||
|
componentProps: {
|
||||||
|
mode: "year-month",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "gzdw",
|
field: "gzdw",
|
||||||
|
|||||||
@ -123,7 +123,8 @@ function submit() {
|
|||||||
return item.value;
|
return item.value;
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
navigateTo("/pages/view/hr/teacherProfile/PersonalHonor");
|
// navigateTo("/pages/view/hr/teacherProfile/PersonalHonor");
|
||||||
|
navigateTo("/pages/view/hr/teacherProfile/RecordMaterials");
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@ -47,15 +47,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {
|
|
||||||
findAllNjBjTreeApi,
|
|
||||||
xqgwFindAllApi,
|
|
||||||
xqxjFindAllApi,
|
|
||||||
} from "@/api/base/server";
|
|
||||||
import {dicApi} from "@/api/system/dic";
|
import {dicApi} from "@/api/system/dic";
|
||||||
import { useForm } from "@/components/BasicForm/hooks/useForm";
|
|
||||||
import {useDataStore} from "@/store/modules/data";
|
import {useDataStore} from "@/store/modules/data";
|
||||||
import { navigateTo, navigateBack } from "@/utils/uniapp";
|
import {navigateBack, navigateTo} from "@/utils/uniapp";
|
||||||
import {cloneDeep, map} from "lodash";
|
import {cloneDeep, map} from "lodash";
|
||||||
|
|
||||||
const schema = reactive<FormsSchema[]>([
|
const schema = reactive<FormsSchema[]>([
|
||||||
@ -83,7 +77,21 @@ const schema = reactive<FormsSchema[]>([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "gwrztime",
|
field: "gwrztime",
|
||||||
label: "岗位任职时间",
|
label: "岗位聘用开始时间",
|
||||||
|
component: "BasicDateTime",
|
||||||
|
componentProps: {
|
||||||
|
mode: "year-month",
|
||||||
|
},
|
||||||
|
}, {
|
||||||
|
field: "gwpyjssj",
|
||||||
|
label: "岗位聘用结束时间",
|
||||||
|
component: "BasicDateTime",
|
||||||
|
componentProps: {
|
||||||
|
mode: "year-month",
|
||||||
|
},
|
||||||
|
}, {
|
||||||
|
field: "gwpyjssj",
|
||||||
|
label: "当时时间-岗位聘用开始时间",
|
||||||
component: "BasicDateTimes",
|
component: "BasicDateTimes",
|
||||||
componentProps: {},
|
componentProps: {},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -131,6 +131,14 @@ const schema = reactive<FormsSchema[]>([
|
|||||||
componentProps: {},
|
componentProps: {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
field: "sczczs",
|
||||||
|
label: "上传职称证书",
|
||||||
|
component: "BasicUpload",
|
||||||
|
itemProps: {
|
||||||
|
labelPosition: "top",
|
||||||
|
},
|
||||||
|
componentProps: {},
|
||||||
|
}, {
|
||||||
field: "pywjh",
|
field: "pywjh",
|
||||||
label: "上传任职文件",
|
label: "上传任职文件",
|
||||||
component: "BasicUpload",
|
component: "BasicUpload",
|
||||||
|
|||||||
@ -81,8 +81,10 @@ const [register, { getValue, setValue }] = useForm({
|
|||||||
{
|
{
|
||||||
field: "zhbynytime",
|
field: "zhbynytime",
|
||||||
label: "最后学历毕业年月",
|
label: "最后学历毕业年月",
|
||||||
component: "BasicDateTimes",
|
component: "BasicDateTime",
|
||||||
componentProps: {},
|
componentProps: {
|
||||||
|
mode: "year-month",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "xw",
|
field: "xw",
|
||||||
|
|||||||
@ -17,14 +17,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { navigateBack, navigateTo } from "@/utils/uniapp";
|
import {navigateTo} from "@/utils/uniapp";
|
||||||
|
|
||||||
import {useForm} from "@/components/BasicForm/hooks/useForm";
|
import {useForm} from "@/components/BasicForm/hooks/useForm";
|
||||||
import {dicApi, findDicTreeByPidApi} from "@/api/system/dic";
|
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 { ok } from "assert";
|
|
||||||
|
|
||||||
const { getFile, setFile } = useDataStore();
|
const { getFile, setFile } = useDataStore();
|
||||||
const jsjg = ref("");
|
const jsjg = ref("");
|
||||||
@ -151,7 +150,6 @@ const [register, { getValue, setValue, setSchema }] = useForm({
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
mode: "year-month",
|
mode: "year-month",
|
||||||
ok: (e: any) => {
|
ok: (e: any) => {
|
||||||
console.log(e);
|
|
||||||
const yearDiff = calculateYearDiff(e.value);
|
const yearDiff = calculateYearDiff(e.value);
|
||||||
setValue({ jsgl: yearDiff });
|
setValue({ jsgl: yearDiff });
|
||||||
},
|
},
|
||||||
@ -168,9 +166,10 @@ const [register, { getValue, setValue, setSchema }] = useForm({
|
|||||||
{
|
{
|
||||||
field: "jsTime",
|
field: "jsTime",
|
||||||
label: "任教开始时间",
|
label: "任教开始时间",
|
||||||
component: "BasicDateTimes",
|
component: "BasicDateTime",
|
||||||
componentProps: {
|
componentProps: {
|
||||||
change: (e: any) => {
|
mode: "year-month",
|
||||||
|
ok: (e: any) => {
|
||||||
const yearDiff = calculateYearDiff(e);
|
const yearDiff = calculateYearDiff(e);
|
||||||
setValue({ jl: yearDiff });
|
setValue({ jl: yearDiff });
|
||||||
},
|
},
|
||||||
|
|||||||
@ -67,46 +67,46 @@ const [register, { getValue, setValue }] = useForm({
|
|||||||
savaKey: "dictionaryCode",
|
savaKey: "dictionaryCode",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
field: "zrxk",
|
// field: "zrxk",
|
||||||
label: "主任学科",
|
// label: "主任学科",
|
||||||
component: "BasicPicker",
|
// component: "BasicPicker",
|
||||||
componentProps: {
|
// componentProps: {
|
||||||
api: kmFindAllApi,
|
// api: kmFindAllApi,
|
||||||
rangeKey: "kmmc",
|
// rangeKey: "kmmc",
|
||||||
savaKey: "id",
|
// savaKey: "id",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
field: "zrbj",
|
// field: "zrbj",
|
||||||
label: "主任班级",
|
// label: "主任班级",
|
||||||
component: "BasicPicker",
|
// component: "BasicPicker",
|
||||||
componentProps: {
|
// componentProps: {
|
||||||
api: findAllNjBjTree,
|
// api: findAllNjBjTree,
|
||||||
rangeKey: "title",
|
// rangeKey: "title",
|
||||||
savaKey: "key",
|
// savaKey: "key",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
field: "jrxk",
|
// field: "jrxk",
|
||||||
label: "兼任学科",
|
// label: "兼任学科",
|
||||||
component: "BasicPicker",
|
// component: "BasicPicker",
|
||||||
componentProps: {
|
// componentProps: {
|
||||||
api: kmFindAllApi,
|
// api: kmFindAllApi,
|
||||||
rangeKey: "kmmc",
|
// rangeKey: "kmmc",
|
||||||
savaKey: "id",
|
// savaKey: "id",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
field: "jrbj",
|
// field: "jrbj",
|
||||||
label: "兼任班级",
|
// label: "兼任班级",
|
||||||
component: "BasicPicker",
|
// component: "BasicPicker",
|
||||||
componentProps: {
|
// componentProps: {
|
||||||
api: findAllNjBjTree,
|
// api: findAllNjBjTree,
|
||||||
rangeKey: "title",
|
// rangeKey: "title",
|
||||||
savaKey: "key",
|
// savaKey: "key",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
field: "njId",
|
field: "njId",
|
||||||
label: "所属年级",
|
label: "所属年级",
|
||||||
@ -117,16 +117,16 @@ const [register, { getValue, setValue }] = useForm({
|
|||||||
savaKey: "key",
|
savaKey: "key",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
field: "bzrBjId",
|
// field: "bzrBjId",
|
||||||
label: "班主任班级",
|
// label: "班主任班级",
|
||||||
component: "BasicTree",
|
// component: "BasicTree",
|
||||||
componentProps: {
|
// componentProps: {
|
||||||
api: findAllNjBjTree,
|
// api: findAllNjBjTree,
|
||||||
rangeKey: "title",
|
// rangeKey: "title",
|
||||||
savaKey: "key",
|
// savaKey: "key",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user