update 优化 标识符错误

This commit is contained in:
疯狂的狮子Li 2024-06-06 10:59:20 +08:00
parent 75ecc4dd68
commit 61df97c4b9
3 changed files with 7 additions and 7 deletions

View File

@ -167,7 +167,7 @@ export const dynamicRoutes: RouteRecordRaw[] = [
path: '/workflow/leaveEdit', path: '/workflow/leaveEdit',
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['demo:leave:edit'], permissions: ['workflow:leave:edit'],
children: [ children: [
{ {
path: 'index', path: 'index',

View File

@ -22,10 +22,10 @@
<template #header> <template #header>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button v-hasPermi="['demo:leave:add']" type="primary" plain icon="Plus" @click="handleAdd">新增</el-button> <el-button v-hasPermi="['workflow:leave:add']" type="primary" plain icon="Plus" @click="handleAdd">新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button v-hasPermi="['demo:leave:export']" type="warning" plain icon="Download" @click="handleExport">导出</el-button> <el-button v-hasPermi="['workflow:leave:export']" type="warning" plain icon="Download" @click="handleExport">导出</el-button>
</el-col> </el-col>
<right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar>
</el-row> </el-row>
@ -60,7 +60,7 @@
<template #default="scope"> <template #default="scope">
<el-button <el-button
v-if="scope.row.status === 'draft' || scope.row.status === 'cancel' || scope.row.status === 'back'" v-if="scope.row.status === 'draft' || scope.row.status === 'cancel' || scope.row.status === 'back'"
v-hasPermi="['demo:leave:edit']" v-hasPermi="['workflow:leave:edit']"
size="small" size="small"
link link
type="primary" type="primary"
@ -70,7 +70,7 @@
> >
<el-button <el-button
v-if="scope.row.status === 'draft' || scope.row.status === 'cancel' || scope.row.status === 'back'" v-if="scope.row.status === 'draft' || scope.row.status === 'cancel' || scope.row.status === 'back'"
v-hasPermi="['demo:leave:remove']" v-hasPermi="['workflow:leave:remove']"
size="small" size="small"
link link
type="primary" type="primary"

View File

@ -75,14 +75,14 @@
content="修改" content="修改"
placement="top" placement="top"
> >
<el-button v-hasPermi="['demo:leave:edit']" link type="primary" icon="Edit" @click="handleOpen(scope.row, 'update')"></el-button> <el-button link type="primary" icon="Edit" @click="handleOpen(scope.row, 'update')"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip <el-tooltip
v-if="scope.row.businessStatus === 'draft' || scope.row.businessStatus === 'cancel' || scope.row.businessStatus === 'back'" v-if="scope.row.businessStatus === 'draft' || scope.row.businessStatus === 'cancel' || scope.row.businessStatus === 'back'"
content="删除" content="删除"
placement="top" placement="top"
> >
<el-button v-hasPermi="['demo:leave:remove']" link type="primary" icon="Delete" @click="handleDelete(scope.row)"></el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip placement="top" content="查看"> <el-tooltip placement="top" content="查看">
<el-button link type="primary" icon="View" @click="handleOpen(scope.row, 'view')"></el-button> <el-button link type="primary" icon="View" @click="handleOpen(scope.row, 'view')"></el-button>