20231129
This commit is contained in:
@@ -0,0 +1,112 @@
|
||||
<template>
|
||||
<vk-data-form ref="form1" v-model="form1.data" :action="form1.props.action" :columns="form1.props.columns"
|
||||
:footer-show="false"
|
||||
:before-action="form1.props.beforeAction" :rules="form1.props.rules"
|
||||
:form-type="form1.props.formType"
|
||||
:loading.sync="form1.props.loading" :auto-close="true" label-width="140px"
|
||||
@success="onFormSuccess1">
|
||||
</vk-data-form>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {IdCard} from "@icon-park/vue";
|
||||
import _ from "lodash";
|
||||
|
||||
export default {
|
||||
name: "manageList",
|
||||
components: {IdCard},
|
||||
props: {
|
||||
value: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
return {}
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form1: {
|
||||
// 表单请求数据,此处可以设置默认值
|
||||
data: {
|
||||
person: {},
|
||||
company: {},
|
||||
manager: {},
|
||||
fadadaConfirm: false,
|
||||
authType: 1,
|
||||
},
|
||||
// 表单属性
|
||||
props: {
|
||||
// 表单请求地址
|
||||
action: "",
|
||||
// 表单字段显示规则
|
||||
columns: [
|
||||
{
|
||||
key: "type",
|
||||
title: "代理人类型",
|
||||
type: "radio",
|
||||
data: [
|
||||
{value: 0, label: '个人'},
|
||||
{value: 1, label: '法人'},
|
||||
{value: 2, label: '代理人'},
|
||||
]
|
||||
},
|
||||
{
|
||||
key: "personName",
|
||||
title: "代理人姓名",
|
||||
type: "text"
|
||||
},
|
||||
{
|
||||
key: "certType",
|
||||
title: "证件类型",
|
||||
type: "radio",
|
||||
data: [
|
||||
{value: 0, label: '身份证'},
|
||||
{value: 1, label: '护照'},
|
||||
]
|
||||
},
|
||||
{
|
||||
key: "idCard",
|
||||
title: "代理人身份证号",
|
||||
type: "text"
|
||||
},
|
||||
{
|
||||
key: "mobile",
|
||||
title: "代理人电话",
|
||||
type: "text"
|
||||
},
|
||||
{
|
||||
key: "headPhotoPath",
|
||||
title: "身份证正面",
|
||||
type: "image",
|
||||
limit: 1
|
||||
},
|
||||
{
|
||||
key: "backgroundIdCardPath",
|
||||
title: "身份证反面",
|
||||
type: "image",
|
||||
limit: 1
|
||||
},
|
||||
|
||||
],
|
||||
// 表单验证规则
|
||||
rules: {},
|
||||
// add 代表添加 update 代表修改
|
||||
formType: "",
|
||||
// 表单是否在请求中
|
||||
loading: false,
|
||||
// 是否显示表单1 的弹窗
|
||||
show: false
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {},
|
||||
watch: {
|
||||
"form1.data"(val) {
|
||||
this.$emit('input', val)
|
||||
console.log("this.$emit('input', val.data)");
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user