修改bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2021-11-18 14:16:25
|
||||
* @LastEditors: zhp
|
||||
* @LastEditTime: 2024-04-11 09:10:16
|
||||
* @LastEditTime: 2024-04-11 13:35:46
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -62,7 +62,8 @@
|
||||
<div v-if="!isdetail" class="action_btn">
|
||||
<template>
|
||||
<span style="display: inline-block;">
|
||||
<el-button type="text" @click="addNew()" icon="el-icon-plus">新增</el-button>
|
||||
<el-button v-if="this.$auth.hasPermi('extend:process-equ-material-bom-det:add')" type="text"
|
||||
@click="addNew()" icon="el-icon-plus">新增</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</div>
|
||||
@@ -101,11 +102,15 @@ import attrAdd from './attr-add';
|
||||
import { publicFormatter } from '@/utils/dict';
|
||||
const tableBtn = [
|
||||
{
|
||||
type: 'edit',
|
||||
type: this.$auth.hasPermi('extend:process-equ-material-bom-det:update')
|
||||
? 'edit'
|
||||
: '',
|
||||
btnName: '编辑',
|
||||
},
|
||||
{
|
||||
type: 'delete',
|
||||
type: this.$auth.hasPermi('extend:process-equ-material-bom-det:delete')
|
||||
? 'delete'
|
||||
: '',
|
||||
btnName: '删除',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2021-11-18 14:16:25
|
||||
* @LastEditors: zhp
|
||||
* @LastEditTime: 2024-04-11 09:10:35
|
||||
* @LastEditTime: 2024-04-11 13:35:42
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -72,7 +72,8 @@
|
||||
<div v-if="!isdetail" class="action_btn">
|
||||
<template>
|
||||
<span style="display: inline-block;">
|
||||
<el-button type="text" @click="addNew()" icon="el-icon-plus">新增</el-button>
|
||||
<el-button v-if="this.$auth.hasPermi('extend:process-equ-value-bom-det:add')" type="text"
|
||||
@click="addNew()" icon="el-icon-plus">新增</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</div>
|
||||
@@ -111,11 +112,15 @@ import attrAdd from './attr-add';
|
||||
|
||||
const tableBtn = [
|
||||
{
|
||||
type: 'edit',
|
||||
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:update')
|
||||
? 'edit'
|
||||
: '',
|
||||
btnName: '编辑',
|
||||
},
|
||||
{
|
||||
type: 'delete',
|
||||
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:delete')
|
||||
? 'delete'
|
||||
: '',
|
||||
btnName: '删除',
|
||||
},
|
||||
];
|
||||
@@ -156,7 +161,9 @@ const tableProps = [
|
||||
|
||||
const topBtnConfig = [
|
||||
{
|
||||
type: 'add',
|
||||
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:add')
|
||||
? 'add'
|
||||
: '',
|
||||
btnName: 'btn.add'
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user