检查项目设置-》检查类型维护

This commit is contained in:
2025-12-18 15:28:32 +08:00
parent d1331cd4e1
commit a7a1a18445
2 changed files with 42 additions and 30 deletions

View File

@@ -3,9 +3,7 @@
<!-- 顶部操作按钮区 -->
<div class="header-actions">
<el-button type="primary" @click="handlePackageManagement">套餐设置</el-button>
<el-button v-if="!isReadOnly" @click="handleRefresh" :loading="loading">
刷新
</el-button>
<el-button type="primary" v-if="!isReadOnly" @click="handleRefresh" :loading="loading">刷新</el-button>
<el-button v-if="!isReadOnly" type="success" @click="handleSave">保存</el-button>
</div>

View File

@@ -231,9 +231,9 @@
</div>
</div>
<div class="search-actions">
<el-button type="primary" :style="{ backgroundColor: hoverAddButton ? '#8a49e0' : '#722ED1', borderColor: hoverAddButton ? '#8a49e0' : '#722ED1' }" @mouseenter="hoverAddButton = true" @mouseleave="hoverAddButton = false" @click="handleAddNewRow">新增</el-button>
<el-button type="primary" @mouseenter="hoverAddButton = true" @mouseleave="hoverAddButton = false" @click="handleAddNewRow">新增</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
<el-button type="success" @click="handleExport">导出表格</el-button>
</div>
</div>
@@ -258,7 +258,7 @@
v-for="(item, index) in checkMethodData"
:key="index"
:class="{ 'editing-row': item.editing }"
@click=""
@click="handleEdit(index)"
>
<td>{{ item.row }}</td>
<td>
@@ -328,15 +328,22 @@
</template>
</td>
<td class="actions">
<button class="btn btn-edit" @click.stop="handleEdit(index)">
</button>
<template v-if="item.actions">
<button class="btn btn-confirm" @click.stop="handleConfirm(index)">
</button>
<button class="btn btn-delete" @click.stop="handleDelete(index)">
🗑
</button>
</template>
<template v-else>
<button class="btn btn-confirm" @click.stop="handleConfirm(index)">
</button>
<button class="btn btn-delete" @click.stop="handleDelete(index)">
🗑
</button>
</template>
</td>
</tr>
</tbody>
@@ -374,7 +381,7 @@
<div class="search-actions">
<el-button type="primary" @click="handleAddNewRow">新增</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
<el-button type="success" @click="handleExport">导出表格</el-button>
</div>
</div>
@@ -402,7 +409,7 @@
v-for="(item, index) in checkPartData"
:key="index"
:class="{ 'editing-row': item.editing }"
@click=""
@click="handleEdit(index)"
>
<td>{{ item.row }}</td>
<td>
@@ -504,15 +511,22 @@
</template>
</td>
<td class="actions">
<button class="btn btn-edit" @click.stop="handleEdit(index)">
</button>
<template v-if="item.actions">
<button class="btn btn-confirm" @click.stop="handleConfirm(index)">
</button>
<button class="btn btn-delete" @click.stop="handleDelete(index)">
🗑
</button>
</template>
<template v-else>
<button class="btn btn-confirm" @click.stop="handleConfirm(index)">
</button>
<button class="btn btn-delete" @click.stop="handleDelete(index)">
🗑
</button>
</template>
</td>
</tr>
</tbody>