保险产品需求调整完毕

This commit is contained in:
aixianling
2022-09-19 11:31:01 +08:00
parent 57abf72ecd
commit 1ec38cb03d
4 changed files with 14 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
<template> <template>
<section class="AppGuaranteeProduct"> <section class="AppGuaranteeProduct">
<component :is="currentComponent" :instance="instance" :dict="dict" :permissions="permissions"/> <component :is="currentComponent" v-bind="$props"/>
</section> </section>
</template> </template>
@@ -18,7 +18,8 @@ export default {
props: { props: {
instance: Function, instance: Function,
dict: Object, dict: Object,
permissions: Function permissions: Function,
menuName: {default: "担保产品"}
}, },
computed: { computed: {
currentComponent() { currentComponent() {

View File

@@ -54,12 +54,11 @@ export default {
props: { props: {
instance: Function, instance: Function,
dict: Object, dict: Object,
permissions: Function permissions: Function,
menuName: String
}, },
computed: { computed: {
addTitle() { addTitle: v => `${!!v.$route.query.id ? "编辑" : "添加"}${v.menuName}`,
return !!this.$route.query.id ? "编辑担保产品" : "添加担保产品"
},
rules() { rules() {
return { return {
productName: [{required: true, message: "请输入产品名称", trigger: 'blur'}], productName: [{required: true, message: "请输入产品名称", trigger: 'blur'}],

View File

@@ -1,7 +1,7 @@
<template> <template>
<section class="productDetail"> <section class="productDetail">
<ai-detail> <ai-detail>
<ai-title slot="title" title="担保产品详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})"> <ai-title slot="title" :title="`${menuName}详情`" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})">
<template #rightBtn> <template #rightBtn>
<el-button v-if="isAdmin&&detail.status==0" type="primary" @click="dialog=true">审核</el-button> <el-button v-if="isAdmin&&detail.status==0" type="primary" @click="dialog=true">审核</el-button>
</template> </template>
@@ -63,7 +63,8 @@ export default {
props: { props: {
instance: Function, instance: Function,
dict: Object, dict: Object,
permissions: Function permissions: Function,
menuName: String
}, },
computed: { computed: {
...mapState(['user']), ...mapState(['user']),

View File

@@ -60,11 +60,12 @@ export default {
}, },
computed: { computed: {
...mapState(['user']), ...mapState(['user']),
isFinanceUser: v => !!v.user.financeUser?.id && v.user.financeUser.organizationType == 2 isFinanceUser: v => !!v.user.financeUser?.id && v.user.financeUser.organizationType == 2,
queryType: v => v?.$route.query.queryType || 1
}, },
data() { data() {
return { return {
search: {productName: "", queryType: 1}, search: {productName: ""},
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
colConfigs: [ colConfigs: [
@@ -80,8 +81,9 @@ export default {
}, },
methods: { methods: {
getTableData() { getTableData() {
const {queryType} = this
this.instance.post("/app/appfinancialproduct/list", null, { this.instance.post("/app/appfinancialproduct/list", null, {
params: {...this.page, ...this.search} params: {...this.page, ...this.search, queryType}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.tableData = res.data?.records.map(e => { this.tableData = res.data?.records.map(e => {