|
|
|
@ -3,6 +3,11 @@ import { FormSchema } from '/@/components/Table';
@@ -3,6 +3,11 @@ import { FormSchema } from '/@/components/Table';
|
|
|
|
|
import { h } from 'vue'; |
|
|
|
|
import { Tag } from 'ant-design-vue'; |
|
|
|
|
import { listPushType } from '/@/api/platform/common/controller/pushType'; |
|
|
|
|
import {listPushConcernFan} from "/@/api/platform/common/controller/pushConcernFan"; |
|
|
|
|
import {useUserStore} from "/@/store/modules/user"; |
|
|
|
|
|
|
|
|
|
const userStore = useUserStore(); |
|
|
|
|
const userInfoStore = userStore.getUserInfo; |
|
|
|
|
|
|
|
|
|
/** 表格列配置 */ |
|
|
|
|
export const columns: BasicColumn[] = [ |
|
|
|
@ -111,6 +116,7 @@ export const formSchema: FormSchema[] = [
@@ -111,6 +116,7 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
/** 发送消息表单 */ |
|
|
|
|
export const sendFormSchema: FormSchema[] = [ |
|
|
|
|
{ |
|
|
|
|
field: 'userId', |
|
|
|
@ -125,25 +131,29 @@ export const sendFormSchema: FormSchema[] = [
@@ -125,25 +131,29 @@ export const sendFormSchema: FormSchema[] = [
|
|
|
|
|
show: false |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
field: 'title', |
|
|
|
|
label: '标题', |
|
|
|
|
field: 'remarks', |
|
|
|
|
label: '任务描述', |
|
|
|
|
component: 'Input', |
|
|
|
|
required: true, |
|
|
|
|
colProps: { |
|
|
|
|
span: 24 |
|
|
|
|
componentProps: { |
|
|
|
|
showCount: true, |
|
|
|
|
maxlength: 20, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '通知文字描述', |
|
|
|
|
field: 'title', |
|
|
|
|
label: '通知标题', |
|
|
|
|
component: 'Input', |
|
|
|
|
required: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '通知内容', |
|
|
|
|
field: 'text', |
|
|
|
|
component: 'InputTextArea', |
|
|
|
|
required: true, |
|
|
|
|
componentProps: { |
|
|
|
|
rows: 6 |
|
|
|
|
}, |
|
|
|
|
colProps: { |
|
|
|
|
span: 24 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
field: 'pushTypeId', |
|
|
|
@ -159,4 +169,23 @@ export const sendFormSchema: FormSchema[] = [
@@ -159,4 +169,23 @@ export const sendFormSchema: FormSchema[] = [
|
|
|
|
|
resultField: 'data' |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
field: 'alias', |
|
|
|
|
label: '推送用户', |
|
|
|
|
component: 'ApiTreeSelect', |
|
|
|
|
componentProps: { |
|
|
|
|
api: listPushConcernFan, |
|
|
|
|
params: { |
|
|
|
|
status: '1', |
|
|
|
|
fanUserId: userInfoStore.id |
|
|
|
|
}, |
|
|
|
|
resultField: 'data', |
|
|
|
|
treeCheckable: true, |
|
|
|
|
showCheckedStrategy: 'SHOW_PARENT', |
|
|
|
|
treeDefaultExpandAll: true, |
|
|
|
|
maxTagCount: 10, |
|
|
|
|
fieldNames: { label: 'nickName', key: 'concernUserId', value: 'concernUserId' }, |
|
|
|
|
allowClear: true, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|