经纪人审核页面的调整
This commit is contained in:
@ -12,8 +12,6 @@ npm install --registry=https://registry.npm.taobao.org
|
||||
npm run dev
|
||||
```
|
||||
|
||||
浏览器访问 http://localhost:80
|
||||
|
||||
## 发布
|
||||
|
||||
```bash
|
||||
|
@ -88,7 +88,7 @@
|
||||
ref="keywordsForm"
|
||||
/>
|
||||
|
||||
<el-row>
|
||||
<el-row v-if="value.id_image">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="身份证:" required>
|
||||
<el-row :gutter="20" type="flex" justify="space-between">
|
@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div style="width: 50%">
|
||||
<Agent
|
||||
<AgentForm
|
||||
v-model="form"
|
||||
:showTitle="true"
|
||||
:formType="formType"
|
||||
:labelWidth="labelWidth"
|
||||
ref="agent"
|
||||
ref="agentRef"
|
||||
/>
|
||||
<!-- :isAdd="false" -->
|
||||
</div>
|
||||
@ -15,11 +15,11 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import Agent from "@/views/components/Agent";
|
||||
import AgentForm from "@/views/components/AgentForm";
|
||||
import { agentAdd, agentDetail, agentEdit } from "@/api/dataList/agent";
|
||||
export default {
|
||||
components: {
|
||||
Agent,
|
||||
AgentForm,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -46,7 +46,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submitForm() {
|
||||
if (this.$refs.agent.submitForm()) {
|
||||
if (this.$refs.agentRef.submitForm()) {
|
||||
console.log(this.form);
|
||||
return false;
|
||||
// todo 不支持添加操作
|
||||
|
@ -1,45 +1,49 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<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>
|
||||
<el-button @click="submitForm(3)">审核拒绝</el-button>
|
||||
<el-button type="primary" @click="submitForm(2)">审核通过</el-button>
|
||||
<el-button @click="$router.go(-1)">关闭</el-button>
|
||||
<!-- <el-button @click="submitForm(3)">审核拒绝</el-button> -->
|
||||
<!-- <el-button type="primary" @click="submitForm(2)">审核通过</el-button> -->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import LaboratoryForm from "@/views/components/LaboratoryForm";
|
||||
import {
|
||||
laboratoryDetail,
|
||||
laboratoryEdit,
|
||||
laboratoryExamine,
|
||||
} from "@/api/dataList/laboratory";
|
||||
import AgentForm from "@/views/components/AgentForm";
|
||||
import { agentDetail } from "@/api/dataList/agent";
|
||||
export default {
|
||||
components: {
|
||||
LaboratoryForm,
|
||||
AgentForm,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
formType: 2,
|
||||
labelWidth: 140,
|
||||
form: {
|
||||
image: undefined,
|
||||
id: undefined,
|
||||
name: undefined,
|
||||
code: undefined,
|
||||
mobile: undefined,
|
||||
id_card: undefined,
|
||||
work_place: undefined,
|
||||
work_experience: undefined,
|
||||
tenant_id: undefined,
|
||||
province: undefined, // 省code
|
||||
city: undefined, // 市code
|
||||
district: undefined, // 区code
|
||||
address: undefined, // 详细地址
|
||||
industrys: [],
|
||||
researchs: [],
|
||||
license: undefined,
|
||||
introduce: undefined,
|
||||
keywords: [],
|
||||
id_image: [],
|
||||
credential_image: undefined,
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
submitForm(status) {
|
||||
console.log(this.form);
|
||||
if (this.$refs.laboratoryForm.submitForm()) {
|
||||
if (this.$refs.agentRef.submitForm()) {
|
||||
const str =
|
||||
status == 2
|
||||
? "<span style='color:green'>通过</span>"
|
||||
@ -73,23 +77,6 @@ export default {
|
||||
} else {
|
||||
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() {
|
||||
@ -99,7 +86,7 @@ export default {
|
||||
this.$router.go(-1);
|
||||
return;
|
||||
}
|
||||
laboratoryDetail({ id }).then((res) => {
|
||||
agentDetail({ id }).then((res) => {
|
||||
this.form = res.data;
|
||||
});
|
||||
},
|
||||
|
@ -51,10 +51,14 @@
|
||||
<el-table v-loading="loading" :data="dataList">
|
||||
<el-table-column label="数据编号" align="center" prop="id" />
|
||||
<el-table-column label="姓名" align="center" prop="name" />
|
||||
<el-table-column label="手机号" align="center" prop="research_name" />
|
||||
<el-table-column label="资格证书" prop="images" align="center">
|
||||
<el-table-column label="手机号" align="center" prop="mobile" />
|
||||
<el-table-column label="资格证书" prop="credential_image" align="center">
|
||||
<template slot-scope="scope">
|
||||
<ImagePreview :width="50" :height="50" :src="scope.row.images" />
|
||||
<ImagePreview
|
||||
:width="50"
|
||||
:height="50"
|
||||
:src="scope.row.credential_image"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
Reference in New Issue
Block a user