Browse Source

update:attr-val url、shopee todo

dev
powersir 1 year ago
parent
commit
6e0e774701
3 changed files with 20 additions and 20 deletions
  1. +2
    -0
      src/pages/custom/platform-product/shopee/index.tsx
  2. +17
    -19
      src/pages/goods/main/attribute/index.tsx
  3. +1
    -1
      src/request/service/goods-attr-val.ts

+ 2
- 0
src/pages/custom/platform-product/shopee/index.tsx View File

@@ -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>({});


+ 17
- 19
src/pages/goods/main/attribute/index.tsx View File

@@ -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
- 1
src/request/service/goods-attr-val.ts View File

@@ -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 {
// 更新主属性 // 更新主属性


Loading…
Cancel
Save