@@ -103,4 +104,4 @@ const DetailPlantSection = ({ visible, onCancel, onOk, form, editingKey, readOnl
);
};
-export default DetailPlantSection;
\ No newline at end of file
+export default DetailPlantSection;
diff --git a/src/pages/master/plantSection/component/ListPlantSection.jsx b/src/pages/master/plantSection/component/ListPlantSection.jsx
index f10810a..743b737 100644
--- a/src/pages/master/plantSection/component/ListPlantSection.jsx
+++ b/src/pages/master/plantSection/component/ListPlantSection.jsx
@@ -1,27 +1,39 @@
import React, { useState } from 'react';
import { Button, Col, Row, Space, Input, ConfigProvider, Card } from 'antd';
-import { PlusOutlined, EditOutlined, DeleteOutlined, SearchOutlined, EyeOutlined } from '@ant-design/icons';
+import {
+ PlusOutlined,
+ EditOutlined,
+ DeleteOutlined,
+ SearchOutlined,
+ EyeOutlined,
+} from '@ant-design/icons';
import TableList from '../../../../components/Global/TableList';
-const ListPlantSection = ({
- setActionMode,
- handleEdit,
+const ListPlantSection = ({
+ setActionMode,
+ handleEdit,
handleDelete,
handlePreview,
- getAllPlantSection
+ getAllPlantSection,
+ refreshList,
}) => {
const [searchValue, setSearchValue] = useState('');
- const [formDataFilter, setFormDataFilter] = useState({ search: '' });
+ const [formDataFilter, setFormDataFilter] = useState({ criteria: '' });
const [trigerFilter, setTrigerFilter] = useState(false);
const columns = [
{
title: 'No',
- dataIndex: 'key',
- key: 'key',
- width: '5%',
+ dataIndex: 'sub_section_id',
+ key: 'sub_section_id',
+ width: '10%',
render: (text, record, index) => index + 1,
},
+ {
+ title: 'Nama Sub Section',
+ dataIndex: 'sub_section_name',
+ key: 'sub_section_name',
+ },
{
title: 'Kode Plant',
dataIndex: 'kode_plant',
@@ -45,24 +57,41 @@ const ListPlantSection = ({
{
title: 'Aksi',
key: 'action',
+ width: '15%',
render: (_, record) => (