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

页面修改

parent 50f4e99c
......@@ -357,27 +357,63 @@
targetQId: targetQId
}
setQuestionSort(msg).then(res => {
if (res.Code == 1) {
this.getQuestionList();
}
});
},
//复制
getCopyItem(item) {
CopyQuestion({
QuestionId: item.QuestionId
}).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '复制成功!',
message: '操作成功!',
position: 'top'
})
this.getQuestionList();
}
});
},
//复制
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({
QuestionId: item.QuestionId
}).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '复制成功!',
position: 'top'
})
this.getQuestionList();
}
});
} else {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.Message,
position: 'top'
})
}
});
});
}
}
}
......
......@@ -28,6 +28,7 @@
if (this.$route.query && this.$route.query.BankId) {
this.qMsg.BankId = this.$route.query.BankId
}
},
mounted() {},
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