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

修改商品类目接口优化01

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