Commit b19f771d by yuananting

fix: 编辑时删除试卷

parent 1b024696
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-03-27 16:15:13 * @Date: 2021-03-27 16:15:13
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-04-10 15:36:20 * @LastEditTime: 2021-04-12 19:33:44
* @Description: 助学工具-新建/复制/编辑试卷 * @Description: 助学工具-新建/复制/编辑试卷
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -324,12 +324,12 @@ class OperatePaper extends Component { ...@@ -324,12 +324,12 @@ class OperatePaper extends Component {
message.success( message.success(
currentOperate === "new" ? "新建成功" : "复制成功" currentOperate === "new" ? "新建成功" : "复制成功"
); );
window.RCHistory.push({
pathname: `/paper-manage-index?categoryId=${categoryId}`,
});
Bus.trigger("queryPaperPageList", categoryId, selectQuestionList.length);
Bus.trigger("queryCategoryTree", "remain");
} }
window.RCHistory.push({
pathname: `/paper-manage-index?categoryId=${categoryId}`,
});
Bus.trigger("queryPaperPageList", categoryId, selectQuestionList.length);
Bus.trigger("queryCategoryTree", "remain");
}); });
} else if (currentOperate === "edit") { } else if (currentOperate === "edit") {
AidToolService.editPaper({ AidToolService.editPaper({
...@@ -338,13 +338,13 @@ class OperatePaper extends Component { ...@@ -338,13 +338,13 @@ class OperatePaper extends Component {
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
message.success("编辑成功"); message.success("编辑成功");
window.RCHistory.push({
pathname: `/paper-manage-index?categoryId=${getParameterByName(
"categoryId"
)}`,
});
Bus.trigger("queryPaperPageList", categoryId, selectQuestionList.length);
} }
window.RCHistory.push({
pathname: `/paper-manage-index?categoryId=${getParameterByName(
"categoryId"
)}`,
});
Bus.trigger("queryPaperPageList", categoryId, selectQuestionList.length);
}); });
} }
} }
......
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