This commit is contained in:
liuye
2022-04-07 19:47:59 +08:00
parent 478b4025a7
commit dc27ac30e9
6 changed files with 122 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
<template>
<section class="needsDetail">
<ai-detail>
<ai-title slot="title" title="融资详情" isShowBottomBorder isShowBack @onBackClick="back">
<ai-title slot="title" title="融资详情" isShowBottomBorder isShowBack @onBackClick="back()">
<template #rightBtn>
<el-button v-if="isFinanceUser" type="primary" @click="handleGrab">抢单</el-button>
<el-button v-else type="danger" @click="handleCancel">取消发布</el-button>
@@ -132,7 +132,8 @@ export default {
props: {
instance: Function,
dict: Object,
permissions: Function
permissions: Function,
row: Object,
},
computed: {
...mapState(['user']),
@@ -183,7 +184,7 @@ export default {
},
methods: {
getDetail() {
let {id} = this.$route.query
let {id} = this.row
this.instance.post("/appfinancingdemand/queryDetailById", null, {
params: {id}
}).then(res => {
@@ -228,7 +229,7 @@ export default {
}).catch(() => 0)
},
back() {
this.$router.push({query: {}})
this.$emit('goBack')
}
},
created() {