ZaiZai před 1 rokem
rodič
revize
9b4fbe0a8a

+ 2 - 1
src/components/date-year/date-year.vue

@@ -29,7 +29,7 @@ defineOptions({
 const startYear = defineModel('modelValue', {
     default: '',
 })
-const endYear = defineModel('modelValue:end', {
+const endYear = defineModel('end', {
     default: '',
 })
 
@@ -71,6 +71,7 @@ const endYearBlur = () => {
         endYear.value = ''
         window.$message.warning('完工年不能小于开工年')
     }
+    console.log(startYear.value, endYear.value)
 }
 </script>
 

+ 3 - 2
src/views/project/gist/create.vue

@@ -171,8 +171,9 @@ const saveClick = async () => {
             ...gist[i],
         })
     }
+    console.log(newWorkForm)
     //发起请求
-    const { error, code, msg } = await mainApi.submit({
+    /*const { error, code, msg } = await mainApi.submit({
         workFocusEntityList: newWorkForm,
     })
     //判断状态
@@ -183,7 +184,7 @@ const saveClick = async () => {
         workFocusEntityList.value = [{}]
     } else {
         window.$message.error(msg ?? '操作失败')
-    }
+    }*/
 }
 </script>
 

+ 4 - 3
src/views/project/gist/list.vue

@@ -61,12 +61,13 @@ const projectStage = ref([])
 
 //搜索条件
 const searchForm = ref({
-    targetPlan: '', year: '', workFocusStage: null,
+    targetPlan: '', workFocusStage: null,
     current: 1, size: 20, total: 0,
 })
 const searchClick = () => {
-    searchForm.value.current = 1
-    getTableData()
+    console.log(searchForm.value)
+    //searchForm.value.current = 1
+    //getTableData()
 }
 
 //分页