Merge branch 'dev_2nd_period_test' into fix_2nd_period
# Conflicts: # jero-boot/db/蔚来标准sql/dev_2nd_period.sql # jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java # jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml # jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java # jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java # jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java # jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java # jero-web/src/common/lang/en-us.js # jero-web/src/common/lang/zh-cn.js # jero-web/src/views/projectManagement/components/TaskList.vue # jero-web/src/views/projectManagement/components/listOfRegulations.vue
This commit is contained in:
@@ -76,23 +76,23 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div class="operator-text" @click="cuibanClick">
|
||||
<div class="operator-text" @click="cuibanClick" v-if="isRoleSwitching">
|
||||
<a-icon type="sound"/>
|
||||
{{ $t('CuiBan') }}
|
||||
</div>
|
||||
<div @click="BatchMaintenanceProgress" class="operator-text">
|
||||
<div @click="BatchMaintenanceProgress" class="operator-text" v-if="isRoleSwitching">
|
||||
<a-icon type="setting"/>
|
||||
{{$t('BatchMaintenanceProgress')}}
|
||||
</div>
|
||||
<div @click="BatchChangeStatus" class="operator-text">
|
||||
<div @click="BatchChangeStatus" class="operator-text" v-if="isRoleSwitching">
|
||||
<a-icon type="setting"/>
|
||||
{{$t('BatchChangeStatus')}}
|
||||
</div>
|
||||
<div @click="CertificationDirectory" class="operator-text">
|
||||
<div @click="CertificationDirectory" class="operator-text" v-if="isRoleSwitching">
|
||||
<a-icon type="bulb"/>
|
||||
{{$t('CertificationDirectory')}}
|
||||
</div>
|
||||
<div @click="handleExport" class="operator-text">
|
||||
<div @click="handleExport" class="operator-text" v-if="isRoleSwitching">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{$t('export')}}
|
||||
</div>
|
||||
@@ -221,8 +221,8 @@
|
||||
import certificationDirectory from './certificationDirectory'
|
||||
import batchChangeModel from './batchChangeModel'
|
||||
import batchModel from './batchModel'
|
||||
import cuibanModel from './cuibanModel'
|
||||
import TaskListModel from './TaskListModel'
|
||||
import cuibanModel from './cuibanModel'
|
||||
import taskBatSetting from './taskBatSetting'
|
||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||
import { mapGetters } from 'vuex'
|
||||
@@ -347,12 +347,14 @@
|
||||
list: '/project/projectTaskInventoryEO/list',
|
||||
exportXls: '/project/projectTaskInventoryEO/exportXls'
|
||||
},
|
||||
isRoleSwitching:true,
|
||||
loading: false,
|
||||
visibleoperationFailed: false,
|
||||
NotSelectedNoEngineerValue: [],
|
||||
dataSource: [],
|
||||
selectionRowsArray: [],
|
||||
roleCodes: [],
|
||||
selectionRowsArray:[],
|
||||
roleSwitchingList:[],
|
||||
roleCodes:[],
|
||||
long: ''
|
||||
}
|
||||
},
|
||||
@@ -379,6 +381,7 @@
|
||||
this.queryParam = { ...this.queryParam }
|
||||
}
|
||||
this.getList()
|
||||
this.getRoleByUserId()
|
||||
this.long = localStorage.getItem('language') || 'zh-cn'
|
||||
},
|
||||
methods: {
|
||||
@@ -386,6 +389,22 @@
|
||||
searchQuery() {
|
||||
this.getList()
|
||||
},
|
||||
getRoleByUserId(callback) {
|
||||
getAction('/project/projectLawsInventoryEO/getRoleByUserId', { projectLibraryId: this.$route.query.id }).then((res) => {
|
||||
if (res.success) {
|
||||
this.roleSwitchingList = res.result || []
|
||||
if(this.roleSwitchingList.length == 1){
|
||||
if(this.roleSwitchingList[0].roleCode == '13'){
|
||||
this.isRoleSwitching = false
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
this.roleSwitchingList = []
|
||||
}
|
||||
callback && callback()
|
||||
})
|
||||
},
|
||||
searchReset() {
|
||||
this.queryParam = {}
|
||||
this.getList()
|
||||
|
||||
@@ -163,7 +163,7 @@ export default {
|
||||
}
|
||||
|
||||
.itemModel {
|
||||
width: calc(100% - 130px);
|
||||
width: calc(80% - 130px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ export default {
|
||||
}
|
||||
|
||||
.itemModel {
|
||||
width: calc(100% - 130px);
|
||||
width: calc(80% - 130px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
@@ -124,15 +124,15 @@
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('export') }}
|
||||
</div>
|
||||
<div @click="handleDel" class="operator-text-title">
|
||||
<div @click="handleDel" class="operator-text-title">
|
||||
<a-icon type="delete"/>
|
||||
{{ $t('BatchDelete') }}
|
||||
</div>
|
||||
<div class="operator-text-title" @click="ExportReportClick">
|
||||
<div class="operator-text-title" @click="ExportReportClick">
|
||||
<a-icon type="export"/>
|
||||
{{ $t('ExportReport') }}
|
||||
</div>
|
||||
<div class="operator-text-title" @click="batSettingClick">
|
||||
<div class="operator-text-title" @click="batSettingClick">
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('batchSettingInformation') }}
|
||||
</div>
|
||||
@@ -990,7 +990,8 @@
|
||||
detailedWarningList: [],
|
||||
rowKeysSuccessList: [],
|
||||
selectedRowKeysList: [],
|
||||
rowKeysWarningList: []
|
||||
rowKeysWarningList: [],
|
||||
rolecode:false,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1104,7 +1105,7 @@
|
||||
} else {
|
||||
this.isDisplay = false
|
||||
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || this.formInlineRoleSwitching.roleSwitchingCode == '12' ||
|
||||
this.formInlineRoleSwitching.roleSwitchingCode == '') {
|
||||
this.formInlineRoleSwitching.roleSwitchingCode == '' || this.formInlineRoleSwitching.roleSwitchingCode == '13') {
|
||||
this.isRoleSwitching = false
|
||||
}
|
||||
}
|
||||
@@ -1498,6 +1499,8 @@
|
||||
}
|
||||
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || this.formInlineRoleSwitching.roleSwitchingCode == '12') {
|
||||
roleCode = 0
|
||||
} else if(this.formInlineRoleSwitching.roleSwitchingCode == '13'){
|
||||
roleCode = 13
|
||||
}
|
||||
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||
Object.keys(queryParam).forEach(val => {
|
||||
|
||||
Reference in New Issue
Block a user