|
@@ -24,7 +24,7 @@ const advance = {
|
|
|
};
|
|
|
const formItemValues = [
|
|
|
{
|
|
|
- name: '是否PID图和平面图',
|
|
|
+ name: '是否PID图或平面图',
|
|
|
id: 'DDSelectField_b8169258-d569-442e-a7b0-e2bd171aaac2',
|
|
|
type: 'DDSelectField',
|
|
|
value: [],
|
|
@@ -85,27 +85,6 @@ const CreateModal = ({
|
|
|
},
|
|
|
);
|
|
|
|
|
|
- // function dwgUpload() {
|
|
|
- // let uploadDwg = document.getElementById('uploadDwg');
|
|
|
- // uploadDwg.click();
|
|
|
- // }
|
|
|
-
|
|
|
- // function uploadDwg(event) {
|
|
|
- // const selectedFile = event.target.files[0];
|
|
|
- // if (selectedFile) {
|
|
|
- // setUpLoading(true);
|
|
|
- // ZwCloud2D.ZwDataProcessor.uploadDwg(selectedFile).then((res) => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // const oldPath = form.getFieldValue('cad_path');
|
|
|
- // const cad_path = oldPath
|
|
|
- // ? oldPath + ',' + res.data.path
|
|
|
- // : res.data.path;
|
|
|
- // form.setFieldsValue({ cad_path });
|
|
|
- // }
|
|
|
- // setUpLoading(false);
|
|
|
- // });
|
|
|
- // }
|
|
|
- // }
|
|
|
const UploadProps = {
|
|
|
action: `https://cad.greentech.com.cn/sdk/doc/upload`,
|
|
|
multiple: true,
|
|
@@ -171,7 +150,16 @@ const CreateModal = ({
|
|
|
label="所属项目:"
|
|
|
rules={[{ required: true }]}
|
|
|
>
|
|
|
- <Select options={projectList} />
|
|
|
+ <Select
|
|
|
+ showSearch
|
|
|
+ allowClear
|
|
|
+ options={projectList}
|
|
|
+ filterOption={(input, option) =>
|
|
|
+ (option?.label ?? '')
|
|
|
+ .toLowerCase()
|
|
|
+ .includes(input.toLowerCase())
|
|
|
+ }
|
|
|
+ />
|
|
|
</Form.Item>
|
|
|
<Form.Item
|
|
|
name="dir_id"
|