diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index 09ec829d..7f61b9c2 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -41,6 +41,24 @@ export const source = { }, }; +export const releaseChannel = { + label: "发布渠道:", + key: "channel", + type: "CheckboxGroup", + isAlone: true, + default: [], + options: { + options: [ + { key: "1", label: "微博" }, + { key: "3", label: "微信小程序" }, + { key: "4", label: "服务网站" }, + { key: "5", label: "情报板" }, + { key: "6", label: "手机短信" }, + { key: "7", label: "微信公众号" }, + ], + }, +}; + export const illegalTriggeringType = { label: "类型:", key: "eventSubclass", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/data.js new file mode 100644 index 00000000..09ad820f --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/data.js @@ -0,0 +1,56 @@ +import * as PresetFormItems from "@screen/common/PresetFormItems.js"; +import { merge, cloneDeep } from "lodash"; + +export const searchFormList = [ + { + 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.eventType, + PresetFormItems.releaseChannel, + { + label: "信息级别:", + key: "level", + type: "RadioGroup", + isAlone: true, + options: { + activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", + options: [ + { + key: "1", + label: "影响通行", + }, + { + key: "2", + label: "不影响通行", + }, + ], + }, + }, + { + label: "启用状态:", + key: "status", + type: "RadioGroup", + isAlone: true, + options: { + activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", + options: [ + { + key: "1", + label: "启用", + }, + { + key: "2", + label: "停用", + }, + ], + }, + }, +]; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue index 0b03b1a7..f5aefd76 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue @@ -17,7 +17,7 @@ - + @@ -29,6 +29,9 @@ + + + @@ -38,6 +41,8 @@ import InputSearch from '@screen/components/InputSearch/index.vue'; import Card from './components/Card'; import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue'; +import { searchFormList } from './data'; + export default { name: 'PublishingChannelManagement', components: { @@ -46,6 +51,13 @@ export default { Card, ButtonGradient }, + data() { + return { + searchFormList, + addNEditDialogVisible: false, + dialogData: null + } + }, methods: { handleOpenDialogAddEdit(data) { this.addNEditDialogVisible = true;