|
@@ -84,7 +84,7 @@
|
|
|
checkedChildren="启用"
|
|
|
unCheckedChildren="停用"
|
|
|
:disabled="record.state=='WRITE_OFF'||record.state=='SUSPEND'"
|
|
|
- v-if="record.state!=undefined"
|
|
|
+ v-if="$hasPermissions('B_shelfSet_enable')&&record.state!=undefined"
|
|
|
@change="enableShelf(record)"
|
|
|
:checked="record.state == 'ENABLE'"
|
|
|
:id="'shelfSetList-state-'+record.id"
|
|
@@ -96,13 +96,19 @@
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<div>
|
|
|
- <a-button id="shelfSetList-setView" size="small" type="link" class="button-primary" @click="handleSet(record)">{{ record.state!='WRITE_OFF'&&record.state!='SUSPEND'?'货架设置':'查看' }}</a-button>
|
|
|
+ <a-button
|
|
|
+ id="shelfSetList-setView"
|
|
|
+ v-if="$hasPermissions('M_shelfSet_edit')"
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-primary"
|
|
|
+ @click="handleSet(record)">{{ record.state!='WRITE_OFF'&&record.state!='SUSPEND'?'货架设置':'查看' }}</a-button>
|
|
|
<a-button
|
|
|
:id="'shelfSetList-cancel-'+record.id"
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-primary"
|
|
|
- v-if="record.state!='WRITE_OFF'&&record.state!='SUSPEND'"
|
|
|
+ v-if="$hasPermissions('B_shelfSet_logout')&&record.state!='WRITE_OFF'&&record.state!='SUSPEND'"
|
|
|
@click="handleCancel(record)">注销</a-button>
|
|
|
</div>
|
|
|
</template>
|