保险产品需求调整完毕
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| <template> | ||||
|   <section class="AppGuaranteeProduct"> | ||||
|     <component :is="currentComponent" :instance="instance" :dict="dict" :permissions="permissions"/> | ||||
|     <component :is="currentComponent" v-bind="$props"/> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| @@ -18,7 +18,8 @@ export default { | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     dict: Object, | ||||
|     permissions: Function | ||||
|     permissions: Function, | ||||
|     menuName: {default: "担保产品"} | ||||
|   }, | ||||
|   computed: { | ||||
|     currentComponent() { | ||||
|   | ||||
| @@ -54,12 +54,11 @@ export default { | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     dict: Object, | ||||
|     permissions: Function | ||||
|     permissions: Function, | ||||
|     menuName: String | ||||
|   }, | ||||
|   computed: { | ||||
|     addTitle() { | ||||
|       return !!this.$route.query.id ? "编辑担保产品" : "添加担保产品" | ||||
|     }, | ||||
|     addTitle: v => `${!!v.$route.query.id ? "编辑" : "添加"}${v.menuName}`, | ||||
|     rules() { | ||||
|       return { | ||||
|         productName: [{required: true, message: "请输入产品名称", trigger: 'blur'}], | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| <template> | ||||
|   <section class="productDetail"> | ||||
|     <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> | ||||
|           <el-button v-if="isAdmin&&detail.status==0" type="primary" @click="dialog=true">审核</el-button> | ||||
|         </template> | ||||
| @@ -63,7 +63,8 @@ export default { | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     dict: Object, | ||||
|     permissions: Function | ||||
|     permissions: Function, | ||||
|     menuName: String | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapState(['user']), | ||||
|   | ||||
| @@ -60,11 +60,12 @@ export default { | ||||
|   }, | ||||
|   computed: { | ||||
|     ...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() { | ||||
|     return { | ||||
|       search: {productName: "", queryType: 1}, | ||||
|       search: {productName: ""}, | ||||
|       page: {current: 1, size: 10, total: 0}, | ||||
|       tableData: [], | ||||
|       colConfigs: [ | ||||
| @@ -80,8 +81,9 @@ export default { | ||||
|   }, | ||||
|   methods: { | ||||
|     getTableData() { | ||||
|       const {queryType} = this | ||||
|       this.instance.post("/app/appfinancialproduct/list", null, { | ||||
|         params: {...this.page, ...this.search} | ||||
|         params: {...this.page, ...this.search, queryType} | ||||
|       }).then(res => { | ||||
|         if (res?.data) { | ||||
|           this.tableData = res.data?.records.map(e => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user