w-ui-v1 1.0.91 → 1.0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts CHANGED
@@ -21,6 +21,7 @@ import {menu} from './utils/apis/menu'
21
21
  import request from './utils/http'
22
22
  import nfc from './utils/nfc'
23
23
  import iData from './utils/idata-scan'
24
+ import {getPageKey,getDataTotal} from './utils/apis/pageConfig'
24
25
  const coms: any[] = [
25
26
  wTest,
26
27
  wLogin,
@@ -51,6 +52,8 @@ export const api={
51
52
  request,
52
53
  menu,
53
54
  nfc,
54
- iData
55
+ iData,
56
+ getPageKey,
57
+ getDataTotal
55
58
  }
56
59
  export default install // 这个方法以后再使用的时候可以被vue.use调用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -68,6 +68,13 @@ export function getPageData(queryKey: string, pageNo: number, pageSize: number)
68
68
  })
69
69
  }
70
70
 
71
+ //获取数据总数
72
+ export function getDataTotal(queryKey:string){
73
+ return request({
74
+ url: `/v3/ltmpl/query/count?queryKey=${queryKey}`,
75
+ })
76
+ }
77
+
71
78
  // 获取当前页总条数
72
79
  export function getPageTotal(queryKey: string) {
73
80
  return request({