Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2021-12-09 20:15:55 +08:00
3 changed files with 12 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
</div>
</ai-top-fixed>
<template v-if="list.length>0">
<ai-card v-for="(e,index) in list" :key="index" @click.native="goDetail(e.id,1)">
<ai-card :ref="'aiCard' + index" v-for="(e,index) in list" :key="index" @click.native="goDetail(e.id,1)">
<template #custom>
<div flex>
<b class="fill">{{ e.title }}</b>
@@ -20,7 +20,7 @@
</template>
<template #menu>
<div class="menu" @tap.stop="goDetail(e.id)">编辑</div>
<div class="menu" @tap.stop="handleDelete(e.id)">删除</div>
<div class="menu" @tap.stop="handleDelete(e.id, index)">删除</div>
</template>
</ai-card>
<u-loadmore :status="loadmore" color="#999" font-size="24"
@@ -107,7 +107,8 @@ export default {
gotoAdd() {
this.root.goto({hash: "#add"})
},
handleDelete(ids) {
handleDelete(ids, index) {
this.$refs[`aiCard${index}`][0].handleClose()
this.$confirm("是否要删除该调查走访").then(() => {
this.$http.post("/app/appinterview/delete", null, {
params: {ids}