Commit ce83b235 by lixiaomin

排序、去掉订单lodding

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