新增预警页面
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jeesite.modules.biz.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.jeesite.common.mybatis.annotation.JoinTable;
|
||||
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
@@ -20,70 +21,73 @@ import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 系统信息Entity
|
||||
*
|
||||
* @author gaoxq
|
||||
* @version 2025-11-26
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="biz_quick_login", alias="a", label="系统信息信息", columns={
|
||||
@Column(name="create_time", attrName="createTime", label="创建时间", isUpdate=false, isUpdateForce=true),
|
||||
@Column(name="id", attrName="id", label="自增主键", isPK=true),
|
||||
@Column(name="system_name", attrName="systemName", label="系统名称", queryType=QueryType.LIKE),
|
||||
@Column(name="homepage_url", attrName="homepageUrl", label="首页地址", isQuery=false),
|
||||
@Column(name="icon_class", attrName="iconClass", label="图标类名", isQuery=false),
|
||||
@Column(name="icon_color", attrName="iconColor", label="图标颜色", isQuery=false),
|
||||
@Column(name="sort_order", attrName="sortOrder", label="排序序号", isQuery=false),
|
||||
@Column(name="bg_color", attrName="bgColor", label="图标背景色", isQuery=false),
|
||||
@Column(name="mask_color", attrName="maskColor", label="悬浮遮罩色", isQuery=false),
|
||||
@Column(name="is_enabled", attrName="isEnabled", label="是否启用", isQuery=false),
|
||||
@Column(name="update_time", attrName="updateTime", label="更新时间", isQuery=false, isUpdateForce=true),
|
||||
@Column(name="f_tenant_id", attrName="ftenantId", label="租户id", isUpdate=false, isQuery=false),
|
||||
@Column(name="f_flow_id", attrName="fflowId", label="流程id", isUpdate=false, isQuery=false),
|
||||
@Column(name="f_flow_task_id", attrName="fflowTaskId", label="流程任务主键", isUpdate=false, isQuery=false),
|
||||
@Column(name="f_flow_state", attrName="fflowState", label="流程任务状态", isUpdate=false, isQuery=false, isUpdateForce=true),
|
||||
}, orderBy="a.create_time DESC"
|
||||
@Table(name = "biz_quick_login", alias = "a", label = "系统信息信息", columns = {
|
||||
@Column(name = "create_time", attrName = "createTime", label = "创建时间", isUpdate = false, isUpdateForce = true),
|
||||
@Column(name = "id", attrName = "id", label = "自增主键", isPK = true),
|
||||
@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 = "icon_class", attrName = "iconClass", label = "图标类名", isQuery = false),
|
||||
@Column(name = "icon_color", attrName = "iconColor", label = "图标颜色", isQuery = false),
|
||||
@Column(name = "sort_order", attrName = "sortOrder", label = "排序序号", isQuery = false),
|
||||
@Column(name = "bg_color", attrName = "bgColor", label = "图标背景色", isQuery = false),
|
||||
@Column(name = "mask_color", attrName = "maskColor", label = "悬浮遮罩色", isQuery = false),
|
||||
@Column(name = "is_enabled", attrName = "isEnabled", label = "是否启用", isQuery = false),
|
||||
@Column(name = "update_time", attrName = "updateTime", label = "更新时间", isQuery = false, isUpdateForce = true),
|
||||
@Column(name = "f_tenant_id", attrName = "ftenantId", label = "租户id", isUpdate = false, isQuery = false),
|
||||
@Column(name = "f_flow_id", attrName = "fflowId", label = "流程id", isUpdate = false, isQuery = false),
|
||||
@Column(name = "f_flow_task_id", attrName = "fflowTaskId", label = "流程任务主键", isUpdate = false, isQuery = false),
|
||||
@Column(name = "f_flow_state", attrName = "fflowState", label = "流程任务状态", isUpdate = false, isQuery = false, isUpdateForce = true),
|
||||
}, orderBy = "a.create_time DESC"
|
||||
)
|
||||
@Data
|
||||
public class BizQuickLogin extends DataEntity<BizQuickLogin> implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Date createTime; // 创建时间
|
||||
private String systemName; // 系统名称
|
||||
private String homepageUrl; // 首页地址
|
||||
private String iconClass; // 图标类名
|
||||
private String iconColor; // 图标颜色
|
||||
private Long sortOrder; // 排序序号
|
||||
private String bgColor; // 图标背景色
|
||||
private String maskColor; // 悬浮遮罩色
|
||||
private Long isEnabled; // 是否启用
|
||||
private Date updateTime; // 更新时间
|
||||
private String ftenantId; // 租户id
|
||||
private String fflowId; // 流程id
|
||||
private String fflowTaskId; // 流程任务主键
|
||||
private Integer fflowState; // 流程任务状态
|
||||
|
||||
public BizQuickLogin() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public BizQuickLogin(String id){
|
||||
super(id);
|
||||
}
|
||||
|
||||
public Date getCreateTime_gte() {
|
||||
return sqlMap.getWhere().getValue("create_time", QueryType.GTE);
|
||||
}
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Date createTime; // 创建时间
|
||||
private String systemName; // 系统名称
|
||||
private String systemType; // 系统类型
|
||||
private String homepageUrl; // 首页地址
|
||||
private String iconClass; // 图标类名
|
||||
private String iconColor; // 图标颜色
|
||||
private Long sortOrder; // 排序序号
|
||||
private String bgColor; // 图标背景色
|
||||
private String maskColor; // 悬浮遮罩色
|
||||
private Long isEnabled; // 是否启用
|
||||
private Date updateTime; // 更新时间
|
||||
private String ftenantId; // 租户id
|
||||
private String fflowId; // 流程id
|
||||
private String fflowTaskId; // 流程任务主键
|
||||
private Integer fflowState; // 流程任务状态
|
||||
|
||||
public void setCreateTime_gte(Date createTime) {
|
||||
sqlMap.getWhere().and("create_time", QueryType.GTE, createTime);
|
||||
}
|
||||
|
||||
public Date getCreateTime_lte() {
|
||||
return sqlMap.getWhere().getValue("create_time", QueryType.LTE);
|
||||
}
|
||||
public BizQuickLogin() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public BizQuickLogin(String id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
public Date getCreateTime_gte() {
|
||||
return sqlMap.getWhere().getValue("create_time", QueryType.GTE);
|
||||
}
|
||||
|
||||
public void setCreateTime_gte(Date createTime) {
|
||||
sqlMap.getWhere().and("create_time", QueryType.GTE, createTime);
|
||||
}
|
||||
|
||||
public Date getCreateTime_lte() {
|
||||
return sqlMap.getWhere().getValue("create_time", QueryType.LTE);
|
||||
}
|
||||
|
||||
public void setCreateTime_lte(Date createTime) {
|
||||
sqlMap.getWhere().and("create_time", QueryType.LTE, createTime);
|
||||
}
|
||||
|
||||
public void setCreateTime_lte(Date createTime) {
|
||||
sqlMap.getWhere().and("create_time", QueryType.LTE, createTime);
|
||||
}
|
||||
|
||||
}
|
||||
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) =>
|
||||
defHttp.get<BizMailAttachments>({ url: adminPath + '/biz/mailAttachments/delete', params });
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ const { adminPath } = useGlobSetting();
|
||||
export interface BizQuickLogin extends BasicModel<BizQuickLogin> {
|
||||
createTime?: string; // 创建时间
|
||||
systemName: string; // 系统名称
|
||||
systemType: string; // 系统类型
|
||||
homepageUrl: string; // 首页地址
|
||||
iconClass: string; // 图标类名
|
||||
iconColor: string; // 图标颜色
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
import ChartLineType from './components/ChartLineType.vue';
|
||||
import ChartLineRatio from './components/ChartLineRatio.vue';
|
||||
|
||||
|
||||
|
||||
const FormValues = ref<Record<string, any>>({
|
||||
cycleType: 'M'
|
||||
});
|
||||
|
||||
@@ -50,8 +50,17 @@
|
||||
maxlength: 100,
|
||||
},
|
||||
required: true,
|
||||
colProps: { md: 24, lg: 24 },
|
||||
},
|
||||
{
|
||||
label: t('系统类型'),
|
||||
field: 'systemType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
dictType: 'system_type',
|
||||
allowClear: true,
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: t('首页地址'),
|
||||
field: 'homepageUrl',
|
||||
|
||||
@@ -99,6 +99,15 @@
|
||||
align: 'left',
|
||||
slot: 'slotBizKey',
|
||||
},
|
||||
{
|
||||
title: t('系统类型'),
|
||||
dataIndex: 'systemType',
|
||||
key: 'a.system_type',
|
||||
sorter: true,
|
||||
width: 200,
|
||||
align: 'left',
|
||||
dictType: 'system_type'
|
||||
},
|
||||
{
|
||||
title: t('首页地址'),
|
||||
dataIndex: 'homepageUrl',
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
<template>
|
||||
<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="card-grid">
|
||||
<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) => {
|
||||
if (usage >= 80) return 'usage-danger';
|
||||
@@ -130,7 +122,6 @@ export default defineComponent({
|
||||
listData,
|
||||
register,
|
||||
openModal,
|
||||
goToMorePage,
|
||||
getUsageClass,
|
||||
getProgressClass,
|
||||
};
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
<template>
|
||||
<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;">
|
||||
<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">
|
||||
@@ -69,17 +66,12 @@ export default defineComponent({
|
||||
}
|
||||
};
|
||||
|
||||
const goToMorePage = () => {
|
||||
router.push('/biz/projectInfo/list');
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getDataList();
|
||||
});
|
||||
|
||||
return {
|
||||
listData,
|
||||
goToMorePage,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
@@ -72,12 +72,15 @@ const filteredAppList = computed(() => {
|
||||
|
||||
const fetchAppList = async () => {
|
||||
try {
|
||||
// 新增错误处理,避免接口异常导致页面卡死
|
||||
const result = await bizQuickLoginListAll();
|
||||
appList.value = result || []; // 防止返回 null 导致渲染异常
|
||||
const params = {
|
||||
isEnabled: '1',
|
||||
systemType: '2'
|
||||
}
|
||||
const result = await bizQuickLoginListAll(params);
|
||||
appList.value = result || [];
|
||||
} catch (error) {
|
||||
console.error('获取应用列表失败:', error);
|
||||
appList.value = []; // 异常时置空列表,显示空状态
|
||||
appList.value = [];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -4,9 +4,14 @@
|
||||
<template #headerContent>
|
||||
<MySchedule />
|
||||
</template>
|
||||
<div>
|
||||
s
|
||||
</div>
|
||||
<Card title="常用应用" class="common-app-card">
|
||||
<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>
|
||||
</Card>
|
||||
</PageWrapper>
|
||||
<Tabs v-model:activeKey="activeKey">
|
||||
<TabPane key="1" tab="日程管理">
|
||||
@@ -18,17 +23,46 @@
|
||||
</Tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="AboutPage">
|
||||
import { h, ref } from 'vue';
|
||||
import { Tag, Tabs ,TabPane } from 'ant-design-vue';
|
||||
import { h, ref, onMounted } from 'vue';
|
||||
import { Tag, Tabs, TabPane, Card } from 'ant-design-vue';
|
||||
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 Calendar from './components/calendar/list.vue';
|
||||
import TableInfo from './components/tableInfo/list.vue';
|
||||
|
||||
const appList = ref<BizQuickLogin[]>([]);
|
||||
|
||||
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>
|
||||
|
||||
<style scoped lang="less">
|
||||
@@ -39,6 +73,37 @@
|
||||
display: flex;
|
||||
flex-direction: column; // 垂直布局
|
||||
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>
|
||||
Reference in New Issue
Block a user