图纸 优化

This commit is contained in:
2025-08-13 19:11:51 +08:00
parent 6d102306df
commit f06e1a0197
12 changed files with 1126 additions and 726 deletions

View File

@ -27,7 +27,7 @@
<el-table v-loading="loading" :data="professionalList">
<el-table-column label="序号" align="center" type="index" width="100" />
<el-table-column label="提资人" align="center" prop="userName" />
<el-table-column label="专业" align="center" prop="userMajor" />
<el-table-column label="专业" align="center" prop="userMajorName" />
<el-table-column label="电话" align="center" prop="phone" />
<el-table-column label="邮箱" align="center" prop="email" />
<el-table-column label="流程状态" align="center" prop="status">
@ -41,11 +41,9 @@
<el-col :span="1.5" v-if="scope.row.status === 'draft' || scope.row.status === 'cancel' || scope.row.status === 'back'">
<el-button size="small" type="primary" icon="Edit" @click="handleUpdate(scope.row)">审核</el-button>
</el-col>
<!-- <el-col :span="1.5" v-if="scope.row.status === 'draft' || scope.row.status === 'cancel' || scope.row.status === 'back'">
<el-button size="small" type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button>
</el-col> -->
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5" v-if="scope.row.status === 'finish'">
<el-button size="small" type="primary" icon="Download" @click="handleDownload(scope.row)">导出</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" size="small" icon="View" v-if="scope.row.status != 'draft'" @click="handleViewInfo(scope.row)"
>查看流程</el-button
@ -89,7 +87,7 @@ const queryFormRef = ref<ElFormInstance>();
const { queryParams } = toRefs(data);
// 查询提资清单表
const getList = async () => {
let res = await extractList({ projectId: currentProject.value?.id });
let res = await extractList({ ...queryParams.value });
if (res.code == 200) {
professionalList.value = res.rows;
total.value = res.total; //默认第一个
@ -137,8 +135,15 @@ const handleUpdate = (row) => {
}
});
};
const handleDelete = (row) => {
//
const handleDownload = (row) => {
// 导出接口
proxy?.download(
'design/extract/exportWord',
{
id: row.id
},
`互提资料.zip`
);
};
// 页面挂载时初始化数据