diff --git a/src/components/dashboard/Edfs-table/index.vue b/src/components/dashboard/Edfs-table/index.vue index 80a8aff..345f230 100644 --- a/src/components/dashboard/Edfs-table/index.vue +++ b/src/components/dashboard/Edfs-table/index.vue @@ -17,6 +17,7 @@ @selection-change="handleSelectionChange" class="edfs-table" :span-method="spanMethod" + @sort-change="handleScrollChange" > @@ -59,6 +60,7 @@ const emit = defineEmits<{ // 'page-size-change': [pageSize: number] 'page-current-change': [currentPage: number] 'selection-change': [selection: any[]] + 'on-scroll-change':[data:any[]] }>() function onCurrentChange(currentRow: any, oldCurrentRow: any) { @@ -75,6 +77,10 @@ function handleSelectionChange(selection: any[]) { emit('selection-change', selection) } +function handleScrollChange(data:any[]) { + emit('on-scroll-change',data) +} + // 分页 const pageSize = ref() diff --git a/src/pages/deviceInfo/components/DeliveryInfo.vue b/src/pages/deviceInfo/components/DeliveryInfo.vue index dd09b63..39c4eec 100644 --- a/src/pages/deviceInfo/components/DeliveryInfo.vue +++ b/src/pages/deviceInfo/components/DeliveryInfo.vue @@ -9,7 +9,7 @@ :options="customerList" placeholder="请选择出库流向" keyTag="id" - :disabled="action === 'view' || !isShowSaveButton" + :disabled="action === 'view' " labelTag="name" valueTag="id" :isShowLabel="false" @@ -19,7 +19,7 @@
设备价格:
@@ -31,7 +31,7 @@ type="textarea" v-model="params.description" placeholder="请输入备注" - :disabled="action === 'view' || !isShowSaveButton" + :disabled="action === 'view' " :autosize="{ minRows: 3, maxRows: 4 }" /> @@ -41,7 +41,7 @@ type="primary" class="save-button" @click="onSave" - v-if="isShowSaveButton" + v-if="action != 'view'" /> @@ -105,6 +105,7 @@ async function onSave() { const res = await storageOutDevice(options) if (isResError(res)) return + message.success('出口成功') emit('onSave') } diff --git a/src/pages/deviceInfo/index.vue b/src/pages/deviceInfo/index.vue index 428f3d9..fec95f1 100644 --- a/src/pages/deviceInfo/index.vue +++ b/src/pages/deviceInfo/index.vue @@ -23,6 +23,7 @@ :page-size="queryParams.pageSize" row-class-name="row" @pageCurrentChange="handleJump" + @onScrollChange="onScrollChange" >