mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
t
This commit is contained in:
@@ -47,7 +47,10 @@
|
||||
<!-- 创建投票侧弹窗 -->
|
||||
</div>
|
||||
|
||||
<div v-for="(item, index) in allFormsData" :key="index">
|
||||
<div
|
||||
v-for="(item, index) in allFormsData"
|
||||
:key="index + new Date().getTime()"
|
||||
>
|
||||
<VoteQuestion :item="item" @del="handleDel" />
|
||||
</div>
|
||||
|
||||
@@ -252,6 +255,13 @@ export default {
|
||||
console.log(888888888);
|
||||
console.log(id);
|
||||
console.log(curItem);
|
||||
// 接口删除
|
||||
if (curItem.voteStemId) {
|
||||
api.deleteVoteStem(curItem.voteStemId).then((res) => {
|
||||
console.log(56444);
|
||||
console.log(res);
|
||||
});
|
||||
}
|
||||
// 前端删除
|
||||
state.allFormsData.forEach((item, index) => {
|
||||
if (item.id === id) {
|
||||
@@ -264,13 +274,6 @@ export default {
|
||||
item.id = index + 1;
|
||||
return item;
|
||||
});
|
||||
// 接口删除
|
||||
if (curItem.voteStemId) {
|
||||
api.deleteVoteStem(curItem.voteStemId).then((res) => {
|
||||
console.log(56444);
|
||||
console.log(res);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const handleSave = () => {
|
||||
|
||||
Reference in New Issue
Block a user