@@ -54,6 +54,8 @@ const treeData = [ | |||||
export default () => { | export default () => { | ||||
//TODO: batch update title、price、desc | |||||
const [dataSource, setDataSource] = useState<SHProductVO[]>([]); | const [dataSource, setDataSource] = useState<SHProductVO[]>([]); | ||||
const [searchFrom] = Form.useForm(); | const [searchFrom] = Form.useForm(); | ||||
const [searchState, setSearchState] = useSetState<SHProductPageReqVO>({}); | const [searchState, setSearchState] = useSetState<SHProductPageReqVO>({}); | ||||
@@ -19,25 +19,23 @@ export default () => { | |||||
const colorsRef = useRef(); | const colorsRef = useRef(); | ||||
const sizeRef = useRef(); | const sizeRef = useRef(); | ||||
const items = useMemo(() => { | |||||
return [ | |||||
{ | |||||
key: '1', | |||||
label: '商品分类', | |||||
children: (<Classify ref={classifyRef} />), | |||||
}, | |||||
{ | |||||
key: '2', | |||||
label: '颜色设置', | |||||
children: (<Colors ref={colorsRef} />), | |||||
}, | |||||
{ | |||||
key: '3', | |||||
label: '尺码设置', | |||||
children: (<Size ref={sizeRef} />), | |||||
}, | |||||
]; | |||||
}, []); | |||||
const items = [ | |||||
{ | |||||
key: '1', | |||||
label: '商品分类', | |||||
children: (<Classify ref={classifyRef} />), | |||||
}, | |||||
{ | |||||
key: '2', | |||||
label: '颜色设置', | |||||
children: (<Colors ref={colorsRef} />), | |||||
}, | |||||
{ | |||||
key: '3', | |||||
label: '尺码设置', | |||||
children: (<Size ref={sizeRef} />), | |||||
}, | |||||
]; | |||||
const onChange = (key: string) => { | const onChange = (key: string) => { | ||||
setCurrentKey(key as TabKey); | setCurrentKey(key as TabKey); | ||||
@@ -1,7 +1,7 @@ | |||||
import request from '@/request'; | import request from '@/request'; | ||||
import { GoodsAttrValVO, AttrValNameEnVerifyParam } from '@/models'; | import { GoodsAttrValVO, AttrValNameEnVerifyParam } from '@/models'; | ||||
const BASE_URL = '/admin-api/main/attr'; | |||||
const BASE_URL = '/admin-api/main/attr-val'; | |||||
export default { | export default { | ||||
// 更新主属性 | // 更新主属性 | ||||