diff --git a/src/views/system/message/components/message-edit.vue b/src/views/system/message/components/message-edit.vue
index e2a1867..bfcb000 100644
--- a/src/views/system/message/components/message-edit.vue
+++ b/src/views/system/message/components/message-edit.vue
@@ -20,116 +20,103 @@
@cancel="handleCancel"
>
{{ modalTitle }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
取消
确定
@@ -143,7 +130,7 @@
@cancel="deptTreeCancel"
>
发送用户
-
+
+ 全选
([]);
-
+ const editorRef = shallowRef()
+ const handleCreated = (editor: any) => {
+ editorRef.value = editor; // 记录 editor 实例,重要!
+ }
const CreateRef = ref();
const formData = ref({
...props.prem,
});
const messageStore = useMessageStore();
- const editorRef = shallowRef()
const isFullScreen = ref(false);
const mode = 'default';
const selectedIds= ref([]);
const toolbarConfig = { excludeKeys: ['uploadVideo', 'insertImage','insertVideo']}
- // const handleCreated = (editor: any) => {
- // editorRef.value = editor; // 记录 editor 实例,重要!
- // // 监听全屏事件
- // editor.on('fullScreen', () => {
- // })
- // }
const columns = computed(()=>[
{
title: '操作',
@@ -230,46 +214,45 @@
},
])
- const fieIds = ref(
- {
- userId:{
- label: '用戶',
- component: 'input',
- type:'text'
- },
- title:{
- label: '标题',
- component: 'input',
- type:'text'
- },
- remark:{
- label: '备注',
- component: 'input',
- type:'text'
- },
- sms:{
- label: '短信',
- component: 'switch',
- type:'switch'
- },
- email:{
- label: '邮件',
- component:'switch',
- type:'switch'
- },
- attachmentIds:{
- label: '附件',
- component: 'input',
- type:'text'
- },
- richEditor:{
- label: '内容',
- component: 'input',
- type:'text'
- },
- },
- );
- const { userId, title, remark, sms, email, richEditor } = fieIds.value;
+ // const fieIds = ref(
+ // {
+ // userId:{
+ // label: '用戶',
+ // component: 'input',
+ // type:'text'
+ // },
+ // title:{
+ // label: '标题',
+ // component: 'input',
+ // type:'text'
+ // },
+ // remark:{
+ // label: '备注',
+ // component: 'input',
+ // type:'text'
+ // },
+ // sms:{
+ // label: '短信',
+ // component: 'switch',
+ // type:'switch'
+ // },
+ // email:{
+ // label: '邮件',
+ // component:'switch',
+ // type:'switch'
+ // },
+ // attachmentIds:{
+ // label: '附件',
+ // component: 'input',
+ // type:'text'
+ // },
+ // richEditor:{
+ // label: '内容',
+ // component: 'input',
+ // type:'text'
+ // },
+ // },
+ // );
const deptTreeData = reactive([
{
key: '1',
@@ -311,9 +294,10 @@
// 广度优先遍历树,获取选中的成员
const getSelectedMembers = (treeData: any[], selectedKeys: string[]) => {
- const queue = [...treeData];
+ const queue:any = [...treeData];
const selectedMembers: any[] = [];
while (queue.length > 0) {
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const node = queue.shift()!;
if (selectedKeys.includes(node.key)) {
if (node.members) {
@@ -334,7 +318,7 @@
if (key[0] === '1' || key.length === 0) {
// 广度优先遍历树,获取所有成员
const allMembers: any[] = [];
- const queue = [...deptTreeData];
+ const queue:any = [...deptTreeData];
while (queue.length > 0) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const node = queue.shift()!;
@@ -433,7 +417,6 @@
const deptTreeSubmit = () => {
deptVisible.value = false;
formData.value.userIds = selectedIds.value;
- console.log(formData.value.userIds);
};
// 部门树模态框