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

This commit is contained in:
qq787203167
2022-04-20 15:51:24 +08:00
parent a67e779314
commit 4753586616
4 changed files with 61 additions and 22 deletions
@@ -27,7 +27,7 @@
rowKey="id"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:pagination="false"
:scroll="{x:1000,y: 400}"
:scroll="{x:true,y: 400}"
:data-source="dataSource"
:loading="loading"
>
@@ -154,6 +154,7 @@
import PersonnelSelection from '@/components/PersonnelSelection/index'
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
import ImportFile from '@/components/ImportFile/index'
import { mapGetters } from 'vuex'
export default {
name: 'listOfRelevantPersonnel',
@@ -164,7 +165,7 @@
data() {
return {
visible: false,
columns: [
columnsAll: [
{
title: this.$t('areaOfResponsibility'),
align: 'center',
@@ -248,7 +249,22 @@
selectedRowKeys: []
}
},
computed: {
columns() {
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
if (this.$route.query.studioEngineer != this.userInfo().id) {
for (var i = 0; i < columnResult.length; i++) {
if (columnResult[i].title === this.$t('operation')) {
columnResult.splice(i, 1)
i--
}
}
}
return columnResult
}
},
methods: {
...mapGetters(['userInfo']),
getData() {
this.visible = true
this.getList()
@@ -297,7 +313,7 @@
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
projectId:this.$route.query.id
projectId: this.$route.query.id
}
this.loading = true
postAction(this.url.page, query).then((res) => {