diff --git a/src/views/common/push/pushConcern/ConcernModal.vue b/src/views/common/push/pushConcern/ConcernModal.vue
new file mode 100644
index 0000000..9b71f9a
--- /dev/null
+++ b/src/views/common/push/pushConcern/ConcernModal.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+
diff --git a/src/views/common/push/pushConcern/UserManageModal.vue b/src/views/common/push/pushConcern/UserManageModal.vue
deleted file mode 100644
index d8bcae0..0000000
--- a/src/views/common/push/pushConcern/UserManageModal.vue
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/common/push/pushConcern/concern.data.ts b/src/views/common/push/pushConcern/concern.data.ts
new file mode 100644
index 0000000..e58a700
--- /dev/null
+++ b/src/views/common/push/pushConcern/concern.data.ts
@@ -0,0 +1,118 @@
+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: 'nickName'
+ },
+ {
+ title: '性别',
+ dataIndex: 'sex',
+ width: 80,
+ customRender: ({ record }) => {
+ const sex = record.sex;
+ const enable = ~~sex === 0;
+ const color = enable ? 'green' : 'red';
+ const text = enable ? '男' : '女';
+ return h(Tag, { color: color }, () => text);
+ }
+ },
+ {
+ title: '手机号',
+ dataIndex: 'phone'
+ },
+ {
+ title: '邮箱',
+ dataIndex: 'email'
+ },
+ {
+ title: '所属部门',
+ dataIndex: 'deptName'
+ },
+ {
+ 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',
+ componentProps: {
+ disabled: true
+ }
+ },
+ {
+ field: 'deptName',
+ label: '所属部门',
+ component: 'Input',
+ colProps: {
+ span: 12
+ },
+ componentProps: {
+ disabled: true
+ }
+ },
+ {
+ field: 'sex',
+ label: '性别',
+ component: 'Select',
+ colProps: {
+ span: 12
+ },
+ componentProps: {
+ disabled: true,
+ options: [
+ { label: '男', value: '0' },
+ { label: '女', value: '1' }
+ ]
+ },
+ },
+ {
+ field: 'phone',
+ label: '手机号',
+ component: 'Input',
+ componentProps: {
+ disabled: true
+ }
+ },
+ {
+ field: 'email',
+ label: '邮箱',
+ component: 'Input',
+ componentProps: {
+ disabled: true
+ }
+ },
+];
diff --git a/src/views/common/push/pushConcern/index.vue b/src/views/common/push/pushConcern/index.vue
index 2f51039..dc4c5b7 100644
--- a/src/views/common/push/pushConcern/index.vue
+++ b/src/views/common/push/pushConcern/index.vue
@@ -4,69 +4,84 @@
@register="registerTable"
@selection-change="handleSelectionChange"
>
+
+
+
+
+
+
+
+
+
-
修改推送
+ @click="()=>{}"
+ >推送通知
移除推送
+ >取消关注
-
-
+
+
+
+
-
-
+
+
diff --git a/src/views/common/push/pushConcern/userManage.data.ts b/src/views/common/push/pushConcern/userManage.data.ts
deleted file mode 100644
index 9ca4141..0000000
--- a/src/views/common/push/pushConcern/userManage.data.ts
+++ /dev/null
@@ -1,132 +0,0 @@
-import { BasicColumn } from '/@/components/Table';
-import { FormSchema } from '/@/components/Table';
-
-/** 表格列配置 */
-export const columns: BasicColumn[] = [
- {
- title: '名称',
- dataIndex: 'userName'
- },
- {
- title: '是否播放声音',
- dataIndex: 'playSound',
- customRender: ({record}) => {
- return ~~record?.playSound === 0 ? '是' : '否';
- }
- },
- {
- title: '是否震动',
- dataIndex: 'playVibrate',
- customRender: ({record}) => {
- return ~~record?.playVibrate === 0 ? '是' : '否';
- }
- },
- {
- title: '是否闪光',
- dataIndex: 'playLights',
- customRender: ({record}) => {
- return ~~record?.playLights === 0 ? '是' : '否';
- }
- },
- {
- title: '创建人',
- dataIndex: 'createByName'
- },
- {
- title: '创建时间',
- dataIndex: 'createTime',
- width: 200
- }
-];
-
-/** 搜索表单配置 */
-export const searchFormSchema: FormSchema[] = [
- {
- field: 'userName',
- label: '名称',
- component: 'Input',
- componentProps: {
- placeholder: '请输入名称',
- },
- colProps: { span: 6 }
- }
-];
-
-/** 表单配置 */
-export const formSchema: FormSchema[] = [
- {
- field: 'id',
- label: 'ID',
- component: 'Input',
- show: false
- },
- {
- field: 'toUserId',
- label: '对方用户id',
- component: 'Input',
- show: false
- },
- {
- field: 'fromUserId',
- label: '发送方用户id',
- component: 'Input',
- show: false
- },
- {
- field: 'userName',
- label: '名称',
- component: 'Input',
- required: true,
- componentProps: {
- disabled: true
- },
- },
- {
- field: 'playSound',
- label: '是否播放声音',
- component: 'RadioGroup',
- required: true,
- defaultValue: '0',
- componentProps: {
- options: [
- { label: '是', value: '0' },
- { label: '否', value: '1' }
- ]
- },
- colProps: {
- span: 12
- }
- },
- {
- field: 'playVibrate',
- label: '是否震动',
- component: 'RadioGroup',
- required: true,
- defaultValue: '0',
- componentProps: {
- options: [
- { label: '是', value: '0' },
- { label: '否', value: '1' }
- ]
- },
- colProps: {
- span: 12
- }
- },
- {
- field: 'playLights',
- label: '是否闪光',
- component: 'RadioGroup',
- required: true,
- defaultValue: '0',
- componentProps: {
- options: [
- { label: '是', value: '0' },
- { label: '否', value: '1' }
- ]
- },
- colProps: {
- span: 12
- }
- },
-];
diff --git a/src/views/common/push/pushType/TypeModal.vue b/src/views/common/push/pushType/TypeModal.vue
index ab2a54d..5dd79e6 100644
--- a/src/views/common/push/pushType/TypeModal.vue
+++ b/src/views/common/push/pushType/TypeModal.vue
@@ -20,6 +20,7 @@
import { formSchema } from './type.data';
import { addPushType, editPushType, getPushType } from '/@/api/platform/common/controller/pushType';
import { BasicModal, ModalProps, useModalInner } from '/@/components/Modal';
+ import { getPushConcernFanType, editPushConcernFanType } from '/@/api/platform/common/controller/pushConcernFanType';
/** 通用变量统一声明区域 */
const tag = ref>('');
@@ -48,6 +49,10 @@
props.title = '编辑推送类型';
await setFieldsValue(await getPushType(refId));
break;
+ case 'concernEdit':
+ props.title = '编辑关注推送类型';
+ await setFieldsValue(await getPushConcernFanType(refId));
+ break;
}
// 尾部:设置处理后的最终配置数据
setModalProps(props);
@@ -68,6 +73,9 @@
case 'edit':
await editPushType(formData);
break;
+ case 'concernEdit':
+ await editPushConcernFanType(formData);
+ break;
}
// 处理提交完成之后逻辑
closeModal();