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

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

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