BUG修改

This commit is contained in:
a0049873 2022-07-05 17:02:25 +08:00
parent a438bd6ed5
commit 3cc6bce2f8
1 changed files with 54 additions and 9 deletions

View File

@ -108,16 +108,43 @@
style="position: relative"
>
<template #title>
<span
@click="
showItem(item.resourceId, item.type, item.delFlag)
"
style="cursor: pointer"
class="name"
>
{{ item.resourceName }}
<div>
<span
@click="
showItem(item.resourceId, item.type, item.delFlag)
"
style="cursor: pointer"
class="name"
>
{{ item.resourceName }}
</span>
<span class="type">{{ item.type }}</span>
</div>
<span class="time">
加购时间:{{ item.time }}
<a-popconfirm
title="是否删除该记录?"
ok-text="是"
cancel-text="否"
@confirm="delOne(item)"
@cancel="cancel"
>
<a-button
type="primary"
style="
width: 0.7rem;
height: 0.3rem;
margin-left: 0.12rem;
border-radius: 2px;
background: #fff;
color: #0558e1;
"
@click="del"
>
删除
</a-button>
</a-popconfirm>
</span>
<span class="type">{{ item.type }}</span>
<svg
t="1652233950228"
class="icon"
@ -675,6 +702,20 @@
})
}
}
const delOne = (item) => {
// console.log(item)
sgcDel({
ids: [item.id],
}).then((res) => {
if (res.data.msg === 'success') {
message.success('删除成功')
// console.log('================>', res)
mybus.emit('getSgcNum')
clean()
}
})
}
const cancel = (e) => {
// console.log(e)
}
@ -922,4 +963,8 @@
background: url('~@/assets/home/ywzj_square.png') no-repeat;
background-size: 100%;
}
:deep(.ant-list-item-meta-title) {
display: flex;
justify-content: space-between;
}
</style>