新增前端vue
This commit is contained in:
@@ -36,16 +36,14 @@ public class mailJob {
|
|||||||
@Resource(name = "hostMonitorExecutor")
|
@Resource(name = "hostMonitorExecutor")
|
||||||
private ThreadPoolTaskExecutor hostMonitorExecutor;
|
private ThreadPoolTaskExecutor hostMonitorExecutor;
|
||||||
|
|
||||||
|
private final String MAIL_PATH = "/ogsapp/mail";
|
||||||
private String MAIL_PATH = "/ogsapp/mail";
|
|
||||||
|
|
||||||
private static final LoggerUtils logger = LoggerUtils.getInstance();
|
private static final LoggerUtils logger = LoggerUtils.getInstance();
|
||||||
|
|
||||||
private static final boolean CRON_JOB = Boolean.parseBoolean(Global.getConfig("biz.cron.MailJob", "false"));
|
private static final String CRON_JOB = Global.getConfig("biz.cron.MailJob", "false");
|
||||||
|
|
||||||
@Scheduled(cron = "10 0/15 * * * ?")
|
@Scheduled(cron = "10 0/15 * * * ?")
|
||||||
public void getMailReceived() {
|
public void getMailReceived() {
|
||||||
if (CRON_JOB) {
|
if (CRON_JOB.equals("true")) {
|
||||||
List<BizMailAccount> accounts = bizMailAccountService.findList(new BizMailAccount());
|
List<BizMailAccount> accounts = bizMailAccountService.findList(new BizMailAccount());
|
||||||
List<CompletableFuture<Void>> futures = new ArrayList<>(accounts.size());
|
List<CompletableFuture<Void>> futures = new ArrayList<>(accounts.size());
|
||||||
for (BizMailAccount account : accounts) {
|
for (BizMailAccount account : accounts) {
|
||||||
|
|||||||
@@ -16,7 +16,15 @@
|
|||||||
<Icon :icon="getTitle.icon" class="m-1 pr-1" />
|
<Icon :icon="getTitle.icon" class="m-1 pr-1" />
|
||||||
<span> {{ getTitle.value }} </span>
|
<span> {{ getTitle.value }} </span>
|
||||||
</template>
|
</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>
|
</BasicModal>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup name="ViewsBizMailSentForm">
|
<script lang="ts" setup name="ViewsBizMailSentForm">
|
||||||
@@ -25,6 +33,7 @@
|
|||||||
import { useMessage } from '@jeesite/core/hooks/web/useMessage';
|
import { useMessage } from '@jeesite/core/hooks/web/useMessage';
|
||||||
import { router } from '@jeesite/core/router';
|
import { router } from '@jeesite/core/router';
|
||||||
import { Icon } from '@jeesite/core/components/Icon';
|
import { Icon } from '@jeesite/core/components/Icon';
|
||||||
|
import { WangEditor } from '@jeesite/core/components/WangEditor';
|
||||||
import { BasicForm, FormSchema, useForm } from '@jeesite/core/components/Form';
|
import { BasicForm, FormSchema, useForm } from '@jeesite/core/components/Form';
|
||||||
import { BasicModal, useModalInner } from '@jeesite/core/components/Modal';
|
import { BasicModal, useModalInner } from '@jeesite/core/components/Modal';
|
||||||
import { BizMailSent, bizMailSentSave, bizMailSentForm } from '@jeesite/biz/api/biz/mailSent';
|
import { BizMailSent, bizMailSentSave, bizMailSentForm } from '@jeesite/biz/api/biz/mailSent';
|
||||||
@@ -79,6 +88,7 @@
|
|||||||
field: 'content',
|
field: 'content',
|
||||||
component: 'InputTextArea',
|
component: 'InputTextArea',
|
||||||
required: true,
|
required: true,
|
||||||
|
slot: 'remarks',
|
||||||
colProps: { md: 24, lg: 24 },
|
colProps: { md: 24, lg: 24 },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user