This commit is contained in:
刘仕伟
2022-03-02 10:05:01 +08:00
7 changed files with 25 additions and 11 deletions

1
.gitignore vendored
View File

@@ -25,3 +25,4 @@ yarn-error.log*
/oms/dist/ /oms/dist/
/project/*/index.js /project/*/index.js
/project/*/dist /project/*/dist
/examples/entries.js

View File

@@ -1,5 +1,5 @@
<template> <template>
<section class="AppFoundingHundred"> <section class="AppQuestionBank">
<ai-list v-if="showList"> <ai-list v-if="showList">
<template #title> <template #title>
<ai-title title="党史题库" isShowBottomBorder></ai-title> <ai-title title="党史题库" isShowBottomBorder></ai-title>
@@ -163,7 +163,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.AppFoundingHundred { .AppQuestionBank {
height: 100%; height: 100%;
} }
</style> </style>

View File

@@ -23,5 +23,10 @@
"AppVillageActivity": "乡村活动", "AppVillageActivity": "乡村活动",
"AppAddressBook": "内部通讯录", "AppAddressBook": "内部通讯录",
"AppNavConfig": "小程序导航配置", "AppNavConfig": "小程序导航配置",
"AppConvenienceAddressBook": "便民通讯录" "AppConvenienceAddressBook": "便民通讯录",
} "AppQuestionBank": "党史题库",
"AppMeetingChinaunion": "三会一课",
"AppPartyHistoryClass": "党员学习",
"AppPartyOrganization": "党组织管理",
"AppPartyMember": "党员管理"
}

View File

@@ -81,7 +81,7 @@ export default {
form: {}, form: {},
rules: { rules: {
auditStatus: [{required: true, message: "请选择审批结果"}], auditStatus: [{required: true, message: "请选择审批结果"}],
auditDescription: [{validator: (r, v, cb) => this.form.auditStatus == 2 ? cb("请输入审批意见") : cb()}], auditDescription: [{validator: (r, v, cb) => this.form.auditStatus == 2 && !v ? cb("请输入审批意见") : cb()}],
} }
} }
}, },

View File

@@ -7,7 +7,8 @@
</template> </template>
</ai-title> </ai-title>
<template #content> <template #content>
<el-form size="small" label-width="120px"> <el-alert show-icon v-if="!detail.id" type="error" title="该产品已下架" center/>
<el-form v-else size="small" label-width="120px">
<ai-card title="基本信息"> <ai-card title="基本信息">
<template #content> <template #content>
<el-row type="flex" class="flexWrap"> <el-row type="flex" class="flexWrap">
@@ -91,7 +92,7 @@ export default {
rules() { rules() {
return { return {
status: [{required: true, message: "请选择审批结果"}], status: [{required: true, message: "请选择审批结果"}],
remark: [{validator: (r, v, cb) => this.form.status == 2 ? cb("请输入审批意见") : cb()}], remark: [{validator: (r, v, cb) => this.form.status == 2 && !v ? cb("请输入审批意见") : cb()}],
} }
} }
}, },
@@ -112,12 +113,13 @@ export default {
this.detail = res.data this.detail = res.data
this.detail.guaranteeModeLabel = res.data.guaranteeMode?.split(",").map(g => this.dict.getLabel("productGuaranteeMode", g))?.toString() this.detail.guaranteeModeLabel = res.data.guaranteeMode?.split(",").map(g => this.dict.getLabel("productGuaranteeMode", g))?.toString()
this.detail.faceUserLabel = res.data.faceUser?.split(",").map(g => this.dict.getLabel("productFaceUser", g))?.toString() this.detail.faceUserLabel = res.data.faceUser?.split(",").map(g => this.dict.getLabel("productFaceUser", g))?.toString()
} else {
this.$message.error("该产品已下架!")
} }
}) })
}, },
submitAudit() { submitAudit() {
this.$refs.AuditForm.validate(v => { this.$refs.AuditForm.validate(v => {
console.log(v)
if (v) { if (v) {
let {id} = this.detail let {id} = this.detail
this.instance.post("/appfinancialproduct/auditProduct", null, { this.instance.post("/appfinancialproduct/auditProduct", null, {

View File

@@ -94,6 +94,8 @@
</template> </template>
<script> <script>
import {mapState} from "vuex";
export default { export default {
name: "loanDetail", name: "loanDetail",
props: { props: {
@@ -102,8 +104,9 @@ export default {
permissions: Function permissions: Function
}, },
computed: { computed: {
...mapState(['user']),
isFinanceAdmin() { isFinanceAdmin() {
return !!this.user.financeUser?.userRole == 1 return this.user.financeUser?.userRole == 1
}, },
isAuthing() { isAuthing() {
return this.detail.status == "0" return this.detail.status == "0"

View File

@@ -1,7 +1,7 @@
<template> <template>
<section class="needsDetail"> <section class="needsDetail">
<ai-detail> <ai-detail>
<ai-title slot="title" title="融资详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})"> <ai-title slot="title" title="融资详情" isShowBottomBorder isShowBack @onBackClick="back">
<template #rightBtn> <template #rightBtn>
<el-button v-if="isFinanceUser" type="primary" @click="handleGrab">抢单</el-button> <el-button v-if="isFinanceUser" type="primary" @click="handleGrab">抢单</el-button>
<el-button v-else type="danger" @click="handleCancel">取消发布</el-button> <el-button v-else type="danger" @click="handleCancel">取消发布</el-button>
@@ -86,10 +86,13 @@ export default {
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success("需求取消成功") this.$message.success("需求取消成功")
this.getDetail() this.back()
} }
}) })
}).catch(() => 0) }).catch(() => 0)
},
back() {
this.$router.push({query: {}})
} }
}, },
created() { created() {