对接认证目录权限

This commit is contained in:
qq787203167
2022-05-24 18:24:18 +08:00
parent d18c5208c8
commit 2d40323afa
5 changed files with 56 additions and 12 deletions
@@ -13,7 +13,7 @@
@click="magClick(item)"> @click="magClick(item)">
<div class="yuan"></div> <div class="yuan"></div>
<div class="text">文档库中新增了新的标准 GB 7258 机动车文件</div> <div class="text">文档库中新增了新的标准 GB 7258 机动车文件</div>
<img src="../../../assets/new.png" alt=""> <!-- <img src="../../../assets/new.png" alt="">-->
<div class="time">2022-04-04 12:00:00</div> <div class="time">2022-04-04 12:00:00</div>
</div> </div>
<div class="solid"></div> <div class="solid"></div>
@@ -52,7 +52,7 @@
<div class="Virtual-detail-right"> <div class="Virtual-detail-right">
<ProjectDetailsName v-if="textTitle === '项目详情'"/> <ProjectDetailsName v-if="textTitle === '项目详情'"/>
<listOfRegulations v-else-if="textTitle === '法规清单'"/> <listOfRegulations v-else-if="textTitle === '法规清单'"/>
<TaskList v-else-if="textTitle === '任务清单'"/> <TaskList :isDisplayNum="isDisplayNum" v-else-if="textTitle === '任务清单'"/>
<ParameterItemCollectionList v-else-if="textTitle === '认证参数收集'" :paramsManifest='paramsManifest'/> <ParameterItemCollectionList v-else-if="textTitle === '认证参数收集'" :paramsManifest='paramsManifest'/>
<nonConformance v-else-if="textTitle === '未符合项'"/> <nonConformance v-else-if="textTitle === '未符合项'"/>
</div> </div>
@@ -73,6 +73,7 @@
import updateLog from '@/components/UpdateLog/index' import updateLog from '@/components/UpdateLog/index'
import historicalVersionList from '@/views/projectManagement/components/historicalVersionList' import historicalVersionList from '@/views/projectManagement/components/historicalVersionList'
import commentList from '@/views/projectManagement/components/commentList' import commentList from '@/views/projectManagement/components/commentList'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
export default { export default {
name: 'ProjectDetails', name: 'ProjectDetails',
@@ -90,15 +91,18 @@
return { return {
title: this.$t('projectDetails'), title: this.$t('projectDetails'),
textTitle: '认证参数收集', textTitle: '认证参数收集',
isDisplayNum: '',
url: { url: {
logList: '/project/projectLawsInventoryLogEO/page', logList: '/project/projectLawsInventoryLogEO/page',
historicalVersionUrl: '' historicalVersionUrl: '',
queryUserPremissionByProjectLibraryId: '/project/projectCertificationDirectoryEO/queryUserPremissionByProjectLibraryId'
}, },
paramsManifest: {} paramsManifest: {}
} }
}, },
mounted() { mounted() {
this.textColor() this.textColor()
this.getTaskId()
// 清单信息 // 清单信息
this.paramsManifest = JSON.parse(localStorage.getItem('paramsManifest')) this.paramsManifest = JSON.parse(localStorage.getItem('paramsManifest'))
}, },
@@ -130,6 +134,16 @@
}, },
commentClick() { commentClick() {
this.$refs.commentListRef.getData() 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
}
})
} }
} }
} }
@@ -2,9 +2,9 @@
<div class="doc-detail"> <div class="doc-detail">
<div class="Virtual-detail-header" style="position: fixed;top: 0"> <div class="Virtual-detail-header" style="position: fixed;top: 0">
<div class="Virtual-detail-title"> <div class="Virtual-detail-title">
<!-- <span style="line-height: 74px;display: inline-block;float: left">--> <!-- <span style="line-height: 74px;display: inline-block;float: left">-->
<!-- <a-icon type="left-circle" theme="filled" style="margin-right: 6px;font-size: 30px;color: #21c9cc;"/>--> <!-- <a-icon type="left-circle" theme="filled" style="margin-right: 6px;font-size: 30px;color: #21c9cc;"/>-->
<!-- </span>--> <!-- </span>-->
<span> <span>
{{this.title}} {{this.title}}
</span> </span>
@@ -51,7 +51,7 @@
<div class="Virtual-detail-right"> <div class="Virtual-detail-right">
<ProjectDetailsName v-if="textTitle === '项目详情'"/> <ProjectDetailsName v-if="textTitle === '项目详情'"/>
<listOfRegulations v-else-if="textTitle === '法规清单'"/> <listOfRegulations v-else-if="textTitle === '法规清单'"/>
<TaskList v-else-if="textTitle === '任务清单'"/> <TaskList :isDisplayNum="isDisplayNum" v-else-if="textTitle === '任务清单'"/>
<TaskParameterCollection v-else-if="textTitle === '认证参数收集'"/> <TaskParameterCollection v-else-if="textTitle === '认证参数收集'"/>
<nonConformance v-else-if="textTitle === '未符合项'"/> <nonConformance v-else-if="textTitle === '未符合项'"/>
</div> </div>
@@ -72,6 +72,7 @@
import updateLog from '@/components/UpdateLog/index' import updateLog from '@/components/UpdateLog/index'
import historicalVersionList from '../components/historicalVersionList' import historicalVersionList from '../components/historicalVersionList'
import commentList from '../components/commentList' import commentList from '../components/commentList'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
export default { export default {
name: 'ProjectDetails', name: 'ProjectDetails',
@@ -88,15 +89,18 @@
data() { data() {
return { return {
title: this.$t('projectDetails'), title: this.$t('projectDetails'),
isDisplayNum:'',
textTitle: '项目详情', textTitle: '项目详情',
url: { url: {
logList: '/project/projectLawsInventoryLogEO/page', logList: '/project/projectLawsInventoryLogEO/page',
historicalVersionUrl: '' historicalVersionUrl: '',
queryUserPremissionByProjectLibraryId: '/project/projectCertificationDirectoryEO/queryUserPremissionByProjectLibraryId'
} }
} }
}, },
mounted() { mounted() {
this.textColor() this.textColor()
this.getTaskId()
}, },
methods: { methods: {
textColor() { textColor() {
@@ -119,13 +123,23 @@
text[num].classList.add('Virtual-detail-left-text-color') text[num].classList.add('Virtual-detail-left-text-color')
}, },
UpdateLogClick() { UpdateLogClick() {
this.$refs.updateLogRef.getList({projectLibraryId: this.$route.query.id}) this.$refs.updateLogRef.getList({ projectLibraryId: this.$route.query.id })
}, },
historicalVersionClick() { historicalVersionClick() {
this.$refs.historicalVersionListRef.getList() this.$refs.historicalVersionListRef.getList()
}, },
commentClick() { commentClick() {
this.$refs.commentListRef.getData() 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
}
})
} }
} }
} }
@@ -124,7 +124,7 @@
</div> </div>
</a-table> </a-table>
</div> </div>
<certificationDirectory :url="url" ref="certificationDirectoryRef"/> <certificationDirectory :isDisplayNum="isDisplayNum" :url="url" ref="certificationDirectoryRef"/>
<TaskListModel @TaskListModelList="TaskListModelList" ref="TaskListModelRef"/> <TaskListModel @TaskListModelList="TaskListModelList" ref="TaskListModelRef"/>
</a-card> </a-card>
</template> </template>
@@ -141,6 +141,7 @@
certificationDirectory, certificationDirectory,
TaskListModel TaskListModel
}, },
props:['isDisplayNum'],
data() { data() {
return { return {
columns: [ columns: [
@@ -11,7 +11,7 @@
style="height: 100%;overflow: auto;padding-bottom: 53px;"> style="height: 100%;overflow: auto;padding-bottom: 53px;">
<div style="margin-bottom: 60px"> <div style="margin-bottom: 60px">
<div class="table-operator"> <div class="table-operator">
<div class="operator-text" @click="addData"> <div class="operator-text" v-if="isDisplayNum == 2" @click="addData">
<a-icon type="plus"/> <a-icon type="plus"/>
{{$t('add')}} {{$t('add')}}
</div> </div>
@@ -73,13 +73,14 @@
certificationDirectoryAdd, certificationDirectoryAdd,
viewFileModel viewFileModel
}, },
props: ['isDisplayNum'],
data() { data() {
return { return {
visible: false, visible: false,
queryParam: {}, queryParam: {},
confirmLoading: false, confirmLoading: false,
selectedRowKeys: [], selectedRowKeys: [],
columns: [ columnsAll: [
{ {
title: this.$t('directoryName'), title: this.$t('directoryName'),
dataIndex: '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() { mounted() {
}, },