[update] 修改一般检索其他筛选条件顺序不一的问题
This commit is contained in:
@@ -39,11 +39,11 @@
|
||||
</a-row>
|
||||
<!-- 其他筛选条件 -->
|
||||
<template v-if="toggleSearchStatus">
|
||||
<template v-for="(value, key) in selectOptions">
|
||||
<div :key="key" :gutter="24" class="filter-row">
|
||||
<div class="label-col"><span class="search_label">{{ value.label }}</span></div>
|
||||
<template v-for="(value, key) in selectOptionsKeys">
|
||||
<div :key="key" v-if="selectOptions[value]" :gutter="24" class="filter-row">
|
||||
<div class="label-col"><span class="search_label">{{ selectOptions[value].label }}</span></div>
|
||||
<div class="option-col">
|
||||
<div v-for="item in value.options" :key="item.itemValue" class="option-div" :class="value.current === item.itemValue ? 'option-curr' : ''" @click="selectOptionsChange(key, item.itemValue)">
|
||||
<div v-for="item in selectOptions[value].options" :key="item.itemValue" class="option-div" :class="selectOptions[value].current === item.itemValue ? 'option-curr' : ''" @click="selectOptionsChange(key, item.itemValue)">
|
||||
<span>{{ item.itemText }}<span v-if="item.statisticsCount || item.statisticsCount === 0">(<span class="option-span-num">{{ item.statisticsCount }}</span>)</span></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -140,6 +140,16 @@ export default {
|
||||
],
|
||||
resourceTypeCurrent: 'all', // 资源类型当前选中项
|
||||
selectOptions: {}, // 其他筛选条件
|
||||
selectOptionsKeys: [
|
||||
'standardClass', // 标准类别
|
||||
'dynamicType', // 动力类型
|
||||
'applicableVehicle', // 适用车辆类型
|
||||
'standardProperty', // 标准类型
|
||||
'standardState', // 状态
|
||||
'standardCode', // 企业标准代号
|
||||
'enterpriseStandardState', // 标准状态
|
||||
'gradeClassification' // 标准等级分类
|
||||
], // 其他筛选条件中所有的key,为了能按顺序遍历
|
||||
dataSource: [],
|
||||
ipagination: {
|
||||
current: 1,
|
||||
|
||||
Reference in New Issue
Block a user