587 lines
11 KiB
JavaScript
Executable File
587 lines
11 KiB
JavaScript
Executable File
/*
|
|
* Copyright (c) 2018-2025, cyweb All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions are met:
|
|
*
|
|
* Redistributions of source code must retain the above copyright notice,
|
|
* this list of conditions and the following disclaimer.
|
|
* Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
* Neither the name of the pig4cloud.com developer nor the names of its
|
|
* contributors may be used to endorse or promote products derived from
|
|
* this software without specific prior written permission.
|
|
*
|
|
*/
|
|
|
|
export const tableOption = {
|
|
border: true,
|
|
index: true,
|
|
indexLabel: '序号',
|
|
stripe: true,
|
|
menuAlign: 'center',
|
|
align: 'center',
|
|
editBtn: false,
|
|
delBtn: false,
|
|
addBtn: false,
|
|
dic: [],
|
|
selection:true,
|
|
column: [
|
|
{
|
|
label: '主键',
|
|
prop: 'id',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '创建人',
|
|
prop: 'createBy',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
prop: 'createTime',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '更新人',
|
|
prop: 'updateBy',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '更新时间',
|
|
prop: 'updateTime',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '删除标志位',
|
|
prop: 'delFlag',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
|
|
{
|
|
label: '租户id',
|
|
prop: 'tenantId',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '排序',
|
|
prop: 'sort',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '单位名称',
|
|
prop: 'companyId',
|
|
type: 'select',
|
|
filterable:true,
|
|
dicUrl:`/professional/outercompany/getList?companyType=0`,
|
|
props:{
|
|
label:'companyName',
|
|
value:'id',
|
|
},
|
|
search:true,
|
|
searchFilterable:true,
|
|
filter:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请选择单位"
|
|
}]
|
|
|
|
},
|
|
{
|
|
label: '单位名称',
|
|
prop: 'companyName',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '职员编号',
|
|
prop: 'employeeNo',
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
search:true,
|
|
},
|
|
{
|
|
label: '姓名',
|
|
prop: 'realName',
|
|
search:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请填写姓名"
|
|
}]
|
|
|
|
},
|
|
{
|
|
label: '身份证',
|
|
prop: 'idCard',
|
|
search:true,
|
|
hide:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请填写身份证号"
|
|
}]
|
|
},
|
|
{
|
|
label: '手机',
|
|
prop: 'mobile',
|
|
search:true,
|
|
hide:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请填写手机号"
|
|
}]
|
|
},
|
|
{
|
|
label: '职位',
|
|
prop: 'position',
|
|
hide:true
|
|
},
|
|
{
|
|
label: '家庭地址',
|
|
prop: 'address',
|
|
hide:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请填写家庭住址"
|
|
}]
|
|
},
|
|
{
|
|
label: '允许进出',
|
|
prop: 'inoutFlag',
|
|
type: 'select',
|
|
dicUrl: '/admin/dict/item/type/yes_no',
|
|
search: true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请选择是否允许进出"
|
|
}]
|
|
},
|
|
{
|
|
width: 300,
|
|
label: '头像',
|
|
prop: 'imageUrl',
|
|
slot:true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
},
|
|
{
|
|
label: '备注',
|
|
prop: 'remarks',
|
|
type:'textarea',
|
|
hide: true,
|
|
},
|
|
]
|
|
}
|
|
|
|
|
|
export const tableSecondOption = {
|
|
border: true,
|
|
index: true,
|
|
indexLabel: '序号',
|
|
stripe: true,
|
|
menuAlign: 'center',
|
|
align: 'center',
|
|
editBtn: false,
|
|
delBtn: false,
|
|
addBtn: false,
|
|
dic: [],
|
|
selection:true,
|
|
column: [
|
|
{
|
|
label: '主键',
|
|
prop: 'id',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '创建人',
|
|
prop: 'createBy',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
prop: 'createTime',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '更新人',
|
|
prop: 'updateBy',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '更新时间',
|
|
prop: 'updateTime',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '删除标志位',
|
|
prop: 'delFlag',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
|
|
{
|
|
label: '租户id',
|
|
prop: 'tenantId',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '排序',
|
|
prop: 'sort',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '单位名称',
|
|
prop: 'companyId',
|
|
type: 'select',
|
|
filterable:true,
|
|
dicUrl:`/professional/outercompany/getList?companyType=2`,
|
|
props:{
|
|
label:'companyName',
|
|
value:'id',
|
|
},
|
|
search:true,
|
|
searchFilterable:true,
|
|
filter:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请选择单位"
|
|
}]
|
|
|
|
},
|
|
{
|
|
label: '单位名称',
|
|
prop: 'companyName',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '职员编号',
|
|
prop: 'employeeNo',
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
search:true,
|
|
},
|
|
{
|
|
label: '姓名',
|
|
prop: 'realName',
|
|
search:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请填写姓名"
|
|
}]
|
|
|
|
},
|
|
{
|
|
label: '身份证',
|
|
prop: 'idCard',
|
|
search:true,
|
|
hide:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请填写身份证号"
|
|
}]
|
|
},
|
|
{
|
|
label: '手机',
|
|
prop: 'mobile',
|
|
search:true,
|
|
hide:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请填写手机号"
|
|
}]
|
|
},
|
|
{
|
|
label: '职位',
|
|
prop: 'position',
|
|
hide:true
|
|
},
|
|
{
|
|
label: '家庭地址',
|
|
prop: 'address',
|
|
hide:true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请填写家庭住址"
|
|
}]
|
|
},
|
|
{
|
|
label: '允许进出',
|
|
prop: 'inoutFlag',
|
|
type: 'select',
|
|
dicUrl: '/admin/dict/item/type/yes_no',
|
|
search: true,
|
|
rules: [{
|
|
required: true,
|
|
trigger: 'blur',
|
|
message:"请选择是否允许进出"
|
|
}]
|
|
},
|
|
{
|
|
width: 300,
|
|
label: '头像',
|
|
prop: 'imageUrl',
|
|
slot:true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
},
|
|
{
|
|
label: '备注',
|
|
prop: 'remarks',
|
|
type:'textarea',
|
|
hide: true,
|
|
},
|
|
]
|
|
}
|
|
|
|
export const tableOptionTrain = {
|
|
border: true,
|
|
index: true,
|
|
indexLabel: '序号',
|
|
stripe: true,
|
|
menuAlign: 'center',
|
|
align: 'center',
|
|
editBtn: false,
|
|
delBtn: false,
|
|
addBtn: false,
|
|
dic: [],
|
|
selection:true,
|
|
column: [
|
|
{
|
|
label: '主键',
|
|
prop: 'id',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '创建人',
|
|
prop: 'createBy',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
prop: 'createTime',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '更新人',
|
|
prop: 'updateBy',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '更新时间',
|
|
prop: 'updateTime',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '删除标志位',
|
|
prop: 'delFlag',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
|
|
{
|
|
label: '租户id',
|
|
prop: 'tenantId',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '排序',
|
|
prop: 'sort',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '班级名称',
|
|
prop: 'companyId',
|
|
type: 'select',
|
|
filterable:true,
|
|
dicUrl:`/professional/outercompany/getList?companyType=1`,
|
|
props:{
|
|
label:'companyName',
|
|
value:'id',
|
|
},
|
|
search:true,
|
|
searchFilterable:true,
|
|
filter:true
|
|
|
|
},
|
|
{
|
|
label: '班级名称',
|
|
prop: 'companyName',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false
|
|
},
|
|
{
|
|
label: '学员编号',
|
|
prop: 'employeeNo',
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
search:true,
|
|
},
|
|
{
|
|
label: '姓名',
|
|
prop: 'realName',
|
|
search:true,
|
|
},
|
|
{
|
|
label: '身份证',
|
|
prop: 'idCard',
|
|
search:true,
|
|
hide:true
|
|
},
|
|
{
|
|
label: '手机',
|
|
prop: 'mobile',
|
|
search:true,
|
|
hide:true
|
|
},
|
|
// {
|
|
// label: '职位',
|
|
// prop: 'position',
|
|
// hide:true
|
|
// },
|
|
// {
|
|
// label: '地址',
|
|
// prop: 'address',
|
|
// hide:true
|
|
// },
|
|
{
|
|
label: '允许进出',
|
|
prop: 'inoutFlag',
|
|
type: 'select',
|
|
dicUrl: '/admin/dict/item/type/yes_no',
|
|
search: true
|
|
},
|
|
{
|
|
width: 300,
|
|
label: '头像',
|
|
prop: 'imageUrl',
|
|
slot:true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
},
|
|
{
|
|
label: '备注',
|
|
prop: 'remarks',
|
|
type:'textarea',
|
|
hide: true,
|
|
},
|
|
]
|
|
}
|