Commit 5efed541 authored by 黄奎's avatar 黄奎

页面修改

parent 50f4e99c
...@@ -358,12 +358,37 @@ ...@@ -358,12 +358,37 @@
} }
setQuestionSort(msg).then(res => { setQuestionSort(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.getQuestionList(); this.getQuestionList();
} }
}); });
}, },
//复制 //复制
getCopyItem(item) { getCopyItem(item) {
this.$q.dialog({
title: "删除问题",
message: "是否要复制此题目?",
persistent: true,
cancel: {
label: "取消",
flat: true
},
ok: {
label: "确认",
flat: true,
focus: true
}
}).onOk(() => {
deleteQuestion({
QuestionId: item.QuestionId
}).then(res => {
if (res.Code == 1) {
CopyQuestion({ CopyQuestion({
QuestionId: item.QuestionId QuestionId: item.QuestionId
}).then(res => { }).then(res => {
...@@ -378,6 +403,17 @@ ...@@ -378,6 +403,17 @@
this.getQuestionList(); this.getQuestionList();
} }
}); });
} else {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.Message,
position: 'top'
})
}
});
});
} }
} }
} }
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
if (this.$route.query && this.$route.query.BankId) { if (this.$route.query && this.$route.query.BankId) {
this.qMsg.BankId = this.$route.query.BankId this.qMsg.BankId = this.$route.query.BankId
} }
}, },
mounted() {}, mounted() {},
methods: {} methods: {}
......
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