添加权限
This commit is contained in:
@@ -89,37 +89,49 @@
|
||||
<!-- style="float: left;font-size: 16px;font-weight: 400;color: #040B29;">-->
|
||||
<!-- {{$t('DocumentStandard')}}-->
|
||||
<!-- </div>-->
|
||||
<div class="operator-text" v-has="'document:importZip'" v-if="isTrue">
|
||||
<div class="operator-text" v-has="'dummyInventoryInfo:importData'" v-if="isTrue">
|
||||
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" @getList="getPersonnelList"
|
||||
:accept="'.zip'"/>
|
||||
</div>
|
||||
<!-- 模板下载-->
|
||||
<div @click="handleModule" class="operator-text" v-if="isTrue">
|
||||
<div @click="handleModule"
|
||||
v-has="'dummyInventoryInfo:exportTemplate'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
<a-icon type="download"/>
|
||||
{{$t('templateDownload')}}
|
||||
</div>
|
||||
<!-- 导出-->
|
||||
<div @click="handleExport" class="operator-text">
|
||||
<div @click="handleExport"
|
||||
v-has="'dummyInventoryInfo:exportData'"
|
||||
class="operator-text">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{$t('export')}}
|
||||
</div>
|
||||
<!-- 复制-->
|
||||
<div @click="copyClick" class="operator-text" v-if="isTrue">
|
||||
<div @click="copyClick"
|
||||
v-has="'dummyInventoryInfo:copyInfoByIds'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
<a-icon type="copy"/>
|
||||
{{$t('copy')}}
|
||||
</div>
|
||||
<!-- 批量设置-->
|
||||
<div @click="batSettingClick" class="operator-text" v-if="isTrue">
|
||||
<div @click="batSettingClick"
|
||||
v-has="'dummyInventoryInfo:setBatch'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
<a-icon type="setting"/>
|
||||
{{$t('batSetting')}}
|
||||
</div>
|
||||
<!-- 添加-->
|
||||
<div @click="handleAdd" class="operator-text" v-if="isTrue">
|
||||
<div @click="handleAdd"
|
||||
v-has="'dummyInventoryInfo:add'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('add')}}
|
||||
</div>
|
||||
<!-- 删除-->
|
||||
<div @click="handleDel" class="operator-text" v-if="isTrue">
|
||||
<div @click="handleDel"
|
||||
v-has="'dummyInventoryInfo:deleteBatch'"
|
||||
class="operator-text" v-if="isTrue">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -137,8 +149,12 @@
|
||||
:columns="columns"
|
||||
>
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>
|
||||
<a class="text-operation" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'dummyInventoryInfo:edit'"
|
||||
@click="edit(record)">{{$t('edit')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'dummyInventoryInfo:deleteBatch'"
|
||||
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
</span>
|
||||
<span slot="titleName" slot-scope="text,record" :title="text">
|
||||
<span class="textName">
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="handleAdd" class="operator-text" v-has="'document:getInfoById'">
|
||||
<div @click="handleAdd" class="operator-text" v-has="'dummyInventoryBase:add'">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('newlyAdded')}}
|
||||
</div>
|
||||
<div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
|
||||
<div @click="handleDel" class="operator-text" v-has="'dummyInventoryBase:deleteBatch'">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -59,15 +59,25 @@
|
||||
<a @click="VirtualListNameClick(record)">{{text}}</a>
|
||||
</span>
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="edit(record)" :disabled="record.state == 1?true:false">{{$t('edit')}}</a>
|
||||
<a class="text-operation" @click="withdraw(record)">
|
||||
<a class="text-operation" @click="edit(record)"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
:disabled="record.state == 1?true:false">{{$t('edit')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'dummyInventoryBase:issue'"
|
||||
@click="withdraw(record)">
|
||||
{{record.state == 2 ? $t('release') : $t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false" @click="maintenanceList(record)">{{$t('maintenanceList')}}</a>
|
||||
<a class="text-operation" :disabled="record.state == 2?true:false" @click="subscribe(record)">
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
@click="maintenanceList(record)">{{$t('maintenanceList')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'dummyInventoryBase:read'"
|
||||
:disabled="record.state == 2?true:false" @click="subscribe(record)">
|
||||
{{!record.readFlag || record.readFlag == 0 ? $t('subscribe') :$t('CancelSubscribe')}}
|
||||
</a>
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false"
|
||||
v-has="'dummyInventoryBase:deleteBatch'"
|
||||
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
</div>
|
||||
|
||||
@@ -10,15 +10,15 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="Virtual-detail-text-right" v-if="textTitle === '法规清单'">
|
||||
<div class="operator-text" @click="commentClick">
|
||||
<div class="operator-text" v-has="'projectComment:list'" @click="commentClick">
|
||||
<a-icon type="message"/>
|
||||
{{$t('comment')}}
|
||||
</div>
|
||||
<div class="operator-text" @click="historicalVersionClick">
|
||||
<div class="operator-text" v-has="'projectHistoryVersions:list'" @click="historicalVersionClick">
|
||||
<a-icon type="clock-circle"/>
|
||||
{{$t('historicalVersion')}}
|
||||
</div>
|
||||
<div class="operator-text" @click="UpdateLogClick">
|
||||
<div class="operator-text" v-has="'projectLawsInventoryLog:page'" @click="UpdateLogClick">
|
||||
<a-icon type="reload"/>
|
||||
{{$t('UpdateLog')}}
|
||||
</div>
|
||||
@@ -31,7 +31,7 @@
|
||||
<a-icon type="container"/>
|
||||
{{$t('projectDetails')}}
|
||||
</div>
|
||||
<div class="Virtual-detail-left-text" :title="$t('listOfRegulations')" @click="textClick(1,'法规清单')">
|
||||
<div class="Virtual-detail-left-text" v-has="'projectLawsInventory:list'" :title="$t('listOfRegulations')" @click="textClick(1,'法规清单')">
|
||||
<a-icon type="container"/>
|
||||
{{$t('listOfRegulations')}}
|
||||
</div>
|
||||
@@ -39,7 +39,7 @@
|
||||
<a-icon type="container"/>
|
||||
{{$t('taskList')}}
|
||||
</div>
|
||||
<div class="Virtual-detail-left-text" :title="$t('nonConformance')" @click="textClick(3,'未符合项')">
|
||||
<div class="Virtual-detail-left-text" v-has="'ncrTrack:queryPageInfo'" :title="$t('nonConformance')" @click="textClick(3,'未符合项')">
|
||||
<a-icon type="container"/>
|
||||
{{$t('nonConformance')}}
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
<div class="Virtual-detail-right">
|
||||
<ProjectDetailsName @TaskListChange="TaskListChange" v-if="textTitle === '项目详情'"/>
|
||||
<listOfRegulations v-else-if="textTitle === '法规清单'"/>
|
||||
<listOfRegulations v-else-if="textTitle === '法规清单'"/>
|
||||
<TaskList :isDisplayNum="isDisplayNum" :areaOfResponsibility="areaOfResponsibility"
|
||||
v-else-if="textTitle === '任务清单'"/>
|
||||
<TaskParameterCollection v-else-if="textTitle === '认证参数收集'"/>
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
{{$t('basicInformationOfParameters')}}
|
||||
</div>
|
||||
<div class="header-tight">
|
||||
<a-button class="box-button" style="line-height: 32px" @click="edit">{{$t('edit')}}</a-button>
|
||||
<a-button v-has="'projectLibraryBase:edit'" class="box-button" style="line-height: 32px" @click="edit">
|
||||
{{$t('edit')}}
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -78,7 +80,7 @@
|
||||
<span class="text-field-left" :title="$t('ListOfRelevantPersonnel')">{{$t('ListOfRelevantPersonnel')}}</span>
|
||||
<span class="text-field-right"
|
||||
>
|
||||
<a-button type="primary" class="button-text"
|
||||
<a-button type="primary" v-has="'projectRelatedPersonnel:page'" class="button-text"
|
||||
@click="ListOfRelevantPersonnelClick">
|
||||
{{$t('ListOfRelevantPersonnel')}}
|
||||
</a-button>
|
||||
@@ -90,7 +92,9 @@
|
||||
{{$t('regulatoryCertificationTaskPlan')}}
|
||||
</div>
|
||||
<div class="header-tight">
|
||||
<a-button class="box-button" style="line-height: 32px" @click="settingClick">{{$t('setting')}}</a-button>
|
||||
<a-button class="box-button" v-has="'projectTaskPlanning:queryByProjectId'" style="line-height: 32px"
|
||||
@click="settingClick">{{$t('setting')}}
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="process-content">
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<a-icon type="download"/>
|
||||
{{ $t('templateDownload') }}
|
||||
</div>
|
||||
<div @click="handleExport" class="operator-text-title">
|
||||
<div @click="handleExport" v-has="'projectLawsInventory:exportData'" class="operator-text-title">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('export') }}
|
||||
</div>
|
||||
|
||||
@@ -9,21 +9,23 @@
|
||||
@cancel="visible = false"
|
||||
>
|
||||
<div class="table-operator">
|
||||
<div @click="handleModule" class="operator-text">
|
||||
<div @click="handleModule" v-has="'projectRelatedPersonnel:exportTemplate'" class="operator-text">
|
||||
<a-icon type="download"/>
|
||||
{{$t('templateDownload')}}
|
||||
</div>
|
||||
<div @click="handleExport" class="operator-text">
|
||||
<div @click="handleExport" v-has="'projectRelatedPersonnel:exportXls'" class="operator-text">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{$t('export')}}
|
||||
</div>
|
||||
<div class="operator-text" v-if="this.$route.query.studioEngineer == this.userInfo().id">
|
||||
<div class="operator-text"
|
||||
v-has="'projectRelatedPersonnel:importExcel'"
|
||||
v-if="this.$route.query.studioEngineer == this.userInfo().id">
|
||||
<ImportFile :url="url" :projectId="$route.query.id" :isTrue="true" :accept="'.xls'"
|
||||
@getList="getPersonnelList"/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- rowKey="id"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"-->
|
||||
<!-- rowKey="id"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"-->
|
||||
<a-table
|
||||
class="table"
|
||||
:columns="columns"
|
||||
@@ -33,7 +35,7 @@
|
||||
:loading="loading"
|
||||
>
|
||||
<span slot="operation" slot-scope="record">
|
||||
<a class="text" @click="edit(record)">
|
||||
<a class="text" v-has="'projectRelatedPersonnel:edit'" @click="edit(record)">
|
||||
{{$t('edit')}}
|
||||
</a>
|
||||
</span>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="handleExport" class="operator-text">
|
||||
<div @click="handleExport" v-has="'ncrTrack:exportDataInfo'" class="operator-text">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('export') }}
|
||||
</div>
|
||||
|
||||
@@ -103,11 +103,11 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="handleAdd" class="operator-text" v-has="'document:getInfoById'">
|
||||
<div @click="handleAdd" class="operator-text" v-has="'projectLibraryBase:add'">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('newlyAdded')}}
|
||||
</div>
|
||||
<div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
|
||||
<div @click="handleDel" class="operator-text" v-has="'projectLibraryBase:deleteBatch'">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -129,7 +129,7 @@
|
||||
</span>
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<!-- <a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>-->
|
||||
<a class="text-operation" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
<a class="text-operation" v-has="'projectLibraryBase:deleteBatch'" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
<!-- <a class="text-operation" @click="entryNameClick(record)">{{$t('see')}}</a>-->
|
||||
</span>
|
||||
</a-table>
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="handleExport" class="operator-text">
|
||||
<div @click="handleExport" v-has="'ncrTrack:exportData'" class="operator-text">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('export') }}
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator add-flex">
|
||||
<a-button @click="handleAdd" type="primary" icon="plus">{{$t('newRole')}}</a-button>
|
||||
<a-button @click="handleAdd" v-has="'sys:role:add'" type="primary" icon="plus">{{$t('newRole')}}</a-button>
|
||||
<!--<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>-->
|
||||
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
|
||||
<!-- <a-button type="primary" icon="import">{{$t('import')}}</a-button>-->
|
||||
@@ -52,10 +52,14 @@
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="handlePerssion(record.id)" class="text">{{$t('toGrantAuthorization')}}</a>
|
||||
<a @click="handleEdit(record)" class="text">{{$t('edit')}}</a>
|
||||
<a @click="handlePerssion(record.id)"
|
||||
v-has="'sys:role:auth'"
|
||||
class="text">{{$t('toGrantAuthorization')}}</a>
|
||||
<a @click="handleEdit(record)"
|
||||
v-has="'sys:role:edit'"
|
||||
class="text">{{$t('edit')}}</a>
|
||||
<a-popconfirm :title="$t('areYouSure')" @confirm="() => handleDelete1(record.id)">
|
||||
<a class="text">{{$t('delete')}}</a>
|
||||
<a class="text" v-has="'sys:role:del'">{{$t('delete')}}</a>
|
||||
</a-popconfirm>
|
||||
<!-- <a @click="handleOpen(record)">{{$t('user')}}</a>-->
|
||||
<!-- <a-divider type="vertical"/>-->
|
||||
|
||||
Reference in New Issue
Block a user