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

This commit is contained in:
wanglei
2021-12-14 13:55:58 +08:00
2 changed files with 5 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
<div class="bottom">{{ e.createTime }}</div> <div class="bottom">{{ e.createTime }}</div>
</template> </template>
<template #menu> <template #menu>
<div class="menu" @tap.stop="goDetail(e.id)">编辑</div> <div class="menu" @tap.stop="goDetail(e.id,index)">编辑</div>
<div class="menu" @tap.stop="handleDelete(e.id, index)">删除</div> <div class="menu" @tap.stop="handleDelete(e.id, index)">删除</div>
</template> </template>
</AiCard> </AiCard>
@@ -75,6 +75,7 @@ export default {
goDetail(id, readonly) { goDetail(id, readonly) {
let query = {id} let query = {id}
readonly && (query.detail = 1) readonly && (query.detail = 1)
this.$refs[`aiCard${index}`][0].handleClose()
uni.navigateTo({url: `./interviewDetail?${qs.stringify(query)}`}) uni.navigateTo({url: `./interviewDetail?${qs.stringify(query)}`})
}, },
gotoAdd() { gotoAdd() {

View File

@@ -67,7 +67,9 @@ export default {
}).then(res => { }).then(res => {
if (res?.code == 0) { if (res?.code == 0) {
this.$u.toast("提交成功!") this.$u.toast("提交成功!")
this.root.goto({query: {}}) setTimeout(() => {
uni.navigateBack({})
}, 1000)
} }
}) })
} }