新增查看页面
This commit is contained in:
22
web-vue/packages/biz/api/biz/myWork.ts
Normal file
22
web-vue/packages/biz/api/biz/myWork.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel } from '@jeesite/core/api/model/baseModel';
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface MyWorkInfo extends BasicModel<MyWorkInfo> {
|
||||
notifyNums?: number;
|
||||
notifyAllNums?: number;
|
||||
projectNums?: number;
|
||||
projectAllNums?: number;
|
||||
calendarNums?: number;
|
||||
calendarAllNums?: number;
|
||||
teamNums?: number;
|
||||
}
|
||||
|
||||
export const bizMyWorkInfoList = () =>
|
||||
defHttp.get<MyWorkInfo>({ url: adminPath + '/biz/myWork/list'});
|
||||
@@ -16,7 +16,15 @@
|
||||
<Icon :icon="getTitle.icon" class="m-1 pr-1" />
|
||||
<span> {{ getTitle.value }} </span>
|
||||
</template>
|
||||
<BasicForm @register="registerForm" />
|
||||
<BasicForm @register="registerForm">
|
||||
<template #remarks="{ model, field }">
|
||||
<WangEditor
|
||||
v-model:value="model[field]"
|
||||
:bizKey="record.id"
|
||||
:height="300"
|
||||
/>
|
||||
</template>
|
||||
</BasicForm>
|
||||
</BasicModal>
|
||||
</template>
|
||||
<script lang="ts" setup name="ViewsBizListItemForm">
|
||||
@@ -25,6 +33,7 @@
|
||||
import { useMessage } from '@jeesite/core/hooks/web/useMessage';
|
||||
import { router } from '@jeesite/core/router';
|
||||
import { Icon } from '@jeesite/core/components/Icon';
|
||||
import { WangEditor } from '@jeesite/core/components/WangEditor';
|
||||
import { BasicForm, FormSchema, useForm } from '@jeesite/core/components/Form';
|
||||
import { BasicModal, useModalInner } from '@jeesite/core/components/Modal';
|
||||
import { BizListItem, bizListItemSave, bizListItemForm } from '@jeesite/biz/api/biz/listItem';
|
||||
@@ -46,7 +55,7 @@
|
||||
|
||||
const inputFormSchemas: FormSchema<BizListItem>[] = [
|
||||
{
|
||||
label: t('通知标题'),
|
||||
label: t('标题名称'),
|
||||
field: 'title',
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
@@ -117,6 +126,7 @@
|
||||
field: 'description',
|
||||
component: 'InputTextArea',
|
||||
required: true,
|
||||
slot: 'remarks',
|
||||
colProps: { md: 24, lg: 24 },
|
||||
},
|
||||
];
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('通知标题'),
|
||||
label: t('标题名称'),
|
||||
field: 'title',
|
||||
component: 'Input',
|
||||
},
|
||||
@@ -145,7 +145,7 @@
|
||||
slot: 'slotBizAvatar',
|
||||
},
|
||||
{
|
||||
title: t('通知标题'),
|
||||
title: t('标题名称'),
|
||||
dataIndex: 'title',
|
||||
key: 'a.title',
|
||||
sorter: true,
|
||||
|
||||
@@ -15,7 +15,15 @@
|
||||
<Icon :icon="getTitle.icon" class="m-1 pr-1" />
|
||||
<span> {{ getTitle.value }} </span>
|
||||
</template>
|
||||
<BasicForm @register="registerForm" />
|
||||
<BasicForm @register="registerForm">
|
||||
<template #remarks="{ model, field }">
|
||||
<WangEditor
|
||||
v-model:value="model[field]"
|
||||
:bizKey="record.id"
|
||||
:height="300"
|
||||
/>
|
||||
</template>
|
||||
</BasicForm>
|
||||
</BasicModal>
|
||||
</template>
|
||||
<script lang="ts" setup name="ViewsBizListItemForm">
|
||||
@@ -24,6 +32,7 @@
|
||||
import { useMessage } from '@jeesite/core/hooks/web/useMessage';
|
||||
import { router } from '@jeesite/core/router';
|
||||
import { Icon } from '@jeesite/core/components/Icon';
|
||||
import { WangEditor } from '@jeesite/core/components/WangEditor';
|
||||
import { BasicForm, FormSchema, useForm } from '@jeesite/core/components/Form';
|
||||
import { BasicModal, useModalInner } from '@jeesite/core/components/Modal';
|
||||
import { BizListItem, bizListItemSave, bizListItemForm } from '@jeesite/biz/api/biz/listItem';
|
||||
@@ -45,7 +54,7 @@
|
||||
|
||||
const inputFormSchemas: FormSchema<BizListItem>[] = [
|
||||
{
|
||||
label: t('通知标题'),
|
||||
label: t('标题名称'),
|
||||
field: 'title',
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
@@ -117,6 +126,7 @@
|
||||
field: 'description',
|
||||
component: 'InputTextArea',
|
||||
dynamicDisabled: true,
|
||||
slot: 'remarks',
|
||||
colProps: { md: 24, lg: 24 },
|
||||
},
|
||||
];
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
<span> {{ getTitle.value }} </span>
|
||||
</template>
|
||||
<BasicForm @register="registerForm" >
|
||||
<template #remarks>
|
||||
<div
|
||||
v-html="record?.meetingContent"
|
||||
style="border: 1px solid #dcdcdc; max-height: 300px; overflow-y: auto; line-height: 1.8; white-space: pre-wrap; padding: 8px; border-radius: 4px;"
|
||||
>
|
||||
</div>
|
||||
<template #remarks="{ model, field }">
|
||||
<WangEditor
|
||||
v-model:value="model[field]"
|
||||
:bizKey="record.id"
|
||||
:height="300"
|
||||
/>
|
||||
</template>
|
||||
</BasicForm>
|
||||
</BasicModal>
|
||||
@@ -32,6 +32,7 @@
|
||||
import { useMessage } from '@jeesite/core/hooks/web/useMessage';
|
||||
import { router } from '@jeesite/core/router';
|
||||
import { Icon } from '@jeesite/core/components/Icon';
|
||||
import { WangEditor } from '@jeesite/core/components/WangEditor';
|
||||
import { BasicForm, FormSchema, useForm } from '@jeesite/core/components/Form';
|
||||
import { BasicModal, useModalInner } from '@jeesite/core/components/Modal';
|
||||
import { BizMeetingInfo, bizMeetingInfoSave, bizMeetingInfoForm } from '@jeesite/biz/api/biz/meetingInfo';
|
||||
|
||||
@@ -16,10 +16,11 @@
|
||||
<span> {{ getTitle.value }} </span>
|
||||
</template>
|
||||
<BasicForm @register="registerForm" >
|
||||
<template #remarks>
|
||||
<div
|
||||
v-html="record?.requirementDescription"
|
||||
style="border: 1px solid #dcdcdc; max-height: 300px; overflow-y: auto; line-height: 1.8; white-space: pre-wrap; padding: 8px; border-radius: 4px;"
|
||||
<template #remarks="{ model, field }">
|
||||
<WangEditor
|
||||
v-model:value="model[field]"
|
||||
:bizKey="record.id"
|
||||
:height="300"
|
||||
/>
|
||||
</template>
|
||||
</BasicForm>
|
||||
@@ -31,6 +32,7 @@
|
||||
import { useMessage } from '@jeesite/core/hooks/web/useMessage';
|
||||
import { router } from '@jeesite/core/router';
|
||||
import { Icon } from '@jeesite/core/components/Icon';
|
||||
import { WangEditor } from '@jeesite/core/components/WangEditor';
|
||||
import { BasicForm, FormSchema, useForm } from '@jeesite/core/components/Form';
|
||||
import { BasicModal, useModalInner } from '@jeesite/core/components/Modal';
|
||||
import { BizAreaSource, bizAreaSourceTreeData } from '@jeesite/biz/api/biz/areaSource';
|
||||
|
||||
Reference in New Issue
Block a user