1.0.21 • Published 2 months ago

foreasydata v1.0.21

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

EasyData

EasyData for Web Utils.

Install

  npm i easydata //or yarn add easydata

CDN

  <script src="https://unpkg.com/foreasydata/dist/index.min.js"></script>
  <script>

  </script>

Usage

  import EasyData from 'foreasydata'
  let ez = new EasyData('模板编码')
  • init() 初始化业务模型
await ez.init()
  • add() 新增数据
await ez.add()
  • del() 删除数据
await ez.del()
  • update() 更新数据
await ez.update()
  • getList() 获取列表数据
await ez.getList()
  • getDetail(id) 获取详情
    • id:主键ID
await ez.getDetail(1)
  • initStats() 初始化统计模型
await ez.initStats()
  • getStats(params={}) 获取统计数据
    • params:查询参数
await ez.getStats({startDate:'2023-01-01',endDate:'2023-12-31'})
1.0.21

2 months ago

1.0.20

2 months ago

1.0.19

2 months ago

1.0.18

2 months ago

1.0.17

2 months ago

1.0.16

3 months ago

1.0.15

3 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago