npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@aezocn/report-table

v1.3.0-1.7

Published

编辑报表

Downloads

15

Readme

report-table 前端组件库

编辑报表(ReportTable):基于SpringBoot + Vue现实的报表模块,可进行数据增删查改等功能。

特点:

  • 简洁至上:一个SQL即可实现列表显示、导出、打印
  • 丰富功能:基于 Mybatis 语法动态配置SQL语句,支持动态按钮、动态编辑表格
  • 易扩展:支持报表邮件发送、查询条件组件自定义

详细文档更新中...

前端组件使用

  • 安装
# 安装vxe-table相关依赖
npm install [email protected] [email protected] -S

# 安装report-table
npm install @aezocn/report-table -S
  • 使用
// ===> 在 main.js 中引入组件库
// 全部引入
import ReportTable from '@aezocn/report-table'
import 'report-table/lib/report-table.css'

Vue.use(ReportTable, {
  VXETable: VXETable,
  XEUtils: XEUtils,
  Store: store
}, {
  // API地址,需要配合report-table后端,
  apiUrl: 'http://localhost:8080/api/report-table/',
  // 登录token名称
  accessTokenKey: 'accessToken',
  roleKey: {
    // 报表权限前缀
    prefix: 'rt.',
    // 报表管理员权限
    manager: 'rt.*'
  }
})

// ===> routers.js中增加路由
import { ReportMgr, Report } from '@aezocn/report-table'
export default [
    {
        path: '/system',
        name: 'system',
        component: Main,
        meta: {
            icon: 'md-menu',
            title: '系统管理'
        },
        children: [{
            path: 'repor-table-mgr',
            name: 'repor-table-mgr',
            meta: {
                icon: 'md-funnel',
                title: '报表管理'
            },
            component: ReportMgr
        },
        {
            path: 'report-view-preview',
            name: 'ReportViewPreview',
            meta: {
                hideInMenu: true,
                notCache: true,
                title: '动态报表预览'
            },
            component: Report
        }]
    }
]
  • 后端需引入对应Maven包的core和job模块,参考: https://github.com/aezocn/maven-repo/tree/master/cn/aezo/share/reporttable

贡献指南

# 安装环境. node: v10.24.1 (npm v6.14.12)
# 由于使用 .npmrc 指定了镜像,必须通过命令行指定镜像优先级才会高于 .npmrc
npm --registry https://registry.npm.taobao.org install
# npm --registry https://registry.npm.taobao.org install jsonlint --save
# 启动项目(实时编译)
npm run start
# ----- 实时渲染 -----
# 关联到主应用(修改此模块后,主应用实时刷新)
# 本模块执行link,将模块加入到全局
npm link
# 相关主应用执行,link此模块,unlink解除
npm link report-table
# 相关主应用发布之前需要重新安装(防止打包到link的代码)
npm i
# ----- 实时渲染 -----

# 修改版本
# 前端和后端打包的主版本尽量保持一致,如果某一端修复了bug或优化,则可发不成 x.x.x-fix.1 x.x.x-beta.1 x.x.x-release.1

# 打包
npm run build

# 基于Tag进行代码提交
git commit -am 'func|opt|fix ...'
git tag 1.0.0
git push origin 1.0.0

# 基于npm进行代码发布
npm publish --registry https://registry.npmjs.org/
# 基于github发布
./npm-publish-github.sh

# 或者直击启动测试案例
cd examples
npm run dev