w-ui-v1 1.0.77 → 1.0.79
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 +1 -1
- package/w-table/w-table.vue +6 -1
package/package.json
CHANGED
package/w-table/w-table.vue
CHANGED
|
@@ -26,6 +26,10 @@ const props = defineProps({
|
|
|
26
26
|
mainCode:{
|
|
27
27
|
type: String,
|
|
28
28
|
default: ''
|
|
29
|
+
},
|
|
30
|
+
query:{
|
|
31
|
+
type: String,
|
|
32
|
+
default: ''
|
|
29
33
|
}
|
|
30
34
|
})
|
|
31
35
|
const query = ref('')
|
|
@@ -43,6 +47,7 @@ const pageData = ref<{
|
|
|
43
47
|
onLoad((option: any) => {
|
|
44
48
|
sourceId.value = props.sourceId || option.sourceId
|
|
45
49
|
mainCode.value = props.mainCode ||option.mainCode
|
|
50
|
+
query.value=props.query || option.query
|
|
46
51
|
uni.setNavigationBarTitle({ title: option.pageTitle })
|
|
47
52
|
getPageConfig()
|
|
48
53
|
})
|
|
@@ -89,7 +94,7 @@ async function queryList(pageNo: number, pageSize: number) {
|
|
|
89
94
|
// paging.value.reload() // 手动触发加载
|
|
90
95
|
// })
|
|
91
96
|
try {
|
|
92
|
-
|
|
97
|
+
console.log(sourceId.value, mainCode.value,query.value)
|
|
93
98
|
const key = await getPageKey(sourceId.value, mainCode.value,query.value)// 获取key
|
|
94
99
|
const data = await getPageData(key.data?.key, pageNo, pageSize)// 获取数据
|
|
95
100
|
// const count = await getPageTotal(key.data?.key)// 获取总数
|