266 lines
7.0 KiB
Java
266 lines
7.0 KiB
Java
<template>
|
|
<a-card :bordered="false">
|
|
<div class="table-page-search-wrapper">
|
|
<a-row :gutter="24">
|
|
<a-col :md="6" :sm="8">
|
|
<div class="box-title-text">
|
|
<div class="title-text" :title="$t('standard')">
|
|
<span>{{$t('standard')}}</span>
|
|
</div>
|
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
|
v-model="queryParam.serialNumber"></a-input>
|
|
</div>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<div class="box-title-text">
|
|
<div class="title-text" style="width: 64px" :title="$t('areaOfResponsibility')">
|
|
<span>{{$t('areaOfResponsibility')}}</span>
|
|
</div>
|
|
<j-dict-select-tag class="box-input" v-model="queryParam.dutyTerritory"
|
|
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
|
|
:type="'select'"
|
|
:triggerChange="false" :dictCode="'region'"/>
|
|
</div>
|
|
</a-col>
|
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
|
<a-col :md="6" :sm="24">
|
|
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
|
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
|
</a-col>
|
|
</span>
|
|
</a-row>
|
|
</div>
|
|
<div class="table-operator">
|
|
<div @click="CertificationDirectory" class="operator-text">
|
|
<a-icon type="bulb"/>
|
|
{{$t('CertificationDirectory')}}
|
|
</div>
|
|
<div @click="handleExport" class="operator-text">
|
|
<a-icon type="export" :rotate="-90"/>
|
|
{{$t('export')}}
|
|
</div>
|
|
</div>
|
|
<div style="width: 100%">
|
|
<a-table
|
|
ref="table"
|
|
:loading="loading"
|
|
:pagination="false"
|
|
:scroll="{x: true}"
|
|
rowKey="id"
|
|
:data-source="dataSource"
|
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
:columns="columns"
|
|
>
|
|
</a-table>
|
|
</div>
|
|
<certificationDirectory :url="url" ref="certificationDirectoryRef"/>
|
|
</a-card>
|
|
</template>
|
|
|
|
<script>
|
|
import certificationDirectory from './certificationDirectory'
|
|
export default {
|
|
name: 'TaskList',
|
|
components:{
|
|
certificationDirectory
|
|
},
|
|
data() {
|
|
return {
|
|
columns: [
|
|
{
|
|
title: this.$t('serialNumber'),
|
|
align: 'center',
|
|
width: 100,
|
|
fixed: 'left'
|
|
},
|
|
{
|
|
title: this.$t('standard'),
|
|
align: 'center',
|
|
dataIndex: 'standard',
|
|
fixed: 'left'
|
|
},
|
|
{
|
|
title: this.$t('areaOfResponsibility'),
|
|
align: 'center',
|
|
dataIndex: 'areaOfResponsibility',
|
|
fixed: 'left'
|
|
},
|
|
{
|
|
title: this.$t('confirmationOfDesignConformity'),
|
|
children: [
|
|
{
|
|
title: this.$t('TaskRequirements'),
|
|
dataIndex: 'TaskRequirements',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('Sponsor'),
|
|
dataIndex: 'Sponsor',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('TaskCutOffTime'),
|
|
dataIndex: 'TaskCutOffTime',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('status'),
|
|
dataIndex: 'status',
|
|
align: 'center'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: this.$t('PrehomoConfirmation'),
|
|
children: [
|
|
{
|
|
title: this.$t('TaskRequirements'),
|
|
dataIndex: 'TaskRequirements',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('Sponsor'),
|
|
dataIndex: 'Sponsor',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('TaskCutOffTime'),
|
|
dataIndex: 'TaskCutOffTime',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('status'),
|
|
dataIndex: 'status',
|
|
align: 'center'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: this.$t('verificationAndConformityconfirmation'),
|
|
children: [
|
|
{
|
|
title: this.$t('TaskRequirements'),
|
|
dataIndex: 'TaskRequirements',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('Sponsor'),
|
|
dataIndex: 'Sponsor',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('TaskCutOffTime'),
|
|
dataIndex: 'TaskCutOffTime',
|
|
align: 'center'
|
|
},
|
|
{
|
|
title: this.$t('status'),
|
|
dataIndex: 'status',
|
|
align: 'center'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: this.$t('CertificationProgress'),
|
|
align: 'center',
|
|
dataIndex: 'CertificationProgress',
|
|
scopedSlots: { customRender: 'CertificationProgress' }
|
|
},
|
|
{
|
|
title: this.$t('CurrentProjectStatusEvaluation'),
|
|
align: 'center',
|
|
dataIndex: 'CurrentProjectStatusEvaluation',
|
|
scopedSlots: { customRender: 'CurrentProjectStatusEvaluation' }
|
|
}
|
|
],
|
|
selectedRowKeys: [],
|
|
queryParam: {},
|
|
url: {},
|
|
loading: false,
|
|
dataSource: []
|
|
}
|
|
},
|
|
mounted() {
|
|
},
|
|
methods: {
|
|
searchQuery() {
|
|
|
|
},
|
|
searchReset() {
|
|
|
|
},
|
|
onSelectChange() {
|
|
|
|
},
|
|
handleExport() {
|
|
|
|
},
|
|
CertificationDirectory() {
|
|
this.$refs.certificationDirectoryRef.addModel()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import '~@assets/less/common.less';
|
|
|
|
.box-title-text {
|
|
line-height: 1.4;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.title-text {
|
|
width: 32px;
|
|
color: #000F16;
|
|
display: inline-block;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
margin-right: 16px;
|
|
margin-top: 3px;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.box-input {
|
|
display: inline-block;
|
|
width: 70%;
|
|
height: 38px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.box-button {
|
|
height: 38px;
|
|
}
|
|
|
|
.text-operation {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.page {
|
|
text-align: right;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.operator-text-left {
|
|
font-size: 14px;
|
|
margin-right: 20px;
|
|
background: #eff1f3;
|
|
padding: 8px 8px;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
}
|
|
</style>
|
|
<style>
|
|
.box-input .ant-select-selection {
|
|
height: 38px !important;
|
|
}
|
|
|
|
.box-input .ant-select-selection__rendered {
|
|
line-height: 38px;
|
|
}
|
|
</style> |