投票有一个bug,添加的选项,如果没保存过,删不掉

This commit is contained in:
kclf
2022-12-05 22:34:04 +08:00
parent a55055576d
commit 54d6528569
3 changed files with 4 additions and 6 deletions

View File

@@ -55,7 +55,7 @@
<div v-if="ballotId > 0"> <div v-if="ballotId > 0">
<a-tag closable color="processing" @close="handlelog"> <a-tag closable color="processing" @close="handlelog">
<span style="font-size: 14px; line-height: 33px"> <span style="font-size: 14px; line-height: 33px">
{{ ballot_name }} {{ ballot_name }}
</span> </span>
</a-tag> </a-tag>
</div> </div>
@@ -76,7 +76,7 @@
</button> </button>
<div :style="{ display: creVote ? 'block' : 'none' }"> <div :style="{ display: creVote ? 'block' : 'none' }">
<div class="fileTigan"> <div class="fileTigan">
<span style="color: #388be1">{{ ballot_name }}</span> <span style="color: #388be1">{{ ballot_name }}</span>
<div class="delBox" @click="dleVoteStem()"></div> <div class="delBox" @click="dleVoteStem()"></div>
</div> </div>
</div> </div>
@@ -254,7 +254,6 @@ export default {
fileList: [], fileList: [],
voteCount: null, voteCount: null,
projectTemplateId: null, projectTemplateId: null,
}); });
const closeDrawer = () => { const closeDrawer = () => {
(state.inputV1 = ""), (state.inputV1 = ""),
@@ -304,7 +303,6 @@ export default {
console.log("file========", file); console.log("file========", file);
console.log("file========", file.response); console.log("file========", file.response);
state.voteCount = file.response.data; state.voteCount = file.response.data;
} }
}); });
//fileList.value = resFileList; //fileList.value = resFileList;

View File

@@ -272,7 +272,7 @@ export default {
} }
}); });
} else { } else {
virtualDel(); virtualDel(id);
} }
}; };
const virtualDel = (id) => { const virtualDel = (id) => {

View File

@@ -460,7 +460,7 @@ export default {
}); });
} }
} else { } else {
virtualDel(); virtualDel(id);
} }
}; };
const virtualDel = (id) => { const virtualDel = (id) => {