This commit is contained in:
yanran200730
2022-02-18 15:21:50 +08:00
parent 3cd4954d6c
commit 5c32b8e240
3 changed files with 17 additions and 6 deletions

View File

@@ -42,7 +42,7 @@
@onConfirm="onConfirm"> @onConfirm="onConfirm">
<el-form class="ai-form" label-width="120px" :model="form" ref="form"> <el-form class="ai-form" label-width="120px" :model="form" ref="form">
<el-form-item label="是否通过审核" prop="pass" style="width: 100%;" :rules="[{ required: true, message: '请选择是否通过审核' }]"> <el-form-item label="是否通过审核" prop="pass" style="width: 100%;" :rules="[{ required: true, message: '请选择是否通过审核' }]">
<el-radio-group v-model="form.pass"> <el-radio-group v-model="form.pass" @change="onStatusChange">
<el-radio label="0"></el-radio> <el-radio label="0"></el-radio>
<el-radio label="1"></el-radio> <el-radio label="1"></el-radio>
</el-radio-group> </el-radio-group>
@@ -138,6 +138,10 @@
}) })
}, },
onStatusChange () {
this.$refs.form.clearValidate()
},
onClose () { onClose () {
this.form.auditIntegralType = '' this.form.auditIntegralType = ''
this.form.auditRuleId = '' this.form.auditRuleId = ''

View File

@@ -49,12 +49,11 @@
:current.sync="search.current" :current.sync="search.current"
:size.sync="search.size" :size.sync="search.size"
@getList="getList"> @getList="getList">
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> <el-table-column slot="options" width="120px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div class="table-options"> <div class="table-options">
<el-button type="text" @click="toAudit(row.id)" :disabled="row.auditStatus !== '0'">审核</el-button> <el-button type="text" @click="toAudit(row.id)" :disabled="row.auditStatus !== '0'">审核</el-button>
<el-button type="text" @click="toDetail(row.id)">详情</el-button> <el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="remove(row.id)" :disabled="row.auditStatus === '0'">删除</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -67,7 +66,7 @@
@onConfirm="onConfirm"> @onConfirm="onConfirm">
<el-form class="ai-form" label-width="120px" :model="form" ref="form"> <el-form class="ai-form" label-width="120px" :model="form" ref="form">
<el-form-item label="是否通过审核" prop="pass" style="width: 100%;" :rules="[{ required: true, message: '请选择是否通过审核' }]"> <el-form-item label="是否通过审核" prop="pass" style="width: 100%;" :rules="[{ required: true, message: '请选择是否通过审核' }]">
<el-radio-group v-model="form.pass"> <el-radio-group v-model="form.pass" @change="onStatusChange">
<el-radio label="0"></el-radio> <el-radio label="0"></el-radio>
<el-radio label="1"></el-radio> <el-radio label="1"></el-radio>
</el-radio-group> </el-radio-group>
@@ -160,6 +159,10 @@
}) })
}, },
onStatusChange () {
this.$refs.form.clearValidate()
},
toAudit (id) { toAudit (id) {
this.id = id this.id = id
this.isShow = true this.isShow = true

View File

@@ -162,7 +162,7 @@
</el-table> </el-table>
</div> </div>
</ai-card> </ai-card>
<ai-card title="处理结果"> <ai-card title="处理结果" v-if="baseInfo.auditStatus > '0'">
<div slot="content" style="margin-top: 16px;margin-bottom:24px"> <div slot="content" style="margin-top: 16px;margin-bottom:24px">
<div class="detail-info"> <div class="detail-info">
<div class="detail-left fill"> <div class="detail-left fill">
@@ -188,7 +188,7 @@
@onConfirm="onConfirm"> @onConfirm="onConfirm">
<el-form class="ai-form" label-width="120px" :model="form" ref="form"> <el-form class="ai-form" label-width="120px" :model="form" ref="form">
<el-form-item label="是否通过审核" prop="pass" style="width: 100%;" :rules="[{ required: true, message: '请选择是否通过审核' }]"> <el-form-item label="是否通过审核" prop="pass" style="width: 100%;" :rules="[{ required: true, message: '请选择是否通过审核' }]">
<el-radio-group v-model="form.pass"> <el-radio-group v-model="form.pass" @change="onStatusChange">
<el-radio label="0"></el-radio> <el-radio label="0"></el-radio>
<el-radio label="1"></el-radio> <el-radio label="1"></el-radio>
</el-radio-group> </el-radio-group>
@@ -385,6 +385,10 @@ export default {
}) })
}, },
onStatusChange () {
this.$refs.form.clearValidate()
},
onClose () { onClose () {
this.form.pass = '' this.form.pass = ''
this.form.opinion = '' this.form.opinion = ''