修改菜单

This commit is contained in:
高嵩
2023-09-27 17:30:17 +08:00
parent 4a68d4b283
commit a575eab2b7
3 changed files with 24 additions and 19 deletions
@@ -66,16 +66,20 @@
> >
<!-- --> <!-- -->
<span slot="operation" slot-scope="text,record"> <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" <a class="text-operation"
v-has="'documentComparison:publishOrRevocation'"
v-if="record.createBy == userInfoQuery.username || administrators" v-if="record.createBy == userInfoQuery.username || administrators"
@click="subscribe(record)"> @click="subscribe(record)">
{{!record.releaseState || record.releaseState == 'draft' ? $t('release') :$t('withdraw')}} {{!record.releaseState || record.releaseState == 'draft' ? $t('release') :$t('withdraw')}}
</a> </a>
<a class="text-operation" <a class="text-operation"
v-has="'documentComparison:edit'"
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'" v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'"
@click="edit(record)">{{$t('edit')}}</a> @click="edit(record)">{{$t('edit')}}</a>
<a class="text-operation" <a class="text-operation"
v-has="'documentComparison:delete'"
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'" v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'"
@click="deleteData(record)">{{$t('delete')}}</a> @click="deleteData(record)">{{$t('delete')}}</a>
</span> </span>
@@ -33,11 +33,11 @@
</a-form> </a-form>
</div> </div>
<div class="table-operator"> <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"/> <a-icon type="plus"/>
{{$t('newlyAdded')}} {{$t('newlyAdded')}}
</div> </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"/> <a-icon type="delete"/>
{{$t('BatchDelete')}} {{$t('BatchDelete')}}
</div> </div>
@@ -61,26 +61,26 @@
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<!-- v-if="record.createBy == userData.username || administrators"--> <!-- v-if="record.createBy == userData.username || administrators"-->
<a class="text-operation" @click="edit(record)" <a class="text-operation" @click="edit(record)"
v-has="'dummyInventoryBase:deleteBatch'" v-has="'certificationList:edit'"
:disabled="record.state == 1?true:false">{{$t('edit')}}</a> :disabled="record.state == 1?true:false">{{$t('edit')}}</a>
<!-- v-if="record.createBy == userData.username || administrators"--> <!-- v-if="record.createBy == userData.username || administrators"-->
<a class="text-operation" <a class="text-operation"
v-has="'dummyInventoryBase:issue'" v-has="'certificationList:publishOrRevocation'"
@click="withdraw(record)"> @click="withdraw(record)">
{{!record.state || record.state == 2 ? $t('release') : $t('withdraw')}} {{!record.state || record.state == 2 ? $t('release') : $t('withdraw')}}
</a> </a>
<!-- v-if="record.createBy == userData.username || administrators"--> <!-- v-if="record.createBy == userData.username || administrators"-->
<a class="text-operation" :disabled="record.state == 1?true:false" <a class="text-operation" :disabled="record.state == 1?true:false"
v-has="'dummyInventoryBase:deleteBatch'" v-has="'certificationList:maintenanceList'"
@click="maintenanceList(record)">{{$t('maintenanceList')}}</a> @click="maintenanceList(record)">{{$t('maintenanceList')}}</a>
<a class="text-operation" <a class="text-operation"
v-has="'dummyInventoryBase:read'" v-has="'certificationList:subscribeOrUnsubscribe'"
@click="subscribe(record)"> @click="subscribe(record)">
{{!record.readFlag || record.readFlag == 0 ? $t('subscribe') :$t('CancelSubscribe')}} {{!record.readFlag || record.readFlag == 0 ? $t('subscribe') :$t('CancelSubscribe')}}
</a> </a>
<!-- v-if="record.createBy == userData.username || administrators"--> <!-- v-if="record.createBy == userData.username || administrators"-->
<a class="text-operation" :disabled="record.state == 1?true:false" <a class="text-operation" :disabled="record.state == 1?true:false"
v-has="'dummyInventoryBase:deleteBatch'" v-has="'certificationList:delete'"
@click="deleteLib(record)">{{$t('deleteLib')}}</a> @click="deleteLib(record)">{{$t('deleteLib')}}</a>
</span> </span>
</a-table> </a-table>
@@ -7,7 +7,7 @@
</span> </span>
</div> </div>
<div class="Virtual-detail-right"> <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" style="margin-right: 37px;cursor: pointer"
:title="$t('UpdateLog')"> :title="$t('UpdateLog')">
<a-icon type="reload"/> <a-icon type="reload"/>
@@ -123,7 +123,7 @@
<!-- {{$t('DocumentStandard')}}--> <!-- {{$t('DocumentStandard')}}-->
<!-- </div>--> <!-- </div>-->
<!-- v-if="isTrue"--> <!-- 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" <ImportFile :url="url" :authDummyInventoryBaseId="$route.query.id" :isTrue="true"
@getList="getPersonnelList" @getList="getPersonnelList"
:accept="'.zip'"/> :accept="'.zip'"/>
@@ -132,14 +132,14 @@
<!-- v-if="isTrue"--> <!-- v-if="isTrue"-->
<div @click="handleModule" <div @click="handleModule"
v-if="isTrue" v-if="isTrue"
v-has="'dummyInventoryInfo:exportTemplate'" v-has="'maintainMarketList:templateDownload'"
class="operator-text"> class="operator-text">
<a-icon type="download"/> <a-icon type="download"/>
{{$t('templateDownload')}} {{$t('templateDownload')}}
</div> </div>
<!-- 导出--> <!-- 导出-->
<div @click="handleExport" <div @click="handleExport"
v-has="'dummyInventoryInfo:exportData'" v-has="'maintainMarketList:export'"
class="operator-text"> class="operator-text">
<a-icon type="export" :rotate="-90"/> <a-icon type="export" :rotate="-90"/>
{{$t('export')}} {{$t('export')}}
@@ -148,7 +148,7 @@
<!-- v-if="isTrue"--> <!-- v-if="isTrue"-->
<div v-if="isTrue" <div v-if="isTrue"
@click="transferClick" @click="transferClick"
v-has="'dummyInventoryInfo:copyInfoByIds'" v-has="'maintainMarketList:transfer'"
class="operator-text"> class="operator-text">
<a-icon type="profile"/> <a-icon type="profile"/>
{{$t('Transfer')}} {{$t('Transfer')}}
@@ -157,7 +157,7 @@
<!-- v-if="isTrue"--> <!-- v-if="isTrue"-->
<div v-if="isTrue" <div v-if="isTrue"
@click="handleAdd" @click="handleAdd"
v-has="'dummyInventoryInfo:add'" v-has="'maintainMarketList:add'"
class="operator-text"> class="operator-text">
<a-icon type="plus"/> <a-icon type="plus"/>
{{$t('add')}} {{$t('add')}}
@@ -166,7 +166,7 @@
<!-- v-if="isTrue"--> <!-- v-if="isTrue"-->
<div @click="copyClick" <div @click="copyClick"
v-if="isTrue" v-if="isTrue"
v-has="'dummyInventoryInfo:copyInfoByIds'" v-has="'maintainMarketList:copy'"
class="operator-text"> class="operator-text">
<a-icon type="copy"/> <a-icon type="copy"/>
{{$t('copy')}} {{$t('copy')}}
@@ -175,7 +175,7 @@
<!-- v-if="isTrue"--> <!-- v-if="isTrue"-->
<div v-if="isTrue" <div v-if="isTrue"
@click="batSettingClick" @click="batSettingClick"
v-has="'dummyInventoryInfo:setBatch'" v-has="'maintainMarketList:batchSetting'"
class="operator-text"> class="operator-text">
<a-icon type="setting"/> <a-icon type="setting"/>
{{$t('batSetting')}} {{$t('batSetting')}}
@@ -184,7 +184,7 @@
<!-- v-if="isTrue"--> <!-- v-if="isTrue"-->
<div @click="handleDel" <div @click="handleDel"
v-if="isTrue" v-if="isTrue"
v-has="'dummyInventoryInfo:deleteBatch'" v-has="'maintainMarketList:batchDelete'"
class="operator-text"> class="operator-text">
<a-icon type="delete"/> <a-icon type="delete"/>
{{$t('BatchDelete')}} {{$t('BatchDelete')}}
@@ -248,14 +248,15 @@
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<a v-if="isTrue" <a v-if="isTrue"
class="text-operation" class="text-operation"
v-has="'dummyInventoryInfo:edit'" v-has="'maintainMarketList:edit'"
@click="edit(record)">{{$t('edit')}}</a> @click="edit(record)">{{$t('edit')}}</a>
<a v-if="isTrue" <a v-if="isTrue"
class="text-operation" class="text-operation"
v-has="'dummyInventoryInfo:deleteBatch'" v-has="'maintainMarketList:delete'"
@click="deleteLib(record)">{{$t('deleteLib')}}</a> @click="deleteLib(record)">{{$t('deleteLib')}}</a>
<a v-if="isFalse" <a v-if="isFalse"
class="text-operation" class="text-operation"
v-has="'maintainMarketList:view'"
@click="view(record)">{{$t('view')}}</a> @click="view(record)">{{$t('view')}}</a>
</span> </span>