{
+ (res || []).forEach((o) => {
if (!o.readId) listData.value[0].unreadNum += 1;
listData.value[0].list.push({
id: o.id,
@@ -228,7 +228,7 @@
});
});
let res1 = await getOaNews(2);
- res1.list.forEach((o) => {
+ (res1 || []).forEach((o) => {
if (!o.readId) listData.value[1].unreadNum += 1;
listData.value[1].list.push({
id: o.id,
@@ -244,21 +244,23 @@
let res2 = await getOaMessage();
res2.forEach((o) => {
if (o.messageType === 0) {
+ // 日程
+ // if (!o.isRead) listData.value[2].unreadNum += 1;
+ // listData.value[2].list.push({
+ // id: o.id,
+ // avatar: '',
+ // title: o.messageContent,
+ // description: '',
+ // datetime: o.sendTime,
+ // timeFormat: o.timeFormat,
+ // color: '',
+ // type: '3',
+ // read: o.isRead
+ // });
+ } else if (o.messageType == 1) {
+ // 工作流 listData.value[3]
if (!o.isRead) listData.value[2].unreadNum += 1;
listData.value[2].list.push({
- id: o.id,
- avatar: '',
- title: o.messageContent,
- description: '',
- datetime: o.sendTime,
- timeFormat: o.timeFormat,
- color: '',
- type: '3',
- read: o.isRead
- });
- } else if (o.messageType == 1) {
- if (!o.isRead) listData.value[3].unreadNum += 1;
- listData.value[3].list.push({
id: o.id,
avatar: '',
title: o.messageContent,
@@ -273,8 +275,9 @@
read: o.isRead
});
} else if (o.messageType == 2) {
- if (!o.isRead) listData.value[3].unreadNum += 1;
- listData.value[3].read?.push({
+ //工作流 listData.value[3]
+ if (!o.isRead) listData.value[2].unreadNum += 1;
+ listData.value[2].read?.push({
id: o.id,
avatar: '',
title: o.messageContent,
@@ -292,14 +295,16 @@
//系统消息
let res4 = import.meta.env.VITE_DISABLE_NOTE === 'true' ? { list: [] } : await queryLoginUserNotices({ limit: 1, size: 10 });
- listData.value[4].list = res4.list;
- listData.value[4].unreadNum = res4.list.filter((item) => item.isRead == 0).length;
+ //listData.value[4]
+ listData.value[3].list = res4.list;
+ listData.value[3].unreadNum = res4.list.filter((item) => item.isRead == 0).length;
}
let res3 = await getScheduleMsg();
res3.list.forEach((item) => (item.read = item.isRead));
- listData.value[2].unreadNum = res3.list.filter((x) => !x.isRead).length;
- listData.value[2].list.push(...res3.list);
+ // 日程
+ // listData.value[2].unreadNum = res3.list.filter((x) => !x.isRead).length;
+ // listData.value[2].list.push(...res3.list);
console.log('message', listData.value);
} catch (error) {
console.error('message error', error);
diff --git a/src/views/approve/Appro/components/createForm.vue b/src/views/approve/Appro/components/createForm.vue
index 753b70c..09ab155 100644
--- a/src/views/approve/Appro/components/createForm.vue
+++ b/src/views/approve/Appro/components/createForm.vue
@@ -1,8 +1,9 @@
-
-
+
+
+
@@ -111,7 +112,7 @@
import UploadList from '/@/components/Form/src/components/UploadList.vue';
import deptUserModal from '/@/components/common/deptUserModal.vue';
import deptListModal from '/@/components/common/deptListModal.vue';
-
+ import viewForm from './viewForm.vue';
import { Modal } from 'ant-design-vue';
import { useUserStore } from '/@/store/modules/user';
const userStore = useUserStore();
@@ -141,6 +142,7 @@
const pageType = ref(currentRoute.value.query?.type);
const pageId = ref(currentRoute.value.query?.id)
const isViewForm = currentRoute.value.path.includes('viewForm')
+ const isViewFormTask = currentRoute.value.path.includes('processtasks')
const spinning = ref(false);
const curIdx = ref(null)
@@ -168,6 +170,10 @@
labelCol: { span: 8 },
wrapperCol: { span: 16 },
}
+ const layoutNew = {
+ labelCol: { span: 6 },
+ wrapperCol: { span: 18 },
+ }
const dataFile = ref([]);
let optionSelect= reactive({
approCodeList: [],
diff --git a/src/views/approve/Appro/components/viewForm.vue b/src/views/approve/Appro/components/viewForm.vue
new file mode 100644
index 0000000..7d1c934
--- /dev/null
+++ b/src/views/approve/Appro/components/viewForm.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dataconfig/oaNews/components/newsConfig.ts b/src/views/dataconfig/oaNews/components/newsConfig.ts
index aaf9946..67b5abb 100644
--- a/src/views/dataconfig/oaNews/components/newsConfig.ts
+++ b/src/views/dataconfig/oaNews/components/newsConfig.ts
@@ -118,7 +118,7 @@ export const formProps: FormProps = {
clearable: false,
disabled: false,
staticOptions: [],
- defaultSelect: 'Facts',
+ defaultSelect: '',
datasourceType: 'dic',
params: { itemId: NewsCategoryDic.ID },
labelField: 'name',
diff --git a/src/views/dataconfig/oaNews/components/noticesConfig.ts b/src/views/dataconfig/oaNews/components/noticesConfig.ts
index c5bbe9c..4d70652 100644
--- a/src/views/dataconfig/oaNews/components/noticesConfig.ts
+++ b/src/views/dataconfig/oaNews/components/noticesConfig.ts
@@ -114,7 +114,7 @@ export const formProps: FormProps = {
clearable: false,
disabled: false,
staticOptions: [],
- defaultSelect: 'Facts',
+ defaultSelect: '',
datasourceType: 'dic',
params: { itemId: NewsCategoryDic.ID },
labelField: 'name',