|
@@ -46,7 +46,7 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import { onMounted, ref, watch } from 'vue'
|
|
import { onMounted, ref, watch } from 'vue'
|
|
-import { deepClone, formValidate, getArrValue } from 'js-fast-way'
|
|
|
|
|
|
+import { deepClone, formValidate, getArrValue, getObjValue, isNullES } from 'js-fast-way'
|
|
import { getDictionaryData } from '~src/utils/tools'
|
|
import { getDictionaryData } from '~src/utils/tools'
|
|
import mainApi from '~api/project/gist'
|
|
import mainApi from '~api/project/gist'
|
|
|
|
|
|
@@ -68,7 +68,6 @@ watch(() => props.form, (data) => {
|
|
|
|
|
|
//渲染完成
|
|
//渲染完成
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
- console.log(formInfo.value)
|
|
|
|
getDataApi()
|
|
getDataApi()
|
|
})
|
|
})
|
|
|
|
|
|
@@ -76,6 +75,21 @@ onMounted(() => {
|
|
const projectStage = ref([])
|
|
const projectStage = ref([])
|
|
const getDataApi = async () => {
|
|
const getDataApi = async () => {
|
|
projectStage.value = await getDictionaryData('projectStage', true)
|
|
projectStage.value = await getDictionaryData('projectStage', true)
|
|
|
|
+ const form = getObjValue(formInfo.value)
|
|
|
|
+ if (!isNullES(form.id)) {
|
|
|
|
+ baseForm.value = {
|
|
|
|
+ id: form.id,
|
|
|
|
+ workFocusStage: form.workFocusStage,
|
|
|
|
+ targetPlan: form.targetPlan,
|
|
|
|
+ }
|
|
|
|
+ workFocusEntityList.value = [{
|
|
|
|
+ startYear: form.startYear,
|
|
|
|
+ endYear: form.endYear,
|
|
|
|
+ workPlan: form.workPlan,
|
|
|
|
+ dutyUnit: form.dutyUnit,
|
|
|
|
+ }]
|
|
|
|
+ console.log(workFocusEntityList.value)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
//基础表单
|
|
//基础表单
|