Преглед изворни кода

update:attr-val url、shopee todo

dev
powersir пре 11 месеци
родитељ
комит
6e0e774701
3 измењених фајлова са 20 додато и 20 уклоњено
  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 Прегледај датотеку

@@ -54,6 +54,8 @@ const treeData = [

export default () => {

//TODO: batch update title、price、desc

const [dataSource, setDataSource] = useState<SHProductVO[]>([]);
const [searchFrom] = Form.useForm();
const [searchState, setSearchState] = useSetState<SHProductPageReqVO>({});


+ 17
- 19
src/pages/goods/main/attribute/index.tsx Прегледај датотеку

@@ -19,25 +19,23 @@ export default () => {
const colorsRef = 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) => {
setCurrentKey(key as TabKey);


+ 1
- 1
src/request/service/goods-attr-val.ts Прегледај датотеку

@@ -1,7 +1,7 @@
import request from '@/request';
import { GoodsAttrValVO, AttrValNameEnVerifyParam } from '@/models';

const BASE_URL = '/admin-api/main/attr';
const BASE_URL = '/admin-api/main/attr-val';

export default {
// 更新主属性


Loading…
Откажи
Сачувај