From e4c1f6bc0c0ff672ad625d31366c17ba9e2948bf Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Thu, 16 Feb 2023 17:25:35 +0800 Subject: [PATCH] =?UTF-8?q?:rocket:=20push=20=E6=A8=A1=E5=9D=97=E7=BC=96?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/controller/pushApplication.ts | 25 +++ .../common/controller/pushBlacklist.ts | 25 +++ .../common/controller/pushCertification.ts | 25 +++ .../platform/common/controller/pushManage.ts | 25 +++ .../common/controller/pushTodoAuth.ts | 25 +++ .../platform/common/controller/pushType.ts | 25 +++ .../common/controller/pushWhitelist.ts | 25 +++ .../platform/common/entity/pushApplication.ts | 17 ++ .../platform/common/entity/pushBlacklist.ts | 11 ++ .../common/entity/pushCertification.ts | 21 +++ src/api/platform/common/entity/pushManage.ts | 14 ++ .../platform/common/entity/pushTodoAuth.ts | 13 ++ src/api/platform/common/entity/pushType.ts | 12 ++ .../platform/common/entity/pushWhitelist.ts | 11 ++ .../push/application/ApplicationModal.vue | 78 +++++++++ .../push/application/application.data.ts | 120 +++++++++++++ src/views/common/push/application/index.vue | 135 +++++++++++++++ .../push/authManage/AuthManageModal.vue | 78 +++++++++ .../common/push/authManage/authManage.data.ts | 160 ++++++++++++++++++ src/views/common/push/authManage/index.vue | 135 +++++++++++++++ .../common/push/blacklist/BlacklistModal.vue | 78 +++++++++ .../common/push/blacklist/blacklist.data.ts | 53 ++++++ src/views/common/push/blacklist/index.vue | 135 +++++++++++++++ .../push/pushManage/PushManageModal.vue | 89 ++++++++++ src/views/common/push/pushManage/index.vue | 106 ++++++++++++ .../common/push/pushManage/pushManage.data.ts | 114 +++++++++++++ .../common/push/pushType/PushTypeModal.vue | 78 +++++++++ src/views/common/push/pushType/index.vue | 135 +++++++++++++++ .../common/push/pushType/pushType.data.ts | 66 ++++++++ .../common/push/todoAuth/TodoAuthModal.vue | 78 +++++++++ src/views/common/push/todoAuth/index.vue | 135 +++++++++++++++ .../common/push/todoAuth/todoAuth.data.ts | 89 ++++++++++ .../common/push/whitelist/WhitelistModal.vue | 78 +++++++++ src/views/common/push/whitelist/index.vue | 135 +++++++++++++++ .../common/push/whitelist/whitelist.data.ts | 53 ++++++ 35 files changed, 2402 insertions(+) create mode 100644 src/api/platform/common/controller/pushApplication.ts create mode 100644 src/api/platform/common/controller/pushBlacklist.ts create mode 100644 src/api/platform/common/controller/pushCertification.ts create mode 100644 src/api/platform/common/controller/pushManage.ts create mode 100644 src/api/platform/common/controller/pushTodoAuth.ts create mode 100644 src/api/platform/common/controller/pushType.ts create mode 100644 src/api/platform/common/controller/pushWhitelist.ts create mode 100644 src/api/platform/common/entity/pushApplication.ts create mode 100644 src/api/platform/common/entity/pushBlacklist.ts create mode 100644 src/api/platform/common/entity/pushCertification.ts create mode 100644 src/api/platform/common/entity/pushManage.ts create mode 100644 src/api/platform/common/entity/pushTodoAuth.ts create mode 100644 src/api/platform/common/entity/pushType.ts create mode 100644 src/api/platform/common/entity/pushWhitelist.ts create mode 100644 src/views/common/push/application/ApplicationModal.vue create mode 100644 src/views/common/push/application/application.data.ts create mode 100644 src/views/common/push/application/index.vue create mode 100644 src/views/common/push/authManage/AuthManageModal.vue create mode 100644 src/views/common/push/authManage/authManage.data.ts create mode 100644 src/views/common/push/authManage/index.vue create mode 100644 src/views/common/push/blacklist/BlacklistModal.vue create mode 100644 src/views/common/push/blacklist/blacklist.data.ts create mode 100644 src/views/common/push/blacklist/index.vue create mode 100644 src/views/common/push/pushManage/PushManageModal.vue create mode 100644 src/views/common/push/pushManage/index.vue create mode 100644 src/views/common/push/pushManage/pushManage.data.ts create mode 100644 src/views/common/push/pushType/PushTypeModal.vue create mode 100644 src/views/common/push/pushType/index.vue create mode 100644 src/views/common/push/pushType/pushType.data.ts create mode 100644 src/views/common/push/todoAuth/TodoAuthModal.vue create mode 100644 src/views/common/push/todoAuth/index.vue create mode 100644 src/views/common/push/todoAuth/todoAuth.data.ts create mode 100644 src/views/common/push/whitelist/WhitelistModal.vue create mode 100644 src/views/common/push/whitelist/index.vue create mode 100644 src/views/common/push/whitelist/whitelist.data.ts diff --git a/src/api/platform/common/controller/pushApplication.ts b/src/api/platform/common/controller/pushApplication.ts new file mode 100644 index 0000000..91d2aec --- /dev/null +++ b/src/api/platform/common/controller/pushApplication.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushApplication, PushApplicationParams, PushApplicationResult } from '/@/api/platform/common/entity/pushApplication'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushApplication/list', + add = '/common_proxy/common/pushApplication/save', + get = '/common_proxy/common/pushApplication', + edit = '/common_proxy/common/pushApplication/update', + del = '/common_proxy/common/pushApplication/remove', +} + +export const listPushApplication = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushApplication = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushApplication = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushApplication = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushApplication = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushBlacklist.ts b/src/api/platform/common/controller/pushBlacklist.ts new file mode 100644 index 0000000..46403ab --- /dev/null +++ b/src/api/platform/common/controller/pushBlacklist.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushBlacklist, PushBlacklistParams, PushBlacklistResult } from '/@/api/platform/common/entity/pushBlacklist'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushCertification/list', + add = '/common_proxy/common/pushCertification/save', + get = '/common_proxy/common/pushCertification', + edit = '/common_proxy/common/pushCertification/update', + del = '/common_proxy/common/pushCertification/remove', +} + +export const listPushBlacklist = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushBlacklist = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushBlacklist = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushBlacklist = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushBlacklist = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushCertification.ts b/src/api/platform/common/controller/pushCertification.ts new file mode 100644 index 0000000..da7768b --- /dev/null +++ b/src/api/platform/common/controller/pushCertification.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushCertification, PushCertificationParams, PushCertificationResult } from '/@/api/platform/common/entity/pushCertification'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushCertification/list', + add = '/common_proxy/common/pushCertification/save', + get = '/common_proxy/common/pushCertification', + edit = '/common_proxy/common/pushCertification/update', + del = '/common_proxy/common/pushCertification/remove', +} + +export const listPushCertification = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushCertification = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushCertification = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushCertification = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushCertification = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushManage.ts b/src/api/platform/common/controller/pushManage.ts new file mode 100644 index 0000000..fdc497e --- /dev/null +++ b/src/api/platform/common/controller/pushManage.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushManage, PushManageParams } from '/@/api/platform/common/entity/pushManage'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushManage/list', + add = '/common_proxy/common/pushManage/save', + get = '/common_proxy/common/pushManage', + edit = '/common_proxy/common/pushManage/update', + del = '/common_proxy/common/pushManage/remove', +} + +export const listPushManage = (params?: Partial) => defHttp.get({ url: Api.list, params }); + +export const addPushManage = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushManage = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushManage = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushManage = (id: string) => defHttp.delete({ url: `${Api.del}/${id}` }); diff --git a/src/api/platform/common/controller/pushTodoAuth.ts b/src/api/platform/common/controller/pushTodoAuth.ts new file mode 100644 index 0000000..268d10a --- /dev/null +++ b/src/api/platform/common/controller/pushTodoAuth.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushTodoAuth, PushTodoAuthParams, PushTodoAuthResult } from '/@/api/platform/common/entity/pushTodoAuth'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushTodoAuth/list', + add = '/common_proxy/common/pushTodoAuth/save', + get = '/common_proxy/common/pushTodoAuth', + edit = '/common_proxy/common/pushTodoAuth/update', + del = '/common_proxy/common/pushTodoAuth/remove', +} + +export const listPushTodoAuth = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushTodoAuth = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushTodoAuth = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushTodoAuth = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushTodoAuth = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushType.ts b/src/api/platform/common/controller/pushType.ts new file mode 100644 index 0000000..1d0701f --- /dev/null +++ b/src/api/platform/common/controller/pushType.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushType, PushTypeParams, PushTypeResult } from '/@/api/platform/common/entity/pushType'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushType/list', + add = '/common_proxy/common/pushType/save', + get = '/common_proxy/common/pushType', + edit = '/common_proxy/common/pushType/update', + del = '/common_proxy/common/pushType/remove', +} + +export const listPushType= (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushType = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushType = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushType = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushType = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/controller/pushWhitelist.ts b/src/api/platform/common/controller/pushWhitelist.ts new file mode 100644 index 0000000..4d67ff9 --- /dev/null +++ b/src/api/platform/common/controller/pushWhitelist.ts @@ -0,0 +1,25 @@ +/** + * 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 + * Copyright © 2020-2022 entfrm All rights reserved. + * author entfrm开发团队-王翔 + */ +import type { PushWhitelist, PushWhitelistParams, PushWhitelistResult } from '/@/api/platform/common/entity/pushWhitelist'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/common_proxy/common/pushWhitelist/list', + add = '/common_proxy/common/pushWhitelist/save', + get = '/common_proxy/common/pushWhitelist', + edit = '/common_proxy/common/pushWhitelist/update', + del = '/common_proxy/common/pushWhitelist/remove', +} + +export const listPushWhitelist = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addPushWhitelist = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editPushWhitelist = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getPushWhitelist = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delPushWhitelist = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/common/entity/pushApplication.ts b/src/api/platform/common/entity/pushApplication.ts new file mode 100644 index 0000000..81eb189 --- /dev/null +++ b/src/api/platform/common/entity/pushApplication.ts @@ -0,0 +1,17 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushApplicationParams = Page & PushApplication; + +export interface PushApplication extends CommonEntity { + id: string; + name: string; + pushSize: number; + sendSize: number; + status: string; + url: string; + appKey: string; + messageSecret: string; +} + +export type PushApplicationResult = R; diff --git a/src/api/platform/common/entity/pushBlacklist.ts b/src/api/platform/common/entity/pushBlacklist.ts new file mode 100644 index 0000000..03b81f8 --- /dev/null +++ b/src/api/platform/common/entity/pushBlacklist.ts @@ -0,0 +1,11 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushBlacklistParams = Page & PushBlacklist; + +export interface PushBlacklist extends CommonEntity { + id: string; + pushId: string; +} + +export type PushBlacklistResult = R; diff --git a/src/api/platform/common/entity/pushCertification.ts b/src/api/platform/common/entity/pushCertification.ts new file mode 100644 index 0000000..39a051b --- /dev/null +++ b/src/api/platform/common/entity/pushCertification.ts @@ -0,0 +1,21 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushCertificationParams = Page & PushCertification; + +export interface PushCertification extends CommonEntity { + id: string; + name: string; + license: string; + phone: string; + idCard: string; + contact: string; + creditCode: string; + type: string; + fileId: string; + status: string; + corpName: string; + detailedAddress: string; +} + +export type PushCertificationResult = R; diff --git a/src/api/platform/common/entity/pushManage.ts b/src/api/platform/common/entity/pushManage.ts new file mode 100644 index 0000000..1f5ac63 --- /dev/null +++ b/src/api/platform/common/entity/pushManage.ts @@ -0,0 +1,14 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; +import {TreeEntity} from "/@/api/common/data/entity"; + +export type PushManageParams = Page & PushManage; + +export interface PushManage extends TreeEntity { + isVibration: string; + isSound: string; + appKey: number; + customSound: number; +} + +export type PushManageResult = R; diff --git a/src/api/platform/common/entity/pushTodoAuth.ts b/src/api/platform/common/entity/pushTodoAuth.ts new file mode 100644 index 0000000..ec61f5a --- /dev/null +++ b/src/api/platform/common/entity/pushTodoAuth.ts @@ -0,0 +1,13 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushTodoAuthParams = Page & PushTodoAuth; + +export interface PushTodoAuth extends CommonEntity { + id: string; + name: string; + certificationId: string; + status: string; +} + +export type PushTodoAuthResult = R; diff --git a/src/api/platform/common/entity/pushType.ts b/src/api/platform/common/entity/pushType.ts new file mode 100644 index 0000000..6ae9d95 --- /dev/null +++ b/src/api/platform/common/entity/pushType.ts @@ -0,0 +1,12 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushTypeParams = Page & PushType; + +export interface PushType extends CommonEntity { + id: string; + name: string; + level: string; +} + +export type PushTypeResult = R; diff --git a/src/api/platform/common/entity/pushWhitelist.ts b/src/api/platform/common/entity/pushWhitelist.ts new file mode 100644 index 0000000..a2539bf --- /dev/null +++ b/src/api/platform/common/entity/pushWhitelist.ts @@ -0,0 +1,11 @@ +import type { R } from '/#/axios'; +import type { CommonEntity, Page } from '/@/api/common/data/entity'; + +export type PushWhitelistParams = Page & PushWhitelist; + +export interface PushWhitelist extends CommonEntity { + id: string; + pushId: string; +} + +export type PushWhitelistResult = R; diff --git a/src/views/common/push/application/ApplicationModal.vue b/src/views/common/push/application/ApplicationModal.vue new file mode 100644 index 0000000..c350020 --- /dev/null +++ b/src/views/common/push/application/ApplicationModal.vue @@ -0,0 +1,78 @@ + + diff --git a/src/views/common/push/application/application.data.ts b/src/views/common/push/application/application.data.ts new file mode 100644 index 0000000..30ee067 --- /dev/null +++ b/src/views/common/push/application/application.data.ts @@ -0,0 +1,120 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { h } from 'vue'; +import { Tag } from 'ant-design-vue'; + +/** 表格列配置 */ +export const columns: BasicColumn[] = [ + { + title: '多租户名称', + dataIndex: 'name' + }, + { + title: '创建推送数量', + dataIndex: 'pushSize' + }, + { + title: '消息发送数量', + dataIndex: 'sendSize' + }, + { + title: '请求地址', + dataIndex: 'url' + }, + { + title: '创建人', + dataIndex: 'createByName' + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 200 + }, + { + title: '状态', + dataIndex: 'status', + width: 120, + customRender: ({record}) => { + const status = record.status; + const enable = ~~status === 0; + const color = enable ? 'green' : 'red'; + const text = enable ? '启动' : '停止'; + return h(Tag, { color: color }, () => text); + } + }, + { + title: '备注', + dataIndex: 'remarks', + width: 200, + customRender: ({record}) => { + return record.remarks || h(Tag, { color: 'red' }, () => '暂无数据'); + } + } +]; + +/** 搜索表单配置 */ +export const searchFormSchema: FormSchema[] = [ + { + field: 'name', + label: '应用名称', + component: 'Input', + componentProps: { + placeholder: '请输入应用名称', + }, + colProps: { span: 8 } + } +]; + +/** 表单配置 */ +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'name', + label: '应用名称', + component: 'Input', + required: true, + colProps: { + span: 24 + } + }, + { + field: 'url', + label: '请求地址', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'status', + label: '状态', + component: 'RadioGroup', + defaultValue: '0', + componentProps: { + options: [ + { label: '启动', value: '0' }, + { label: '停止', value: '1' } + ] + }, + colProps: { + span: 12 + } + }, + { + label: '备注', + field: 'remarks', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/common/push/application/index.vue b/src/views/common/push/application/index.vue new file mode 100644 index 0000000..7ded182 --- /dev/null +++ b/src/views/common/push/application/index.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/views/common/push/authManage/AuthManageModal.vue b/src/views/common/push/authManage/AuthManageModal.vue new file mode 100644 index 0000000..8978c79 --- /dev/null +++ b/src/views/common/push/authManage/AuthManageModal.vue @@ -0,0 +1,78 @@ + + diff --git a/src/views/common/push/authManage/authManage.data.ts b/src/views/common/push/authManage/authManage.data.ts new file mode 100644 index 0000000..903d273 --- /dev/null +++ b/src/views/common/push/authManage/authManage.data.ts @@ -0,0 +1,160 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { h } from 'vue'; +import { Tag } from 'ant-design-vue'; + +/** 表格列配置 */ +export const columns: BasicColumn[] = [ + { + title: '姓名', + dataIndex: 'name' + }, + { + title: '营业证书', + dataIndex: 'license' + }, + { + title: '手机号', + dataIndex: 'phone' + }, + { + title: '联系人', + dataIndex: 'contact' + }, + { + title: '行用代码', + dataIndex: 'creditCode' + }, + { + title: '类型', + dataIndex: 'type', + customRender: ({record}) => { + const type = record.type; + const enable = ~~type === 0; + return enable ? '企业' : '个人'; + } + }, + { + title: '公司名称', + dataIndex: 'corpName' + }, + { + title: '详细地址', + dataIndex: 'detailedAddress' + }, +]; + +/** 搜索表单配置 */ +export const searchFormSchema: FormSchema[] = [ + { + field: 'name', + label: '姓名', + component: 'Input', + componentProps: { + placeholder: '请输入姓名', + }, + colProps: { span: 8 } + } +]; + +/** 表单配置 */ +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'name', + label: '姓名', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'license', + label: '营业执照', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'phone', + label: '手机号', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'contact', + label: '联系人', + component: 'Input', + required: true, + colProps: { + span: 1 + } + }, + { + field: 'idCard', + label: '身份证', + component: 'Input', + required: true, + colProps: { + span: 1 + } + }, + { + field: 'creditCode', + label: '行用代码', + component: 'Input', + required: true, + colProps: { + span: 1 + } + }, + { + field: 'type', + label: '认证类型', + component: 'Input', + required: true, + colProps: { + span: 1 + } + }, + { + field: 'corpName', + label: '公司名称', + component: 'Input', + required: true, + colProps: { + span: 1 + } + }, + { + field: 'detailedAddress', + label: '详细地址', + component: 'Input', + required: true, + colProps: { + span: 1 + } + }, + { + label: '备注', + field: 'remarks', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/common/push/authManage/index.vue b/src/views/common/push/authManage/index.vue new file mode 100644 index 0000000..694234b --- /dev/null +++ b/src/views/common/push/authManage/index.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/views/common/push/blacklist/BlacklistModal.vue b/src/views/common/push/blacklist/BlacklistModal.vue new file mode 100644 index 0000000..f93b91b --- /dev/null +++ b/src/views/common/push/blacklist/BlacklistModal.vue @@ -0,0 +1,78 @@ + + diff --git a/src/views/common/push/blacklist/blacklist.data.ts b/src/views/common/push/blacklist/blacklist.data.ts new file mode 100644 index 0000000..9eb1dd8 --- /dev/null +++ b/src/views/common/push/blacklist/blacklist.data.ts @@ -0,0 +1,53 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { h } from 'vue'; +import { Tag } from 'ant-design-vue'; + +/** 表格列配置 */ +export const columns: BasicColumn[] = [ + { + title: '推送ID', + dataIndex: 'pushId' + }, + { + title: '创建人', + dataIndex: 'createByName' + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 200 + } +]; + +/** 搜索表单配置 */ +export const searchFormSchema: FormSchema[] = [ + { + field: 'createByName', + label: '创建人', + component: 'Input', + componentProps: { + placeholder: '请输入创建人', + }, + colProps: { span: 8 } + } +]; + +/** 表单配置 */ +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'pushId', + label: '推送ID', + component: 'Input', + required: true, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/common/push/blacklist/index.vue b/src/views/common/push/blacklist/index.vue new file mode 100644 index 0000000..bdaa598 --- /dev/null +++ b/src/views/common/push/blacklist/index.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/views/common/push/pushManage/PushManageModal.vue b/src/views/common/push/pushManage/PushManageModal.vue new file mode 100644 index 0000000..bb48151 --- /dev/null +++ b/src/views/common/push/pushManage/PushManageModal.vue @@ -0,0 +1,89 @@ + + diff --git a/src/views/common/push/pushManage/index.vue b/src/views/common/push/pushManage/index.vue new file mode 100644 index 0000000..f0b808f --- /dev/null +++ b/src/views/common/push/pushManage/index.vue @@ -0,0 +1,106 @@ + + diff --git a/src/views/common/push/pushManage/pushManage.data.ts b/src/views/common/push/pushManage/pushManage.data.ts new file mode 100644 index 0000000..00c38ae --- /dev/null +++ b/src/views/common/push/pushManage/pushManage.data.ts @@ -0,0 +1,114 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { h } from 'vue'; +import { Tag } from 'ant-design-vue'; + +/** 表格列配置 */ +export const columns: BasicColumn[] = [ + { + title: '推送名称', + dataIndex: 'name', + align: 'left' + }, + { + title: '是否震动', + dataIndex: 'isVibration' + }, + { + title: '是否声音', + dataIndex: 'isVibration' + }, + { + title: '自定义声音', + dataIndex: 'isVibration' + }, + { + title: '排序', + dataIndex: 'sort' + }, + { + title: '创建时间', + dataIndex: 'createTime' + } +]; + +/** 搜索表单配置 */ +export const searchFormSchema: FormSchema[] = [ + { + field: 'name', + label: '推送名称', + component: 'Input', + componentProps: { + placeholder: '请输入推送名称' + }, + colProps: {span: 8} + } +]; + +/** 表单配置 */ +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'parentId', + label: '上级推送', + component: 'TreeSelect', + defaultValue: '0', + componentProps: { + replaceFields: { + title: 'name', + key: 'id', + value: 'id', + }, + getPopupContainer: () => document.body, + } + }, + { + field: 'name', + label: '推送名称', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'isVibration', + label: '是否震动', + component: 'Select', + defaultValue: '0', + componentProps: { + options: [ + { label: '是', value: '0' }, + { label: '否', value: '1' } + ] + }, + colProps: { span: 12 } + }, + { + field: 'isSound', + label: '是否声音', + component: 'Select', + defaultValue: '0', + componentProps: { + options: [ + { label: '是', value: '0' }, + { label: '否', value: '1' } + ] + }, + colProps: { span: 12 } + }, + { + field: 'customSound', + label: '自定义声音', + component: 'Input', + required: true, + colProps: { + span: 12 + } + } +]; diff --git a/src/views/common/push/pushType/PushTypeModal.vue b/src/views/common/push/pushType/PushTypeModal.vue new file mode 100644 index 0000000..bc458e0 --- /dev/null +++ b/src/views/common/push/pushType/PushTypeModal.vue @@ -0,0 +1,78 @@ + + diff --git a/src/views/common/push/pushType/index.vue b/src/views/common/push/pushType/index.vue new file mode 100644 index 0000000..8ca5e26 --- /dev/null +++ b/src/views/common/push/pushType/index.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/views/common/push/pushType/pushType.data.ts b/src/views/common/push/pushType/pushType.data.ts new file mode 100644 index 0000000..1b074a3 --- /dev/null +++ b/src/views/common/push/pushType/pushType.data.ts @@ -0,0 +1,66 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { h } from 'vue'; +import { Tag } from 'ant-design-vue'; + +/** 表格列配置 */ +export const columns: BasicColumn[] = [ + { + title: '类型名称', + dataIndex: 'name' + }, + { + title: '紧急级别', + dataIndex: 'level' + }, + { + title: '创建人', + dataIndex: 'createByName' + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 200 + } +]; + +/** 搜索表单配置 */ +export const searchFormSchema: FormSchema[] = [ + { + field: 'name', + label: '类型名称', + component: 'Input', + componentProps: { + placeholder: '请输入类型名称', + }, + colProps: { span: 8 } + } +]; + +/** 表单配置 */ +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'name', + label: '类型名称', + component: 'Input', + required: true, + colProps: { + span: 24 + } + }, + { + field: 'level', + label: '紧急级别', + component: 'Input', + required: true, + colProps: { + span: 12 + } + } +]; diff --git a/src/views/common/push/todoAuth/TodoAuthModal.vue b/src/views/common/push/todoAuth/TodoAuthModal.vue new file mode 100644 index 0000000..108d74a --- /dev/null +++ b/src/views/common/push/todoAuth/TodoAuthModal.vue @@ -0,0 +1,78 @@ + + diff --git a/src/views/common/push/todoAuth/index.vue b/src/views/common/push/todoAuth/index.vue new file mode 100644 index 0000000..98856c5 --- /dev/null +++ b/src/views/common/push/todoAuth/index.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/views/common/push/todoAuth/todoAuth.data.ts b/src/views/common/push/todoAuth/todoAuth.data.ts new file mode 100644 index 0000000..1d0a5de --- /dev/null +++ b/src/views/common/push/todoAuth/todoAuth.data.ts @@ -0,0 +1,89 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { h } from 'vue'; +import { Tag } from 'ant-design-vue'; + +/** 表格列配置 */ +export const columns: BasicColumn[] = [ + { + title: '申请名称', + dataIndex: 'name' + }, + { + title: '认证ID', + dataIndex: 'certificationId' + }, + { + title: '创建人', + dataIndex: 'createByName' + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 200 + }, + { + title: '状态', + dataIndex: 'status', + }, + { + title: '备注', + dataIndex: 'remarks', + width: 200, + customRender: ({record}) => { + return record.remarks || h(Tag, { color: 'red' }, () => '暂无数据'); + } + } +]; + +/** 搜索表单配置 */ +export const searchFormSchema: FormSchema[] = [ + { + field: 'name', + label: '申请名称', + component: 'Input', + componentProps: { + placeholder: '请输入申请名称', + }, + colProps: { span: 8 } + } +]; + +/** 表单配置 */ +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'name', + label: '申请名称', + component: 'Input', + required: true, + colProps: { + span: 24 + } + }, + { + field: 'status', + label: '状态', + component: 'Input', + required: true, + colProps: { + span: 24 + } + }, + { + label: '备注', + field: 'remarks', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/common/push/whitelist/WhitelistModal.vue b/src/views/common/push/whitelist/WhitelistModal.vue new file mode 100644 index 0000000..30397c0 --- /dev/null +++ b/src/views/common/push/whitelist/WhitelistModal.vue @@ -0,0 +1,78 @@ + + diff --git a/src/views/common/push/whitelist/index.vue b/src/views/common/push/whitelist/index.vue new file mode 100644 index 0000000..653c4ac --- /dev/null +++ b/src/views/common/push/whitelist/index.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/views/common/push/whitelist/whitelist.data.ts b/src/views/common/push/whitelist/whitelist.data.ts new file mode 100644 index 0000000..9eb1dd8 --- /dev/null +++ b/src/views/common/push/whitelist/whitelist.data.ts @@ -0,0 +1,53 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { h } from 'vue'; +import { Tag } from 'ant-design-vue'; + +/** 表格列配置 */ +export const columns: BasicColumn[] = [ + { + title: '推送ID', + dataIndex: 'pushId' + }, + { + title: '创建人', + dataIndex: 'createByName' + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 200 + } +]; + +/** 搜索表单配置 */ +export const searchFormSchema: FormSchema[] = [ + { + field: 'createByName', + label: '创建人', + component: 'Input', + componentProps: { + placeholder: '请输入创建人', + }, + colProps: { span: 8 } + } +]; + +/** 表单配置 */ +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'pushId', + label: '推送ID', + component: 'Input', + required: true, + colProps: { + span: 24 + } + } +];