提交代码

dev_xd
姜玉琦 2025-04-12 13:05:14 +08:00
parent ba6d050b71
commit 7c736b0fd5
2 changed files with 8 additions and 5 deletions

View File

@ -154,11 +154,14 @@
<el-tab-pane label="项目基本信息" name="base">
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="归属单位" prop="disDeptId">
<el-form-item label="归属单位" prop="disDeptId" v-if="!form.id">
<el-tree-select v-model="form.disDeptId" :data="deptOptions"
:props="{ value: 'id', label: 'label', children: 'children' }" value-key="id" placeholder="请选择归属单位"
check-strictly style="width:100%" />
</el-form-item>
<el-form-item label="归属单位" prop="disDeptId" v-if="form.id">
<el-tag effect="plain">{{ form.disDeptName }}</el-tag>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="项目名称" prop="projectName">

View File

@ -55,9 +55,9 @@
:default-expand-all="isExpandAll"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
>
<el-table-column prop="deptName" label="部门名称" width="260"></el-table-column>
<el-table-column prop="deptShortName" label="部门简称" align="center"/>
<el-table-column prop="sys_dept_type" label="部门类型" align="center">
<el-table-column prop="deptName" label="部门名称" />
<el-table-column prop="deptShortName" label="部门简称" align="center" width="250" show-overflow-tooltip/>
<el-table-column prop="sys_dept_type" label="部门类型" align="center" width="150">
<template #default="scope">
<dict-tag :options="sys_dept_type" :value="scope.row.deptType" />
</template>
@ -73,7 +73,7 @@
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" width="220" class-name="small-padding fixed-width">
<template #default="scope">
<div v-if="scope.row.deptType!='4'">
<el-button v-if="scope.row.deptId!=scope.row.comId || (isAdmin && scope.row.deptId==scope.row.comId)" link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:dept:edit']"></el-button>