|
@@ -10,6 +10,7 @@
|
|
|
:icon="item.icon"
|
|
|
:plain="item.plain?item.plain:false"
|
|
|
:disabled="item.disabled"
|
|
|
+ :v-hasPermi="item.hasPermi"
|
|
|
@click="buttonList(item)">
|
|
|
{{ item.name }}
|
|
|
</el-button>
|
|
@@ -76,9 +77,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="item.name === '操作'">
|
|
|
<span v-if="item.operation == 1">
|
|
|
- <el-button type="text" @click="viewMethod(scope)">查看</el-button>
|
|
|
+ <el-button type="text" @click="viewMethod(scope)" :v-hasPermi="hasPermi.lookup">查看</el-button>
|
|
|
<!-- <el-button type="text" @click="modification(scope)">修改</el-button>-->
|
|
|
- <el-button type="text" @click="deletion(scope)" v-if="scope.row.fBillstatus < 4">删除</el-button>
|
|
|
+ <el-button type="text" @click="deletion(scope)" v-if="scope.row.fBillstatus < 4" :v-hasPermi="hasPermi.disappear">删除</el-button>
|
|
|
</span>
|
|
|
<span v-if="item.operation == 2">
|
|
|
<el-button type="text" @click="deleteRow(scope.$index, tableData)" :disabled="item.disabled">移除</el-button>
|
|
@@ -170,7 +171,7 @@ import { addSet, resetModule } from "@/api/system/set";
|
|
|
import Cookies from "js-cookie";
|
|
|
export default {
|
|
|
name: 'listComponent',
|
|
|
- props: ['tableData', 'listStyle','queryList','customButton','arrow','setRowList','isItHidden','tatolLabel','listData'],
|
|
|
+ props: ['tableData', 'listStyle','queryList','customButton','arrow','setRowList','isItHidden','tatolLabel','listData','hasPermi'],
|
|
|
data() {
|
|
|
return {
|
|
|
showSetting: false,
|