duy преди 2 години
родител
ревизия
45dbb1134d
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 1 1
      src/views/home/index/admin.vue
  2. 3 1
      src/views/program/section/form.vue

+ 1 - 1
src/views/home/index/admin.vue

@@ -466,7 +466,7 @@ const getTableData1 = async () => {
 const rowViewClick = (row) => {
     console.log(row, 'row')
     router.push({ name: 'program-section-form', query:{
-        costType:row?.costTypeValue, projectId:row?.projectId, overPlan:true, deptId:row?.deptId,
+        costType:row?.costTypeValue, projectId:row?.projectId, overPlan:true, deptId:row?.deptId, costTypeValue:row?.costType,
     } })
 }
 

+ 3 - 1
src/views/program/section/form.vue

@@ -102,6 +102,7 @@ const departmentType = ref(useRoutes?.query?.departmentType ?? '')
 const deptId = ref(useRoutes?.query?.deptId ?? '')
 const overPlan = ref(useRoutes?.query?.overPlan ?? false)//是否延期计划
 const costType = ref(useRoutes?.query?.costType ?? '')//门户跳转过来的部门
+const costTypeValue = ref(useRoutes?.query?.costTypeValue ?? '')//门户跳转过来的部门
 const projectId = ref(useRoutes?.query?.projectId ?? '')//门户跳转过来的项目
 const deptName = ref(useRoutes?.query?.deptName ?? '')
 //缓存页面被激活时
@@ -113,6 +114,7 @@ onActivated(() => {
     deptId.value = useRoutes?.query?.deptId ?? ''
     overPlan.value = useRoutes?.query?.overPlan ?? false
     costType.value = useRoutes?.query?.costType ?? ''
+    costTypeValue.value = useRoutes?.query?.costTypeValue ?? ''
     projectId.value = useRoutes?.query?.projectId ?? ''
     deptName.value = useRoutes?.query?.deptName ?? ''
     getDepartmentuserDict()//获取部门人员字典
@@ -132,7 +134,7 @@ onActivated(() => {
 const getDepartmentTimeOutPlan = async ()=>{
     const { error, code, data } = await sectionApi.getDepartmentTimeOutPlan(
         {
-            costType:costType.value,
+            costType:costTypeValue.value,
             projectId:projectId.value,
         },
     )