mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
部分修改
This commit is contained in:
@@ -126,6 +126,7 @@ export default {
|
||||
});
|
||||
};
|
||||
const del = ({ id, optionId }) => {
|
||||
// 前端删除
|
||||
curItem.value.singleList.forEach((item, index) => {
|
||||
if (item.id === id) {
|
||||
curItem.value.singleList.splice(index, 1);
|
||||
@@ -134,15 +135,17 @@ export default {
|
||||
curItem.value.singleList.map((item, index) => {
|
||||
item.id = index + 1;
|
||||
});
|
||||
|
||||
deleteChoiceQuestion({
|
||||
assessmentId: assessmentId.value,
|
||||
questionType: "1",
|
||||
optionId,
|
||||
}).then((res) => {
|
||||
console.log(56444);
|
||||
console.log(res);
|
||||
});
|
||||
// 接口删除
|
||||
if (assessmentId.value && optionId) {
|
||||
deleteChoiceQuestion({
|
||||
assessmentId: assessmentId.value,
|
||||
questionType: "1",
|
||||
optionId,
|
||||
}).then((res) => {
|
||||
console.log(56444);
|
||||
console.log(res);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user