|
@@ -23,7 +23,7 @@
|
|
<HcIcon name="sticky-note" />
|
|
<HcIcon name="sticky-note" />
|
|
<span class="page">第{{ index + 1 }}页</span>
|
|
<span class="page">第{{ index + 1 }}页</span>
|
|
</div>
|
|
</div>
|
|
- <div class="close-box" @click.stop="closeBussDataInfo(index)">
|
|
|
|
|
|
+ <div class="close-box" @click.stop="closeBussDataInfo(item, index)">
|
|
<HcIcon name="close" />
|
|
<HcIcon name="close" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -760,7 +760,20 @@ const setFormDefaultData = (formInfo = {}) => {
|
|
}
|
|
}
|
|
|
|
|
|
//删除记录
|
|
//删除记录
|
|
-const closeBussDataInfo = (index) => {
|
|
|
|
|
|
+const closeBussDataInfo = async (item, index) => {
|
|
|
|
+ console.log(item, '删除')
|
|
|
|
+ if (item?.id) {
|
|
|
|
+ const { error, code, data } = await queryApi.removeLogTab({
|
|
|
|
+ id:item?.id,
|
|
|
|
+ })
|
|
|
|
+ //处理数据
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ window.$message.success('删除成功')
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ window.$message.error('操作失败')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
formLogDataList.value.splice(index, 1)
|
|
formLogDataList.value.splice(index, 1)
|
|
const logIndex = index <= 0 ? 0 : index - 1
|
|
const logIndex = index <= 0 ? 0 : index - 1
|
|
formLogIndex.value = logIndex
|
|
formLogIndex.value = logIndex
|