Commit ce83b235 by lixiaomin

排序、去掉订单lodding

parent 60358df6
......@@ -50,3 +50,12 @@ export function delClass(id) {
method: "delete",
});
}
// 查询排序列表
export function turnList(query) {
return request({
url: "/system/category/turnOrder",
method: "get",
params: query,
});
}
......@@ -40,10 +40,10 @@
<template slot-scope="scope">
<div style="display: flex;">
<div>
<el-button v-show="scope.$index!=0" size="mini" round icon="el-icon-arrow-up" @click="upClick(scope.row,'up')"></el-button>
<el-button v-show="scope.$index!=0" size="mini" round icon="el-icon-arrow-up" @click="turnClick(scope.row,'1')"></el-button>
</div>
<div>
<el-button v-show="scope.$index+1!=total" size="mini" round icon="el-icon-arrow-down" @click="downClick(scope.row,'down')"></el-button>
<el-button v-show="scope.$index+1!=total" size="mini" round icon="el-icon-arrow-down" @click="turnClick(scope.row,'2')"></el-button>
</div>
</div>
</template>
......@@ -92,6 +92,7 @@ import {
delClass,
addClass,
updateClass,
turnList
} from "@/api/system/category";
export default {
......@@ -148,12 +149,13 @@ export default {
this.getList();
},
methods: {
downClick(row,tag){
},
upClick(row,tag){
turnClick(row,tag){
turnList({"id":row.id,"pointer":tag}).then((response) => {
console.log("response",response);
// this.classList = response.rows;
// this.total = response.total;
// this.loading = false;
});
},
/** 查询列表 */
......
......@@ -36,7 +36,7 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="orderList">
<el-table :data="orderList">
<el-table-column label="订单编号" align="center">
<template slot-scope="scope">
<a @click="handleUpdate(scope.row)" style="color: blue">{{ scope.row.orderNo }}</a>
......@@ -146,7 +146,7 @@
</el-form-item>
</el-col>
</el-row>
<el-table v-loading="loading" :data="goodsList">
<el-table :data="goodsList">
<el-table-column label="商品名称" align="center" prop="goodsName" />
<el-table-column label="缩略图" align="center">
<template slot-scope="scope">
......@@ -166,7 +166,7 @@
</el-form>
</el-tab-pane>
<el-tab-pane label="订单日志" name="second">
<el-table v-loading="loading" :data="logList">
<el-table :data="logList">
<el-table-column label="状态" align="center" prop="status" />
<el-table-column label="操作" align="center" prop="operation" />
<el-table-column label="时间" align="center" prop="createAt" />
......@@ -216,7 +216,7 @@ export default {
],
piovince,
// 遮罩层
loading: true,
//loading: true,
// 选中数组
ids: [],
// 非单个禁用
......@@ -336,7 +336,7 @@ export default {
},
/** 查询订单日志列表 */
getLogList() {
this.loading = true;
//this.loading = true;
getLogList({orderId:this.orderId}).then(response => {
if(response.code=="200"){
this.logList = response.data;
......
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