This commit is contained in:
qsh
2024-05-27 15:58:17 +08:00
parent 34b4f84293
commit 1f9be6227c
14 changed files with 173 additions and 43 deletions

View File

@@ -10,9 +10,11 @@
/>
</el-form-item>
<el-form-item>
<el-button @click="handleQuery"> 搜索</el-button>
<el-button @click="resetQuery"> 重置</el-button>
<el-button type="primary" plain @click="openForm('create')"> 新增 </el-button>
<el-button @click="handleQuery" v-hasPermi="['basic:dept:search']"> 搜索</el-button>
<el-button @click="resetQuery" v-hasPermi="['basic:dept:reset']"> 重置</el-button>
<el-button type="primary" plain @click="openForm('create')" v-hasPermi="['basic:dept:add']">
新增
</el-button>
</el-form-item>
</el-form>
@@ -25,8 +27,22 @@
<el-table-column label="创建时间" prop="createTime" width="180" :formatter="dateFormatter" />
<el-table-column label="操作" class-name="fixed-width" width="160">
<template #default="scope">
<el-button link type="primary" @click="openForm('update', scope.row.id)"> 修改 </el-button>
<el-button link type="danger" @click="handleDelete(scope.row.id)"> 删除 </el-button>
<el-button
link
type="primary"
@click="openForm('update', scope.row.id)"
v-hasPermi="['basic:dept:update']"
>
修改
</el-button>
<el-button
link
type="danger"
@click="handleDelete(scope.row.id)"
v-hasPermi="['basic:dept:delete']"
>
删除
</el-button>
</template>
</el-table-column>
</el-table>