Commit b42b3220 by liimin

Merge branch 'master' of http://192.168.3.233:8090/glsx-web/tFIMS

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