Commit 501da4b8 authored by chenfenglei's avatar chenfenglei

云集优化

parent 4d32b7ea
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<script> <script>
import {getTeacherListApi,getClassDetailApi,editClassApi,addClassApi,getPeriodsApi,getGoodsListApi,getPeriodsTeacherApi} from "../../service/api"; import {getTeacherListApi,getClassDetailApi,editClassApi,addClassApi,getPeriodsApi,getGoodsListApi,getPeriodsTeacherApi} from "../../service/api";
import {GOODSTYPE} from '../../util/wordbook';
export default { export default {
props:[ props:[
'dialogObj' 'dialogObj'
...@@ -106,6 +107,7 @@ ...@@ -106,6 +107,7 @@
getPeriodList(){ getPeriodList(){
getGoodsListApi().then(res=>{ getGoodsListApi().then(res=>{
res.list.forEach(i=>{ res.list.forEach(i=>{
i.name = '[' + GOODSTYPE[i.goods_type] + ']' + '[' +i.current_price / 100 + '元]' + i.name
i.children = []; i.children = [];
}); });
this.goodsList = res.list; this.goodsList = res.list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment