Browse Source

发布渠道管理增加按钮,增加筛选条件

wangqin
刘朋 1 year ago
parent
commit
298c698a05
  1. 18
      ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js
  2. 56
      ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/data.js
  3. 14
      ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue

18
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",

56
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: "停用",
},
],
},
},
];

14
ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue

@ -17,7 +17,7 @@
</ButtonGradient>
</div>
<InputSearch style="width: 402px;" />
<InputSearch style="width: 402px;" :formList="searchFormList" @handleSearch="handleSearch" />
</div>
<!-- 内容 -->
@ -29,6 +29,9 @@
<div class="footer">
<Pagination :total="90" />
</div>
<!-- 新增编辑弹窗 -->
<AddNEditDialog v-model="addNEditDialogVisible" :data="dialogData" />
</div>
</template>
@ -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;

Loading…
Cancel
Save