Commit 8e9bce61 by lixiaomin

修改用户

parent 840ca97d
...@@ -8,8 +8,12 @@ ...@@ -8,8 +8,12 @@
</el-table-column> </el-table-column>
<el-table-column label="商品数量" align="center" prop="goodsNum"/> <el-table-column label="商品数量" align="center" prop="goodsNum"/>
<el-table-column label="金额" align="center" prop="amount"/> <el-table-column label="金额" align="center" prop="amount"/>
<el-table-column label="城市" align="center" prop=""/> <el-table-column label="城市" align="center" >
<el-table-column label="店铺" align="center" prop=""/> <template slot-scope="scope">
{{getProvince(scope.row.shop.city)}}
</template>
</el-table-column>
<el-table-column label="店铺" align="center" prop="shop.name"/>
<el-table-column label="创建时间" align="center" prop="createdAt"/> <el-table-column label="创建时间" align="center" prop="createdAt"/>
<el-table-column label="订单状态" align="center" prop="state"> <el-table-column label="订单状态" align="center" prop="state">
<template slot-scope="scope">{{formatterState(scope.row.state)}}</template> <template slot-scope="scope">{{formatterState(scope.row.state)}}</template>
...@@ -28,6 +32,7 @@ ...@@ -28,6 +32,7 @@
</template> </template>
<script> <script>
import OrderDetial from '@/components/order/orderDetial.vue'; import OrderDetial from '@/components/order/orderDetial.vue';
import piovince from '@/utils/piovince';
export default { export default {
components: { OrderDetial}, components: { OrderDetial},
name: "orderTable", name: "orderTable",
...@@ -35,10 +40,19 @@ export default { ...@@ -35,10 +40,19 @@ export default {
data() { data() {
return { return {
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 10,
piovince
} }
}, },
methods: { methods: {
getProvince(city){
let list=this.piovince;
for(let i=0;i<list.length;i++){
if(list[i].value == city){
return list[i].name;
}
}
},
getList(){ getList(){
this.$emit("getOrderList",this.pageNum,this.pageSize) this.$emit("getOrderList",this.pageNum,this.pageSize)
}, },
......
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