<link rel="icon" type="image/svg+xml" href="/logo_1.jpg" /> | <link rel="icon" type="image/svg+xml" href="/logo_1.jpg" /> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||||
<title>后台管理系统</title> | <title>后台管理系统</title> | ||||
<script type="module" crossorigin src="/assets/index-a7DrAZSU.js"></script> | |||||
<script type="module" crossorigin src="/assets/index-GHos7aRt.js"></script> | |||||
<link rel="stylesheet" crossorigin href="/assets/index-7KXeZgtg.css"> | <link rel="stylesheet" crossorigin href="/assets/index-7KXeZgtg.css"> | ||||
</head> | </head> | ||||
<body> | <body> |
const getCateValue = (val : Object) => { | const getCateValue = (val : Object) => { | ||||
createForm.value.cate = val.key; | createForm.value.cate = val.key; | ||||
} | } | ||||
// 经纬度 | // 经纬度 | ||||
const getLoc = (mapData : Object) => { | const getLoc = (mapData : Object) => { | ||||
console.log(mapData) | console.log(mapData) |
kaishi_date?: String, | kaishi_date?: String, | ||||
jieshu_date?: String, | jieshu_date?: String, | ||||
} | } | ||||
}' | |||||
} | |||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { ref, onMounted, computed, defineProps, watch, defineEmits } from 'vue'; | import { ref, onMounted, computed, defineProps, watch, defineEmits } from 'vue'; | ||||
import { PostCompanyVipmanage, GetCompanyVipInfo } from '@/apis/models'; | import { PostCompanyVipmanage, GetCompanyVipInfo } from '@/apis/models'; | ||||
import { dataForm, otherDataForm, reset } from '@/views/company/list/add/data.js'; | |||||
import { dataForm, otherDataForm, reset } from '@/views/company/list/add/data.ts'; | |||||
import { useCommon } from '@/hooks/useCommon'; | import { useCommon } from '@/hooks/useCommon'; | ||||
let { store, openAddModel, hideModal, dayjs, disabledDate, message, imageprefix } = useCommon(); | let { store, openAddModel, hideModal, dayjs, disabledDate, message, imageprefix } = useCommon(); | ||||
const dayjsRef = ref(dayjs); | const dayjsRef = ref(dayjs); |
<template> | <template> | ||||
<a-form :model="createForm" :label-col="{span: 4}" labelAlign="left"> | |||||
<a-form :model="createForm" :label-col="{span: 4}" labelAlign="left"> | |||||
<a-row gutter="20"> | <a-row gutter="20"> | ||||
<a-col span="24"> | <a-col span="24"> | ||||
<a-form-item required label="是否至今" name="是否至今" :label-col="{span: 0}"> | <a-form-item required label="是否至今" name="是否至今" :label-col="{span: 0}"> | ||||
emit('toNext', { activeKey: "6" }) | emit('toNext', { activeKey: "6" }) | ||||
} | } | ||||
let createForm = ref({ | let createForm = ref({ | ||||
start_year: 0, | |||||
start_month: 0, | |||||
end_year: 0, | |||||
end_month: 0, | |||||
end_today: 0, | |||||
school_or_institution: '', | |||||
major: '', | |||||
certificate: '', | |||||
awards: '', | |||||
positions_held: '', | |||||
start_year: 0, | |||||
start_month: 0, | |||||
end_year: 0, | |||||
end_month: 0, | |||||
end_today: 0, | |||||
school_or_institution: '', | |||||
major: '', | |||||
certificate: '', | |||||
awards: '', | |||||
positions_held: '', | |||||
}) | }) | ||||
const resetForm = () => { | const resetForm = () => { | ||||
createForm.value = { | createForm.value = { | ||||
start_year: 0, | |||||
start_month: 0, | |||||
end_year: 0, | |||||
end_month: 0, | |||||
end_today: 0, | |||||
school_or_institution: '', | |||||
major: '', | |||||
certificate: '', | |||||
awards: '', | |||||
positions_held: '', | |||||
start_year: 0, | |||||
start_month: 0, | |||||
end_year: 0, | |||||
end_month: 0, | |||||
end_today: 0, | |||||
school_or_institution: '', | |||||
major: '', | |||||
certificate: '', | |||||
awards: '', | |||||
positions_held: '', | |||||
} | } | ||||
} | } | ||||
</script> | </script> |