Browse Source

信息发布管理页增加筛选内容

wangqin
刘朋 9 months ago
parent
commit
79ca2de060
  1. 60
      ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js
  2. 63
      ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/data.js
  3. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/index.vue

60
ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js

@ -73,7 +73,7 @@ export const illegalTriggeringType = {
export const station = { export const station = {
label: "桩号:", label: "桩号:",
key: "stakeMark", key: "stakeMark",
required: true, required: false,
type: "MultipleLabelItem", type: "MultipleLabelItem",
options: { options: {
options: [ options: [
@ -99,6 +99,64 @@ export const station = {
} }
}; };
export const startStation = {
label: "开始桩号:",
key: "startStakeMark",
required: false,
type: "MultipleLabelItem",
options: {
options: [
{
prefix: {
text: "K",
style: {
color: "#3DE8FF",
},
},
key: "startStakeMark[0]",
},
{
prefix: {
text: "+",
style: {
color: "#3DE8FF",
},
},
key: "startStakeMark[1]",
},
],
}
};
export const endStation = {
label: "结束桩号:",
key: "endStakeMark",
required: false,
type: "MultipleLabelItem",
options: {
options: [
{
prefix: {
text: "K",
style: {
color: "#3DE8FF",
},
},
key: "endStakeMark[0]",
},
{
prefix: {
text: "+",
style: {
color: "#3DE8FF",
},
},
key: "endStakeMark[1]",
},
],
}
};
export const startEndStation = { export const startEndStation = {
label: "起止桩号:", label: "起止桩号:",
key: "stakeMark", key: "stakeMark",

63
ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/data.js

@ -0,0 +1,63 @@
import * as PresetFormItems from "@screen/common/PresetFormItems.js";
import { merge, cloneDeep } from "lodash";
export const searchFormList = [
PresetFormItems.eventType,
{
label: "事件状态:",
key: "eventState",
type: "RadioGroup",
options: {
options: [
{
key: "0",
label: "未解决",
},
{
key: "1",
label: "已解决",
},
{
key: "2",
label: "已关闭",
},
],
},
},
{
label: "审核状态:",
key: "checkState",
type: "RadioGroup",
options: {
options: [
{
key: "0",
label: "待审核",
},
{
key: "1",
label: "已审核",
},
{
key: "2",
label: "未通过",
},
],
},
},
{
label: "时间范围:",
key: "daterange",
required: false,
type: "datePicker",
options: {
type: "daterange",
format: "yyyy-MM-dd HH:mm:ss",
valueFormat: "yyyy-MM-dd HH:mm:ss",
},
},
PresetFormItems.startStation,
PresetFormItems.endStation
];

4
ruoyi-ui/src/views/JiHeExpressway/pages/service/InformationReleaseManagement/Cards/AuditLists/index.vue

@ -1,6 +1,6 @@
<template> <template>
<Card2 class='Auditlists' title="审核列表"> <Card2 class='Auditlists' title="审核列表">
<InputSearch style="width: 100%;" /> <InputSearch style="width: 100%;" :formList="searchFormList" />
<div class="body"> <div class="body">
<ListItem v-for="item in list1" :key="item.id" :data="item" origin="left" class="middle-ratio" /> <ListItem v-for="item in list1" :key="item.id" :data="item" origin="left" class="middle-ratio" />
<ListItem v-for="item in list2" :key="item.id" :data="item" origin="left" class="middle-ratio" /> <ListItem v-for="item in list2" :key="item.id" :data="item" origin="left" class="middle-ratio" />
@ -15,6 +15,7 @@
import Card2 from "@screen/components/Card2/Card.vue"; import Card2 from "@screen/components/Card2/Card.vue";
import Pagination from '@screen/components/Pagination.vue'; import Pagination from '@screen/components/Pagination.vue';
import InputSearch from '@screen/components/InputSearch/index.vue'; import InputSearch from '@screen/components/InputSearch/index.vue';
import { searchFormList } from './data';
import ListItem from "./ListItem.vue"; import ListItem from "./ListItem.vue";
export default { export default {
@ -27,6 +28,7 @@ export default {
}, },
data() { data() {
return { return {
searchFormList,
list1: Array.from({ length: 3 }).map(() => ({ list1: Array.from({ length: 3 }).map(() => ({
title: "异常天气", title: "异常天气",
content: "2023.12.23 13:00:00 济南方向K100+000 中雪", content: "2023.12.23 13:00:00 济南方向K100+000 中雪",

Loading…
Cancel
Save