123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- import {BasicColumn} from '/@/components/Table';
- import {FormSchema} from '/@/components/Table';
- //列表数据
- export const columns: BasicColumn[] = [
- {
- title: '站点id',
- align:"center",
- dataIndex: 'siteId'
- },
- {
- title: '公司名称',
- align:"center",
- width:'300px',
- dataIndex: 'companyName'
- },
- {
- title: '状态',
- align:"center",
- dataIndex: 'status_dictText'
- },
- {
- title: '创建日期',
- align:"center",
- dataIndex: 'createTime'
- },
- {
- title: '初始化的域名',
- align:"center",
- width:'300px',
- dataIndex: 'domain'
- },
- {
- title: '联系方式',
- align:"center",
- dataIndex: 'tel'
- },
- {
- title: '联系人',
- align:"center",
- dataIndex: 'contact'
- },
- {
- title: '邮箱',
- align:"center",
- dataIndex: 'email'
- },
- {
- title: '公司名英⽂简称',
- align:"center",
- dataIndex: 'enname'
- },
- {
- title: '套餐名',
- align:"center",
- dataIndex: 'tcName'
- },
- {
- title: '套餐周期,单位⽉',
- align:"center",
- dataIndex: 'tcPeriod'
- },
- {
- title: '站点选择的⼩语种语⾔',
- align:"center",
- dataIndex: 'tcLanguage'
- },
- {
- title: '备注',
- align:"center",
- dataIndex: 'remark'
- },
- {
- title: '所属部门',
- align:"center",
- dataIndex: 'sysOrgCode_dictText'
- },
- {
- title: '所属人员',
- align:"center",
- dataIndex: 'sysUserCode_dictText'
- },
- ];
- //查询数据
- export const searchFormSchema: FormSchema[] = [
- {
- label: "公司名称",
- field: 'companyName',
- component: 'JInput',
- //colProps: {span: 6},
- },
- ];
- //表单数据
- export const formSchema: FormSchema[] = [
- {
- label: '所属部门',
- field: 'sysOrgCode',
- component: 'JSelectDept',
- componentProps:{
- rowKey:'orgCode',
- },
- },
- {
- label: '所属人员',
- field: 'sysUserCode',
- component: 'JSelectUser',
- componentProps:{
- labelKey:'realname',
- },
- },
- // TODO 主键隐藏字段,目前写死为ID
- {
- label: '',
- field: 'id',
- component: 'Input',
- show: false
- },
- ];
- // 高级查询数据
- export const superQuerySchema = {
- siteId: {title: '站点id',order: 0,view: 'number', type: 'number',},
- companyName: {title: '公司名称',order: 1,view: 'text', type: 'string',},
- status: {title: '状态',order: 2,view: 'number', type: 'number',},
- createTime: {title: '创建日期',order: 0,view: 'datetime', type: 'string',},
- domain: {title: '初始化的域名',order: 3,view: 'text', type: 'string',},
- tel: {title: '联系方式',order: 4,view: 'text', type: 'string',},
- contact: {title: '联系人',order: 5,view: 'text', type: 'string',},
- email: {title: '邮箱',order: 6,view: 'text', type: 'string',},
- enname: {title: '公司名英⽂简称',order: 7,view: 'text', type: 'string',},
- tcName: {title: '套餐名',order: 8,view: 'text', type: 'string',},
- tcPeriod: {title: '套餐周期,单位⽉',order: 9,view: 'number', type: 'number',},
- tcLanguage: {title: '站点选择的⼩语种语⾔',order: 10,view: 'text', type: 'string',},
- remark: {title: '备注',order: 11,view: 'textarea', type: 'string',},
- sysOrgCode: {title: '所属部门',order: 12,view: 'sel_depart', type: 'string',},
- sysUserCode: {title: '所属人员',order: 13,view: 'sel_user', type: 'string',},
- };
- /**
- * 流程表单调用这个方法获取formSchema
- * @param param
- */
- export function getBpmFormSchema(_formData): FormSchema[]{
- // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
- return formSchema;
- }
|