From f6363877ff1105d692ffe31bb79cd936a0ba9307 Mon Sep 17 00:00:00 2001 From: 13937891274 <kxc0822> Date: 星期五, 05 八月 2022 10:00:22 +0800 Subject: [PATCH] 数据对接 --- src/views/contingencyManagement/emergencyPlanStartRecord/index.vue | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/views/contingencyManagement/emergencyPlanStartRecord/index.vue b/src/views/contingencyManagement/emergencyPlanStartRecord/index.vue index 0d3ca4f..f915e2a 100644 --- a/src/views/contingencyManagement/emergencyPlanStartRecord/index.vue +++ b/src/views/contingencyManagement/emergencyPlanStartRecord/index.vue @@ -62,7 +62,7 @@ width="55" /> <el-table-column prop="planId" label="应急预案" min-width="120" show-overflow-tooltip sortable></el-table-column> - <el-table-column prop="userId" label="启动人" min-width="120" show-overflow-tooltip sortable></el-table-column> + <el-table-column prop="username" label="启动人" min-width="120" show-overflow-tooltip sortable></el-table-column> <el-table-column prop="startCreate" label="启动时间" min-width="120" show-overflow-tooltip sortable></el-table-column> <el-table-column prop="remark" label="备注" min-width="120" show-overflow-tooltip sortable></el-table-column> <el-table-column label="操作" width="200" align="center" fixed="right"> @@ -72,11 +72,11 @@ <View /> </el-icon>查看 </el-button> - <el-button size="small" text type="primary" @click="onEdit('修改',scope.row.id)"> - <el-icon style="margin-right: 5px;"> - <EditPen /> - </el-icon>修改 - </el-button> +<!-- <el-button size="small" text type="primary" @click="onEdit('修改',scope.row.id)">--> +<!-- <el-icon style="margin-right: 5px;">--> +<!-- <EditPen />--> +<!-- </el-icon>修改--> +<!-- </el-button>--> <el-button size="small" text type="primary" @click="onRowDel(scope.row.id)"> <el-icon> <Delete /> @@ -99,7 +99,7 @@ /> </div> </el-card> - <SelectEmergencyPlan ref="showRef"/> + <SelectEmergencyPlan ref="showRef" @SearchUser="onUser"/> <OpenSee ref="editRef" @myAdd="onMyAdd" /> </div> </template> @@ -216,6 +216,9 @@ const daiInpt=()=>{ showRef.value.openDailog() } + const onUser = (e:any) => { + listQuery.searchParams.planId=e.id + }; // 删除用户 const onRowDel = (data: any) => { ElMessageBox.confirm('确定删除所选项吗?', '提示',{ @@ -321,6 +324,8 @@ deleteAll, warning, danger, + total, + onUser, handleSelectionChange, }; }, -- Gitblit v1.9.2