|
|
@@ -1,23 +1,24 @@
|
|
|
<template>
|
|
|
<div class="foot_box">
|
|
|
- <div
|
|
|
- v-for="(item, index) in btnListData"
|
|
|
- :key="index"
|
|
|
- class="btn"
|
|
|
- :style="{ background: item.disable ? '#858585' : item.bjColor }"
|
|
|
- v-if="$hasPermission(item.isShow)"
|
|
|
- @click="footClick(item)"
|
|
|
- >
|
|
|
- <img src="../../../assets/Frame.png" class="Frame" />
|
|
|
- {{ item.name }}
|
|
|
- </div>
|
|
|
+ <template v-for="(item, index) in btnListData">
|
|
|
+ <div
|
|
|
+ v-if="$hasPermission(item.isShow)"
|
|
|
+ :key="index"
|
|
|
+ class="btn"
|
|
|
+ :style="{ background: item.disable ? '#858585' : item.bjColor }"
|
|
|
+ @click="footClick(item)"
|
|
|
+ >
|
|
|
+ <img src="../../../assets/Frame.png" class="Frame" />
|
|
|
+ {{ item.name }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- props: {
|
|
|
- // ?
|
|
|
+ props: {
|
|
|
+ //
|
|
|
type: {
|
|
|
type: String | Number,
|
|
|
default: ''
|
|
|
@@ -48,7 +49,7 @@
|
|
|
name: '投料',
|
|
|
type: 'feed',
|
|
|
bjColor: '#FBD114',
|
|
|
- isShow:'mes:feed:save'
|
|
|
+ isShow: 'mes:feed:save'
|
|
|
},
|
|
|
{
|
|
|
name: '过程监测',
|
|
|
@@ -72,7 +73,7 @@
|
|
|
name: '暂停启动',
|
|
|
type: '',
|
|
|
bjColor: '#858585',
|
|
|
- isShow: 'mes:workorder:startstop',
|
|
|
+ isShow: 'mes:workorder:startstop'
|
|
|
},
|
|
|
{
|
|
|
name: '产后检查',
|
|
|
@@ -90,19 +91,19 @@
|
|
|
name: '工艺文件',
|
|
|
type: 'work',
|
|
|
bjColor: '#2f3033',
|
|
|
- isShow: 'mes:workorder:bomfile',
|
|
|
+ isShow: 'mes:workorder:bomfile'
|
|
|
},
|
|
|
{
|
|
|
name: '工步',
|
|
|
type: 'workStep',
|
|
|
bjColor: '#409EFF',
|
|
|
- isShow: 'main:categoryparamstep:save',
|
|
|
+ isShow: 'main:categoryparamstep:save'
|
|
|
},
|
|
|
{
|
|
|
name: '任务',
|
|
|
type: 'task',
|
|
|
bjColor: '#67c23a',
|
|
|
- isShow: 'aps:assign:save',
|
|
|
+ isShow: 'aps:assign:save'
|
|
|
},
|
|
|
{
|
|
|
name: '异常',
|
|
|
@@ -114,19 +115,19 @@
|
|
|
name: 'BOM',
|
|
|
type: 'bom',
|
|
|
bjColor: '#BB5500',
|
|
|
- isShow: 'mes:workorder:bom',
|
|
|
+ isShow: 'mes:workorder:bom'
|
|
|
},
|
|
|
{
|
|
|
name: '设备',
|
|
|
type: 'device',
|
|
|
bjColor: '#008866',
|
|
|
- isShow: 'mes:workorder:device',
|
|
|
+ isShow: 'mes:workorder:device'
|
|
|
},
|
|
|
{
|
|
|
name: '周转车',
|
|
|
type: 'turnover',
|
|
|
bjColor: '#660066',
|
|
|
- isShow: 'mes:workorder:transfer',
|
|
|
+ isShow: 'mes:workorder:transfer'
|
|
|
}
|
|
|
// {
|
|
|
// type: 'turnover',
|
|
|
@@ -149,7 +150,7 @@
|
|
|
name: '投料',
|
|
|
type: 'feed',
|
|
|
bjColor: '#FBD114',
|
|
|
- isShow:'mes:feed:save'
|
|
|
+ isShow: 'mes:feed:save'
|
|
|
},
|
|
|
{
|
|
|
name: '报工',
|
|
|
@@ -168,25 +169,25 @@
|
|
|
name: '暂停启动',
|
|
|
type: '',
|
|
|
bjColor: '#858585',
|
|
|
- isShow: 'mes:workorder:startstop',
|
|
|
+ isShow: 'mes:workorder:startstop'
|
|
|
},
|
|
|
{
|
|
|
name: '工艺文件',
|
|
|
type: 'work',
|
|
|
bjColor: '#2B56C2',
|
|
|
- isShow: 'mes:workorder:bomfile',
|
|
|
+ isShow: 'mes:workorder:bomfile'
|
|
|
},
|
|
|
{
|
|
|
name: '工步',
|
|
|
type: 'workStep',
|
|
|
bjColor: '#409EFF',
|
|
|
- isShow: 'main:categoryparamstep:save',
|
|
|
+ isShow: 'main:categoryparamstep:save'
|
|
|
},
|
|
|
{
|
|
|
name: '任务',
|
|
|
type: 'task',
|
|
|
bjColor: '#67c23a',
|
|
|
- isShow: 'aps:assign:save',
|
|
|
+ isShow: 'aps:assign:save'
|
|
|
},
|
|
|
{
|
|
|
name: '异常',
|