diff --git a/src/views/common/push/application/ApplicationModal.vue b/src/views/common/push/pushApplication/ApplicationModal.vue
similarity index 100%
rename from src/views/common/push/application/ApplicationModal.vue
rename to src/views/common/push/pushApplication/ApplicationModal.vue
diff --git a/src/views/common/push/application/SendMessageModal.vue b/src/views/common/push/pushApplication/SendMessageModal.vue
similarity index 100%
rename from src/views/common/push/application/SendMessageModal.vue
rename to src/views/common/push/pushApplication/SendMessageModal.vue
diff --git a/src/views/common/push/application/application.data.ts b/src/views/common/push/pushApplication/application.data.ts
similarity index 100%
rename from src/views/common/push/application/application.data.ts
rename to src/views/common/push/pushApplication/application.data.ts
diff --git a/src/views/common/push/application/index.vue b/src/views/common/push/pushApplication/index.vue
similarity index 100%
rename from src/views/common/push/application/index.vue
rename to src/views/common/push/pushApplication/index.vue
diff --git a/src/views/common/push/pushFile/file.data.ts b/src/views/common/push/pushFile/file.data.ts
new file mode 100644
index 0000000..c27e691
--- /dev/null
+++ b/src/views/common/push/pushFile/file.data.ts
@@ -0,0 +1,56 @@
+/**
+ * @program: kicc-ui
+ * @description: 文件模块动态渲染配置
+ * @author: entfrm开发团队-王翔
+ * @create: 2022/4/21
+ */
+
+import { BasicColumn } from '/@/components/Table';
+import { FormSchema } from '/@/components/Table';
+import { getFileSize } from '/@/utils/file/download';
+
+/** 表格列配置 */
+export const columns: BasicColumn[] = [
+ {
+ title: '源文件名称',
+ dataIndex: 'original'
+ },
+ {
+ title: '空间名称',
+ dataIndex: 'bucketName'
+ },
+ {
+ title: '文件名称',
+ dataIndex: 'fileName'
+ },
+ {
+ title: '文件类型',
+ dataIndex: 'type'
+ },
+ {
+ title: '文件大小',
+ dataIndex: 'fileSize',
+ customRender: ({ record }) => getFileSize(record.fileSize)
+ },
+ {
+ title: '上传人',
+ dataIndex: 'createByName'
+ },
+ {
+ title: '创建时间',
+ dataIndex: 'createTime'
+ }
+];
+
+/** 搜索表单配置 */
+export const searchFormSchema: FormSchema[] = [
+ {
+ field: 'fileName',
+ label: '文件名称',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入文件名称',
+ },
+ colProps: { span: 6 }
+ }
+];
diff --git a/src/views/common/push/pushFile/index.vue b/src/views/common/push/pushFile/index.vue
new file mode 100644
index 0000000..1468514
--- /dev/null
+++ b/src/views/common/push/pushFile/index.vue
@@ -0,0 +1,142 @@
+
+
+
+
+
diff --git a/src/views/common/push/pushMessage/ApplicationModal.vue b/src/views/common/push/pushMessage/ApplicationModal.vue
new file mode 100644
index 0000000..c350020
--- /dev/null
+++ b/src/views/common/push/pushMessage/ApplicationModal.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
diff --git a/src/views/common/push/pushMessage/SendMessageModal.vue b/src/views/common/push/pushMessage/SendMessageModal.vue
new file mode 100644
index 0000000..e996485
--- /dev/null
+++ b/src/views/common/push/pushMessage/SendMessageModal.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
diff --git a/src/views/common/push/pushMessage/application.data.ts b/src/views/common/push/pushMessage/application.data.ts
new file mode 100644
index 0000000..14252d9
--- /dev/null
+++ b/src/views/common/push/pushMessage/application.data.ts
@@ -0,0 +1,219 @@
+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: '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: '限制ip',
+ dataIndex: 'ip'
+ },
+ {
+ title: '创建人',
+ dataIndex: 'createByName'
+ },
+ {
+ title: '创建时间',
+ dataIndex: 'createTime',
+ width: 200
+ },
+ {
+ 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: 6 }
+ }
+];
+
+/** 表单配置 */
+export const formSchema: FormSchema[] = [
+ {
+ field: 'id',
+ label: 'ID',
+ component: 'Input',
+ show: false
+ },
+ {
+ field: 'name',
+ label: '应用名称',
+ component: 'Input',
+ required: true,
+ colProps: {
+ span: 24
+ }
+ },
+ {
+ field: 'ip',
+ label: '限制ip',
+ component: 'Input',
+ 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
+ }
+ }
+];
+
+export const sendFormSchema: FormSchema[] = [
+ {
+ field: 'fromUserId',
+ label: '发送方用户id',
+ component: 'Input',
+ show: false
+ },
+ {
+ field: 'messageSecret',
+ label: 'app发送密钥',
+ component: 'Input',
+ show: false
+ },
+ {
+ field: 'title',
+ label: '标题',
+ component: 'Input',
+ required: true,
+ colProps: {
+ span: 24
+ }
+ },
+ {
+ label: '通知文字描述',
+ field: 'text',
+ component: 'InputTextArea',
+ required: true,
+ componentProps: {
+ rows: 6
+ },
+ colProps: {
+ span: 24
+ }
+ },
+ {
+ label: '自定义通知声音',
+ field: 'sound',
+ component: 'Input',
+ componentProps: {
+ placeholder: '格式为R.raw.[sound]',
+ },
+ colProps: {
+ span: 24
+ }
+ },
+ {
+ label: '自定义播放文件名称',
+ field: 'customPlayFileName',
+ component: 'Input',
+ colProps: {
+ span: 24
+ }
+ },
+ {
+ field: 'customTypeId',
+ label: '自定义推送类型ID',
+ component: 'Input',
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'playVibrate',
+ label: '收到通知是否震动',
+ component: 'RadioGroup',
+ defaultValue: '0',
+ componentProps: {
+ options: [
+ { label: '是', value: '0' },
+ { label: '否', value: '1' }
+ ]
+ },
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'playLights',
+ label: '收到通知是否闪灯',
+ component: 'RadioGroup',
+ defaultValue: '0',
+ componentProps: {
+ options: [
+ { label: '是', value: '0' },
+ { label: '否', value: '1' }
+ ]
+ },
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'playSound',
+ label: '收到通知是否发出声音',
+ component: 'RadioGroup',
+ defaultValue: '0',
+ componentProps: {
+ options: [
+ { label: '是', value: '0' },
+ { label: '否', value: '1' }
+ ]
+ },
+ colProps: {
+ span: 12
+ }
+ },
+];
diff --git a/src/views/common/push/pushMessage/index.vue b/src/views/common/push/pushMessage/index.vue
new file mode 100644
index 0000000..95910e0
--- /dev/null
+++ b/src/views/common/push/pushMessage/index.vue
@@ -0,0 +1,147 @@
+
+
+
+
+ 新增应用
+ 修改应用
+ 删除应用
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/common/push/pushTodoUserManage/UserManageModal.vue b/src/views/common/push/pushTodoUserManage/UserManageModal.vue
new file mode 100644
index 0000000..75493a9
--- /dev/null
+++ b/src/views/common/push/pushTodoUserManage/UserManageModal.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
diff --git a/src/views/common/push/pushTodoUserManage/index.vue b/src/views/common/push/pushTodoUserManage/index.vue
new file mode 100644
index 0000000..aa63a2f
--- /dev/null
+++ b/src/views/common/push/pushTodoUserManage/index.vue
@@ -0,0 +1,135 @@
+
+
+
+
+ 新增用户推送
+ 修改用户推送
+ 删除用户推送
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/common/push/pushTodoUserManage/userManage.data.ts b/src/views/common/push/pushTodoUserManage/userManage.data.ts
new file mode 100644
index 0000000..6099336
--- /dev/null
+++ b/src/views/common/push/pushTodoUserManage/userManage.data.ts
@@ -0,0 +1,148 @@
+import { BasicColumn } from '/@/components/Table';
+import { FormSchema } from '/@/components/Table';
+
+/** 表格列配置 */
+export const columns: BasicColumn[] = [
+ {
+ title: '用户昵称',
+ dataIndex: 'nickName'
+ },
+ {
+ title: '性别',
+ dataIndex: 'sex',
+ customRender: ({record}) => {
+ return ~~record?.isVibration === 0 ? '男' : '女';
+ }
+ },
+ {
+ title: '是否震动',
+ dataIndex: 'isVibration',
+ customRender: ({record}) => {
+ return ~~record?.isVibration === 0 ? '是' : '否';
+ }
+ },
+ {
+ title: '是否响铃',
+ dataIndex: 'isSound',
+ customRender: ({record}) => {
+ return ~~record?.isSound === 0 ? '是' : '否';
+ }
+ },
+ {
+ title: '自定义响铃',
+ dataIndex: 'customSound',
+ },
+ {
+ title: '创建人',
+ dataIndex: 'createByName'
+ },
+ {
+ title: '创建时间',
+ dataIndex: 'createTime',
+ width: 200
+ }
+];
+
+/** 搜索表单配置 */
+export const searchFormSchema: FormSchema[] = [
+ {
+ field: 'nickName',
+ label: '用户昵称',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入用户昵称',
+ },
+ colProps: { span: 6 }
+ }
+];
+
+/** 表单配置 */
+export const formSchema: FormSchema[] = [
+ {
+ field: 'id',
+ label: 'ID',
+ component: 'Input',
+ show: false
+ },
+ {
+ field: 'nickName',
+ label: '用户昵称',
+ component: 'Input',
+ required: true,
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'sex',
+ label: '性别',
+ component: 'Select',
+ required: true,
+ componentProps: {
+ options: [
+ { label: '男', value: '0' },
+ { label: '女', value: '1' }
+ ]
+ },
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'userId',
+ label: '用户ID',
+ component: 'Input',
+ required: true,
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'pushTypeId',
+ label: '推送类型ID',
+ component: 'Input',
+ required: true,
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'isVibration',
+ label: '是否震动',
+ component: 'RadioGroup',
+ defaultValue: '0',
+ componentProps: {
+ options: [
+ { label: '是', value: '0' },
+ { label: '否', value: '1' }
+ ]
+ },
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'isSound',
+ label: '是否响铃',
+ component: 'RadioGroup',
+ defaultValue: '0',
+ componentProps: {
+ options: [
+ { label: '是', value: '0' },
+ { label: '否', value: '1' }
+ ]
+ },
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'customSound',
+ label: '自定义响铃',
+ component: 'Input',
+ required: true,
+ colProps: {
+ span: 24
+ }
+ },
+];
diff --git a/src/views/system/user/user.data.ts b/src/views/system/user/user.data.ts
index 7f397d2..90ea1ec 100644
--- a/src/views/system/user/user.data.ts
+++ b/src/views/system/user/user.data.ts
@@ -265,9 +265,11 @@ export const userFormSchema: FormSchema[] = [
required: true,
componentProps: {
options: [
+ { label: '系统管理员', value: '0' },
{ label: '收样员', value: '1' },
{ label: '客服', value: '2' },
- { label: '医生', value: '3' }
+ { label: '医生', value: '3' },
+ { label: '第三方企业', value: '9' }
]
},
colProps: {