Commit b875ac75 authored by LeeJiancong's avatar LeeJiancong

'新增需求单回显'

parent 33df7ad3
export interface MemberType {
id: number;
typeName: string;
}
export interface BusinessType {
id: number;
typeName: string;
}
export interface UseType {
memberType: MemberType[];
businessType: BusinessType[];
}
export interface UserRegister {
useType: UseType;
}
export interface ShopInfo {
id: number;
name: string;
type: number;
environment: number;
logoUrl: string;
describe?: any;
state: number;
url: string;
}
export interface Web {
shopInfo: ShopInfo[];
}
export interface CountryList {
name: string;
key: string;
icon: string;
}
export interface Global {
siteId: number;
siteUrl: string;
logo: string;
countryList: CountryList[];
}
export interface RootObject {
userRegister: UserRegister;
web: Web;
global: Global;
}
\ No newline at end of file
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
* @Date: 2020-08-28 10:07:45 * @Date: 2020-08-28 10:07:45
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com * @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-08-29 10:16:45 * @LastEditTime: 2020-09-01 15:45:57
*/ */
import React, { Component, useState, useEffect } from 'react'; import React, { Component, useState, useEffect } from 'react';
import { Modal, Button, Form, Radio, Tabs, Input, Select,Checkbox } from 'antd' import { Modal, Button, Form, Radio, AutoComplete,Tabs, Input, Select,Checkbox } from 'antd'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
const { TabPane } = Tabs const { TabPane } = Tabs
const { Option } = Select const { Option } = Select
...@@ -68,10 +68,14 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -68,10 +68,14 @@ const comfirmDialog: React.FC<Params> = (props) => {
const renderTabPanchildren = (item: any) => { const renderTabPanchildren = (item: any) => {
console.log('子项',item) console.log('子项',item)
return ( return (
<> <>
{ {
item.attributeList.map((attrItem:any) => { item.attributeList.map((attrItem:any) => {
const options = attrItem.attributeValueList.map((item: any) => ({
value: item.value
}))
return ( return (
<> <>
{ {
...@@ -84,7 +88,15 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -84,7 +88,15 @@ const comfirmDialog: React.FC<Params> = (props) => {
message: '此项为必填项' message: '此项为必填项'
}]} }]}
> >
<Select <AutoComplete
style={{ width: 200 }}
options={options}
placeholder="选择或输入"
filterOption={(inputValue, option) =>
option.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1
}
/>
{/* <Select
placeholder="请选择" placeholder="请选择"
allowClear allowClear
onChange={(v)=>onChange(v, attrItem)} onChange={(v)=>onChange(v, attrItem)}
...@@ -94,7 +106,7 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -94,7 +106,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
<Option key={item.id} value={item.id}>{item.value}</Option> <Option key={item.id} value={item.id}>{item.value}</Option>
)) ))
} }
</Select> </Select> */}
</Form.Item> </Form.Item>
} }
{ {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-08-27 16:27:53 * @Date: 2020-08-27 16:27:53
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com * @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-08-29 14:29:40 * @LastEditTime: 2020-09-01 10:08:44
*/ */
import { ColumnType } from 'antd/lib/table/interface' import { ColumnType } from 'antd/lib/table/interface'
export const equiryColumns: ColumnType<any>[] = [ export const equiryColumns: ColumnType<any>[] = [
...@@ -66,7 +66,7 @@ export const equiryColumns: ColumnType<any>[] = [ ...@@ -66,7 +66,7 @@ export const equiryColumns: ColumnType<any>[] = [
] ]
export const dockingList: ColumnType<any>[] = [ export const dockingColumn: ColumnType<any>[] = [
{ {
title: '序号', title: '序号',
dataIndex: 'id', dataIndex: 'id',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment