按钮权限

This commit is contained in:
sunFlower
2022-10-13 15:01:29 +08:00
parent b63624f76e
commit 1bc76b06c9
2 changed files with 1071 additions and 1050 deletions
+32 -13
View File
@@ -91,7 +91,8 @@
:disabled="false"/> :disabled="false"/>
</div> </div>
</a-col> </a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px"
class="table-page-search-submitButtons">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<!-- <globalAdvancedQuery ref="globalAdvancedQueryRef"--> <!-- <globalAdvancedQuery ref="globalAdvancedQueryRef"-->
<!-- @handleSuperQuery="handleSuperQuery"--> <!-- @handleSuperQuery="handleSuperQuery"-->
@@ -106,11 +107,15 @@
</div> </div>
<div class="table-operator" style="overflow:hidden;margin-bottom: 20px"> <div class="table-operator" style="overflow:hidden;margin-bottom: 20px">
<div style="float: right;margin-bottom: 0px;margin-left: 20px"> <div style="float: right;margin-bottom: 0px;margin-left: 20px">
<div class="operator-text" @click="handleuploadFile()" v-if='authmanage'> <div class="operator-text"
v-has="'externalReport:upload'"
@click="handleuploadFile()" v-if='authmanage'>
<a-icon type="import"/> <a-icon type="import"/>
{{ $t('UploadFile') }} {{ $t('UploadFile') }}
</div> </div>
<div class="operator-text" @click="handleDel()" v-if='authmanage'> <div class="operator-text"
v-has="'externalReport:batchDelete'"
@click="handleDel()" v-if='authmanage'>
<a-icon type="delete"/> <a-icon type="delete"/>
{{ $t('BatchDelete') }} {{ $t('BatchDelete') }}
</div> </div>
@@ -139,9 +144,15 @@
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<!-- <a class="text-operation" @click="handlelist(record)">{{$t('view')}}</a>--> <!-- <a class="text-operation" @click="handlelist(record)">{{$t('view')}}</a>-->
<a class="text-operation" @click="download(record)">{{$t('download')}}</a> <a class="text-operation"
<a class="text-operation" @click="handleEdit(record)" v-if='authmanage'>{{$t('edit')}}</a> v-has="'externalReport:download'"
<a class="text-operation" @click="batchDel(record)" v-if='authmanage'>{{$t('delete')}}</a> @click="download(record)">{{$t('download')}}</a>
<a class="text-operation"
v-has="'externalReport:edit'"
@click="handleEdit(record)" v-if='authmanage'>{{$t('edit')}}</a>
<a class="text-operation"
v-has="'externalReport:delete'"
@click="batchDel(record)" v-if='authmanage'>{{$t('delete')}}</a>
</span> </span>
</a-table> </a-table>
</div> </div>
@@ -399,7 +410,7 @@ export default {
], ],
url: { url: {
list: 'com.jero.modules.extRepo/extRepoData/page', list: 'com.jero.modules.extRepo/extRepoData/page',
getSysCategoryTree: '/sys/category/getSysCategoryTree', getSysCategoryTree: '/sys/category/getSysCategoryTree'
}, },
ids: '', ids: '',
token: Vue.ls.get(ACCESS_TOKEN), token: Vue.ls.get(ACCESS_TOKEN),
@@ -410,7 +421,7 @@ export default {
authmanage: false, authmanage: false,
fullWidth: '', fullWidth: '',
parameter: {}, parameter: {},
widthBrown: '', widthBrown: ''
} }
}, },
watch: { watch: {
@@ -576,7 +587,7 @@ export default {
authViewIdsName: node._props.dataRef.authViewIdsName, authViewIdsName: node._props.dataRef.authViewIdsName,
title: node._props.dataRef.title, title: node._props.dataRef.title,
folderName: node._props.dataRef.folderName, folderName: node._props.dataRef.folderName,
orderId: node._props.dataRef.orderId, orderId: node._props.dataRef.orderId
} }
this.nodeItem = JSON.parse(JSON.stringify(this.NodeTreeItem)) this.nodeItem = JSON.parse(JSON.stringify(this.NodeTreeItem))
// this.form.pid=this.NodeTreeItem.id // this.form.pid=this.NodeTreeItem.id
@@ -783,7 +794,7 @@ export default {
this.queryParams.pageSize = this.pageSize this.queryParams.pageSize = this.pageSize
let params = { let params = {
...this.queryParams, ...this.queryParams,
...item, ...item
} }
this.loading = true this.loading = true
getAction(this.url.list, params).then(res => { getAction(this.url.list, params).then(res => {
@@ -1100,6 +1111,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import '~@assets/less/common.less'; @import '~@assets/less/common.less';
::v-deep .ant-table-row:first-child { ::v-deep .ant-table-row:first-child {
background: #fff !important; background: #fff !important;
opacity: 0.9; opacity: 0.9;
@@ -1108,17 +1120,21 @@ export default {
::v-deep .ant-table-body { ::v-deep .ant-table-body {
background: transparent !important; background: transparent !important;
} }
.box-title-text { .box-title-text {
line-height: 1.4; line-height: 1.4;
display: flex; display: flex;
/*align-items: center;*/ /*align-items: center;*/
} }
/deep/ .ant-table td { /deep/ .ant-table td {
white-space: nowrap; white-space: nowrap;
} }
/deep/ .ant-calendar-range-picker-input { /deep/ .ant-calendar-range-picker-input {
width: 46% !important; width: 46% !important;
} }
.title-text { .title-text {
width: 114px; width: 114px;
text-align: right; text-align: right;
@@ -1139,11 +1155,13 @@ export default {
height: 38px; height: 38px;
width: 100%; width: 100%;
} }
.itemModel { .itemModel {
width: calc(100% - 130px); width: calc(100% - 130px);
display: inline-block; display: inline-block;
margin-top: 2px; margin-top: 2px;
} }
.add-input { .add-input {
width: 82%; width: 82%;
} }
@@ -1187,10 +1205,12 @@ export default {
height: 38px; height: 38px;
width: 100%; width: 100%;
} }
.Required { .Required {
color: red; color: red;
margin-right: 4px; margin-right: 4px;
} }
.split-detail { .split-detail {
/*height: 100% !important;*/ /*height: 100% !important;*/
@@ -1273,10 +1293,12 @@ export default {
} }
} }
} }
::v-deep .ant-modal-body { ::v-deep .ant-modal-body {
max-height: 500px; max-height: 500px;
overflow-y: auto; overflow-y: auto;
} }
///deep/ .ant-table-body { ///deep/ .ant-table-body {
// overflow: hidden !important; ????? // overflow: hidden !important; ?????
//} //}
@@ -1415,11 +1437,9 @@ export default {
/*.title-text {*/ /*.title-text {*/
/* min-width: 73px !important;*/ /* min-width: 73px !important;*/
/*}*/ /*}*/
/*.split-detail-wrap {*/ /*.split-detail-wrap {*/
/* height: 481px !important;*/ /* height: 481px !important;*/
/*}*/ /*}*/
/*.mainItem {*/ /*.mainItem {*/
/* height: 500px;*/ /* height: 500px;*/
/*}*/ /*}*/
@@ -1429,7 +1449,6 @@ export default {
/*.split-detail .split-detail-wrap .split-detail-left {*/ /*.split-detail .split-detail-wrap .split-detail-left {*/
/* height: 735px !important;*/ /* height: 735px !important;*/
/*}*/ /*}*/
/*.mainItem {*/ /*.mainItem {*/
/* height: 800px !important;*/ /* height: 800px !important;*/
/*}*/ /*}*/
@@ -65,7 +65,9 @@
</div> </div>
<div class="table-operator" style="overflow:hidden;margin-bottom: 20px"> <div class="table-operator" style="overflow:hidden;margin-bottom: 20px">
<div style="float: right;margin-bottom: 0px;margin-left: 20px"> <div style="float: right;margin-bottom: 0px;margin-left: 20px">
<div class="operator-text" @click="deriveconformanceresults()"> <div class="operator-text"
v-has="'complianceKanban:export'"
@click="deriveconformanceresults()">
<a-icon type="solution"/> <a-icon type="solution"/>
{{ $t('Deriveconformanceresults') }} {{ $t('Deriveconformanceresults') }}
</div> </div>
@@ -96,7 +98,7 @@
<!-- {{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }}--> <!-- {{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }}-->
<!-- </span>--> <!-- </span>-->
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<a class="text-operation" @click="handlecody(record)">{{$t('view')}}</a> <a class="text-operation" v-has="'complianceKanban:view'" @click="handlecody(record)">{{$t('view')}}</a>
</span> </span>
</a-table> </a-table>
</div> </div>