| | |
| | | <!-- |
| | | * @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> |
| | |
| | | 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 { useI18n } from '/@/hooks/web/useI18n'; |
| | |
| | | showTableSetting: false, |
| | | bordered: true, |
| | | showIndexColumn: false, |
| | | pagination: { pageSize: 10 }, |
| | | actionColumn: { |
| | | width: 80, |
| | | title: '操作', |
| | |
| | | slots: { customRender: 'action' }, |
| | | }, |
| | | }); |
| | | defineExpose({ |
| | | reload |
| | | }); |
| | | // watch( |
| | | // () => routeConfig.currentItem.ID, |
| | | // (newVal, oldVal) => { |
| | | // if (newVal != oldVal) { |
| | | // nextTick(() => { |
| | | // reload(); |
| | | // }); |
| | | // } |
| | | // }, |
| | | // { deep: true, immediate: true }, |
| | |
| | | * @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(); |
| | | }); |
| | | } |