Commit ef55a917 by lixiaomin

修改页面显示

parent 420ad519
......@@ -12,7 +12,7 @@ export function listOrder(query) {
// 查询订单详细
export function getOrder(id) {
return request({
url: "/order/" + id,
url: "/order/back/" + id,
method: "get",
});
}
......
......@@ -9,9 +9,7 @@
<el-table-column label="绑定时间" align="center" prop="bindTime" />
<el-table-column label="状态" align="center" prop="state">
<template slot-scope="scope">
<span v-if="scope.row.state == '1'">正常</span>
<span v-if="scope.row.state == '11'">忙碌</span>
<span v-if="scope.row.state == '99'">离线</span>
{{formatterState(scope.row)}}
</template>
</el-table-column>
......@@ -72,6 +70,27 @@ export default {
//this.getList()
},
methods: {
formatterState(row){
if(row.state=='0'){
return "初始状态";
}else if(row.state=='1'){
return "待初始化";
}else if(row.state=='2'){
return "待绑定店铺";
}else if(row.state=='3'){
return "待运营测试";
}else if(row.state=='4'){
return "运行中";
}else if(row.state=='5'){
return "待机中";
}else if(row.state=='6'){
return "关闭";
}else if(row.state=='7'){
return "运维中";
}else if(row.state=='8'){
return "返厂";
}
},
/** 查询列表 */
getList() {
this.loading = true;
......
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