diff --git a/jero-web/src/views/dashboard/components/documentDynamics.vue b/jero-web/src/views/dashboard/components/documentDynamics.vue index eb785b1eb..0ec411105 100644 --- a/jero-web/src/views/dashboard/components/documentDynamics.vue +++ b/jero-web/src/views/dashboard/components/documentDynamics.vue @@ -13,7 +13,7 @@ @click="magClick(item)">
文档库中新增了新的标准 GB 7258 机动车文件
- +
2022-04-04 12:00:00
diff --git a/jero-web/src/views/projectManagement/ParameterItemCollection/ProjectDetails/index.vue b/jero-web/src/views/projectManagement/ParameterItemCollection/ProjectDetails/index.vue index dc15a49ad..15d6a4cec 100644 --- a/jero-web/src/views/projectManagement/ParameterItemCollection/ProjectDetails/index.vue +++ b/jero-web/src/views/projectManagement/ParameterItemCollection/ProjectDetails/index.vue @@ -52,7 +52,7 @@
- +
@@ -73,6 +73,7 @@ import updateLog from '@/components/UpdateLog/index' import historicalVersionList from '@/views/projectManagement/components/historicalVersionList' import commentList from '@/views/projectManagement/components/commentList' + import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage' export default { name: 'ProjectDetails', @@ -90,15 +91,18 @@ return { title: this.$t('projectDetails'), textTitle: '认证参数收集', + isDisplayNum: '', url: { logList: '/project/projectLawsInventoryLogEO/page', - historicalVersionUrl: '' + historicalVersionUrl: '', + queryUserPremissionByProjectLibraryId: '/project/projectCertificationDirectoryEO/queryUserPremissionByProjectLibraryId' }, paramsManifest: {} } }, mounted() { this.textColor() + this.getTaskId() // 清单信息 this.paramsManifest = JSON.parse(localStorage.getItem('paramsManifest')) }, @@ -130,6 +134,16 @@ }, commentClick() { this.$refs.commentListRef.getData() + }, + getTaskId() { + let query = { + projectLibraryId: this.$route.query.id + } + getAction(this.url.queryUserPremissionByProjectLibraryId, query).then((res) => { + if (res.success) { + this.isDisplayNum = res.result + } + }) } } } diff --git a/jero-web/src/views/projectManagement/ProjectDetails/index.vue b/jero-web/src/views/projectManagement/ProjectDetails/index.vue index e4c4eac73..027c97496 100644 --- a/jero-web/src/views/projectManagement/ProjectDetails/index.vue +++ b/jero-web/src/views/projectManagement/ProjectDetails/index.vue @@ -2,9 +2,9 @@
- - - + + + {{this.title}} @@ -51,7 +51,7 @@
- +
@@ -72,6 +72,7 @@ import updateLog from '@/components/UpdateLog/index' import historicalVersionList from '../components/historicalVersionList' import commentList from '../components/commentList' + import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage' export default { name: 'ProjectDetails', @@ -88,15 +89,18 @@ data() { return { title: this.$t('projectDetails'), + isDisplayNum:'', textTitle: '项目详情', url: { logList: '/project/projectLawsInventoryLogEO/page', - historicalVersionUrl: '' + historicalVersionUrl: '', + queryUserPremissionByProjectLibraryId: '/project/projectCertificationDirectoryEO/queryUserPremissionByProjectLibraryId' } } }, mounted() { this.textColor() + this.getTaskId() }, methods: { textColor() { @@ -119,13 +123,23 @@ text[num].classList.add('Virtual-detail-left-text-color') }, UpdateLogClick() { - this.$refs.updateLogRef.getList({projectLibraryId: this.$route.query.id}) + this.$refs.updateLogRef.getList({ projectLibraryId: this.$route.query.id }) }, historicalVersionClick() { this.$refs.historicalVersionListRef.getList() }, commentClick() { this.$refs.commentListRef.getData() + }, + getTaskId() { + let query = { + projectLibraryId: this.$route.query.id + } + getAction(this.url.queryUserPremissionByProjectLibraryId, query).then((res) => { + if (res.success) { + this.isDisplayNum = res.result + } + }) } } } diff --git a/jero-web/src/views/projectManagement/components/TaskList.vue b/jero-web/src/views/projectManagement/components/TaskList.vue index bcac01a40..50c4584c2 100644 --- a/jero-web/src/views/projectManagement/components/TaskList.vue +++ b/jero-web/src/views/projectManagement/components/TaskList.vue @@ -124,7 +124,7 @@
- + @@ -141,6 +141,7 @@ certificationDirectory, TaskListModel }, + props:['isDisplayNum'], data() { return { columns: [ diff --git a/jero-web/src/views/projectManagement/components/certificationDirectory.vue b/jero-web/src/views/projectManagement/components/certificationDirectory.vue index fdcb2c933..ec6e90de3 100644 --- a/jero-web/src/views/projectManagement/components/certificationDirectory.vue +++ b/jero-web/src/views/projectManagement/components/certificationDirectory.vue @@ -11,7 +11,7 @@ style="height: 100%;overflow: auto;padding-bottom: 53px;">
-
+
{{$t('add')}}
@@ -73,13 +73,14 @@ certificationDirectoryAdd, viewFileModel }, + props: ['isDisplayNum'], data() { return { visible: false, queryParam: {}, confirmLoading: false, selectedRowKeys: [], - columns: [ + columnsAll: [ { title: this.$t('directoryName'), dataIndex: 'directoryName', @@ -143,6 +144,20 @@ } } }, + computed: { + columns() { + let columnResult = JSON.parse(JSON.stringify(this.columnsAll)) + if (this.isDisplayNum != 2) { + for (var i = 0; i < columnResult.length; i++) { + if (columnResult[i].title === this.$t('operation')) { + columnResult.splice(i, 1) + i-- + } + } + } + return columnResult + } + }, mounted() { },