初始化项目
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.jeesite.modules.biz.dao;
|
||||
|
||||
import com.jeesite.common.dao.CrudDao;
|
||||
import com.jeesite.common.mybatis.annotation.MyBatisDao;
|
||||
import com.jeesite.modules.biz.entity.MyScreenInfo;
|
||||
|
||||
/**
|
||||
* 大屏看板 DAO 接口
|
||||
* @author gaoxq
|
||||
* @version 2026-03-21
|
||||
*/
|
||||
@MyBatisDao(dataSourceName="work")
|
||||
public interface MyScreenInfoDao extends CrudDao<MyScreenInfo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
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;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import com.jeesite.common.entity.DataEntity;
|
||||
import com.jeesite.common.mybatis.annotation.Column;
|
||||
import com.jeesite.common.mybatis.annotation.Table;
|
||||
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
import com.jeesite.common.utils.excel.annotation.ExcelField;
|
||||
import com.jeesite.common.utils.excel.annotation.ExcelField.Align;
|
||||
import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 大屏看板 Entity
|
||||
* @author gaoxq
|
||||
* @version 2026-03-21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="my_screen_info", alias="a", label="大屏信息", columns={
|
||||
@Column(name="create_time", attrName="createTime", label="记录时间", isUpdate=false, isUpdateForce=true),
|
||||
@Column(name="screen_id", attrName="screenId", label="唯一主键", isPK=true),
|
||||
@Column(name="screen_name", attrName="screenName", label="大屏名称", queryType=QueryType.LIKE),
|
||||
@Column(name="screen_code", attrName="screenCode", label="大屏编码"),
|
||||
@Column(name="screen_title", attrName="screenTitle", label="大屏标题", queryType=QueryType.LIKE),
|
||||
@Column(name="path", attrName="path", label="路由地址"),
|
||||
@Column(name="remark", attrName="remark", label="说明描述", isQuery=false),
|
||||
@Column(name="ustatus", attrName="ustatus", label="状态"),
|
||||
@Column(name="update_time", attrName="updateTime", label="更新时间", isInsert=false, isQuery=false, isUpdateForce=true),
|
||||
}, orderBy="a.screen_id DESC"
|
||||
)
|
||||
@Data
|
||||
public class MyScreenInfo extends DataEntity<MyScreenInfo> implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Date createTime; // 记录时间
|
||||
private String screenId; // 唯一主键
|
||||
private String screenName; // 大屏名称
|
||||
private String screenCode; // 大屏编码
|
||||
private String screenTitle; // 大屏标题
|
||||
private String path; // 路由地址
|
||||
private String remark; // 说明描述
|
||||
private String ustatus; // 状态
|
||||
private Date updateTime; // 更新时间
|
||||
|
||||
@ExcelFields({
|
||||
@ExcelField(title="记录时间", attrName="createTime", align=Align.CENTER, sort=10, dataFormat="yyyy-MM-dd hh:mm"),
|
||||
@ExcelField(title="唯一主键", attrName="screenId", align=Align.CENTER, sort=20),
|
||||
@ExcelField(title="大屏名称", attrName="screenName", align=Align.CENTER, sort=30),
|
||||
@ExcelField(title="大屏编码", attrName="screenCode", align=Align.CENTER, sort=40),
|
||||
@ExcelField(title="大屏标题", attrName="screenTitle", align=Align.CENTER, sort=50),
|
||||
@ExcelField(title="路由地址", attrName="path", align=Align.CENTER, sort=60),
|
||||
@ExcelField(title="说明描述", attrName="remark", align=Align.CENTER, sort=70),
|
||||
@ExcelField(title="状态", attrName="ustatus", dictType="biz_status", align=Align.CENTER, sort=80),
|
||||
@ExcelField(title="更新时间", attrName="updateTime", align=Align.CENTER, sort=90, dataFormat="yyyy-MM-dd hh:mm"),
|
||||
})
|
||||
public MyScreenInfo() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public MyScreenInfo(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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
package com.jeesite.modules.biz.service;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.jeesite.common.entity.Page;
|
||||
import com.jeesite.common.service.CrudService;
|
||||
import com.jeesite.modules.biz.entity.MyScreenInfo;
|
||||
import com.jeesite.modules.biz.dao.MyScreenInfoDao;
|
||||
import com.jeesite.common.service.ServiceException;
|
||||
import com.jeesite.common.config.Global;
|
||||
import com.jeesite.common.validator.ValidatorUtils;
|
||||
import com.jeesite.common.utils.excel.ExcelImport;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import jakarta.validation.ConstraintViolation;
|
||||
import jakarta.validation.ConstraintViolationException;
|
||||
|
||||
/**
|
||||
* 大屏看板 Service
|
||||
* @author gaoxq
|
||||
* @version 2026-03-21
|
||||
*/
|
||||
@Service
|
||||
public class MyScreenInfoService extends CrudService<MyScreenInfoDao, MyScreenInfo> {
|
||||
|
||||
/**
|
||||
* 获取单条数据
|
||||
* @param myScreenInfo 主键
|
||||
*/
|
||||
@Override
|
||||
public MyScreenInfo get(MyScreenInfo myScreenInfo) {
|
||||
return super.get(myScreenInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param myScreenInfo 查询条件
|
||||
* @param myScreenInfo page 分页对象
|
||||
*/
|
||||
@Override
|
||||
public Page<MyScreenInfo> findPage(MyScreenInfo myScreenInfo) {
|
||||
return super.findPage(myScreenInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表数据
|
||||
* @param myScreenInfo 查询条件
|
||||
*/
|
||||
@Override
|
||||
public List<MyScreenInfo> findList(MyScreenInfo myScreenInfo) {
|
||||
return super.findList(myScreenInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存数据(插入或更新)
|
||||
* @param myScreenInfo 数据对象
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public void save(MyScreenInfo myScreenInfo) {
|
||||
super.save(myScreenInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入数据
|
||||
* @param file 导入的数据文件
|
||||
*/
|
||||
@Transactional
|
||||
public String importData(MultipartFile file) {
|
||||
if (file == null){
|
||||
throw new ServiceException(text("请选择导入的数据文件!"));
|
||||
}
|
||||
int successNum = 0; int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
try(ExcelImport ei = new ExcelImport(file, 2, 0)){
|
||||
List<MyScreenInfo> list = ei.getDataList(MyScreenInfo.class);
|
||||
for (MyScreenInfo myScreenInfo : list) {
|
||||
try{
|
||||
ValidatorUtils.validateWithException(myScreenInfo);
|
||||
this.save(myScreenInfo);
|
||||
successNum++;
|
||||
successMsg.append("<br/>" + successNum + "、编号 " + myScreenInfo.getId() + " 导入成功");
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
String msg = "<br/>" + failureNum + "、编号 " + myScreenInfo.getId() + " 导入失败:";
|
||||
if (e instanceof ConstraintViolationException){
|
||||
ConstraintViolationException cve = (ConstraintViolationException)e;
|
||||
for (ConstraintViolation<?> violation : cve.getConstraintViolations()) {
|
||||
msg += Global.getText(violation.getMessage()) + " ("+violation.getPropertyPath()+")";
|
||||
}
|
||||
}else{
|
||||
msg += e.getMessage();
|
||||
}
|
||||
failureMsg.append(msg);
|
||||
logger.error(msg, e);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
failureMsg.append(e.getMessage());
|
||||
return failureMsg.toString();
|
||||
}
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
}else{
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
}
|
||||
return successMsg.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
* @param myScreenInfo 数据对象
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public void updateStatus(MyScreenInfo myScreenInfo) {
|
||||
super.updateStatus(myScreenInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
* @param myScreenInfo 数据对象
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public void delete(MyScreenInfo myScreenInfo) {
|
||||
super.delete(myScreenInfo);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
package com.jeesite.modules.biz.web;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.jeesite.common.config.Global;
|
||||
import com.jeesite.common.collect.ListUtils;
|
||||
import com.jeesite.common.entity.Page;
|
||||
import com.jeesite.common.lang.DateUtils;
|
||||
import com.jeesite.common.utils.excel.ExcelExport;
|
||||
import com.jeesite.common.utils.excel.annotation.ExcelField.Type;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import com.jeesite.common.web.BaseController;
|
||||
import com.jeesite.modules.biz.entity.MyScreenInfo;
|
||||
import com.jeesite.modules.biz.service.MyScreenInfoService;
|
||||
|
||||
/**
|
||||
* 大屏看板 Controller
|
||||
*
|
||||
* @author gaoxq
|
||||
* @version 2026-03-21
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping(value = "${adminPath}/biz/myScreenInfo")
|
||||
public class MyScreenInfoController extends BaseController {
|
||||
|
||||
private final MyScreenInfoService myScreenInfoService;
|
||||
|
||||
public MyScreenInfoController(MyScreenInfoService myScreenInfoService) {
|
||||
this.myScreenInfoService = myScreenInfoService;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据
|
||||
*/
|
||||
@ModelAttribute
|
||||
public MyScreenInfo get(String screenId, boolean isNewRecord) {
|
||||
return myScreenInfoService.get(screenId, isNewRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
@RequiresPermissions("biz:myScreenInfo:view")
|
||||
@RequestMapping(value = {"list", ""})
|
||||
public String list(MyScreenInfo myScreenInfo, Model model) {
|
||||
model.addAttribute("myScreenInfo", myScreenInfo);
|
||||
return "modules/biz/myScreenInfoList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表数据
|
||||
*/
|
||||
@RequiresPermissions("biz:myScreenInfo:view")
|
||||
@RequestMapping(value = "listData")
|
||||
@ResponseBody
|
||||
public Page<MyScreenInfo> listData(MyScreenInfo myScreenInfo, HttpServletRequest request, HttpServletResponse response) {
|
||||
myScreenInfo.setPage(new Page<>(request, response));
|
||||
Page<MyScreenInfo> page = myScreenInfoService.findPage(myScreenInfo);
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看编辑表单
|
||||
*/
|
||||
@RequiresPermissions("biz:myScreenInfo:view")
|
||||
@RequestMapping(value = "form")
|
||||
public String form(MyScreenInfo myScreenInfo, Model model) {
|
||||
model.addAttribute("myScreenInfo", myScreenInfo);
|
||||
return "modules/biz/myScreenInfoForm";
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存数据
|
||||
*/
|
||||
@RequiresPermissions("biz:myScreenInfo:edit")
|
||||
@PostMapping(value = "save")
|
||||
@ResponseBody
|
||||
public String save(@Validated MyScreenInfo myScreenInfo) {
|
||||
myScreenInfoService.save(myScreenInfo);
|
||||
return renderResult(Global.TRUE, text("保存大屏成功!"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出数据
|
||||
*/
|
||||
@RequiresPermissions("biz:myScreenInfo:view")
|
||||
@RequestMapping(value = "exportData")
|
||||
public void exportData(MyScreenInfo myScreenInfo, HttpServletResponse response) {
|
||||
List<MyScreenInfo> list = myScreenInfoService.findList(myScreenInfo);
|
||||
String fileName = "大屏" + DateUtils.getDate("yyyyMMddHHmmss") + ".xlsx";
|
||||
try (ExcelExport ee = new ExcelExport("大屏", MyScreenInfo.class)) {
|
||||
ee.setDataList(list).write(response, fileName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载模板
|
||||
*/
|
||||
@RequiresPermissions("biz:myScreenInfo:view")
|
||||
@RequestMapping(value = "importTemplate")
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
MyScreenInfo myScreenInfo = new MyScreenInfo();
|
||||
List<MyScreenInfo> list = ListUtils.newArrayList(myScreenInfo);
|
||||
String fileName = "大屏模板.xlsx";
|
||||
try (ExcelExport ee = new ExcelExport("大屏", MyScreenInfo.class, Type.IMPORT)) {
|
||||
ee.setDataList(list).write(response, fileName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入数据
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequiresPermissions("biz:myScreenInfo:edit")
|
||||
@PostMapping(value = "importData")
|
||||
public String importData(MultipartFile file) {
|
||||
try {
|
||||
String message = myScreenInfoService.importData(file);
|
||||
return renderResult(Global.TRUE, "posfull:" + message);
|
||||
} catch (Exception ex) {
|
||||
return renderResult(Global.FALSE, "posfull:" + ex.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*/
|
||||
@RequiresPermissions("biz:myScreenInfo:edit")
|
||||
@RequestMapping(value = "delete")
|
||||
@ResponseBody
|
||||
public String delete(MyScreenInfo myScreenInfo) {
|
||||
myScreenInfoService.delete(myScreenInfo);
|
||||
return renderResult(Global.TRUE, text("删除大屏成功!"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表数据
|
||||
*/
|
||||
@RequestMapping(value = "listAll")
|
||||
@ResponseBody
|
||||
public List<MyScreenInfo> listAll(MyScreenInfo myScreenInfo) {
|
||||
return myScreenInfoService.findList(myScreenInfo);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jeesite.modules.biz.dao.MyScreenInfoDao">
|
||||
|
||||
<!-- 查询数据
|
||||
<select id="findList" resultType="MyScreenInfo">
|
||||
SELECT ${sqlMap.column.toSql()}
|
||||
FROM ${sqlMap.table.toSql()}
|
||||
<where>
|
||||
${sqlMap.where.toSql()}
|
||||
</where>
|
||||
ORDER BY ${sqlMap.order.toSql()}
|
||||
</select> -->
|
||||
|
||||
</mapper>
|
||||
55
web-vue/packages/biz/api/biz/myScreenInfo.ts
Normal file
55
web-vue/packages/biz/api/biz/myScreenInfo.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now https://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, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface MyScreenInfo extends BasicModel<MyScreenInfo> {
|
||||
createTime?: string; // 记录时间
|
||||
screenId: string; // 唯一主键
|
||||
screenName?: string; // 大屏名称
|
||||
screenCode?: string; // 大屏编码
|
||||
screenTitle?: string; // 大屏标题
|
||||
path?: string; // 路由地址
|
||||
remark?: string; // 说明描述
|
||||
ustatus?: string; // 状态
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
export const myScreenInfoList = (params?: MyScreenInfo | any) =>
|
||||
defHttp.get<MyScreenInfo>({ url: adminPath + '/biz/myScreenInfo/list', params });
|
||||
|
||||
export const myScreenInfoListAll = (params?: MyScreenInfo | any) =>
|
||||
defHttp.get<MyScreenInfo[]>({ url: adminPath + '/biz/myScreenInfo/listAll', params });
|
||||
|
||||
export const myScreenInfoListData = (params?: MyScreenInfo | any) =>
|
||||
defHttp.post<Page<MyScreenInfo>>({ url: adminPath + '/biz/myScreenInfo/listData', params });
|
||||
|
||||
export const myScreenInfoForm = (params?: MyScreenInfo | any) =>
|
||||
defHttp.get<MyScreenInfo>({ url: adminPath + '/biz/myScreenInfo/form', params });
|
||||
|
||||
export const myScreenInfoSave = (params?: any, data?: MyScreenInfo | any) =>
|
||||
defHttp.postJson<MyScreenInfo>({ url: adminPath + '/biz/myScreenInfo/save', params, data });
|
||||
|
||||
export const myScreenInfoImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myScreenInfo/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myScreenInfoDelete = (params?: MyScreenInfo | any) =>
|
||||
defHttp.get<MyScreenInfo>({ url: adminPath + '/biz/myScreenInfo/delete', params });
|
||||
151
web-vue/packages/biz/views/biz/myScreenInfo/form.vue
Normal file
151
web-vue/packages/biz/views/biz/myScreenInfo/form.vue
Normal file
@@ -0,0 +1,151 @@
|
||||
<!--
|
||||
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
-->
|
||||
<template>
|
||||
<BasicDrawer
|
||||
v-bind="$attrs"
|
||||
:showFooter="true"
|
||||
:okAuth="'biz:myScreenInfo:edit'"
|
||||
@register="registerDrawer"
|
||||
@ok="handleSubmit"
|
||||
width="70%"
|
||||
>
|
||||
<template #title>
|
||||
<Icon :icon="getTitle.icon" class="m-1 pr-1" />
|
||||
<span> {{ getTitle.value }} </span>
|
||||
</template>
|
||||
<BasicForm @register="registerForm" />
|
||||
</BasicDrawer>
|
||||
</template>
|
||||
<script lang="ts" setup name="ViewsBizMyScreenInfoForm">
|
||||
import { ref, unref, computed } from 'vue';
|
||||
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
|
||||
import { useMessage } from '@jeesite/core/hooks/web/useMessage';
|
||||
import { router } from '@jeesite/core/router';
|
||||
import { Icon } from '@jeesite/core/components/Icon';
|
||||
import { BasicForm, FormSchema, useForm } from '@jeesite/core/components/Form';
|
||||
import { BasicDrawer, useDrawerInner } from '@jeesite/core/components/Drawer';
|
||||
import { MyScreenInfo, myScreenInfoSave, myScreenInfoForm } from '@jeesite/biz/api/biz/myScreenInfo';
|
||||
import { formatToDateTime } from '@jeesite/core/utils/dateUtil';
|
||||
|
||||
const emit = defineEmits(['success', 'register']);
|
||||
|
||||
const { t } = useI18n('biz.myScreenInfo');
|
||||
const { showMessage } = useMessage();
|
||||
const { meta } = unref(router.currentRoute);
|
||||
const record = ref<MyScreenInfo>({} as MyScreenInfo);
|
||||
|
||||
const getTitle = computed(() => ({
|
||||
icon: meta.icon || 'i-ant-design:book-outlined',
|
||||
value: record.value.isNewRecord ? t('新增大屏') : t('编辑大屏'),
|
||||
}));
|
||||
|
||||
const inputFormSchemas: FormSchema<MyScreenInfo>[] = [
|
||||
{
|
||||
label: t('基本信息'),
|
||||
field: 'basicInfo',
|
||||
component: 'FormGroup',
|
||||
colProps: { md: 24, lg: 24 },
|
||||
},
|
||||
{
|
||||
label: t('大屏名称'),
|
||||
field: 'screenName',
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
maxlength: 52,
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: t('大屏编码'),
|
||||
field: 'screenCode',
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
maxlength: 24,
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: t('大屏标题'),
|
||||
field: 'screenTitle',
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
maxlength: 152,
|
||||
},
|
||||
required: true,
|
||||
colProps: { md: 24, lg: 24 },
|
||||
},
|
||||
{
|
||||
label: t('路由地址'),
|
||||
field: 'path',
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
maxlength: 125,
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: t('大屏状态'),
|
||||
field: 'ustatus',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
dictType: 'biz_status',
|
||||
allowClear: true,
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: t('说明描述'),
|
||||
field: 'remark',
|
||||
component: 'InputTextArea',
|
||||
componentProps: {
|
||||
maxlength: 500,
|
||||
},
|
||||
colProps: { md: 24, lg: 24 },
|
||||
},
|
||||
];
|
||||
|
||||
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm<MyScreenInfo>({
|
||||
labelWidth: 120,
|
||||
schemas: inputFormSchemas,
|
||||
baseColProps: { md: 24, lg: 12 },
|
||||
});
|
||||
|
||||
const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
|
||||
setDrawerProps({ loading: true });
|
||||
await resetFields();
|
||||
const res = await myScreenInfoForm(data);
|
||||
record.value = (res.myScreenInfo || {}) as MyScreenInfo;
|
||||
record.value.__t = new Date().getTime();
|
||||
await setFieldsValue(record.value);
|
||||
setDrawerProps({ loading: false });
|
||||
});
|
||||
|
||||
async function handleSubmit() {
|
||||
try {
|
||||
const data = await validate();
|
||||
setDrawerProps({ confirmLoading: true });
|
||||
const params: any = {
|
||||
isNewRecord: record.value.isNewRecord,
|
||||
screenId: record.value.screenId || data.screenId,
|
||||
};
|
||||
|
||||
data[record.value.isNewRecord ? 'createTime' : 'updateTime'] = formatToDateTime(new Date());
|
||||
|
||||
// console.log('submit', params, data, record);
|
||||
const res = await myScreenInfoSave(params, data);
|
||||
showMessage(res.message);
|
||||
setTimeout(closeDrawer);
|
||||
emit('success', data);
|
||||
} catch (error: any) {
|
||||
if (error && error.errorFields) {
|
||||
showMessage(error.message || t('common.validateError'));
|
||||
}
|
||||
console.log('error', error);
|
||||
} finally {
|
||||
setDrawerProps({ confirmLoading: false });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
249
web-vue/packages/biz/views/biz/myScreenInfo/list.vue
Normal file
249
web-vue/packages/biz/views/biz/myScreenInfo/list.vue
Normal file
@@ -0,0 +1,249 @@
|
||||
<!--
|
||||
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
-->
|
||||
<template>
|
||||
<div>
|
||||
<BasicTable @register="registerTable">
|
||||
<template #tableTitle>
|
||||
<Icon :icon="getTitle.icon" class="m-1 pr-1" />
|
||||
<span> {{ getTitle.value }} </span>
|
||||
</template>
|
||||
<template #toolbar>
|
||||
<a-button type="default" :loading="loading" @click="handleExport()">
|
||||
<Icon icon="i-ant-design:download-outlined" /> {{ t('导出') }}
|
||||
</a-button>
|
||||
<a-button type="primary" @click="handleForm({})" v-auth="'biz:myScreenInfo:edit'">
|
||||
<Icon icon="i-fluent:add-12-filled" /> {{ t('新增') }}
|
||||
</a-button>
|
||||
</template>
|
||||
<template #bizScopeKey="{ record, text, value }">
|
||||
<a @click="handleForm({ screenId: record.screenId })" :title="value">
|
||||
{{ text }}
|
||||
</a>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<InputForm @register="registerDrawer" @success="handleSuccess" />
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup name="ViewsBizMyScreenInfoList">
|
||||
import { onMounted, ref, unref } from 'vue';
|
||||
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
|
||||
import { useMessage } from '@jeesite/core/hooks/web/useMessage';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { downloadByUrl } from '@jeesite/core/utils/file/download';
|
||||
import { router } from '@jeesite/core/router';
|
||||
import { Icon } from '@jeesite/core/components/Icon';
|
||||
import { BasicTable, BasicColumn, useTable } from '@jeesite/core/components/Table';
|
||||
import { MyScreenInfo, myScreenInfoList } from '@jeesite/biz/api/biz/myScreenInfo';
|
||||
import { myScreenInfoDelete, myScreenInfoListData } from '@jeesite/biz/api/biz/myScreenInfo';
|
||||
import { useDrawer } from '@jeesite/core/components/Drawer';
|
||||
import { useModal } from '@jeesite/core/components/Modal';
|
||||
import { FormProps } from '@jeesite/core/components/Form';
|
||||
import InputForm from './form.vue';
|
||||
|
||||
const { t } = useI18n('biz.myScreenInfo');
|
||||
const { showMessage } = useMessage();
|
||||
const { meta } = unref(router.currentRoute);
|
||||
const record = ref<MyScreenInfo>({} as MyScreenInfo);
|
||||
|
||||
const getTitle = {
|
||||
icon: meta.icon || 'i-ant-design:book-outlined',
|
||||
value: meta.title || t('大屏管理'),
|
||||
};
|
||||
const loading = ref(false);
|
||||
|
||||
const searchForm: FormProps<MyScreenInfo> = {
|
||||
baseColProps: { md: 8, lg: 6 },
|
||||
labelWidth: 90,
|
||||
schemas: [
|
||||
{
|
||||
label: t('记录时间起'),
|
||||
field: 'createTime_gte',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
format: 'YYYY-MM-DD HH:mm',
|
||||
showTime: { format: 'HH:mm' },
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('记录时间止'),
|
||||
field: 'createTime_lte',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
format: 'YYYY-MM-DD HH:mm',
|
||||
showTime: { format: 'HH:mm' },
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('大屏名称'),
|
||||
field: 'screenName',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('大屏编码'),
|
||||
field: 'screenCode',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('大屏标题'),
|
||||
field: 'screenTitle',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('路由地址'),
|
||||
field: 'path',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('大屏状态'),
|
||||
field: 'ustatus',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
dictType: 'biz_status',
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const tableColumns: BasicColumn<MyScreenInfo>[] = [
|
||||
{
|
||||
title: t('记录时间'),
|
||||
dataIndex: 'createTime',
|
||||
key: 'a.create_time',
|
||||
sorter: true,
|
||||
width: 150,
|
||||
align: 'center',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: t('大屏名称'),
|
||||
dataIndex: 'screenName',
|
||||
key: 'a.screen_name',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
slot: 'bizScopeKey',
|
||||
},
|
||||
{
|
||||
title: t('大屏编码'),
|
||||
dataIndex: 'screenCode',
|
||||
key: 'a.screen_code',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('大屏标题'),
|
||||
dataIndex: 'screenTitle',
|
||||
key: 'a.screen_title',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('路由地址'),
|
||||
dataIndex: 'path',
|
||||
key: 'a.path',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('说明描述'),
|
||||
dataIndex: 'remark',
|
||||
key: 'a.remark',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('大屏状态'),
|
||||
dataIndex: 'ustatus',
|
||||
key: 'a.ustatus',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'center',
|
||||
dictType: 'biz_status',
|
||||
},
|
||||
{
|
||||
title: t('更新时间'),
|
||||
dataIndex: 'updateTime',
|
||||
key: 'a.update_time',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'center',
|
||||
},
|
||||
];
|
||||
|
||||
const actionColumn: BasicColumn<MyScreenInfo> = {
|
||||
width: 160,
|
||||
align: 'center',
|
||||
actions: (record: MyScreenInfo) => [
|
||||
{
|
||||
icon: 'i-clarity:note-edit-line',
|
||||
title: t('编辑'),
|
||||
onClick: handleForm.bind(this, { screenId: record.screenId }),
|
||||
auth: 'biz:myScreenInfo:edit',
|
||||
},
|
||||
{
|
||||
icon: 'i-ant-design:delete-outlined',
|
||||
color: 'error',
|
||||
title: t('删除'),
|
||||
popConfirm: {
|
||||
title: t('是否确认删除大屏?'),
|
||||
confirm: handleDelete.bind(this, record),
|
||||
},
|
||||
auth: 'biz:myScreenInfo:edit',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const [registerTable, { reload, getForm }] = useTable<MyScreenInfo>({
|
||||
api: myScreenInfoListData,
|
||||
beforeFetch: (params) => {
|
||||
return params;
|
||||
},
|
||||
columns: tableColumns,
|
||||
actionColumn: actionColumn,
|
||||
formConfig: searchForm,
|
||||
showTableSetting: true,
|
||||
useSearchForm: true,
|
||||
canResize: true,
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
const res = await myScreenInfoList();
|
||||
record.value = (res.myScreenInfo || {}) as MyScreenInfo;
|
||||
await getForm().setFieldsValue(record.value);
|
||||
});
|
||||
|
||||
const [registerDrawer, { openDrawer }] = useDrawer();
|
||||
|
||||
function handleForm(record: Recordable) {
|
||||
openDrawer(true, record);
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
loading.value = true;
|
||||
const { ctxAdminPath } = useGlobSetting();
|
||||
await downloadByUrl({
|
||||
url: ctxAdminPath + '/biz/myScreenInfo/exportData',
|
||||
params: getForm().getFieldsValue(),
|
||||
});
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
async function handleDelete(record: Recordable) {
|
||||
const params = { screenId: record.screenId };
|
||||
const res = await myScreenInfoDelete(params);
|
||||
showMessage(res.message);
|
||||
await handleSuccess(record);
|
||||
}
|
||||
|
||||
async function handleSuccess(record: Recordable) {
|
||||
await reload({ record });
|
||||
}
|
||||
</script>
|
||||
151
web-vue/packages/biz/views/biz/myScreenInfo/select.ts
Normal file
151
web-vue/packages/biz/views/biz/myScreenInfo/select.ts
Normal file
@@ -0,0 +1,151 @@
|
||||
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
|
||||
import { BasicColumn, BasicTableProps, FormProps } from '@jeesite/core/components/Table';
|
||||
import { myScreenInfoListData } from '@jeesite/biz/api/biz/myScreenInfo';
|
||||
|
||||
const { t } = useI18n('biz.myScreenInfo');
|
||||
|
||||
const modalProps = {
|
||||
title: t('大屏选择'),
|
||||
};
|
||||
|
||||
const searchForm: FormProps<MyScreenInfo> = {
|
||||
baseColProps: { md: 8, lg: 6 },
|
||||
labelWidth: 90,
|
||||
schemas: [
|
||||
{
|
||||
label: t('记录时间起'),
|
||||
field: 'createTime_gte',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
format: 'YYYY-MM-DD HH:mm',
|
||||
showTime: { format: 'HH:mm' },
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('记录时间止'),
|
||||
field: 'createTime_lte',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
format: 'YYYY-MM-DD HH:mm',
|
||||
showTime: { format: 'HH:mm' },
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('大屏名称'),
|
||||
field: 'screenName',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('大屏编码'),
|
||||
field: 'screenCode',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('大屏标题'),
|
||||
field: 'screenTitle',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('路由地址'),
|
||||
field: 'path',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: t('状态'),
|
||||
field: 'ustatus',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
dictType: 'biz_status',
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const tableColumns: BasicColumn<MyScreenInfo>[] = [
|
||||
{
|
||||
title: t('记录时间'),
|
||||
dataIndex: 'createTime',
|
||||
key: 'a.create_time',
|
||||
sorter: true,
|
||||
width: 230,
|
||||
align: 'left',
|
||||
slot: 'firstColumn',
|
||||
},
|
||||
{
|
||||
title: t('大屏名称'),
|
||||
dataIndex: 'screenName',
|
||||
key: 'a.screen_name',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('大屏编码'),
|
||||
dataIndex: 'screenCode',
|
||||
key: 'a.screen_code',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('大屏标题'),
|
||||
dataIndex: 'screenTitle',
|
||||
key: 'a.screen_title',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('路由地址'),
|
||||
dataIndex: 'path',
|
||||
key: 'a.path',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('说明描述'),
|
||||
dataIndex: 'remark',
|
||||
key: 'a.remark',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: t('状态'),
|
||||
dataIndex: 'ustatus',
|
||||
key: 'a.ustatus',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'center',
|
||||
dictType: 'biz_status',
|
||||
},
|
||||
{
|
||||
title: t('更新时间'),
|
||||
dataIndex: 'updateTime',
|
||||
key: 'a.update_time',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'center',
|
||||
},
|
||||
];
|
||||
|
||||
const tableProps: BasicTableProps = {
|
||||
api: myScreenInfoListData,
|
||||
beforeFetch: (params) => {
|
||||
params['isAll'] = true;
|
||||
return params;
|
||||
},
|
||||
columns: tableColumns,
|
||||
formConfig: searchForm,
|
||||
rowKey: 'screenId',
|
||||
};
|
||||
|
||||
export default {
|
||||
modalProps,
|
||||
tableProps,
|
||||
itemCode: 'screenId',
|
||||
itemName: 'screenId',
|
||||
isShowCode: false,
|
||||
};
|
||||
@@ -16,11 +16,11 @@
|
||||
<div
|
||||
class="tab-item"
|
||||
v-for="item in allTabs"
|
||||
:key="item.moduleCode"
|
||||
:key="item.screenCode"
|
||||
:class="{ active: isCurrentTab(item.path) }"
|
||||
@click="switchTabByRoute(item)"
|
||||
>
|
||||
<span>{{ item.moduleName }}</span>
|
||||
<span>{{ item.screenName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="query-group">
|
||||
@@ -36,22 +36,18 @@
|
||||
</div>
|
||||
</header>
|
||||
<main class="screen-content">
|
||||
<div v-if="isHome" class="screen-page">
|
||||
<HomePage />
|
||||
</div>
|
||||
<div v-else class="screen-page">
|
||||
<div class="screen-page">
|
||||
<router-view />
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<script lang="ts" setup name="ViewsBizMyScreenInfoIndex">
|
||||
import { ref, onMounted, computed } from 'vue';
|
||||
import { useRouter, useRoute } from 'vue-router';
|
||||
import { ElMessage } from 'element-plus';
|
||||
// import { getHomeModuleList } from '@/api/bizApi'
|
||||
import HomePage from './Home/index.vue'
|
||||
import { MyScreenInfo, myScreenInfoListAll } from '@jeesite/biz/api/biz/myScreenInfo';
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
@@ -60,7 +56,7 @@ const HOME_TITLE = "个人数字化分析看板";
|
||||
const screenTitle = ref(HOME_TITLE);
|
||||
const currentYear = new Date().getFullYear().toString();
|
||||
|
||||
const allTabs = ref([])
|
||||
const allTabs = ref<MyScreenInfo[]>()
|
||||
const queryDate = ref(currentYear);
|
||||
|
||||
const getTitle = (title) => {
|
||||
@@ -73,7 +69,7 @@ const isHome = computed(() => {
|
||||
|
||||
const goHome = () => {
|
||||
screenTitle.value = HOME_TITLE;
|
||||
router.push('/bigScreen').catch(() => {});
|
||||
router.push('/bigScreen/home').catch(() => {});
|
||||
};
|
||||
|
||||
const isCurrentTab = (routePath) => {
|
||||
@@ -81,7 +77,7 @@ const isCurrentTab = (routePath) => {
|
||||
};
|
||||
|
||||
const switchTabByRoute = (item) => {
|
||||
getTitle(item.titleName);
|
||||
getTitle(item.screenTitle);
|
||||
if (!item.path) {
|
||||
ElMessage.warning('该模块暂无对应路由');
|
||||
return;
|
||||
@@ -112,25 +108,21 @@ const handleQuery = () => {
|
||||
};
|
||||
|
||||
const handleSetting = () => {
|
||||
router.push('/bigScreen/screenSetting');
|
||||
router.push('/bigScreen/setting');
|
||||
};
|
||||
|
||||
// async function getList() {
|
||||
// try {
|
||||
// const res = await getHomeModuleList();
|
||||
// allTabs.value = res || [];
|
||||
// } catch (error) {
|
||||
// console.error('获取模块列表失败:', error);
|
||||
// allTabs.value = [];
|
||||
// }
|
||||
// }
|
||||
|
||||
const initApp = () => {
|
||||
// getList();
|
||||
};
|
||||
async function getList() {
|
||||
try {
|
||||
const res = await myScreenInfoListAll();
|
||||
allTabs.value = res || [];
|
||||
} catch (error) {
|
||||
console.error('获取模块列表失败:', error);
|
||||
allTabs.value = [];
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
initApp();
|
||||
getList();
|
||||
router.afterEach((to) => {
|
||||
if (to.query.year) {
|
||||
queryDate.value = to.query.year;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
4
web-vue/packages/core/locales/lang/en/routes/screen.ts
Normal file
4
web-vue/packages/core/locales/lang/en/routes/screen.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default {
|
||||
bigScreen: 'BigScreen',
|
||||
bigSetting: 'BigSetting',
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
export default {
|
||||
bigScreen: '大屏可视化',
|
||||
bigSetting: '大屏设置',
|
||||
};
|
||||
@@ -51,26 +51,58 @@ const BigScreenRoute: AppRouteRecordRaw = {
|
||||
path: '/bigScreen',
|
||||
name: 'BigScreen',
|
||||
component: SCREEN_LAYOUT,
|
||||
redirect: '/bigScreen/screenAnalysis',
|
||||
redirect: '/bigScreen/welcome',
|
||||
meta: {
|
||||
title: t('routes.dashboard.bigScreen'),
|
||||
title: t('routes.screen.bigScreen'),
|
||||
ignoreAuth: false,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'screenAnalysis',
|
||||
name: 'ScreenAnalysis',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/analysis/index.vue'),
|
||||
path: 'welcome',
|
||||
name: 'ScreenWelcome',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/welcome/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.dashboard.bigScreen'),
|
||||
title: t('routes.screen.bigScreen'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'home',
|
||||
name: 'ScreenHome',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/welcome/Home/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.screen.bigScreen'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'work',
|
||||
name: 'ScreenWork',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/welcome/Work/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.screen.bigScreen'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'erp',
|
||||
name: 'ScreenErp',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/welcome/Erp/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.screen.bigScreen'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'sys',
|
||||
name: 'ScreenSys',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/welcome/Sys/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.screen.bigScreen'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'screenSetting',
|
||||
path: 'setting',
|
||||
name: 'ScreenSetting',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/setting/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.dashboard.bigSetting'),
|
||||
title: t('routes.screen.bigSetting'),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user