+
@@ -74,10 +82,28 @@
:columns="columns"
>
- {{$t('copy')}}
- {{$t('view')}}
- {{$t('edit')}}
- {{$t('deleteLib')}}
+
+ {{$t('copy')}}
+
+
+ {{$t('view')}}
+
+
+ {{$t('edit')}}
+
+
+ {{$t('deleteLib')}}
+
@@ -103,6 +129,7 @@
import fillTable from './modules/fillTable'
import fillAdd from './modules/fillAdd'
import moment from 'moment'
+ import { mapGetters } from 'vuex'
export default {
name: 'RegulationMonthlyFill',
@@ -118,14 +145,14 @@
list: '/report/lawsMonthlyReportWriteEO/page',
exportData: '/report/lawsMonthlyReportWriteEO/exportMonthlyReport'
},
- exportStatusList:[
+ exportStatusList: [
{
- value:'2',
- name:this.$t('hasBeenExport')
+ value: '2',
+ name: this.$t('hasBeenExport')
},
{
- value:'1',
- name:this.$t('notExport')
+ value: '1',
+ name: this.$t('notExport')
}
],
loading: false,
@@ -192,15 +219,27 @@
width: 190,
scopedSlots: { customRender: 'operation' }
}
- ]
+ ],
+ userData:{},
+ administrators:false
}
},
mounted() {
this.queryParam.month = moment(new Date()).format('YYYY-MM')
this.getList()
+ this.userData = this.userInfo()
+ this.administrators = false
+ if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
+ this.userInfo().userRoleList.forEach(res => {
+ if (res.roleCode == 'admin') {
+ this.administrators = true
+ }
+ })
+ }
},
methods: {
- copyClick(row){
+ ...mapGetters(['userInfo']),
+ copyClick(row) {
let _this = this
this.$confirm({
content: _this.$t('ConfirmReplication'),
diff --git a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue
index 09ff3b0f0..a89cbe2cd 100644
--- a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue
+++ b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyManagement.vue
@@ -22,7 +22,7 @@
-
+
@@ -51,14 +51,16 @@
{{record.issueStatus == 2 ? $t('release') : $t('withdraw')}}
{{$t('deleteLib')}}
{{$t('download')}}
@@ -110,6 +112,7 @@
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
userData: {},
+ administrators:false,
columns: [
{
title: this.$t('RegulationMonthlyName'),
@@ -161,6 +164,14 @@
mounted() {
this.getList()
this.userData = this.userInfo()
+ this.administrators = false
+ if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
+ this.userInfo().userRoleList.forEach(res => {
+ if (res.roleCode == 'admin') {
+ this.administrators = true
+ }
+ })
+ }
},
methods: {
...mapGetters(['userInfo']),