按钮权限

This commit is contained in:
bb_pan 2025-09-02 18:23:49 +08:00
parent d35aae72e6
commit 0d9f0a7b7f
3 changed files with 11 additions and 7 deletions

View File

@ -36,7 +36,7 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5" v-hasPermi="['direct:info:add']">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">直转申请</el-button> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">直转申请</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -83,7 +83,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="mini" icon="el-icon-search" @click="handleEdit(scope.row, 1)">查看</el-button> <el-button type="text" size="mini" icon="el-icon-search" @click="handleEdit(scope.row, 1)">查看</el-button>
<el-button <el-button
v-if="scope.row.status == '0'" v-show="scope.row.status == '0'"
v-hasPermi="['direct:info:edit']"
type="text" type="text"
size="mini" size="mini"
icon="el-icon-edit" icon="el-icon-edit"
@ -92,7 +93,8 @@
编辑 编辑
</el-button> </el-button>
<el-button <el-button
v-if="scope.row.status == '0'" v-show="scope.row.status == '0'"
v-hasPermi="['direct:info:delete']"
type="text" type="text"
size="mini" size="mini"
icon="el-icon-delete" icon="el-icon-delete"

View File

@ -41,7 +41,7 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5" v-hasPermi="['business:info:add']">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">领料申请</el-button> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">领料申请</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -85,7 +85,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="mini" icon="el-icon-search" @click="handleEdit(scope.row, 1)">查看</el-button> <el-button type="text" size="mini" icon="el-icon-search" @click="handleEdit(scope.row, 1)">查看</el-button>
<el-button <el-button
v-if="scope.row.taskStatus == '0' || scope.row.taskStatus == '5'" v-show="scope.row.taskStatus == '0' || scope.row.taskStatus == '5'"
v-hasPermi="['business:info:edit']"
type="text" type="text"
size="mini" size="mini"
icon="el-icon-edit" icon="el-icon-edit"
@ -103,7 +104,8 @@
业务联系单 业务联系单
</el-button> </el-button>
<el-button <el-button
v-if="scope.row.taskStatus == '0' || scope.row.taskStatus == '5'" v-show="scope.row.taskStatus == '0' || scope.row.taskStatus == '5'"
v-hasPermi="['business:info:delete']"
type="text" type="text"
size="mini" size="mini"
icon="el-icon-delete" icon="el-icon-delete"

View File

@ -44,7 +44,7 @@
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">
减免申请-- 减免申请
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">