Browse Source

禁闭管理模块,对数据添加是否关联问题状态,如已关联问题,支持查看问题详情

master
buaixuexideshitongxue 2 weeks ago
parent
commit
faf3a300c2
  1. 27
      src/views/work/Confinement.vue

27
src/views/work/Confinement.vue

@ -307,7 +307,14 @@ function getDaysBetweenDates(date1, date2) {
return diffDays; return diffDays;
} }
//
const show = ref(false);
const activeNegativeId = ref("");
function handleAction(row) {
show.value = true;
activeNegativeId.value = row.negativeId;
}
onMounted(() => { onMounted(() => {
@ -462,6 +469,11 @@ onMounted(() => {
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否关联问题" width="120">
<template #default="{ row }">
<span>{{ row.negativeId ? '是' : '/' }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" min-width="180"> <el-table-column label="操作" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<div class="flex v-center"> <div class="flex v-center">
@ -486,6 +498,14 @@ onMounted(() => {
> >
删除 删除
</el-button> </el-button>
<el-button
v-if="row.negativeId"
type="primary"
link
@click="handleAction(row)"
>
问题详情
</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -915,6 +935,13 @@ onMounted(() => {
</footer> </footer>
</el-dialog> </el-dialog>
<!-- 问题详情 -->
<negative-dialog
v-model="show"
:id="activeNegativeId"
@close="show = false"
ref="negativeDialogRef"
/>
</div> </div>
</template> </template>

Loading…
Cancel
Save