危险品显示问题

zth
lijingjia 2 weeks ago
parent 347ed2da5b
commit d128f8b116

@ -12,7 +12,7 @@
<slot name="formHeader"></slot>
<template v-for="schema in getSchema" :key="schema.field">
<FormItem
v-show="getFormItemVisible(schema)"
v-if="getFormItemVisible(schema)"
:is-advanced="fieldsIsAdvancedMap[schema.field]"
:table-action="tableAction"
:form-action-type="formActionType"

@ -107,7 +107,7 @@
</template>
<script lang="ts">
import type { BasicTableProps, TableActionType, SizeType, ColumnChangeParam } from './types/table'
import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect, onMounted } from 'vue'
import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect, onMounted, watch } from 'vue'
import { Table, Pagination } from 'ant-design-vue'
import { BasicForm, useForm } from '/@/components/Form/index'
import { PageWrapperFixedHeightKey } from '/@/components/Page'
@ -180,6 +180,7 @@ export default defineComponent({
const [registerForm, formActions] = useForm()
const getProps = computed(() => {
console.log(props.tableComponent)
return { ...props, ...unref(innerPropsRef) } as BasicTableProps
})
@ -191,7 +192,6 @@ export default defineComponent({
"'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)",
)
})
const { getLoading, setLoading } = useLoading(getProps)
const {
getPaginationInfo,
@ -362,6 +362,7 @@ export default defineComponent({
const vxeSetId = ref('0')
// vxe
const getVxeColSetData = () => {
console.log(props)
if (props.id) {
getColumnSetInfoByModule({ permissionId: permissionsInfo().permissionId, columnNo: props.id }).then(res => {
const { data } = res
@ -450,9 +451,9 @@ export default defineComponent({
})
setColumns(data)
}
onMounted(() => {
getVxeColSetData()
})
// onMounted(() => {
// getVxeColSetData()
// })
//
const initColSet = () => {

@ -162,4 +162,9 @@ export const basicProps = {
type: Boolean,
default: false
},
// basicTable 使用的表格类型 antd TB 或 vxe
tableComponent: {
type: String,
default: 'normal'
}
}

@ -131,7 +131,7 @@
const status = ref(0)
//
const save = async (feeInfo) => {
const postData = await validate()
const postData = await getFieldsValue()
if (feeInfo && feeInfo.length) {
postData['details'] = [...feeData.value, ...feeInfo]
} else {

@ -88,7 +88,7 @@ const props = defineProps({
queryData: {
type: Object,
default: {},
},
}
})
//
function addBooking() {

@ -434,12 +434,6 @@ const calcData = ref([{}])
const [registerTable, { reload, getVxeSelectRows, setLoading }] = useTable({
title: '',
api: async (p) => {
// queryData.value = p
//
// if (fieldFlag.value) {
// updateTableField(setColumns)
// fieldFlag.value = false
// }
const res: API.DataResult = await PageDataByBooking(p)
calcData.value = [res.data?.dataTotal]
return new Promise((resolve) => {
@ -523,7 +517,7 @@ const [registerTable, { reload, getVxeSelectRows, setLoading }] = useTable({
immediate: false,
tableComponent: 'vxe',
autoHeight: tbHeight,
id: '0',
id: '011',
actionColumn: {
width: 60,
title: '操作',

Loading…
Cancel
Save