mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 14:26:45 +08:00
删除交互修复
This commit is contained in:
@@ -421,8 +421,9 @@ export default {
|
||||
questionType: "1",
|
||||
orderNumber: curItem.orderNumber,
|
||||
}).then((res) => {
|
||||
console.log(56444);
|
||||
console.log(res);
|
||||
if (res.data.code === 200) {
|
||||
virtualDel(id);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (type === 2) {
|
||||
@@ -431,8 +432,9 @@ export default {
|
||||
questionType: "2",
|
||||
orderNumber: curItem.orderNumber,
|
||||
}).then((res) => {
|
||||
console.log(56444);
|
||||
console.log(res);
|
||||
if (res.data.code === 200) {
|
||||
virtualDel(id);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (type === 3) {
|
||||
@@ -441,8 +443,9 @@ export default {
|
||||
questionType: "3",
|
||||
optionId: curItem.optionId,
|
||||
}).then((res) => {
|
||||
console.log(56444);
|
||||
console.log(res);
|
||||
if (res.data.code === 200) {
|
||||
virtualDel(id);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (type === 4) {
|
||||
@@ -451,11 +454,16 @@ export default {
|
||||
questionType: "4",
|
||||
optionId: curItem.optionId,
|
||||
}).then((res) => {
|
||||
console.log(56444);
|
||||
console.log(res);
|
||||
if (res.data.code === 200) {
|
||||
virtualDel(id);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
virtualDel();
|
||||
}
|
||||
};
|
||||
const virtualDel = (id) => {
|
||||
// 前端删除
|
||||
state.allFormsData.forEach((item, index) => {
|
||||
if (item.id === id) {
|
||||
|
||||
Reference in New Issue
Block a user