新增预警页面
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jeesite.modules.biz.entity;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import com.jeesite.common.mybatis.annotation.JoinTable;
|
import com.jeesite.common.mybatis.annotation.JoinTable;
|
||||||
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
|
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
@@ -20,6 +21,7 @@ import java.io.Serial;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统信息Entity
|
* 系统信息Entity
|
||||||
|
*
|
||||||
* @author gaoxq
|
* @author gaoxq
|
||||||
* @version 2025-11-26
|
* @version 2025-11-26
|
||||||
*/
|
*/
|
||||||
@@ -28,6 +30,7 @@ import java.io.Serial;
|
|||||||
@Column(name = "create_time", attrName = "createTime", label = "创建时间", isUpdate = false, isUpdateForce = true),
|
@Column(name = "create_time", attrName = "createTime", label = "创建时间", isUpdate = false, isUpdateForce = true),
|
||||||
@Column(name = "id", attrName = "id", label = "自增主键", isPK = true),
|
@Column(name = "id", attrName = "id", label = "自增主键", isPK = true),
|
||||||
@Column(name = "system_name", attrName = "systemName", label = "系统名称", queryType = QueryType.LIKE),
|
@Column(name = "system_name", attrName = "systemName", label = "系统名称", queryType = QueryType.LIKE),
|
||||||
|
@Column(name = "system_type", attrName = "systemType", label = "系统类型"),
|
||||||
@Column(name = "homepage_url", attrName = "homepageUrl", label = "首页地址", isQuery = false),
|
@Column(name = "homepage_url", attrName = "homepageUrl", label = "首页地址", isQuery = false),
|
||||||
@Column(name = "icon_class", attrName = "iconClass", label = "图标类名", isQuery = false),
|
@Column(name = "icon_class", attrName = "iconClass", label = "图标类名", isQuery = false),
|
||||||
@Column(name = "icon_color", attrName = "iconColor", label = "图标颜色", isQuery = false),
|
@Column(name = "icon_color", attrName = "iconColor", label = "图标颜色", isQuery = false),
|
||||||
@@ -49,6 +52,7 @@ public class BizQuickLogin extends DataEntity<BizQuickLogin> implements Serializ
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private Date createTime; // 创建时间
|
private Date createTime; // 创建时间
|
||||||
private String systemName; // 系统名称
|
private String systemName; // 系统名称
|
||||||
|
private String systemType; // 系统类型
|
||||||
private String homepageUrl; // 首页地址
|
private String homepageUrl; // 首页地址
|
||||||
private String iconClass; // 图标类名
|
private String iconClass; // 图标类名
|
||||||
private String iconColor; // 图标颜色
|
private String iconColor; // 图标颜色
|
||||||
|
|||||||
BIN
web-vue/packages/assets/images/mail.png
Normal file
BIN
web-vue/packages/assets/images/mail.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
@@ -56,4 +56,3 @@ export const bizMailAttachmentsImportData = (
|
|||||||
|
|
||||||
export const bizMailAttachmentsDelete = (params?: BizMailAttachments | any) =>
|
export const bizMailAttachmentsDelete = (params?: BizMailAttachments | any) =>
|
||||||
defHttp.get<BizMailAttachments>({ url: adminPath + '/biz/mailAttachments/delete', params });
|
defHttp.get<BizMailAttachments>({ url: adminPath + '/biz/mailAttachments/delete', params });
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ const { adminPath } = useGlobSetting();
|
|||||||
export interface BizQuickLogin extends BasicModel<BizQuickLogin> {
|
export interface BizQuickLogin extends BasicModel<BizQuickLogin> {
|
||||||
createTime?: string; // 创建时间
|
createTime?: string; // 创建时间
|
||||||
systemName: string; // 系统名称
|
systemName: string; // 系统名称
|
||||||
|
systemType: string; // 系统类型
|
||||||
homepageUrl: string; // 首页地址
|
homepageUrl: string; // 首页地址
|
||||||
iconClass: string; // 图标类名
|
iconClass: string; // 图标类名
|
||||||
iconColor: string; // 图标颜色
|
iconColor: string; // 图标颜色
|
||||||
|
|||||||
@@ -36,8 +36,6 @@
|
|||||||
import ChartLineType from './components/ChartLineType.vue';
|
import ChartLineType from './components/ChartLineType.vue';
|
||||||
import ChartLineRatio from './components/ChartLineRatio.vue';
|
import ChartLineRatio from './components/ChartLineRatio.vue';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const FormValues = ref<Record<string, any>>({
|
const FormValues = ref<Record<string, any>>({
|
||||||
cycleType: 'M'
|
cycleType: 'M'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -50,7 +50,16 @@
|
|||||||
maxlength: 100,
|
maxlength: 100,
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
colProps: { md: 24, lg: 24 },
|
},
|
||||||
|
{
|
||||||
|
label: t('系统类型'),
|
||||||
|
field: 'systemType',
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
dictType: 'system_type',
|
||||||
|
allowClear: true,
|
||||||
|
},
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('首页地址'),
|
label: t('首页地址'),
|
||||||
|
|||||||
@@ -99,6 +99,15 @@
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
slot: 'slotBizKey',
|
slot: 'slotBizKey',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: t('系统类型'),
|
||||||
|
dataIndex: 'systemType',
|
||||||
|
key: 'a.system_type',
|
||||||
|
sorter: true,
|
||||||
|
width: 200,
|
||||||
|
align: 'left',
|
||||||
|
dictType: 'system_type'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: t('首页地址'),
|
title: t('首页地址'),
|
||||||
dataIndex: 'homepageUrl',
|
dataIndex: 'homepageUrl',
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Card title="运行信息" v-bind="$attrs">
|
<Card title="运行信息" v-bind="$attrs">
|
||||||
<template #extra>
|
|
||||||
<a-button type="link" size="small" @click="goToMorePage()">更多</a-button>
|
|
||||||
</template>
|
|
||||||
<div class="dynamic-list-container">
|
<div class="dynamic-list-container">
|
||||||
<div class="card-grid">
|
<div class="card-grid">
|
||||||
<template v-for="item in listData" :key="item.id || item.ip">
|
<template v-for="item in listData" :key="item.id || item.ip">
|
||||||
@@ -103,11 +100,6 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 跳转到更多页面
|
|
||||||
const goToMorePage = () => {
|
|
||||||
router.push('/biz/hostInfo/index');
|
|
||||||
};
|
|
||||||
|
|
||||||
// 根据使用率获取样式类
|
// 根据使用率获取样式类
|
||||||
const getUsageClass = (usage: number) => {
|
const getUsageClass = (usage: number) => {
|
||||||
if (usage >= 80) return 'usage-danger';
|
if (usage >= 80) return 'usage-danger';
|
||||||
@@ -130,7 +122,6 @@ export default defineComponent({
|
|||||||
listData,
|
listData,
|
||||||
register,
|
register,
|
||||||
openModal,
|
openModal,
|
||||||
goToMorePage,
|
|
||||||
getUsageClass,
|
getUsageClass,
|
||||||
getProgressClass,
|
getProgressClass,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Card title="项目信息" v-bind="$attrs">
|
<Card title="项目信息" v-bind="$attrs">
|
||||||
<template #extra>
|
|
||||||
<a-button type="link" size="small" @click="goToMorePage()">更多</a-button>
|
|
||||||
</template>
|
|
||||||
<div class="scroll-container" style="overflow-x: hidden;">
|
<div class="scroll-container" style="overflow-x: hidden;">
|
||||||
<template v-for="item in listData" :key="item.projectCode || item">
|
<template v-for="item in listData" :key="item.projectCode || item">
|
||||||
<CardGrid class="!w-full rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow duration-200 border border-gray-100 card-grid-fixed-height">
|
<CardGrid class="!w-full rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow duration-200 border border-gray-100 card-grid-fixed-height">
|
||||||
@@ -69,17 +66,12 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const goToMorePage = () => {
|
|
||||||
router.push('/biz/projectInfo/list');
|
|
||||||
};
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getDataList();
|
getDataList();
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
listData,
|
listData,
|
||||||
goToMorePage,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -72,12 +72,15 @@ const filteredAppList = computed(() => {
|
|||||||
|
|
||||||
const fetchAppList = async () => {
|
const fetchAppList = async () => {
|
||||||
try {
|
try {
|
||||||
// 新增错误处理,避免接口异常导致页面卡死
|
const params = {
|
||||||
const result = await bizQuickLoginListAll();
|
isEnabled: '1',
|
||||||
appList.value = result || []; // 防止返回 null 导致渲染异常
|
systemType: '2'
|
||||||
|
}
|
||||||
|
const result = await bizQuickLoginListAll(params);
|
||||||
|
appList.value = result || [];
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('获取应用列表失败:', error);
|
console.error('获取应用列表失败:', error);
|
||||||
appList.value = []; // 异常时置空列表,显示空状态
|
appList.value = [];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,14 @@
|
|||||||
<template #headerContent>
|
<template #headerContent>
|
||||||
<MySchedule />
|
<MySchedule />
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<Card title="常用应用" class="common-app-card">
|
||||||
s
|
<div class="app-item" v-for="(app, index) in appList">
|
||||||
|
<a-button type="link" size="small" @click="goToMorePage(app)">
|
||||||
|
<img :src="app.iconClass" class="app-icon" />
|
||||||
|
</a-button>
|
||||||
|
<span class="app-text">{{ app.systemName }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
</Card>
|
||||||
</PageWrapper>
|
</PageWrapper>
|
||||||
<Tabs v-model:activeKey="activeKey">
|
<Tabs v-model:activeKey="activeKey">
|
||||||
<TabPane key="1" tab="日程管理">
|
<TabPane key="1" tab="日程管理">
|
||||||
@@ -18,17 +23,46 @@
|
|||||||
</Tabs>
|
</Tabs>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup name="AboutPage">
|
<script lang="ts" setup name="AboutPage">
|
||||||
import { h, ref } from 'vue';
|
import { h, ref, onMounted } from 'vue';
|
||||||
import { Tag, Tabs ,TabPane } from 'ant-design-vue';
|
import { Tag, Tabs, TabPane, Card } from 'ant-design-vue';
|
||||||
import { PageWrapper } from '@jeesite/core/components/Page';
|
import { PageWrapper } from '@jeesite/core/components/Page';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
import { BizQuickLogin, bizQuickLoginListAll } from '@jeesite/biz/api/biz/quickLogin';
|
||||||
|
|
||||||
import MySchedule from './components/MySchedule.vue';
|
import MySchedule from './components/MySchedule.vue';
|
||||||
import Calendar from './components/calendar/list.vue';
|
import Calendar from './components/calendar/list.vue';
|
||||||
import TableInfo from './components/tableInfo/list.vue';
|
import TableInfo from './components/tableInfo/list.vue';
|
||||||
|
|
||||||
|
const appList = ref<BizQuickLogin[]>([]);
|
||||||
|
|
||||||
const activeKey = ref('1');
|
const activeKey = ref('1');
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
|
const goToMorePage = (app : BizQuickLogin) => {
|
||||||
|
router.push(app.homepageUrl);
|
||||||
|
};
|
||||||
|
|
||||||
|
const fetchAppList = async () => {
|
||||||
|
try {
|
||||||
|
const params = {
|
||||||
|
isEnabled: '1',
|
||||||
|
systemType: '1'
|
||||||
|
}
|
||||||
|
const result = await bizQuickLoginListAll(params);
|
||||||
|
appList.value = result || [];
|
||||||
|
} catch (error) {
|
||||||
|
console.error('获取应用列表失败:', error);
|
||||||
|
appList.value = [];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
fetchAppList();
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
@@ -39,6 +73,37 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column; // 垂直布局
|
flex-direction: column; // 垂直布局
|
||||||
overflow: hidden; // 防止内容溢出
|
overflow: hidden; // 防止内容溢出
|
||||||
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 常用应用Card样式
|
||||||
|
.common-app-card {
|
||||||
|
width: 100%;
|
||||||
|
margin: 4px 0; // Card上下间距
|
||||||
|
border-radius: 8px; // 优化圆角,更美观
|
||||||
|
|
||||||
|
.app-item {
|
||||||
|
display: inline-flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
|
||||||
|
// 应用图标样式
|
||||||
|
.app-icon {
|
||||||
|
width: 32px;
|
||||||
|
height: 24px;
|
||||||
|
object-fit: contain;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 应用文字样式
|
||||||
|
.app-text {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #333; // 文字颜色
|
||||||
|
white-space: nowrap; // 防止文字换行
|
||||||
|
font-weight: 500; // 轻微加粗,提升可读性
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user