提交 6ec1598a authored 作者: huaxinzhu's avatar huaxinzhu

修改商品类目接口优化01

上级 4a3287a7
......@@ -113,8 +113,7 @@
</template>
<script>
import { GetCategory, GetFreight, UploadImg } from '@/api/module/goods'
import { getAreaList } from '@/api/module/retreat/address';
import { NewGetCategory, GetFreight, UploadImg } from '@/api/module/goods'
import { getBrandsInf } from '@/api/module/brand/brand'
export default {
name: 'goods',
......@@ -199,7 +198,7 @@
lazy: true,
lazyLoad: this.lazyLoad,
value: "id",
label: 'name',
label: 'label',
leaf: 'leaf'
},
......@@ -240,7 +239,7 @@
let limboNode = {
pid: 0
};
getAreaList(limboNode).then( res=> {
NewGetCategory(limboNode).then( res=> {
if(res.data) {
this.areaOptions = res.data;
}else {
......@@ -263,7 +262,7 @@
this.SSQGoodsList = [];
this.editGoodsTypeDialog = true;
this.SSQGoodsList = this.goodsInfoForm.categoryList
// console.log(222,this.SSQGoodsList);
console.log('点击修改类目数据:',this.SSQGoodsList);
},
lazyLoad(node, resolve) {
//debugger
......@@ -283,7 +282,7 @@
if(level === 2) {
limboNode = { pid: node.value };
}
getAreaList(limboNode).then(res => {
NewGetCategory(limboNode).then(res => {
let result = {};
if (level === 0) {
result = res.data
......
......@@ -76,7 +76,6 @@
</template>
<script>
import { getAreaList } from '@/api/module/retreat/address';
import { NewGetCategory,addGoods,getGoodsNew,updateGoodsNew } from '@/api/module/goods';
import Goodsinfomation from './components/goodsinfomation';
import GoodsSpecifications from './components/goodsspecifications';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论