From 2d49a7a49be4cab1d1109a780a031bcb7028069c Mon Sep 17 00:00:00 2001 From: hhyykk Date: Sat, 21 Dec 2024 21:36:17 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=B7=9F=E8=B8=AA=E8=A1=A8=E5=8D=95=E5=92=8C=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projecttracking/ProjectTrackingForm.vue | 15 +++++------- src/views/pm/projecttracking/index.vue | 24 ++----------------- 2 files changed, 8 insertions(+), 31 deletions(-) diff --git a/src/views/pm/projecttracking/ProjectTrackingForm.vue b/src/views/pm/projecttracking/ProjectTrackingForm.vue index c92602b5..f69907eb 100644 --- a/src/views/pm/projecttracking/ProjectTrackingForm.vue +++ b/src/views/pm/projecttracking/ProjectTrackingForm.vue @@ -110,14 +110,11 @@ - @@ -163,8 +160,8 @@ - - + + @@ -323,7 +320,7 @@ const formData = ref({ situation: undefined, emergency: undefined, entrustmentMethod: undefined, - emergencyDocId: undefined, + emergencyDocUrl: undefined, collaborativeProjects: undefined, cooperativeCompanyId: undefined, landingPossibility: undefined, @@ -426,7 +423,7 @@ const resetForm = () => { situation: undefined, emergency: undefined, entrustmentMethod: undefined, - emergencyDocId: undefined, + emergencyDocUrl: undefined, collaborativeProjects: undefined, cooperativeCompanyId: undefined, landingPossibility: undefined, diff --git a/src/views/pm/projecttracking/index.vue b/src/views/pm/projecttracking/index.vue index a2d42d92..8bea77f3 100644 --- a/src/views/pm/projecttracking/index.vue +++ b/src/views/pm/projecttracking/index.vue @@ -78,8 +78,6 @@ import { ProjectTrackingApi, ProjectTrackingVO } from '@/api/pm/projecttracking' import ProjectTrackingForm from './ProjectTrackingForm.vue' import SearchBarEx from "@/components/SearchBar/SearchBarEx.vue"; import { CustomerApi } from "@/api/pm/customer"; -import * as DeptApi from '@/api/system/dept' -import { handleTree } from '@/utils/tree' /** 项目跟踪 列表 */ defineOptions({ name: 'ProjectTracking' }) @@ -90,7 +88,7 @@ const loading = ref(true) // 列表的加载中 const list = ref([]) // 列表的数据 const total = ref(0) // 列表的总页数 const constructionOptions = ref([]); // 建设单位选项 -const deptOptions = ref([]) // 部门选项 +const deptOptions = []; // 部门选项 const queryParams = reactive({ pageNo: 1, pageSize: 10, @@ -178,11 +176,6 @@ const getConstructionOptions = async () => { }); } -const getDeptOptions = async () => { - deptOptions.value = handleTree(await DeptApi.getSimpleDeptList()) -} - - // 定义所有搜索字段 const allFields = [ { label: '项目名称', prop: 'name', component: 'el-input' }, @@ -192,19 +185,7 @@ const allFields = [ component: 'el-select', options: constructionOptions.value, }, - // { label: '主控部门', prop: 'deptName',component: 'el-input' }, - { - label: '主控部门', - prop: 'deptId', - component: 'el-tree-select', - props: { - data: deptOptions.value, - props: { children: 'children', label: 'name', value: 'id' }, - checkStrictly: true, - filterable: true, - clearable: true, - }, - }, + { label: '主控部门', prop: 'deptName',component: 'el-input' }, { label: '负责人', prop: 'pmName',component: 'el-input' }, { label: '合同额', prop: 'contractAmount', component: 'el-input' }, { label: '业务类型', prop: 'businessType', component: 'el-select', options: getStrDictOptions(DICT_TYPE.PROJECT_TYPE).map(dict => ({ label: dict.label, value: dict.value })) }, @@ -215,6 +196,5 @@ const allFields = [ onMounted(() => { getList() getConstructionOptions(); // 获取建设单位选项 - getDeptOptions(); // 获取部门树形结构 })