w-ui-v1 1.0.73 → 1.0.75

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.73",
3
+ "version": "1.0.75",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -25,10 +25,10 @@ const props = defineProps({
25
25
  },
26
26
  query:{
27
27
  type:Object,
28
- default: null
28
+ default: ''
29
29
  }
30
30
  })
31
- const query = ref(null)
31
+ const query = ref('')
32
32
  const sourceId = ref('')
33
33
  const radiovalue = ref()
34
34
  const checkboxvalue = ref([])
@@ -37,8 +37,9 @@ const pageData = ref<{
37
37
  buttons: string[]
38
38
  }>({ criterias: [], buttons: [] })
39
39
  onLoad((option: any) => {
40
+ console.log(option)
40
41
  sourceId.value = props.sourceId || option.sourceId
41
- query.value=props.query || option.query?JSON.parse(option.query):null
42
+ query.value=props.query || option.query?JSON.parse(option.query):''
42
43
  getPageConfig()
43
44
  //监听页
44
45
  uni.$on('checkeDData', function (data: any) {
@@ -121,7 +122,7 @@ async function queryList(pageNo: number, pageSize: number) {
121
122
  // })
122
123
  try {
123
124
 
124
- const key = await getPageKey(sourceId.value, query.value)// 获取key
125
+ const key = await getPageKey(sourceId.value, '',query.value)// 获取key
125
126
  const data = await getPageData(key.data?.key, pageNo, pageSize)// 获取数据
126
127
  // const count = await getPageTotal(key.data?.key)// 获取总数
127
128
  paging.value.complete && paging.value.complete(data.data.entities)