全局下拉修改
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Modal, Form, Input, Select, Button, Upload, message, Row, Col, Descriptions } from 'antd';
|
||||
import { Modal, Form, Input, Button, Upload, message, Row, Col, Descriptions } from 'antd';
|
||||
import type { UploadProps } from 'antd';
|
||||
import { UploadOutlined } from '@ant-design/icons';
|
||||
import { uploadFile, attachmentskView, attachmentsAdd, attachmentsEdit } from '../services';
|
||||
|
@ -62,18 +62,6 @@ const OtherAttachmentsTab: React.FC<Props> = (props) => {
|
||||
setIsViewMode(false);
|
||||
setFormVisible(true);
|
||||
};
|
||||
// 作废 修改
|
||||
const handleEdit = (record: attachmentsAdd) => {
|
||||
setEditingRecord(record);
|
||||
setIsViewMode(false);
|
||||
setFormVisible(true);
|
||||
};
|
||||
// 作废 查看
|
||||
const handleView = (record: attachmentsAdd) => {
|
||||
setEditingRecord(record);
|
||||
setIsViewMode(true);
|
||||
setFormVisible(true);
|
||||
};
|
||||
//是否作废
|
||||
const handleObsoleteChange = async (checked: boolean, id:string) => {
|
||||
// 调用你的作废接口
|
||||
@ -128,20 +116,6 @@ const OtherAttachmentsTab: React.FC<Props> = (props) => {
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
// ...(viewType ? [] : [
|
||||
// {
|
||||
// title: 'page.workbench.attachments.action',
|
||||
// dataIndex: 'option',
|
||||
// width: 120,
|
||||
// render: (_: any, record: attachmentsAdd) => (
|
||||
// <>
|
||||
// <a style={{ marginRight: 8 }} onClick={() => handleView(record)}>查看</a>
|
||||
// <a onClick={() => handleEdit(record)}>修改</a>
|
||||
// </>
|
||||
// ),
|
||||
// },
|
||||
// ]),
|
||||
];
|
||||
return (
|
||||
<div style={{ padding: '0 30px 0 0' }}>
|
||||
|
@ -1,18 +1,8 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Modal, Form, Input, message, Row, Col, Descriptions } from 'antd';
|
||||
import { getDictList } from '@/servers/api/dicts';
|
||||
import { coscoSupplierUserView, coscoSupplierUserAdd, coscoSupplierUserEdit } from '../services';
|
||||
import { getRegionTree } from '@/servers/api/register';
|
||||
import type { DictItem } from '@/servers/api/dicts';
|
||||
|
||||
// 地区字段转换
|
||||
function convertToCascaderOptions(data: any[]): any[] {
|
||||
return data.map(item => ({
|
||||
label: item.name,
|
||||
value: item.id,
|
||||
children: item.children && item.children.length > 0 ? convertToCascaderOptions(item.children) : undefined,
|
||||
}));
|
||||
}
|
||||
|
||||
interface props {
|
||||
visible: boolean;
|
||||
onOk: () => void;
|
||||
|
@ -7,7 +7,6 @@ import { uploadFile } from '../services';
|
||||
import type { UploadFile } from 'antd/es/upload/interface';
|
||||
import { getDictList } from '@/servers/api/dicts';
|
||||
import type { DictItem } from '@/servers/api/dicts';
|
||||
const { Option } = Select;
|
||||
interface ForeignFormProps {
|
||||
form: any;
|
||||
countdown: number;
|
||||
|
Reference in New Issue
Block a user