修改菜单
This commit is contained in:
@@ -66,16 +66,20 @@
|
||||
>
|
||||
<!-- -->
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="comparisonResultsClick(record)">{{$t('comparisonResults')}}</a>
|
||||
<a class="text-operation" v-has="'documentComparison:comparisonResult'"
|
||||
@click="comparisonResultsClick(record)">{{$t('comparisonResults')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'documentComparison:publishOrRevocation'"
|
||||
v-if="record.createBy == userInfoQuery.username || administrators"
|
||||
@click="subscribe(record)">
|
||||
{{!record.releaseState || record.releaseState == 'draft' ? $t('release') :$t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation"
|
||||
v-has="'documentComparison:edit'"
|
||||
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'"
|
||||
@click="edit(record)">{{$t('edit')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'documentComparison:delete'"
|
||||
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'"
|
||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||
</span>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="handleAdd" class="operator-text" v-has="'dummyInventoryBase:add'">
|
||||
<div @click="handleAdd" class="operator-text" v-has="'certificationList:add'">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('newlyAdded')}}
|
||||
</div>
|
||||
<div @click="handleDel" class="operator-text" v-has="'dummyInventoryBase:deleteBatch'">
|
||||
<div @click="handleDel" class="operator-text" v-has="'certificationList:batchDelete'">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -61,26 +61,26 @@
|
||||
<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-has="'certificationList:edit'"
|
||||
:disabled="record.state == 1?true:false">{{$t('edit')}}</a>
|
||||
<!-- v-if="record.createBy == userData.username || administrators"-->
|
||||
<a class="text-operation"
|
||||
v-has="'dummyInventoryBase:issue'"
|
||||
v-has="'certificationList:publishOrRevocation'"
|
||||
@click="withdraw(record)">
|
||||
{{!record.state || 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-has="'dummyInventoryBase:deleteBatch'"
|
||||
v-has="'certificationList:maintenanceList'"
|
||||
@click="maintenanceList(record)">{{$t('maintenanceList')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'dummyInventoryBase:read'"
|
||||
v-has="'certificationList:subscribeOrUnsubscribe'"
|
||||
@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-has="'certificationList:delete'"
|
||||
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
|
||||
+12
-11
@@ -7,7 +7,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="Virtual-detail-right">
|
||||
<div @click="UpdateLogClick" v-has="'dummyLog:page'" class="operator-text-text"
|
||||
<div @click="UpdateLogClick" v-has="'maintainMarketList:updateLog'" class="operator-text-text"
|
||||
style="margin-right: 37px;cursor: pointer"
|
||||
:title="$t('UpdateLog')">
|
||||
<a-icon type="reload"/>
|
||||
@@ -123,7 +123,7 @@
|
||||
<!-- {{$t('DocumentStandard')}}-->
|
||||
<!-- </div>-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div v-if="isTrue" class="operator-text" v-has="'dummyInventoryInfo:importData'">
|
||||
<div v-if="isTrue" class="operator-text" v-has="'maintainMarketList:Import'">
|
||||
<ImportFile :url="url" :authDummyInventoryBaseId="$route.query.id" :isTrue="true"
|
||||
@getList="getPersonnelList"
|
||||
:accept="'.zip'"/>
|
||||
@@ -132,14 +132,14 @@
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="handleModule"
|
||||
v-if="isTrue"
|
||||
v-has="'dummyInventoryInfo:exportTemplate'"
|
||||
v-has="'maintainMarketList:templateDownload'"
|
||||
class="operator-text">
|
||||
<a-icon type="download"/>
|
||||
{{$t('templateDownload')}}
|
||||
</div>
|
||||
<!-- 导出-->
|
||||
<div @click="handleExport"
|
||||
v-has="'dummyInventoryInfo:exportData'"
|
||||
v-has="'maintainMarketList:export'"
|
||||
class="operator-text">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{$t('export')}}
|
||||
@@ -148,7 +148,7 @@
|
||||
<!-- v-if="isTrue"-->
|
||||
<div v-if="isTrue"
|
||||
@click="transferClick"
|
||||
v-has="'dummyInventoryInfo:copyInfoByIds'"
|
||||
v-has="'maintainMarketList:transfer'"
|
||||
class="operator-text">
|
||||
<a-icon type="profile"/>
|
||||
{{$t('Transfer')}}
|
||||
@@ -157,7 +157,7 @@
|
||||
<!-- v-if="isTrue"-->
|
||||
<div v-if="isTrue"
|
||||
@click="handleAdd"
|
||||
v-has="'dummyInventoryInfo:add'"
|
||||
v-has="'maintainMarketList:add'"
|
||||
class="operator-text">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('add')}}
|
||||
@@ -166,7 +166,7 @@
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="copyClick"
|
||||
v-if="isTrue"
|
||||
v-has="'dummyInventoryInfo:copyInfoByIds'"
|
||||
v-has="'maintainMarketList:copy'"
|
||||
class="operator-text">
|
||||
<a-icon type="copy"/>
|
||||
{{$t('copy')}}
|
||||
@@ -175,7 +175,7 @@
|
||||
<!-- v-if="isTrue"-->
|
||||
<div v-if="isTrue"
|
||||
@click="batSettingClick"
|
||||
v-has="'dummyInventoryInfo:setBatch'"
|
||||
v-has="'maintainMarketList:batchSetting'"
|
||||
class="operator-text">
|
||||
<a-icon type="setting"/>
|
||||
{{$t('batSetting')}}
|
||||
@@ -184,7 +184,7 @@
|
||||
<!-- v-if="isTrue"-->
|
||||
<div @click="handleDel"
|
||||
v-if="isTrue"
|
||||
v-has="'dummyInventoryInfo:deleteBatch'"
|
||||
v-has="'maintainMarketList:batchDelete'"
|
||||
class="operator-text">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
@@ -248,14 +248,15 @@
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a v-if="isTrue"
|
||||
class="text-operation"
|
||||
v-has="'dummyInventoryInfo:edit'"
|
||||
v-has="'maintainMarketList:edit'"
|
||||
@click="edit(record)">{{$t('edit')}}</a>
|
||||
<a v-if="isTrue"
|
||||
class="text-operation"
|
||||
v-has="'dummyInventoryInfo:deleteBatch'"
|
||||
v-has="'maintainMarketList:delete'"
|
||||
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
<a v-if="isFalse"
|
||||
class="text-operation"
|
||||
v-has="'maintainMarketList:view'"
|
||||
@click="view(record)">{{$t('view')}}</a>
|
||||
</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user