|
@ -59,15 +59,13 @@ import { |
|
|
onBackPress, |
|
|
onBackPress, |
|
|
onNavigationBarButtonTap |
|
|
onNavigationBarButtonTap |
|
|
} from '@dcloudio/uni-app' |
|
|
} from '@dcloudio/uni-app' |
|
|
// 定义 props |
|
|
|
|
|
const props = defineProps({ |
|
|
const props = defineProps({ |
|
|
// 如果有 props 需要定义 |
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// 定义 emits |
|
|
const emit = defineEmits(['someEvent']); |
|
|
const emit = defineEmits(['someEvent']); // 如果有自定义事件需要定义 |
|
|
|
|
|
|
|
|
|
|
|
// 响应式数据 |
|
|
|
|
|
const recordList = ref([]); |
|
|
const recordList = ref([]); |
|
|
const pageNo = ref(1); |
|
|
const pageNo = ref(1); |
|
|
const pageSize = ref(10); |
|
|
const pageSize = ref(10); |
|
@ -94,7 +92,7 @@ const comMessage = ref(null); |
|
|
const scanPopup = ref(null); |
|
|
const scanPopup = ref(null); |
|
|
const recordList = ref(null); |
|
|
const recordList = ref(null); |
|
|
|
|
|
|
|
|
// 生命周期函数 |
|
|
|
|
|
onLoad((option) => { |
|
|
onLoad((option) => { |
|
|
title.value = option.title; |
|
|
title.value = option.title; |
|
|
}); |
|
|
}); |
|
@ -137,7 +135,6 @@ onNavigationBarButtonTap((e) => { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// 方法 |
|
|
|
|
|
const setQueryParam = () => { |
|
|
const setQueryParam = () => { |
|
|
const filterParams = []; |
|
|
const filterParams = []; |
|
|
|
|
|
|
|
|