This commit is contained in:
dhr
2025-08-21 18:38:02 +08:00
parent 525733b9e5
commit 37c914c662
3 changed files with 27 additions and 7 deletions

View File

@ -32,6 +32,7 @@
<!-- 任务列表表格 -->
<el-table v-loading="loading" :data="masterList" @selection-change="handleSelectionChange" border>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="执行人名称" align="center" prop="slaveName" />
<el-table-column label="任务名称" align="center" prop="taskName" />
<el-table-column label="任务描述" align="center" prop="describe" />
<el-table-column label="计划完成时间" align="center" prop="pcd" width="180">
@ -631,8 +632,18 @@ const handleExport = () => {
proxy?.download('patch/patch/export', { ...queryParams.value }, `任务列表_${new Date().getTime()}.xlsx`);
};
onMounted(() => {
getList();
// 监听项目id刷新数据
const listeningProject = watch(
() => currentProject.value?.id,
(nid, oid) => {
queryParams.value.projectId = nid;
form.value.projectId = nid;
getList();
}
);
onUnmounted(() => {
listeningProject();
});
</script>

View File

@ -557,8 +557,18 @@ const handleFileRemove = (file: UploadFile) => {
console.log('移除文件:', file);
};
onMounted(() => {
getList();
// 监听项目id刷新数据
const listeningProject = watch(
() => currentProject.value?.id,
(nid, oid) => {
queryParams.value.projectId = nid;
form.value.projectId = nid;
getList();
}
);
onUnmounted(() => {
listeningProject();
});
</script>

View File

@ -64,7 +64,6 @@
<!-- 数据表格 -->
<el-table v-loading="loading" :data="supplierInputList" @selection-change="handleSelectionChange" border>
<el-table-column type="selection" width="100%" align="center" />
<el-table-column label="ID" align="center" prop="id" width="80" />
<el-table-column label="企业登记注册类型" align="center" prop="supplierType" width="140" />
<el-table-column label="企业名称" align="center" prop="supplierName" width="180" />
<el-table-column label="法定代表人" align="center" prop="supplierPerson" width="120" />
@ -116,8 +115,8 @@
</el-card>
<!-- 新增/修改对话框 -->
<el-dialog :title="dialog.title" v-model="dialog.visible" width="800px" append-to-body>
<el-form ref="supplierInputFormRef" :model="form" :rules="rules" label-width="140px">
<el-dialog :title="dialog.title" v-model="dialog.visible" width="950px" append-to-body>
<el-form ref="supplierInputFormRef" :model="form" :rules="rules" label-width="200px">
<!-- 第一行基础信息2列布局 -->
<el-row :gutter="20" class="mb-4">
<el-col :span="12">