提交 73ff8d24 authored 作者: kxjia's avatar kxjia

查询条件添加全部

上级 bf4f39e7
...@@ -371,16 +371,17 @@ export const formSchema: FormSchema[] = [ ...@@ -371,16 +371,17 @@ export const formSchema: FormSchema[] = [
stringToNumber: true, stringToNumber: true,
} }
}, },
{ // {
label: '包含同期', // label: '包含同期',
field: 'inclueData', // field: 'inclueData',
component: 'JDictSelectTag', // component: 'JDictSelectTag',
defaultValue:[], // defaultValue:[],
componentProps: { // componentProps: {
dictCode: 'metric_sta_report_tp', // dictCode: 'metric_sta_report_tp',
mode: 'multiple' // mode: 'multiple'
} // },
},
// },
// TODO 主键隐藏字段,目前写死为ID // TODO 主键隐藏字段,目前写死为ID
{ {
......
...@@ -10,6 +10,13 @@ ...@@ -10,6 +10,13 @@
<vxe-form-item title="年份" field="qyear" span="24"> <vxe-form-item title="年份" field="qyear" span="24">
<template #default="params"> <template #default="params">
<div class="button-group"> <div class="button-group">
<vxe-button
:mode="params.data.qyear === undefined ? 'button' : 'text'"
:status="params.data.qyear === undefined ? 'primary' : ''"
@click="handleButtonClick('qyear', undefined, params)"
>
全部
</vxe-button>
<vxe-button <vxe-button
v-for="year in yearOptions" v-for="year in yearOptions"
:key="year" :key="year"
...@@ -25,6 +32,13 @@ ...@@ -25,6 +32,13 @@
<vxe-form-item title="风险等级" field="riskLevel" span="24" :item-render="{}" title-overflow> <vxe-form-item title="风险等级" field="riskLevel" span="24" :item-render="{}" title-overflow>
<template #default="params"> <template #default="params">
<div class="button-group"> <div class="button-group">
<vxe-button
:mode="params.data.riskLevel === undefined ? 'button' : 'text'"
:status="params.data.riskLevel === undefined ? 'primary' : ''"
@click="handleButtonClick('riskLevel', undefined, params)"
>
全部
</vxe-button>
<vxe-button <vxe-button
v-for="item in riskLevelOptions" v-for="item in riskLevelOptions"
:key="item.value" :key="item.value"
...@@ -40,6 +54,13 @@ ...@@ -40,6 +54,13 @@
<vxe-form-item title="采集频率" field="collFreq" span="24" :item-render="{}" title-overflow> <vxe-form-item title="采集频率" field="collFreq" span="24" :item-render="{}" title-overflow>
<template #default="params"> <template #default="params">
<div class="button-group"> <div class="button-group">
<vxe-button
:mode="params.data.collFreq === undefined ? 'button' : 'text'"
:status="params.data.collFreq === undefined ? 'primary' : ''"
@click="handleButtonClick('collFreq', undefined, params)"
>
全部
</vxe-button>
<vxe-button <vxe-button
v-for="item in collFreqOptions" v-for="item in collFreqOptions"
:key="item.value" :key="item.value"
...@@ -55,6 +76,13 @@ ...@@ -55,6 +76,13 @@
<vxe-form-item title="采集方法" field="collMethod" span="24" :item-render="{}" title-overflow> <vxe-form-item title="采集方法" field="collMethod" span="24" :item-render="{}" title-overflow>
<template #default="params"> <template #default="params">
<div class="button-group"> <div class="button-group">
<vxe-button
:mode="params.data.collMethod === undefined ? 'button' : 'text'"
:status="params.data.collMethod === undefined ? 'primary' : ''"
@click="handleButtonClick('collMethod', undefined, params)"
>
全部
</vxe-button>
<vxe-button <vxe-button
v-for="item in collMethodOptions" v-for="item in collMethodOptions"
:key="item.value" :key="item.value"
...@@ -70,6 +98,13 @@ ...@@ -70,6 +98,13 @@
<vxe-form-item title="指标类型" field="mtrcCtp" span="24" :item-render="{}" title-overflow> <vxe-form-item title="指标类型" field="mtrcCtp" span="24" :item-render="{}" title-overflow>
<template #default="params"> <template #default="params">
<div class="button-group"> <div class="button-group">
<vxe-button
:mode="params.data.mtrcCtp === undefined ? 'button' : 'text'"
:status="params.data.mtrcCtp === undefined ? 'primary' : ''"
@click="handleButtonClick('mtrcCtp', undefined, params)"
>
全部
</vxe-button>
<vxe-button <vxe-button
:mode="params.data.mtrcCtp === '1' ? 'button' : 'text'" :mode="params.data.mtrcCtp === '1' ? 'button' : 'text'"
:status="params.data.mtrcCtp === '1' ? 'primary' : ''" :status="params.data.mtrcCtp === '1' ? 'primary' : ''"
...@@ -90,6 +125,13 @@ ...@@ -90,6 +125,13 @@
<vxe-form-item title="审批状态" field="appSta" span="24" :item-render="{}" title-overflow> <vxe-form-item title="审批状态" field="appSta" span="24" :item-render="{}" title-overflow>
<template #default="params"> <template #default="params">
<div class="button-group"> <div class="button-group">
<vxe-button
:mode="params.data.appSta === undefined ? 'button' : 'text'"
:status="params.data.appSta === undefined ? 'primary' : ''"
@click="handleButtonClick('appSta', undefined, params)"
>
全部
</vxe-button>
<vxe-button <vxe-button
:mode="params.data.appSta === '0' ? 'button' : 'text'" :mode="params.data.appSta === '0' ? 'button' : 'text'"
:status="params.data.appSta === '0' ? 'primary' : ''" :status="params.data.appSta === '0' ? 'primary' : ''"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论