w-ui-v1 1.0.72 → 1.0.74

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -22,9 +22,13 @@ const props = defineProps({
22
22
  sourceId: {
23
23
  type: String,
24
24
  default: ''
25
+ },
26
+ query:{
27
+ type:Object,
28
+ default: null
25
29
  }
26
30
  })
27
- const query = ref('')
31
+ const query = ref(null)
28
32
  const sourceId = ref('')
29
33
  const radiovalue = ref()
30
34
  const checkboxvalue = ref([])
@@ -34,6 +38,7 @@ const pageData = ref<{
34
38
  }>({ criterias: [], buttons: [] })
35
39
  onLoad((option: any) => {
36
40
  sourceId.value = props.sourceId || option.sourceId
41
+ query.value=props.query || option.query?JSON.parse(option.query):null
37
42
  getPageConfig()
38
43
  //监听页
39
44
  uni.$on('checkeDData', function (data: any) {
@@ -116,7 +121,7 @@ async function queryList(pageNo: number, pageSize: number) {
116
121
  // })
117
122
  try {
118
123
 
119
- const key = await getPageKey(sourceId.value, query.value)// 获取key
124
+ const key = await getPageKey(sourceId.value, '',query.value)// 获取key
120
125
  const data = await getPageData(key.data?.key, pageNo, pageSize)// 获取数据
121
126
  // const count = await getPageTotal(key.data?.key)// 获取总数
122
127
  paging.value.complete && paging.value.complete(data.data.entities)