zth
lijingjia 3 weeks ago
parent f10619db5c
commit 4733e79019

@ -17,7 +17,7 @@
<!-- 列设置 -->
<HColSet
:code="getBindValues.id"
:columns="getBindValues.columns"
:columns="columns"
type="normal"
/>
</div>
@ -152,6 +152,7 @@ export default defineComponent({
'columns-change'
],
setup(props, { attrs, emit, slots, expose }) {
console.log(props)
const tableElRef = ref(null)
const tableData = ref<Recordable[]>([])

@ -426,15 +426,16 @@ const calcColumns = [
//
const fieldFlag = ref(true)
//
console.log(columns)
const calcData = ref([{}])
const [registerTable, { reload, getVxeSelectRows, setLoading, setColumns }] = useTable({
title: '',
api: async (p) => {
//
if (fieldFlag.value) {
updateTableField(setColumns)
fieldFlag.value = false
}
// if (fieldFlag.value) {
// updateTableField(setColumns)
// fieldFlag.value = false
// }
const res: API.DataResult = await PageDataByBooking(p)
calcData.value = [res.data?.dataTotal]
return new Promise((resolve) => {

Loading…
Cancel
Save