feature<master> feat:新增批量删除功能

This commit is contained in:
zty 2024-04-15 10:09:10 +08:00
parent 864cc31433
commit 47662d9f2f
3 changed files with 69 additions and 72 deletions

View File

@ -407,64 +407,64 @@ export const asyncRoutes = [
]
},
//信息收集
{
path: '/infoCollect',
component: Layout,
redirect: '/infoCollect/',
name: 'informationCollect',
meta: { title: '信息收集', icon: 'PT', perms: ['infoCollect'] },
alwaysShow: true,
children: [
{
path: 'qualificInfo',
name: 'qualificInfo',
component: () => import('@/views/informatiomCollect/qualificInfo.vue'),
meta: { title: '资质情况', perms: ['infoCollect_QIN'] }
},
{
path: 'qualiChange',
name: 'qualiChange',
component: () => import('@/views/informatiomCollect/qualiChange.vue'),
meta: { title: '资质变更情况', perms: ['infoCollect_QICH'] }
},
{
path: 'reviewStatus',
name: 'reviewStatus',
component: () => import('@/views/informatiomCollect/reviewStatus.vue'),
meta: { title: '评审情况', perms: ['infoCollect_RS'] }
},
{
path: 'qualityCommend',
name: 'qualityCommend',
component: () => import('@/views/informatiomCollect/qualityCommend.vue'),
meta: { title: '质量表彰', perms: ['infoCollect_QC'] }
},
{
path: 'qualityActive.',
name: 'qualityActive.',
component: () => import('@/views/informatiomCollect/qualityActive.vue'),
meta: { title: '质量活动', perms: ['infoCollect_QA'] }
},
{
path: 'laboratoryContact',
name: 'laboratoryContact',
component: () => import('@/views/informatiomCollect/laboratoryContact.vue'),
meta: { title: '实验室联系方式', perms: ['infoCollect_LC'] }
},
{
path: 'externalAuditor',
name: 'externalAuditor',
component: () => import('@/views/informatiomCollect/externalAuditor.vue'),
meta: { title: '外审员情况', perms: ['infoCollect_EA'] }
},
{
path: 'inspectionStats',
name: 'inspectionStats',
component: () => import('@/views/informatiomCollect/inspectionStats.vue'),
meta: { title: '检验检测统计', perms: ['infoCollect_IS'] }
},
]
},
// {
// path: '/infoCollect',
// component: Layout,
// redirect: '/infoCollect/',
// name: 'informationCollect',
// meta: { title: '信息收集', icon: 'PT', perms: ['infoCollect'] },
// alwaysShow: true,
// children: [
// {
// path: 'qualificInfo',
// name: 'qualificInfo',
// component: () => import('@/views/informatiomCollect/qualificInfo.vue'),
// meta: { title: '资质情况', perms: ['infoCollect_QIN'] }
// },
// {
// path: 'qualiChange',
// name: 'qualiChange',
// component: () => import('@/views/informatiomCollect/qualiChange.vue'),
// meta: { title: '资质变更情况', perms: ['infoCollect_QICH'] }
// },
// {
// path: 'reviewStatus',
// name: 'reviewStatus',
// component: () => import('@/views/informatiomCollect/reviewStatus.vue'),
// meta: { title: '评审情况', perms: ['infoCollect_RS'] }
// },
// {
// path: 'qualityCommend',
// name: 'qualityCommend',
// component: () => import('@/views/informatiomCollect/qualityCommend.vue'),
// meta: { title: '质量表彰', perms: ['infoCollect_QC'] }
// },
// {
// path: 'qualityActive.',
// name: 'qualityActive.',
// component: () => import('@/views/informatiomCollect/qualityActive.vue'),
// meta: { title: '质量活动', perms: ['infoCollect_QA'] }
// },
// {
// path: 'laboratoryContact',
// name: 'laboratoryContact',
// component: () => import('@/views/informatiomCollect/laboratoryContact.vue'),
// meta: { title: '实验室联系方式', perms: ['infoCollect_LC'] }
// },
// {
// path: 'externalAuditor',
// name: 'externalAuditor',
// component: () => import('@/views/informatiomCollect/externalAuditor.vue'),
// meta: { title: '外审员情况', perms: ['infoCollect_EA'] }
// },
// // {
// // path: 'inspectionStats',
// // name: 'inspectionStats',
// // component: () => import('@/views/informatiomCollect/inspectionStats.vue'),
// // meta: { title: '检验检测统计', perms: ['infoCollect_IS'] }
// // },
// ]
// },
{
path: '/test',
component: Layout,

View File

@ -1,15 +1,17 @@
<template>
<div class="app-container">
<el-card style="margin-top: 10px">
<el-table :data="tableData.results" style="width: 100%" v-loading="listLoading" >
<el-table :data="tableData.results" style="width: 100%" v-loading="listLoading"
border fit stripe
highlight-current-row>
<el-table-column label="公司名称" prop="company_name"></el-table-column>
<el-table-column label="修改时间" prop="change_time"></el-table-column>
<el-table-column label="修改原因" prop="change_reason"></el-table-column>
<el-table-column
v-for="column in tableColumns"
:key="column.difference.name"
:prop="column.difference.name"
:new="column.difference.new"
:old="column.difference.old"
v-for="(column, index) in tableColumns.difference" :key="index"
:label="column.name"
:new="column.new"
:old="column.old"
></el-table-column>
</el-table>
<pagination v-show="tableData.count > 0" :total="tableData.count" :page.sync="listQuery.page"
@ -38,12 +40,6 @@ export default {
tableData: {
count: 0
},
activateOptions:[
{key:'国家级',value:'国家级'},
{key:'省级',value:'省级'}
],
ac_options:{'国家级':'国家级', '省级':'省级'}
}
},
mounted() {
@ -74,7 +70,7 @@ export default {
if (response.data) {
this.tableData = response.data;
this.tableColumns = response.data.results
console.log(this.tableColumns)
console.log(this.tableColumns)
}
this.listLoading = false;
});

View File

@ -49,6 +49,7 @@ class AbilityReviewSerializer(serializers.ModelSerializer):
class AuditLogSerializer(serializers.ModelSerializer):
company_name = serializers.CharField(source='instance.company_name', read_only=True)
class Meta(BaseMeta):
model = AuditLog
fields = '__all__'