diff --git a/src/components/Form/src/jeecg/components/JEditor.vue b/src/components/Form/src/jeecg/components/JEditor.vue
index 754c02e..e3d1748 100644
--- a/src/components/Form/src/jeecg/components/JEditor.vue
+++ b/src/components/Form/src/jeecg/components/JEditor.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/views/system/noticeList/noticeList.data.ts b/src/views/system/noticeList/noticeList.data.ts
index 60e493f..1bcccd9 100644
--- a/src/views/system/noticeList/noticeList.data.ts
+++ b/src/views/system/noticeList/noticeList.data.ts
@@ -11,11 +11,11 @@ export const columns: BasicColumn[] = [
customRender: ({ text }) => {
switch (text) {
case 1:
- return '指定部门';
+ return '指定机构';
case 2:
return '指定员工';
case 3:
- return '即指定部门又指定员工';
+ return '即指定机构又指定员工';
default:
return '-';
}
@@ -116,8 +116,20 @@ export const schemas: FormSchema[] = [
label: '通知内容',
field: 'content',
component: 'JEditor',
+ componentProps: ({ formModel }) => ({
+ showImageUpload: true,
+ 'onUpdate:status': (v: any) => {
+ formModel.imgStatus = v ? '1' : '0';
+ },
+ }),
required: true,
},
+ {
+ label: '',
+ field: 'imgStatus',
+ component: 'Input',
+ show: false,
+ },
{
label: '',
field: 'id',
diff --git a/src/views/system/noticeList/noticeList.vue b/src/views/system/noticeList/noticeList.vue
index dedc1b4..c8e7167 100644
--- a/src/views/system/noticeList/noticeList.vue
+++ b/src/views/system/noticeList/noticeList.vue
@@ -5,12 +5,26 @@
公告通知列表
+
+
+
+
+
+ 指定机构({{ record?.depart }})
+ 指定员工({{ record?.user }})
+
+
+ 指定机构({{ record?.depart }})
+ 指定员工({{ record?.user }})
+
+
+
@@ -49,6 +63,25 @@
width: 120,
fixed: 'right',
},
+ afterFetch: (data: any) => {
+ return data.map((item: any) => {
+ item['depart'] = (
+ item?.departScopeList
+ ? item?.departScopeList.map((t: any) => {
+ return t?.record;
+ })
+ : []
+ ).join('、');
+ item['user'] = (
+ item?.userScopeList
+ ? item?.userScopeList.map((t: any) => {
+ return t?.record;
+ })
+ : []
+ ).join('、');
+ return item;
+ });
+ },
},
});
@@ -90,4 +123,10 @@
margin: 5px 10px 0 0;
}
}
+
+ .no-text-to-long {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ }