提交 fac5bcd8 authored 作者: 张光耀's avatar 张光耀

添加,商品一级分类,二级分类,品名管理

上级 fc676668
......@@ -25,7 +25,7 @@ import java.util.Map;
* @date 2019-10-15 15:06:31
*/
@Controller
@RequestMapping("tbcfgoodstwotype")
@RequestMapping(value = "tbcfgoodstwotype",produces = "application/json; charset=utf-8")
public class TbCfGoodstwotypeController {
@Autowired
private TbCfGoodstwotypeService tbCfGoodstwotypeService;
......
package com.platform.controller;
import com.alibaba.fastjson.JSONArray;
import com.platform.entity.TbCfGoodstypeEntity;
import com.platform.service.TbCfGoodstypeService;
import com.platform.utils.PageUtils;
......@@ -23,8 +24,9 @@ import java.util.Map;
* @author lipengjun
* @date 2019-10-08 16:34:40
*/
@Controller
@RequestMapping("tbcfgoodstype")
@RequestMapping(value = "tbcfgoodstype",produces = "application/json; charset=utf-8")
public class TbCfGoodstypeController {
@Autowired
......
......@@ -44,8 +44,7 @@
</Form-item>
<Form-item label="商品分类" prop="itemCategory">
<i-select placeholder="请选择" v-model="tbCfStationItem.itemCategory">
<i-option
v-for="(el,i) in Goodstype" :key = 'i'
<i-option v-for="(el,i) in Goodstype" :key = 'i'
:value="el.goodstypeId">{{el.goodstypeTitle}}</i-option>
</i-select>
......
......@@ -117,13 +117,14 @@ let vm = new Vue({
var that = this
$.get('../tbcfgoodstype/queryAll', function (res) {
// console.log(that,"this");
that.Goodstype = JSON.parse(res).list;
that.Goodstype = res.list;
// console.log(that.Goodstype);
});
$.get('../tbcfgoodstwotype/queryAll', function (res) {
// console.log(that,"this");
that.GoodstypeTwo = JSON.parse(res).list;
// console.log(that.Goodstype);
that.GoodstypeTwo = res.list;
// console.log(res);
});
}
});
\ No newline at end of file
......@@ -114,7 +114,7 @@ let vm = new Vue({
var that = this
$.get('../tbcfgoodstype/queryAll',function (res) {
// console.log(that,"this");
that.Goodstype = JSON.parse(res).list;
that.Goodstype = res.list;
// console.log(that.Goodstype);
})
}
......
......@@ -128,8 +128,10 @@ let vm = new Vue({
created(){
var that = this
$.get('../tbcfgoodstype/queryAll',function (res) {
//console.log("成功");
// console.log(that,"this");
that.Goodstype = JSON.parse(res).list;
//console.log(res,"BBB");
that.Goodstype = res.list;
// console.log(that.Goodstype);
})
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论