[fix] 修改项目名称,添加项目信息附件归档

This commit is contained in:
hhyykk 2024-07-15 22:10:57 +08:00
parent 0aa66c1420
commit bc4ecedb43
4 changed files with 19 additions and 6 deletions

2
.env
View File

@ -1,5 +1,5 @@
# 标题
VITE_APP_TITLE=信息管理系统
VITE_APP_TITLE=项目管理系统
# 项目本地运行端口号
VITE_PORT=80

View File

@ -60,9 +60,16 @@
:show-overflow-tooltip="true"
row-key="id"
>
<el-table-column label="id" align="center" prop="id" width="150" />
<!-- <el-table-column label="id" align="center" prop="id" width="150" />-->
<el-table-column label="文件名称" align="center" prop="name" />
<el-table-column label="文件地址" align="center" prop="url" />
<el-table-column
label="文件大小"
align="center"
prop="size"
width="120"
:formatter="fileSizeFormatter"
/>
<el-table-column
label="创建时间"
align="center"
@ -96,6 +103,7 @@ import FolderTree from './FolderTree.vue'
import { ElTree, UploadRequestOptions } from 'element-plus'
import { useUpload, ResponseFile } from '@/components/UploadFile/src/useUpload'
import { dateFormatter } from '@/utils/formatTime'
import {fileSizeFormatter} from "@/utils";
/** 文件目录 列表 */
defineOptions({ name: 'Category' })

View File

@ -253,12 +253,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="评审附件" prop="reviewFileUrl">
<UploadFile v-model="formData.reviewFileUrl" />
<UploadFile v-model="formData.reviewFileUrl" :category-path="reviewPath"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="中标附件" prop="winFileUrl">
<UploadFile v-model="formData.winFileUrl" />
<UploadFile v-model="formData.winFileUrl" :category-path="winPath"/>
</el-form-item>
</el-col>
</el-row>
@ -295,6 +295,8 @@ const formType = ref('') // 表单的类型create - 新增update - 修改
const userOptions = ref<UserApi.UserVO[]>([]) //
const customerCompanyOptions = ref<CustomerCompanyVO[]>([]) //
const deptOptions = ref<any[]>([]) //
const reviewPath = ref('/根目录/项目管理/项目立项/评审附件') //
const winPath = ref('/根目录/项目管理/项目立项/中标附件') //
const formData = ref({
id: undefined,

View File

@ -225,12 +225,12 @@
<!-- </el-col>-->
<el-col :span="24">
<el-form-item label="评审附件" prop="reviewFileUrl">
<UploadFile v-model="formData.reviewFileUrl" />
<UploadFile v-model="formData.reviewFileUrl" :category-path="reviewPath"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="中标附件" prop="winFileUrl">
<UploadFile v-model="formData.winFileUrl" />
<UploadFile v-model="formData.winFileUrl" :category-path="winPath"/>
</el-form-item>
</el-col>
</el-row>
@ -318,6 +318,9 @@ const areaList = ref([]) // 地区列表
const cityList = ref([]); // options
const customerCompanyOptions = ref<CustomerCompanyVO[]>([]) //
const deptOptions = ref<any[]>([]) //
const reviewPath = ref('/根目录/项目管理/项目立项/评审附件') //
const winPath = ref('/根目录/项目管理/项目立项/中标附件') //
/** 提交表单 */
const submitForm = async () => {