Commit 827127c5 authored by qzhxx's avatar qzhxx

更换学习详情展板排序接口

parent 6e5a18e3
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<span>{{ (page.currentPage - 1) * 10 + scope.$index + 1 }}</span> <span>{{ (page.currentPage - 1) * 10 + scope.$index + 1 }}</span>
</template> --> </template> -->
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column> <el-table-column show-overflow-tooltip label="展板名称" prop="name"></el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
...@@ -115,15 +115,15 @@ export default { ...@@ -115,15 +115,15 @@ export default {
tableData: [ tableData: [
{ {
id: "1", id: "1",
name: "1" name: ""
}, },
{ {
id: "2", id: "2",
name: "2" name: ""
}, },
{ {
id: "3", id: "3",
name: "3" name: ""
} }
], ],
activeNames: ["1","2","3"], activeNames: ["1","2","3"],
...@@ -258,20 +258,25 @@ export default { ...@@ -258,20 +258,25 @@ export default {
_this _this
.$https({ .$https({
method: "put", method: "put",
url: "learningContentBoard/sort", // url: "learningContentBoard/sort",
url: "learningContentBoard/sortById",
authType: this.backToken authType: this.backToken
}, },
_this.$qs.stringify({ _this.$qs.stringify({
id:this.$route.query.id,
sourceId:sourceId, sourceId:sourceId,
targetId:targetId targetId:targetId
})) }))
.then( .then(
res => { res => {
if(res.data.resultCode === "200"){
this.$message({ this.$message({
type: "success", type: "success",
message: "成功!" message: "成功!"
}); });
_this.Search(); }else{
this.$message({ type: "error", message: res.data.message });
}
}, },
error => { error => {
this.$message({ this.$message({
......
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