【中汽测试】标准预警加时间段搜索
This commit is contained in:
@@ -49,19 +49,33 @@
|
|||||||
/>
|
/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<template v-if="toggleSearchStatus">
|
||||||
|
<!--实施日期-->
|
||||||
|
<a-form-model-item :label="$t('enterpriseStandardLibrary.publicize.materialDate')"
|
||||||
|
:labelCol="labelCol"
|
||||||
|
:wrapperCol="wrapperCol">
|
||||||
|
<a-range-picker
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
v-model="queryParam.date"
|
||||||
|
:disabled="false"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</template>
|
||||||
|
|
||||||
<a-col :md="6" :sm="8">
|
<div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
<div style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<a @click="handleToggleSearch">
|
||||||
<a-button type="primary"
|
{{ toggleSearchStatus ? $t('putAway') : $t('open') }}
|
||||||
@click="searchQuery"
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
|
||||||
icon="search"
|
</a>
|
||||||
style="margin-left: 8px"
|
<a-button type="primary"
|
||||||
v-has="'standardWarning:search'">
|
@click="searchQuery"
|
||||||
{{ $t('query') }}
|
icon="search"
|
||||||
</a-button>
|
style="margin-left: 8px"
|
||||||
<a-button type="primary" @click="searchReset" icon="reload" ghost>{{ $t('reset') }}</a-button>
|
v-has="'standardWarning:search'">
|
||||||
</div>
|
{{ $t('query') }}
|
||||||
</a-col>
|
</a-button>
|
||||||
|
<a-button type="primary" @click="searchReset" icon="reload" ghost>{{ $t('reset') }}</a-button>
|
||||||
|
</div>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -110,6 +124,7 @@ import { queryDepartTreeList, ajaxGetDictItems } from '../../../api/api'
|
|||||||
import JTable from '../../../components/jero/JTable'
|
import JTable from '../../../components/jero/JTable'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { StandardSource } from '../../../enums/commonEnums'
|
import { StandardSource } from '../../../enums/commonEnums'
|
||||||
|
import { filterObj } from '../../../utils/util'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'StandardWarningList',
|
name: 'StandardWarningList',
|
||||||
@@ -126,20 +141,20 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'source_dictText',
|
dataIndex: 'source_dictText',
|
||||||
title: this.$t('standardSelect.source'),
|
title: this.$t('standardSelect.source'),
|
||||||
width: 150
|
width: 90
|
||||||
},
|
},
|
||||||
// 标准号
|
// 标准号
|
||||||
{
|
{
|
||||||
dataIndex: 'standardNumber',
|
dataIndex: 'standardNumber',
|
||||||
title: this.$t('standardNumber'),
|
title: this.$t('standardNumber'),
|
||||||
width: 150,
|
width: 250,
|
||||||
scopedSlots: { customRender: 'detail' }
|
scopedSlots: { customRender: 'detail' }
|
||||||
},
|
},
|
||||||
// 标准名称
|
// 标准名称
|
||||||
{
|
{
|
||||||
dataIndex: 'standardName',
|
dataIndex: 'standardName',
|
||||||
title: this.$t('standardName'),
|
title: this.$t('standardName'),
|
||||||
width: 150,
|
width: 250,
|
||||||
scopedSlots: { customRender: 'detail' }
|
scopedSlots: { customRender: 'detail' }
|
||||||
},
|
},
|
||||||
// 新车型实施日期
|
// 新车型实施日期
|
||||||
@@ -262,6 +277,24 @@ export default {
|
|||||||
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
|
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
|
||||||
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
},
|
},
|
||||||
|
getQueryParams () {
|
||||||
|
// 获取查询条件
|
||||||
|
const sqp = {}
|
||||||
|
if (this.superQueryParams) {
|
||||||
|
sqp.superQueryParams = encodeURI(this.superQueryParams)
|
||||||
|
sqp.superQueryMatchType = this.superQueryMatchType
|
||||||
|
}
|
||||||
|
const param = Object.assign(sqp, this.queryParam, this.isorter, this.filters)
|
||||||
|
param.field = this.getQueryField()
|
||||||
|
param.pageNo = this.ipagination.current
|
||||||
|
param.pageSize = this.ipagination.pageSize
|
||||||
|
if (param.date && param.date.length > 0) {
|
||||||
|
param.startDate = param.date[0]
|
||||||
|
param.endDate = param.date[1]
|
||||||
|
delete param.date
|
||||||
|
}
|
||||||
|
return filterObj(param)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user