|
|
@@ -60,12 +60,17 @@
|
|
|
</template>
|
|
|
</zm-table-column>
|
|
|
|
|
|
- <zm-table-column
|
|
|
- label="执行单位"
|
|
|
- prop="executingUnitName"
|
|
|
- min-width="180"
|
|
|
- show-overflow-tooltip
|
|
|
- />
|
|
|
+ <zm-table-column label="执行单位" min-width="180" show-overflow-tooltip>
|
|
|
+ <template #default="scope">
|
|
|
+ <dict-tag
|
|
|
+ class="mr-5px"
|
|
|
+ v-for="(item, index) in scope.row.executingUnit"
|
|
|
+ :key="index"
|
|
|
+ :type="DICT_TYPE.EXECUTION_UNIT"
|
|
|
+ :value="item"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </zm-table-column>
|
|
|
<zm-table-column label="项目级别" prop="projectLevel" min-width="150">
|
|
|
<template #default="scope">
|
|
|
<dict-tag :type="DICT_TYPE.PROJECT_LEVEL" :value="scope.row.projectLevel" />
|
|
|
@@ -170,18 +175,19 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="执行单位" prop="executingUnit">
|
|
|
- <el-tree-select
|
|
|
- clearable
|
|
|
+ <el-select
|
|
|
v-model="formData.executingUnit"
|
|
|
- :data="deptList"
|
|
|
- :props="defaultProps"
|
|
|
- :check-strictly="true"
|
|
|
- node-key="id"
|
|
|
- filterable
|
|
|
multiple
|
|
|
placeholder="请选择执行单位"
|
|
|
- class="w-full"
|
|
|
- />
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in getIntDictOptions(DICT_TYPE.EXECUTION_UNIT)"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
@@ -455,7 +461,13 @@
|
|
|
/>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="执行单位">
|
|
|
- {{ detailData.executingUnitName || '-' }}
|
|
|
+ <dict-tag
|
|
|
+ class="mr-5px"
|
|
|
+ v-for="(item, index) in detailData.executingUnit"
|
|
|
+ :key="index"
|
|
|
+ :type="DICT_TYPE.EXECUTION_UNIT"
|
|
|
+ :value="item"
|
|
|
+ />
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="项目负责人">
|
|
|
{{ detailData.projectLeader }}
|
|
|
@@ -603,7 +615,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import { computed, reactive, ref, onMounted } from 'vue'
|
|
|
import { ElMessage, ElMessageBox, type FormRules } from 'element-plus'
|
|
|
-import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
|
|
|
+import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict'
|
|
|
import { getSimpleDeptList } from '@/api/system/dept'
|
|
|
import {
|
|
|
getProjectPage,
|
|
|
@@ -616,7 +628,7 @@ import {
|
|
|
approvePre,
|
|
|
approveFormal
|
|
|
} from '@/api/project'
|
|
|
-import { formatToDateTime, formatToDate } from '@/utils/dateUtil'
|
|
|
+import { formatToDate } from '@/utils/dateUtil'
|
|
|
|
|
|
defineOptions({ name: 'ResearchProjectList' })
|
|
|
|