Ben Lin
2024-06-07 aa0bc81d06736cc1a1bd210dde61f57736585d43
src/views/tigerprojects/bas/mesline/index.vue
@@ -27,25 +27,20 @@
    <MeslineDrawer @register="registerDrawer" @success="handleSuccess" />
  </div>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
<script lang="ts" setup>
  import { BasicTable, useTable, TableAction } from '/@/components/Table';
  import { useDrawer } from '/@/components/Drawer';
  import MeslineDrawer from './MeslineDrawer.vue';
  import { columns, searchFormSchema } from './mesline.data';
  import { DeleteLine, getMeslineListByPage } from '../../../../api/tigerapi/bas/mesline';
  import { DeleteEntity, getListByPage } from '/@/api/tigerapi/system';
  export default defineComponent({
    name: 'MeslineManagement',
    components: { BasicTable, MeslineDrawer, TableAction },
    setup() {
      const [registerDrawer, { openDrawer }] = useDrawer();
      const [registerTable, { reload }] = useTable({
        title: '产线列表',
        api: getMeslineListByPage,
    api: getListByPage,
    searchInfo: { TABLE_NAME: 'MES_LINE' },
        columns,
        formConfig: {
          labelWidth: 120,
@@ -78,7 +73,7 @@
      function handleDelete(record: Recordable) {
        console.log(record);
        //删除产线
        const apiAction = DeleteLine(record);
    const apiAction = DeleteEntity(record, 'MES_LINE');
        apiAction.then((action) => {
          if (action.IsSuccessed) {
            reload();
@@ -89,15 +84,4 @@
      function handleSuccess() {
        reload();
      }
      return {
        registerTable,
        registerDrawer,
        handleCreate,
        handleEdit,
        handleDelete,
        handleSuccess,
      };
    },
  });
</script>