This commit is contained in:
parent
64e06acc4d
commit
96aaf62dfa
|
|
@ -8,7 +8,6 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<!-- 操作栏 -->
|
||||
<div class="operation-bar">
|
||||
<el-button
|
||||
type="primary"
|
||||
|
|
@ -20,7 +19,7 @@
|
|||
</el-button>
|
||||
</div>
|
||||
|
||||
<!-- 表格:复选框列 -->
|
||||
<!-- 表格 -->
|
||||
<avue-crud
|
||||
:data="tableData"
|
||||
:page="page"
|
||||
|
|
@ -34,55 +33,28 @@
|
|||
@search-change="handleSearch"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<!-- 操作列:编辑按钮 -->
|
||||
<!-- 操作列:仅未下发项显示编辑/移除 -->
|
||||
<template #menu="{ row, size }">
|
||||
<el-button
|
||||
:size="size"
|
||||
type="primary"
|
||||
link
|
||||
:icon="Edit"
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<!-- 移除按钮 -->
|
||||
<el-button
|
||||
:size="size"
|
||||
type="danger"
|
||||
link
|
||||
:icon="Delete"
|
||||
@click="handleRemove(row)"
|
||||
>
|
||||
移除
|
||||
</el-button>
|
||||
<template v-if="row.isIssue !== 1">
|
||||
<el-button :size="size" type="primary" link :icon="Edit" @click="handleEdit(row)">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button :size="size" type="danger" link :icon="Delete" @click="handleRemove(row)">
|
||||
移除
|
||||
</el-button>
|
||||
</template>
|
||||
</template>
|
||||
</avue-crud>
|
||||
</el-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
title="编辑整改内容"
|
||||
width="500px"
|
||||
@close="closeDialog"
|
||||
>
|
||||
<avue-form
|
||||
ref="formRef"
|
||||
:option="editOption"
|
||||
v-model="formData"
|
||||
:rules="rules"
|
||||
/>
|
||||
<template #footer>
|
||||
<el-button @click="closeDialog">取消</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="submitEdit"
|
||||
:loading="submitLoading"
|
||||
>
|
||||
保存
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- 编辑弹窗(保持不变) -->
|
||||
<el-dialog v-model="dialogVisible" title="编辑整改内容" width="500px" @close="closeDialog">
|
||||
<avue-form ref="formRef" :option="editOption" v-model="formData" :rules="rules" />
|
||||
<template #footer>
|
||||
<el-button @click="closeDialog">取消</el-button>
|
||||
<el-button type="primary" @click="submitEdit" :loading="submitLoading">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -423,8 +395,4 @@ const handleRemove = async (row) => {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.operation-bar {
|
||||
margin-bottom: 15px;
|
||||
padding: 10px 0;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue