2023-05-10 19:36:50 +08:00
|
|
|
<template>
|
|
|
|
|
<div>
|
2023-05-12 19:10:18 +08:00
|
|
|
<search-form :items="formItems" v-model="queryParam" @search="searchQuery">
|
2023-05-16 09:08:13 +08:00
|
|
|
<div style="float: right" class="btn-group" slot="additional">
|
|
|
|
|
<a-button type="primary" @click="onDel">
|
|
|
|
|
<img src="@/assets/images/global/delete.png" alt="" />
|
|
|
|
|
Delete
|
|
|
|
|
</a-button>
|
|
|
|
|
</div>
|
2023-05-12 19:10:18 +08:00
|
|
|
</search-form>
|
|
|
|
|
<custom-table
|
|
|
|
|
size="middle"
|
|
|
|
|
rowKey="id"
|
|
|
|
|
:columns="columns"
|
|
|
|
|
:list="dataSource"
|
|
|
|
|
:pagination="ipagination"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
@change="handleTableChange"
|
|
|
|
|
:selectedRowKeys.sync="selectedRowKeys"
|
2023-05-16 09:08:13 +08:00
|
|
|
:scroll="{ y: 'calc(100vh - 405px)' }"
|
2023-05-12 19:10:18 +08:00
|
|
|
>
|
|
|
|
|
<template slot="index" slot-scope="{ index }">
|
|
|
|
|
{{ index + 1 }}
|
|
|
|
|
</template>
|
|
|
|
|
</custom-table>
|
2023-05-10 19:36:50 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-05-12 19:10:18 +08:00
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
|
|
|
|
|
|
|
const formItems = [
|
|
|
|
|
{
|
|
|
|
|
label: 'SampleID',
|
|
|
|
|
type: 'a-input',
|
|
|
|
|
name: 'sampleID',
|
|
|
|
|
span: 4
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Station',
|
|
|
|
|
type: 'custom-select',
|
|
|
|
|
name: 'station',
|
|
|
|
|
props: {
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: 'ALL',
|
|
|
|
|
value: ''
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
span: 4
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Detector',
|
|
|
|
|
type: 'custom-select',
|
|
|
|
|
name: 'detector',
|
|
|
|
|
props: {
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: 'ALL',
|
|
|
|
|
value: ''
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
span: 4
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'From',
|
|
|
|
|
type: 'a-date-picker',
|
|
|
|
|
name: 'from',
|
|
|
|
|
props: {
|
|
|
|
|
showTime: { format: 'HH:mm' },
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'To',
|
|
|
|
|
type: 'a-date-picker',
|
|
|
|
|
name: 'to',
|
|
|
|
|
props: {
|
|
|
|
|
showTime: { format: 'HH:mm' },
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm'
|
2023-05-16 09:08:13 +08:00
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
paddingRight: 0
|
2023-05-12 19:10:18 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
type: 'a-checkbox-group',
|
|
|
|
|
props: {
|
|
|
|
|
options: [
|
|
|
|
|
{ label: 'Collect Stop', value: 'collectStop' },
|
|
|
|
|
{ label: 'Acq.Start', value: 'acqDotStart' },
|
|
|
|
|
{ label: 'SampleData', value: 'sampleData' },
|
|
|
|
|
{ label: 'AutoResults', value: 'autoResults' },
|
|
|
|
|
{ label: 'Reviewed Results', value: 'reviewedResults' }
|
|
|
|
|
]
|
2023-05-16 09:08:13 +08:00
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
width: '600px'
|
2023-05-12 19:10:18 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
|
{
|
|
|
|
|
title: 'NO',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
scopedSlots: {
|
|
|
|
|
customRender: 'index'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'SITE DET CODE',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'siteDetCode',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'STATION ID',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
dataIndex: 'stationId'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'STATION',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
dataIndex: 'station'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'DETECTOR',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
dataIndex: 'detector'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'SAMPLE TYPE',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
dataIndex: 'sampleType'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'DATA TYPE',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
dataIndex: 'dataType'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'GEOMETRY',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
dataIndex: 'geometry'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'QUALIFIE',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
dataIndex: 'qualifie'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'TRANSMIT DTG',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
|
|
|
|
dataIndex: 'transmitDtg'
|
|
|
|
|
}
|
|
|
|
|
]
|
2023-05-10 19:36:50 +08:00
|
|
|
|
2023-05-12 19:10:18 +08:00
|
|
|
export default {
|
|
|
|
|
mixins: [JeecgListMixin],
|
|
|
|
|
data() {
|
|
|
|
|
this.formItems = formItems
|
|
|
|
|
this.columns = columns
|
|
|
|
|
return {
|
|
|
|
|
queryParam: {
|
|
|
|
|
station: '',
|
|
|
|
|
detector: ''
|
|
|
|
|
},
|
|
|
|
|
url: {
|
2023-05-16 09:08:13 +08:00
|
|
|
list: '/sys/user/list',
|
|
|
|
|
delete: ''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
onDel() {
|
|
|
|
|
if (this.selectedRowKeys && this.selectedRowKeys.length) {
|
|
|
|
|
this.$confirm({
|
|
|
|
|
title: 'Do You Want To Delete This Item?',
|
|
|
|
|
okText: 'OK',
|
|
|
|
|
cancelText: 'Cancel',
|
|
|
|
|
onOk: () => {
|
|
|
|
|
this.handleDelete(this.selectedRowKeys[0])
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warn('Please Select An Item To Delete')
|
2023-05-12 19:10:18 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-05-10 19:36:50 +08:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2023-05-16 09:08:13 +08:00
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.btn-group {
|
|
|
|
|
img {
|
|
|
|
|
margin-right: 12px;
|
|
|
|
|
height: 18px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|