修改法规清单的更新log 历史版本

This commit is contained in:
qq787203167
2022-04-20 14:25:03 +08:00
parent 522cf1c6d9
commit 0b0f401e6a
5 changed files with 173 additions and 10 deletions
@@ -9,6 +9,20 @@
{{this.title}}
</span>
</div>
<div class="Virtual-detail-text-right" v-if="textTitle === '法规清单'">
<div class="operator-text">
<a-icon type="message"/>
{{$t('comment')}}
</div>
<div class="operator-text" @click="historicalVersionClick">
<a-icon type="clock-circle"/>
{{$t('historicalVersion')}}
</div>
<div class="operator-text" @click="UpdateLogClick">
<a-icon type="reload"/>
{{$t('UpdateLog')}}
</div>
</div>
</div>
<div style="padding: 67px 0 0 0;background: #ffffff;height:100%">
<div class="detail-content" style="height: 100%">
@@ -43,6 +57,8 @@
</div>
</div>
</div>
<updateLog :url="url" ref="updateLogRef"/>
<historicalVersionList :url="url" ref="historicalVersionListRef"/>
</div>
</template>
@@ -52,6 +68,8 @@
import ProjectDetailsName from '../components/ProjectDetails'
import TaskParameterCollection from '../components/TaskParameterCollection'
import nonConformance from '../components/nonConformance'
import updateLog from '@/components/UpdateLog/index'
import historicalVersionList from '../components/historicalVersionList'
export default {
name: 'ProjectDetails',
@@ -60,12 +78,18 @@
listOfRegulations,
ProjectDetailsName,
TaskParameterCollection,
nonConformance
nonConformance,
updateLog,
historicalVersionList
},
data() {
return {
title: this.$t('projectDetails'),
textTitle: '项目详情'
textTitle: '项目详情',
url: {
logList: '',
historicalVersionUrl: ''
}
}
},
mounted() {
@@ -90,6 +114,12 @@
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
text[num].classList.add('Virtual-detail-left-text-color')
},
UpdateLogClick() {
this.$refs.updateLogRef.getList()
},
historicalVersionClick() {
this.$refs.historicalVersionListRef.getList()
}
}
}
@@ -161,4 +191,8 @@
background: #eff1f3;
border-radius: 4px;
}
.Virtual-detail-text-right {
}
</style>