Commit 988d887f by cwq0219

按钮权限,图tooltip

1 parent c2e97b11
......@@ -26,7 +26,14 @@ export const home = {
id: '101',
pid: '0'
},
component: _import('systemMonitor')
component: _import('systemMonitor'),
auth: {
'action': [{
id: '10101',
pid: '101',
label: '导出'
}]
}
}
export const sys = [
// 系统 前端日志
......@@ -140,7 +147,23 @@ export const resources = {
// id: '102',
// pid: '0'
// },
// component: _import('trafficManagement')
// component: _import('trafficManagement'),
// auth: {
// 'operation': [{
// id: '10201',
// pid: '102',
// label: '编辑'
// }, {
// id: '10202',
// pid: '102',
// label: '删除'
// }],
// 'action': [{
// id: '10203',
// pid: '102',
// label: '添加车辆'
// }]
// }
// },
'103': {
path: '/subSysManagement',
......@@ -152,21 +175,70 @@ export const resources = {
id: '103',
pid: '0'
},
component: _import('subSysManagement')
component: _import('subSysManagement'),
auth: {
'operation': [{
id: '10301',
pid: '103',
label: '编辑'
}, {
id: '10302',
pid: '103',
label: '删除'
}],
'action': [{
id: '10303',
pid: '103',
label: '添加子系统'
}]
}
},
'104': {
path: '/trafficManagement',
icon: 'train',
name: '车辆管理',
name: '物料管理',
meta: {
auth: true,
title: '物料管理',
id: '104',
pid: '0'
},
component: _import('deviceManagement')
component: _import('deviceManagement'),
auth: {
'operation': [{
id: '10401',
pid: '104',
label: '编辑'
}, {
id: '10402',
pid: '104',
label: '删除'
}],
'action': [{
id: '10403',
pid: '104',
label: '导入'
}, {
id: '10404',
pid: '104',
label: '导出'
}]
}
},
'105': {
path: 'materialList',
icon: 'folder-o',
icon: 'file-text-o',
name: '物料列表',
meta: {
auth: true,
title: '物料列表',
id: '105',
pid: '0'
},
component: _import('materialList'),
},
'106': {
path: '/bb',
icon: 'file-text-o',
name: '单据管理',
......@@ -187,7 +259,23 @@ export const resources = {
id: '10601',
pid: '106'
},
component: _import('materiaOrderManagement')
component: _import('materiaOrderManagement'),
auth: {
'operation': [{
id: '1060101',
pid: '10601',
label: '查看详情'
}, {
id: '1060102',
pid: '10601',
label: '删除'
}],
'action': [{
id: '1060103',
pid: '10601',
label: '订单下载'
}]
}
},
'10602': {
path: '/maintainManagement',
......@@ -199,7 +287,19 @@ export const resources = {
id: '10602',
pid: '106'
},
component: _import('maintainManagement')
component: _import('maintainManagement'),
auth: {
'operation': [{
id: '1060201',
pid: '10602',
label: '删除'
}],
'action': [{
id: '1060202',
pid: '10602',
label: '导出订单'
}]
}
},
'107': {
path: '/user',
......
......@@ -28,14 +28,14 @@
<el-row style="height: 40px; line-height: 40px">
<el-col :span="12">物料列表</el-col>
<el-col :span="12" style="text-align: right">
<el-button class="import-button" style="">导入
<auth-button label="导入" class="import-button" type="">
<input
type="file"
class="import-input"
accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@change="importFile($event)" />
</el-button>
<el-button>导出</el-button>
</auth-button>
<auth-button label="导出" type=""></auth-button>
</el-col>
</el-row>
<el-table
......@@ -286,8 +286,6 @@ export default {
</script>
<style scoped>
.import-button {
width: 70px;
height: 40px;
overflow: hidden;
position: relative;
cursor: pointer;
......
......@@ -44,7 +44,7 @@
<el-row style="height: 40px; line-height: 40px">
<el-col :span="12">作业单列表</el-col>
<el-col :span="12" style="text-align: right">
<el-button @click="exportOrder">导出订单</el-button>
<auth-button label="导出订单" type="" @e-auth-click="exportOrder"></auth-button>
</el-col>
</el-row>
<el-table
......@@ -81,10 +81,10 @@
label="操作"
>
<template slot-scope="scope">
<el-button
type="text"
@click="handleDelete(scope.$index, scope.row)"
>删除</el-button>
<auth-button
label="删除"
@e-auth-click="handleDelete(scope.$index, scope.row)"
></auth-button>
</template>
</el-table-column>
</el-table>
......
......@@ -34,7 +34,7 @@
<el-row style="height: 40px; line-height: 40px">
<el-col :span="12">订单列表</el-col>
<el-col :span="12" style="text-align: right">
<el-button>订单下载</el-button>
<auth-button label="订单下载" type=""></auth-button>
</el-col>
</el-row>
<el-table
......@@ -71,14 +71,14 @@
label="操作"
>
<template slot-scope="scope">
<el-button
type="text"
@click="handleDetail(scope.row, scope.$index)"
>查看详情</el-button>
<el-button
type="text"
@click="handleDelete(scope.$index, scope.row)"
>删除</el-button>
<auth-button
label="查看详情"
@e-auth-click="handleDetail(scope.row, scope.$index)"
></auth-button>
<auth-button
label="删除"
@e-auth-click="handleDelete(scope.$index, scope.row)"
></auth-button>
</template>
</el-table-column>
</el-table>
......
......@@ -28,7 +28,8 @@
<el-row style="height: 40px; line-height: 40px">
<el-col :span="12">子系统列表</el-col>
<el-col :span="12" style="text-align: right">
<el-button @click="handleEdit(editFormReset)">添加子系统</el-button>
<!-- <el-button @click="handleEdit(editFormReset)">添加子系统</el-button> -->
<auth-button label="添加子系统" type="" @e-auth-click="handleEdit(editFormReset)">添加子系统</auth-button>
</el-col>
</el-row>
<el-table
......@@ -65,14 +66,14 @@
label="操作"
>
<template slot-scope="scope">
<el-button
type="text"
@click="handleEdit(scope.row, scope.$index)"
>编辑</el-button>
<el-button
type="text"
@click="handleDelete(scope.$index, scope.row)"
>删除</el-button>
<auth-button
label="编辑"
@e-auth-click="handleEdit(scope.row, scope.$index)"
></auth-button>
<auth-button
label="删除"
@e-auth-click="handleDelete(scope.$index, scope.row)"
></auth-button>
</template>
</el-table-column>
</el-table>
......
......@@ -60,7 +60,8 @@
<el-row style="height: 40px; line-height: 40px">
<el-col :span="12">车辆状态列表</el-col>
<el-col :span="12" style="text-align: right">
<el-button>导出</el-button>
<!-- <el-button>导出</el-button> -->
<auth-button label="导出"></auth-button>
</el-col>
</el-row>
<el-table
......@@ -113,6 +114,7 @@
import { getListApi, reportApi } from '@api/systemMonitor'
import notice from '@/common/notice'
require('echarts/lib/chart/pie')
require("echarts/lib/component/tooltip");
let echarts = require('echarts/lib/echarts')
......@@ -148,7 +150,8 @@ export default {
center: ['25%', '50%'],
label: {
normal: {
fontSize: 16
fontSize: 16,
formatter: '{b}: {c}'
}
},
data: [{
......@@ -172,7 +175,8 @@ export default {
center: ['75%', '50%'],
label: {
normal: {
fontSize: 16
fontSize: 16,
formatter: '{b}: {c}'
}
},
data: [{
......
......@@ -31,7 +31,8 @@
<el-row style="height: 40px; line-height: 40px">
<el-col :span="12">车辆列表</el-col>
<el-col :span="12" style="text-align: right">
<el-button @click="handleEdit(editFormReset)">添加车辆</el-button>
<!-- <el-button @click="handleEdit(editFormReset)">添加车辆</el-button> -->
<auth-button label="添加车辆" type="" @e-auth-click="handleEdit(editFormReset)"></auth-button>
</el-col>
</el-row>
<el-table
......@@ -68,14 +69,14 @@
label="操作"
>
<template slot-scope="scope">
<el-button
type="text"
@click="handleEdit(scope.row, scope.$index)"
>编辑</el-button>
<el-button
type="text"
@click="handleDelete(scope.$index, scope.row)"
>删除</el-button>
<auth-button
label="编辑"
@e-auth-click="handleEdit(scope.row, scope.$index)"
></auth-button>
<auth-button
label="删除"
@e-auth-click="handleDelete(scope.$index, scope.row)"
></auth-button>
</template>
</el-table-column>
</el-table>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!