经纪人审核页面的调整

This commit is contained in:
熊丽君
2022-03-28 09:05:03 +08:00
parent baa306b0a3
commit 5afb949087
5 changed files with 38 additions and 49 deletions

View File

@ -12,8 +12,6 @@ npm install --registry=https://registry.npm.taobao.org
npm run dev npm run dev
``` ```
浏览器访问 http://localhost:80
## 发布 ## 发布
```bash ```bash

View File

@ -88,7 +88,7 @@
ref="keywordsForm" ref="keywordsForm"
/> />
<el-row> <el-row v-if="value.id_image">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="身份证:" required> <el-form-item label="身份证:" required>
<el-row :gutter="20" type="flex" justify="space-between"> <el-row :gutter="20" type="flex" justify="space-between">

View File

@ -1,12 +1,12 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div style="width: 50%"> <div style="width: 50%">
<Agent <AgentForm
v-model="form" v-model="form"
:showTitle="true" :showTitle="true"
:formType="formType" :formType="formType"
:labelWidth="labelWidth" :labelWidth="labelWidth"
ref="agent" ref="agentRef"
/> />
<!-- :isAdd="false" --> <!-- :isAdd="false" -->
</div> </div>
@ -15,11 +15,11 @@
</div> </div>
</template> </template>
<script> <script>
import Agent from "@/views/components/Agent"; import AgentForm from "@/views/components/AgentForm";
import { agentAdd, agentDetail, agentEdit } from "@/api/dataList/agent"; import { agentAdd, agentDetail, agentEdit } from "@/api/dataList/agent";
export default { export default {
components: { components: {
Agent, AgentForm,
}, },
data() { data() {
return { return {
@ -46,7 +46,7 @@ export default {
}, },
methods: { methods: {
submitForm() { submitForm() {
if (this.$refs.agent.submitForm()) { if (this.$refs.agentRef.submitForm()) {
console.log(this.form); console.log(this.form);
return false; return false;
// todo 不支持添加操作 // todo 不支持添加操作

View File

@ -1,45 +1,49 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div style="width: 50%"> <div style="width: 50%">
<LaboratoryForm v-model="form" :isAdd="false" ref="laboratoryForm" /> <AgentForm
v-model="form"
:showTitle="true"
:formType="formType"
:labelWidth="labelWidth"
ref="agentRef"
/>
</div> </div>
<el-button @click="submitForm(3)">审核拒绝</el-button> <el-button @click="$router.go(-1)">关闭</el-button>
<el-button type="primary" @click="submitForm(2)">审核通过</el-button> <!-- <el-button @click="submitForm(3)">审核拒绝</el-button> -->
<!-- <el-button type="primary" @click="submitForm(2)">审核通过</el-button> -->
</div> </div>
</template> </template>
<script> <script>
import LaboratoryForm from "@/views/components/LaboratoryForm"; import AgentForm from "@/views/components/AgentForm";
import { import { agentDetail } from "@/api/dataList/agent";
laboratoryDetail,
laboratoryEdit,
laboratoryExamine,
} from "@/api/dataList/laboratory";
export default { export default {
components: { components: {
LaboratoryForm, AgentForm,
}, },
data() { data() {
return { return {
formType: 2,
labelWidth: 140,
form: { form: {
image: undefined, id: undefined,
name: undefined, name: undefined,
code: undefined, mobile: undefined,
id_card: undefined,
work_place: undefined,
work_experience: undefined,
tenant_id: undefined, tenant_id: undefined,
province: undefined, // 省code
city: undefined, // 市code
district: undefined, // 区code
address: undefined, // 详细地址
industrys: [],
researchs: [], researchs: [],
license: undefined, keywords: [],
introduce: undefined, id_image: [],
credential_image: undefined,
}, },
}; };
}, },
methods: { methods: {
submitForm(status) { submitForm(status) {
console.log(this.form); console.log(this.form);
if (this.$refs.laboratoryForm.submitForm()) { if (this.$refs.agentRef.submitForm()) {
const str = const str =
status == 2 status == 2
? "<span style='color:green'>通过</span>" ? "<span style='color:green'>通过</span>"
@ -73,23 +77,6 @@ export default {
} else { } else {
console.log("校验未通过"); console.log("校验未通过");
} }
// this.$refs["form"].validate((valid) => {
// if (valid) {
// if (this.form.id != undefined) {
// serviceEdit(this.form).then((response) => {
// this.$modal.msgSuccess("修改成功");
// this.open = false;
// this.getList();
// });
// } else {
// serviceAdd(this.form).then((response) => {
// this.$modal.msgSuccess("新增成功");
// this.open = false;
// this.getList();
// });
// }
// }
// });
}, },
}, },
created() { created() {
@ -99,7 +86,7 @@ export default {
this.$router.go(-1); this.$router.go(-1);
return; return;
} }
laboratoryDetail({ id }).then((res) => { agentDetail({ id }).then((res) => {
this.form = res.data; this.form = res.data;
}); });
}, },

View File

@ -51,10 +51,14 @@
<el-table v-loading="loading" :data="dataList"> <el-table v-loading="loading" :data="dataList">
<el-table-column label="数据编号" align="center" prop="id" /> <el-table-column label="数据编号" align="center" prop="id" />
<el-table-column label="姓名" align="center" prop="name" /> <el-table-column label="姓名" align="center" prop="name" />
<el-table-column label="手机号" align="center" prop="research_name" /> <el-table-column label="手机号" align="center" prop="mobile" />
<el-table-column label="资格证书" prop="images" align="center"> <el-table-column label="资格证书" prop="credential_image" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<ImagePreview :width="50" :height="50" :src="scope.row.images" /> <ImagePreview
:width="50"
:height="50"
:src="scope.row.credential_image"
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column