[add] 认证参数收集

This commit is contained in:
zhaomeijing
2022-05-06 15:03:48 +08:00
parent 7929858957
commit b40c814952
2 changed files with 261 additions and 221 deletions
@@ -8,7 +8,7 @@
<span>{{$t('title')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
v-model="queryParam.certificationType"></a-input>
v-model="queryParam.title"></a-input>
</div>
</a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
@@ -49,7 +49,18 @@
</span>
</a-table>
</div>
<a-modal v-model="areaVisible">
<div class="page">
<a-pagination
:show-total="total => $t('total')+` ${total} `+$t('strip')"
show-quick-jumper
show-size-changer
:page-size.sync="pageSize"
:total="total"
@change="pageOnChange"
@showSizeChange="SizeChange"
/>
</div>
<a-modal v-model="areaVisible" :title="$t('parameterTemplate')" width='750px' :footer="null">
<parameter-template v-if='areaVisible'></parameter-template>
</a-modal>
</a-card>
@@ -58,6 +69,8 @@
<script>
import ImportFile from '@/components/ImportFile/index'
import ParameterTemplate from '../dialog/ParameterTemplate'
import { getAction } from '../../../api/manage'
export default {
name: 'TaskParameterCollection',
components:{
@@ -75,32 +88,32 @@
{
title: this.$t('status'),
align: 'center',
dataIndex: 'title',
dataIndex: 'state',
},
{
title: this.$t('parameterTemplateName'),
align: 'center',
dataIndex: 'ParameterDescription',
dataIndex: 'paramsTemplateName',
},
{
title: this.$t('collectionCompletionTime'),
align: 'center',
dataIndex: 'title',
dataIndex: 'finishTime',
},
{
title: this.$t('Version'),
align: 'center',
dataIndex: 'title',
dataIndex: 'version',
},
{
title: this.$t('creator'),
align: 'center',
dataIndex: 'title',
dataIndex: 'createBy',
},
{
title: this.$t('createTime'),
align: 'center',
dataIndex: 'title',
dataIndex: 'createTime',
},
{
title: this.$t('operation'),
@@ -112,20 +125,33 @@
],
selectedRowKeys: [],
queryParam: {},
url: {},
url: {
list: 'params/manifest/page',
add: 'params/manifest/add',
edit: 'params/manifest/edit',
deleteBatch: 'params/manifest/delete',
deleteAll: 'params/manifest/deleteBatch',
},
loading: false,
dataSource: [],
areaVisible: false, // 弹框的控制
pageNo: 1,
pageSize: 10,
total: 0,
}
},
mounted() {
this.getlist()
},
methods:{
searchQuery() {
this.pageNo = 1
this.getlist()
},
searchReset() {
this.queryParam = {}
this.pageNo = 1
this.getlist()
},
onSelectChange() {
@@ -148,6 +174,29 @@
getPersonnelList(){
},
pageOnChange() {
},
SizeChange() {
},
getlist() {
let query = {
pageSize: this.pageSize,
pageNo: this.pageNo,
...this.queryParam
}
console.log(this.$route.query,'this.query')
getAction(this.url.list, query).then((res) => {
if(res.success) {
this.total = res.result.total
this.dataSource = res.result.records || []
this.loading = false
} else {
this.loading = false
}
})
}
},
}
</script>