Pārlūkot izejas kodu

update:attr-val url、shopee todo

dev
powersir pirms 1 gada
vecāks
revīzija
6e0e774701
3 mainītis faili ar 20 papildinājumiem un 20 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt