From ef0313a2670f82b910de7728c573a41547691a40 Mon Sep 17 00:00:00 2001 From: hejianhao <15708179461@qq.com> Date: 星期二, 13 五月 2025 17:40:25 +0800 Subject: [PATCH] 路由冲突 --- laboratory/src/views/dataManagement/dispatching/list.vue | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/laboratory/src/views/dataManagement/dispatching/list.vue b/laboratory/src/views/dataManagement/dispatching/list.vue index ea67eba..11c614f 100644 --- a/laboratory/src/views/dataManagement/dispatching/list.vue +++ b/laboratory/src/views/dataManagement/dispatching/list.vue @@ -49,6 +49,7 @@ 实验与调度列表 </div> <div + v-if="userRole === '3'" class="drafts" :class="{ active: currentType === 'draft' }" @click="handleTypeChange('draft')" @@ -56,9 +57,14 @@ 草稿箱 </div> </div> - <el-button @click="handleAddPlan" class="el-icon-plus" type="primary"> - 新增实验调度</el-button + <el-button + v-if="userRole === '3'" + @click="handleAddPlan" + class="el-icon-plus" + type="primary" > + 新增实验调度 + </el-button> </div> </template> <template #table> @@ -136,6 +142,7 @@ :type="approvalDialogType" :data="currentApprovalData" @close="approvalDialogVisible = false" + @update:data="handleUpdateData" /> <ShowDelConfirm :title="changeStatusTitle" @@ -262,9 +269,10 @@ status: this.currentType === 'draft' ? '-1' : this.form.status }; getDispatchList(params).then(res => { - if (res) { - this.tableData = res.records || []; - this.total = res.total || 0; + console.log('111111111111',res) + if (res.code==200) { + this.tableData = res.data.records || []; + this.total = res.data.total || 0; } }); }, @@ -291,6 +299,10 @@ this.$message.error("删除失败"); }); }, + handleUpdateData() { + this.currentApprovalData = null; + this.getTableData(); + } }, }; </script> -- Gitblit v1.7.1