This commit is contained in:
qsh
2025-03-03 17:44:39 +08:00
parent 039ab28c15
commit 770d700ba1
11 changed files with 205 additions and 61 deletions

View File

@@ -33,9 +33,15 @@
/>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleQuery">搜索</el-button>
<el-button @click="resetQuery">重置</el-button>
<el-button type="primary" @click="handleAdd">新增</el-button>
<el-button
type="primary"
@click="handleQuery"
v-hasPermi="['xj-applet:xj-database:search']"
>搜索</el-button
>
<el-button type="primary" @click="handleAdd" v-hasPermi="['xj-applet:xj-database:add']"
>新增</el-button
>
</el-form-item>
</el-row>
</el-form>
@@ -78,8 +84,22 @@
<el-table-column label="操作" align="center" width="140">
<template #default="scope">
<el-button type="primary" link @click="handleEdit(scope.row)">编辑</el-button>
<el-button type="primary" link @click="handleDelete(scope.row.id)">删除</el-button>
<el-button
type="primary"
link
@click="handleEdit(scope.row)"
v-hasPermi="['xj-applet:xj-database:edit']"
>
编辑
</el-button>
<el-button
type="primary"
link
@click="handleDelete(scope.row.id)"
v-hasPermi="['xj-applet:xj-database:remove']"
>
删除
</el-button>
</template>
</el-table-column>
</el-table>
@@ -138,11 +158,6 @@ function handleQuery() {
getList()
}
function resetQuery() {
queryParams.value.question = ''
handleQuery()
}
const dialogAddForm = ref(null)
function handleEdit(item) {
dialogAddForm.value.open(item, chapterOptions.value)