虚拟清单按钮权限修改
This commit is contained in:
@@ -90,15 +90,16 @@
|
||||
<!-- style="float: left;font-size: 16px;font-weight: 400;color: #040B29;">-->
|
||||
<!-- {{$t('DocumentStandard')}}-->
|
||||
<!-- </div>-->
|
||||
|
||||
<div class="operator-text" v-has="'dummyInventoryInfo:importData'" v-if="isTrue">
|
||||
<!-- v-if="isTrue"-->
|
||||
<div class="operator-text" v-has="'dummyInventoryInfo:importData'" >
|
||||
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" @getList="getPersonnelList"
|
||||
:accept="'.zip'"/>
|
||||
</div>
|
||||
<!-- 模板下载-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="handleModule"
|
||||
v-has="'dummyInventoryInfo:exportTemplate'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
class="operator-text" >
|
||||
<a-icon type="download"/>
|
||||
{{$t('templateDownload')}}
|
||||
</div>
|
||||
@@ -110,37 +111,42 @@
|
||||
{{$t('export')}}
|
||||
</div>
|
||||
<!-- 复制-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="copyClick"
|
||||
v-has="'dummyInventoryInfo:copyInfoByIds'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
class="operator-text" >
|
||||
<a-icon type="copy"/>
|
||||
{{$t('copy')}}
|
||||
</div>
|
||||
<!-- 批量设置-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="batSettingClick"
|
||||
v-has="'dummyInventoryInfo:setBatch'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
class="operator-text" >
|
||||
<a-icon type="setting"/>
|
||||
{{$t('batSetting')}}
|
||||
</div>
|
||||
<!-- 调取-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="transferClick"
|
||||
v-has="'dummyInventoryInfo:copyInfoByIds'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
class="operator-text" >
|
||||
<a-icon type="profile"/>
|
||||
{{$t('Transfer')}}
|
||||
</div>
|
||||
<!-- 添加-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="handleAdd"
|
||||
v-has="'dummyInventoryInfo:add'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
class="operator-text" >
|
||||
<a-icon type="plus"/>
|
||||
{{$t('add')}}
|
||||
</div>
|
||||
<!-- 删除-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="handleDel"
|
||||
v-has="'dummyInventoryInfo:deleteBatch'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
class="operator-text" >
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
|
||||
@@ -64,18 +64,18 @@
|
||||
<a @click="VirtualListNameClick(record)">{{text}}</a>
|
||||
</span>
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<!-- v-if="record.createBy == userData.username || administrators"-->
|
||||
<a class="text-operation" @click="edit(record)"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
:disabled="record.state == 1?true:false">{{$t('edit')}}</a>
|
||||
<!-- v-if="record.createBy == userData.username || administrators"-->
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
v-has="'dummyInventoryBase:issue'"
|
||||
@click="withdraw(record)">
|
||||
{{record.state == 2 ? $t('release') : $t('withdraw')}}
|
||||
</a>
|
||||
<!-- v-if="record.createBy == userData.username || administrators"-->
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
@click="maintenanceList(record)">{{$t('maintenanceList')}}</a>
|
||||
<a class="text-operation"
|
||||
@@ -83,9 +83,9 @@
|
||||
:disabled="record.state == 2?true:false" @click="subscribe(record)">
|
||||
{{!record.readFlag || record.readFlag == 0 ? $t('subscribe') :$t('CancelSubscribe')}}
|
||||
</a>
|
||||
<!-- v-if="record.createBy == userData.username || administrators"-->
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
v-if="record.createBy == userData.username || administrators"
|
||||
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
|
||||
Reference in New Issue
Block a user