对接虚拟清单详情

This commit is contained in:
qq787203167
2022-04-14 17:56:47 +08:00
parent 2c4bd9543b
commit 1d288acfff
3 changed files with 20 additions and 23 deletions
@@ -109,7 +109,7 @@
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.visible = false this.visible = false
this.confirmLoading = false this.confirmLoading = false
this.$emit('editModelList') this.$emit('batSettingList')
} else { } else {
this.$message.warning(this.$t('operationFailed')) this.$message.warning(this.$t('operationFailed'))
this.confirmLoading = false this.confirmLoading = false
@@ -239,12 +239,12 @@
{ {
title: this.$t('certificationType'), title: this.$t('certificationType'),
align: 'center', align: 'center',
dataIndex: 'attestationType' dataIndex: 'attestationType_dictText'
}, },
{ {
title: this.$t('certificationLevel'), title: this.$t('certificationLevel'),
align: 'center', align: 'center',
dataIndex: 'attestationRank' dataIndex: 'attestationRank_dictText'
}, },
{ {
title: this.$t('technicalField'), title: this.$t('technicalField'),
@@ -254,7 +254,7 @@
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
align: 'center', align: 'center',
dataIndex: 'dutyTerritory' dataIndex: 'dutyTerritory_dictText'
}, },
{ {
title: this.$t('remarks'), title: this.$t('remarks'),
@@ -332,14 +332,12 @@
], ],
selectedRowKeys: [], selectedRowKeys: [],
isTrue: false, isTrue: false,
total: 0,
pageSize: 10,
pageNo: 1
} }
}, },
mounted() { mounted() {
this.title = this.$route.query.title this.title = this.$route.query.title
this.isTrue = this.$route.query.title == '虚拟清单详情' ? false : true this.isTrue = this.$route.query.title == '虚拟清单详情' ? false : true
this.getList()
}, },
computed: { computed: {
columns() { columns() {
@@ -360,12 +358,10 @@
this.$refs.UpdateLogRef.getList() this.$refs.UpdateLogRef.getList()
}, },
searchQuery() { searchQuery() {
this.pageNo = 1
this.getList() this.getList()
}, },
searchReset() { searchReset() {
this.queryParam = {} this.queryParam = {}
this.pageNo = 1
this.getList() this.getList()
}, },
//模板下载 //模板下载
@@ -408,17 +404,13 @@
} }
}, },
addModelList() { addModelList() {
this.pageNo = 1
this.getList() this.getList()
}, },
editModelList() { editModelList() {
this.pageNo = 1
this.getList() this.getList()
}, },
getList() { getList() {
let query = { let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
...this.queryParam ...this.queryParam
} }
this.loading = true this.loading = true
@@ -432,7 +424,6 @@
}) })
}, },
batSettingList() { batSettingList() {
this.pageNo = 1
this.getList() this.getList()
}, },
batSettingClick() { batSettingClick() {
@@ -19,7 +19,7 @@
<j-dict-select-tag class="box-input" v-model="queryParam.targetMarket" <j-dict-select-tag class="box-input" v-model="queryParam.targetMarket"
:placeholder="$t('PleaseSelect')+$t('targetMarket')" :placeholder="$t('PleaseSelect')+$t('targetMarket')"
:type="'select'" :type="'select'"
:triggerChange="false" :dictCode="''"/> :triggerChange="false" :dictCode="'region'"/>
</div> </div>
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
@@ -30,7 +30,7 @@
<j-dict-select-tag class="box-input" v-model="queryParam.projectStatus" <j-dict-select-tag class="box-input" v-model="queryParam.projectStatus"
:placeholder="$t('PleaseSelect')+$t('projectStatus')" :placeholder="$t('PleaseSelect')+$t('projectStatus')"
:type="'select'" :type="'select'"
:triggerChange="false" :dictCode="''"/> :triggerChange="false" :dictCode="'project_status'"/>
</div> </div>
</a-col> </a-col>
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
@@ -78,7 +78,7 @@
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns" :columns="columns"
> >
<span slot="entryName" slot-scope="text,record"> <span slot="projectName" slot-scope="text,record">
<a @click="entryNameClick(record)">{{text}}</a> <a @click="entryNameClick(record)">{{text}}</a>
</span> </span>
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
@@ -121,7 +121,13 @@
visible: false, visible: false,
dataSource: [], dataSource: [],
confirmLoading: false, confirmLoading: false,
url: {}, url: {
list:'project/projectLibraryBase/list',
add:'project/projectLibraryBase/add',
edit:'project/projectLibraryBase/edit',
deleteBatch:'project/projectLibraryBase/delete',
deleteAll:'project/projectLibraryBase/deleteBatch',
},
total: 0, total: 0,
pageSize: 10, pageSize: 10,
pageNo: 1, pageNo: 1,
@@ -130,8 +136,8 @@
{ {
title: this.$t('entryName'), title: this.$t('entryName'),
align: 'center', align: 'center',
dataIndex: 'entryName', dataIndex: 'projectName',
scopedSlots: { customRender: 'entryName' } scopedSlots: { customRender: 'projectName' }
}, },
{ {
title: this.$t('targetMarket'), title: this.$t('targetMarket'),
@@ -146,17 +152,17 @@
{ {
title: this.$t('StudioEngineer'), title: this.$t('StudioEngineer'),
align: 'center', align: 'center',
dataIndex: 'StudioEngineer' dataIndex: 'studioEngineer'
}, },
{ {
title: this.$t('certifiedEngineer'), title: this.$t('certifiedEngineer'),
align: 'center', align: 'center',
dataIndex: 'certifiedEngineer' dataIndex: 'certificationEngineer'
}, },
{ {
title: this.$t('CertificationTime'), title: this.$t('CertificationTime'),
align: 'center', align: 'center',
dataIndex: 'CertificationTime' dataIndex: 'createTime'
}, },
{ {
title: this.$t('NTplatform'), title: this.$t('NTplatform'),