From a41c87a94a0b52688420a7af3b242bc771628e28 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期五, 19 七月 2024 17:30:32 +0800 Subject: [PATCH] 登录logo更新 --- src/views/tigerprojects/mes/eng/route/components/PostProps.vue | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/views/tigerprojects/mes/eng/route/components/PostProps.vue b/src/views/tigerprojects/mes/eng/route/components/PostProps.vue index 9596681..1c101d6 100644 --- a/src/views/tigerprojects/mes/eng/route/components/PostProps.vue +++ b/src/views/tigerprojects/mes/eng/route/components/PostProps.vue @@ -1,16 +1,16 @@ <!-- * @Description: file content - * @Author: your name + * @Author: Ben Lin * @version: * @Date: 2024-06-11 21:07:04 * @LastEditors: your name - * @LastEditTime: 2024-06-12 23:51:52 + * @LastEditTime: 2024-06-13 08:55:09 --> <!-- * @Description: 鍙充晶灞炴�ч潰鏉挎帶浠� 琛ㄥ崟灞炴�ч潰鏉� --> <template> - <div class="mt-3"> + <div class="m-1"> <BasicTable @register="registerTable"> <template #toolbar> <a-button type="primary" @click="handleCreate" preIcon="add_02|svg" :size="size"> 鏂板 </a-button> @@ -31,15 +31,15 @@ </BasicTable> </div> - <NormalModal @register="register" @success="handleSuccess"></NormalModal> + <GeneralModal @register="register" @success="handleSuccess"></GeneralModal> </template> <script lang="ts" setup> import { notification } from 'ant-design-vue'; import { BasicTable, TableAction, useTable } from '/@/components/Table'; import { SizeType } from 'ant-design-vue/es/config-provider'; -import { onMounted, ref, unref, watch } from 'vue'; +import { nextTick, onMounted, ref, unref, watch } from 'vue'; import { useModal } from '/@/components/Modal'; -import NormalModal from '/@/views/components/NormalModal.vue'; +import GeneralModal from '/@/views/components/GeneralModal.vue'; import { useI18n } from '/@/hooks/web/useI18n'; import { DeleteEntity, DeleteWhere, SaveEntity, getEntity, getListByPage } from '/@/api/tigerapi/system'; import { useRouteDesignState } from '../hooks/useRouteDesignState'; @@ -72,6 +72,7 @@ showTableSetting: false, bordered: true, showIndexColumn: false, + pagination: { pageSize: 10 }, actionColumn: { width: 80, title: '鎿嶄綔', @@ -79,11 +80,16 @@ slots: { customRender: 'action' }, }, }); +defineExpose({ + reload +}); // watch( // () => routeConfig.currentItem.ID, // (newVal, oldVal) => { // if (newVal != oldVal) { -// reload(); +// nextTick(() => { +// reload(); +// }); // } // }, // { deep: true, immediate: true }, @@ -127,6 +133,7 @@ ], tableName: 'MES_POSITION', rowKey: 'POST_CODE', + searchInfo: {TABLE_NAME: 'MES_POSITION'} }); } @@ -136,7 +143,7 @@ * @return {*} */ function handleDelete(record: Recordable) { - DeleteWhere(`POST_CODE = '${record.POST_CODE}'`, 'MES_ROUTE_NODE_POST').then((res) => { + DeleteWhere(`POST_CODE = '${record.POST_CODE}' And NODE_ID = '${record.NODE_ID}'`, 'MES_ROUTE_NODE_POST').then((res) => { reload(); }); } -- Gitblit v1.9.3