first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 测试数据--常用的数据权限
|
||||
*/
|
||||
const aiCommonAuthData = [
|
||||
{
|
||||
ruleName: '只查询自己创建的数据',
|
||||
ruleColumn: 'create_by',
|
||||
ruleOperator: '=',
|
||||
ruleValue: '#{sys_user_code}',
|
||||
status: 1,
|
||||
},
|
||||
{
|
||||
ruleName: '查询本部门及下级部门的数据',
|
||||
ruleColumn: 'sys_org_code',
|
||||
ruleOperator: 'RIGHT_LIKE',
|
||||
ruleValue: '#{sys_org_code}',
|
||||
status: 1,
|
||||
},
|
||||
];
|
||||
export default aiCommonAuthData;
|
||||
@@ -0,0 +1,130 @@
|
||||
/**
|
||||
* 测试的表类型
|
||||
* 新增表配置步骤
|
||||
* 1.在此集合中添加一条数据 name为表名 title描述
|
||||
* 2.添加一个ts文件 按照下面注释的模板配置table fields enhanceFormJs enhanceSql等属性的值 参考 one.single.ts
|
||||
* 3.在 useOnlineTest.ts 中 import xxx_config from './data/xxx'
|
||||
* 4. useOnlineTest.ts 的 configMap 中声明 xxx_config 名称均为表名加_config
|
||||
*/
|
||||
export default [
|
||||
/* { title: '单表全字段测试', name: 'ai_single' },
|
||||
{ title: '简单订单主表', name: 'ai_easy_main' },
|
||||
{ title: '简单订单子表', name: 'ai_easy_sub' },
|
||||
{ title: '商品表', name: 'ai_shop_product' },
|
||||
{ title: '商品分类表', name: 'ai_shop_category' },
|
||||
{ title: '商城用户主表', name: 'ai_shop_user' },
|
||||
{ title: '商城用户订单(子)', name: 'ai_shop_order' },
|
||||
{ title: '商城用户商家(子)', name: 'ai_shop_business' },*/
|
||||
|
||||
{
|
||||
title: '单表@表单控件',
|
||||
name: 'ai_control_single',
|
||||
},
|
||||
{
|
||||
title: '单表@表单检验',
|
||||
name: 'ai_rules_single',
|
||||
},
|
||||
{
|
||||
title: '单表@表单默认值',
|
||||
name: 'ai_defval_single',
|
||||
},
|
||||
{
|
||||
title: '单表@默认查询',
|
||||
name: 'ai_query_def_single',
|
||||
},
|
||||
{
|
||||
title: '单表@自定义查询',
|
||||
name: 'ai_query_custom_single',
|
||||
},
|
||||
{
|
||||
title: '树表-商品分类',
|
||||
name: 'ai_shop_category',
|
||||
},
|
||||
{
|
||||
title: '1主表@表单控件',
|
||||
name: 'ai_control_main',
|
||||
},
|
||||
{
|
||||
title: '1一对一子表@表单控件',
|
||||
name: 'ai_control_sub_one',
|
||||
},
|
||||
{
|
||||
title: '1一对多子表@表单控件',
|
||||
name: 'ai_control_sub',
|
||||
},
|
||||
{
|
||||
title: '2主表@表单默认值',
|
||||
name: 'ai_defval_main',
|
||||
},
|
||||
{
|
||||
title: '2一对多子表@表单默认值',
|
||||
name: 'ai_defval_sub',
|
||||
},
|
||||
{
|
||||
title: '2一对一子表@表单默认值',
|
||||
name: 'ai_defval_subone',
|
||||
},
|
||||
{
|
||||
title: '3主表@表单检验',
|
||||
name: 'ai_rules_main',
|
||||
},
|
||||
{
|
||||
title: '3一对一子表@表单检验',
|
||||
name: 'ai_rules_sub_one',
|
||||
},
|
||||
{
|
||||
title: '3一对多子表@表单检验',
|
||||
name: 'ai_rules_sub',
|
||||
},
|
||||
{
|
||||
title: '4主表@自定义查询',
|
||||
name: 'ai_query_custom_main',
|
||||
},
|
||||
{
|
||||
title: '4一对一子表@自定义查询',
|
||||
name: 'ai_query_custom_sub_one',
|
||||
},
|
||||
{
|
||||
title: '4一对多子表@自定义查询',
|
||||
name: 'ai_query_custom_sub',
|
||||
},
|
||||
{
|
||||
title: '5主表@默认查询',
|
||||
name: 'ai_query_def_main',
|
||||
},
|
||||
{
|
||||
title: '5一对一子表@默认查询',
|
||||
name: 'ai_query_def_sub_one',
|
||||
},
|
||||
{
|
||||
title: '5一对多子表@默认查询',
|
||||
name: 'ai_query_def_sub',
|
||||
},
|
||||
];
|
||||
|
||||
/*
|
||||
// xxx表配置 描述清楚
|
||||
const table = {}
|
||||
|
||||
// 字段
|
||||
const fields = []
|
||||
|
||||
// 表单js增强
|
||||
const enhanceFormJs = ''
|
||||
|
||||
// sql增强
|
||||
const enhanceSql = ''
|
||||
|
||||
// 索引
|
||||
const indexList = []
|
||||
|
||||
// 组合
|
||||
const tablename_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList
|
||||
}
|
||||
export default tablename_config
|
||||
*/
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,250 @@
|
||||
/**
|
||||
* 默认字段设置
|
||||
*/
|
||||
const defaultFields = [
|
||||
{
|
||||
dbFieldName: 'id',
|
||||
dbFieldTxt: '主键',
|
||||
dbIsKey: 1,
|
||||
dbIsNull: 0,
|
||||
dbType: 'string',
|
||||
dbLength: 36,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '1',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 1,
|
||||
queryMode: 'single',
|
||||
queryConfigFlag: '0',
|
||||
orderNum: 1,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'create_by',
|
||||
dbFieldTxt: '创建人',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
queryConfigFlag: '0',
|
||||
sortFlag: '0',
|
||||
orderNum: 2,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'create_time',
|
||||
dbFieldTxt: '创建时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Datetime',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'datetime',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
queryConfigFlag: '0',
|
||||
sortFlag: '0',
|
||||
orderNum: 3,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'update_by',
|
||||
dbFieldTxt: '更新人',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
queryConfigFlag: '0',
|
||||
sortFlag: '0',
|
||||
orderNum: 4,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'update_time',
|
||||
dbFieldTxt: '更新时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Datetime',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'datetime',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
queryConfigFlag: '0',
|
||||
sortFlag: '0',
|
||||
orderNum: 5,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'sys_org_code',
|
||||
dbFieldTxt: '所属部门',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
orderNum: 6,
|
||||
queryConfigFlag: '0',
|
||||
sortFlag: '0',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 自定义按钮
|
||||
*/
|
||||
const customButtons = [
|
||||
{
|
||||
buttonCode: 'one',
|
||||
buttonName: 'js增强button',
|
||||
buttonStyle: 'button',
|
||||
optPosition: '2',
|
||||
optType: 'js',
|
||||
orderNum: 1,
|
||||
buttonStatus: '1',
|
||||
},
|
||||
{
|
||||
buttonCode: 'two',
|
||||
buttonName: 'action增强button',
|
||||
buttonStyle: 'button',
|
||||
optPosition: '2',
|
||||
optType: 'action',
|
||||
orderNum: 2,
|
||||
buttonStatus: '1',
|
||||
},
|
||||
{
|
||||
buttonCode: 'three',
|
||||
buttonName: 'js增强link',
|
||||
buttonStyle: 'link',
|
||||
optPosition: '2',
|
||||
optType: 'js',
|
||||
orderNum: 3,
|
||||
buttonStatus: '1',
|
||||
},
|
||||
{
|
||||
buttonCode: 'four',
|
||||
buttonName: '表单按钮',
|
||||
buttonStyle: 'form',
|
||||
optPosition: '2',
|
||||
optType: 'js',
|
||||
orderNum: 4,
|
||||
buttonStatus: '1',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 列表页js增强
|
||||
*/
|
||||
const customListEnhanceJavascript = `
|
||||
one(){
|
||||
console.log('当前选中行的id', this.selectedRowKeys);
|
||||
}
|
||||
three(row){
|
||||
console.log('当前行数据', row)
|
||||
}
|
||||
beforeDelete(row){
|
||||
return new Promise(resolve=>{
|
||||
console.log('删除数据之前看看数据', row);
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* form页js增强
|
||||
* 【TV360X-363】js增强所有表都可生成测试代码
|
||||
*/
|
||||
const customFormEnhanceJavascript = `
|
||||
loaded(){
|
||||
let text = '';
|
||||
if(this.isUpdate.value === true){
|
||||
text = '编辑';
|
||||
} else {
|
||||
text = '新增';
|
||||
}
|
||||
console.log(text);
|
||||
}
|
||||
onlChange(){
|
||||
return {
|
||||
name() {
|
||||
console.log('name字段值改变了:', name);
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* java增强
|
||||
*/
|
||||
const customJavaEnhance = [
|
||||
{
|
||||
buttonCode: 'add',
|
||||
event: 'start',
|
||||
cgJavaType: 'spring',
|
||||
cgJavaValue: 'cgformEnhanceJavaDemo',
|
||||
activeStatus: '1',
|
||||
},
|
||||
{
|
||||
buttonCode: 'edit',
|
||||
event: 'end',
|
||||
cgJavaType: 'spring',
|
||||
cgJavaValue: 'cgformEnhanceJavaDemo',
|
||||
activeStatus: '1',
|
||||
},
|
||||
{
|
||||
buttonCode: 'import',
|
||||
event: 'start',
|
||||
cgJavaType: 'spring',
|
||||
cgJavaValue: 'cgformEnhanceImportDemo',
|
||||
activeStatus: '1',
|
||||
},
|
||||
{
|
||||
buttonCode: 'export',
|
||||
event: 'start',
|
||||
cgJavaType: 'spring',
|
||||
cgJavaValue: 'cgformEnhanceExportDemo',
|
||||
activeStatus: '1',
|
||||
},
|
||||
{
|
||||
buttonCode: 'query',
|
||||
event: 'start',
|
||||
cgJavaType: 'spring',
|
||||
cgJavaValue: 'cgformEnhanceQueryDemo',
|
||||
activeStatus: '1',
|
||||
},
|
||||
];
|
||||
|
||||
export { defaultFields, customButtons, customListEnhanceJavascript, customJavaEnhance, customFormEnhanceJavascript };
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,61 @@
|
||||
import ai_single_config from './one.single';
|
||||
import ai_easy_main_config from './onetomany.easymain';
|
||||
import ai_easy_sub_config from './onetomany.easysub1';
|
||||
import ai_shop_product_config from './one.shopproduct';
|
||||
import ai_shop_category_config from './tree.shopcategory';
|
||||
import ai_shop_user_config from './onetomany.shopuser';
|
||||
import ai_shop_business_config from './onetomany.shopbusiness';
|
||||
import ai_shop_order_config from './onetomany.shoporder';
|
||||
import ai_defval_single_config from './defval/one.defvalsingle';
|
||||
import ai_defval_main_config from './defval/onetomany.defvalmain';
|
||||
import ai_defval_sub_config from './defval/onetomany.defvalsub';
|
||||
import ai_defval_subone_config from './defval/onetomany.defvalsubone';
|
||||
import ai_rules_single_config from './rules/one.rulessingle';
|
||||
import ai_rules_main_config from './rules/onetomany.rulesmain';
|
||||
import ai_rules_sub_one_config from './rules/onetomany.rulessubone';
|
||||
import ai_rules_sub_config from './rules/onetomany.rulessub';
|
||||
import ai_query_custom_single_config from './query/custom/one.querycustomsingle';
|
||||
import ai_query_custom_main_config from './query/custom/onetomany.querycustommain';
|
||||
import ai_query_custom_sub_one_config from './query/custom/onetomany.querycustomsubone';
|
||||
import ai_query_custom_sub_config from './query/custom/onetomany.querycustomsub';
|
||||
import ai_query_def_single_config from './query/def/one.querydefsingle';
|
||||
import ai_query_def_main_config from './query/def/onetomany.querydefmain';
|
||||
import ai_query_def_sub_one_config from './query/def/onetomany.querydefsubone';
|
||||
import ai_query_def_sub_config from './query/def/onetomany.querydefsub';
|
||||
import ai_control_single_config from './control/one.controlsingle';
|
||||
import ai_control_main_config from './control/onetomany.controlmain';
|
||||
import ai_control_sub_one_config from './control/onetomany.controlsubone';
|
||||
import ai_control_sub_config from './control/onetomany.controlsub';
|
||||
import aiCommonAuthData from './auth/common.auth';
|
||||
|
||||
export default {
|
||||
ai_single_config,
|
||||
ai_easy_main_config,
|
||||
ai_easy_sub_config,
|
||||
ai_shop_product_config,
|
||||
ai_shop_category_config,
|
||||
ai_shop_user_config,
|
||||
ai_shop_business_config,
|
||||
ai_shop_order_config,
|
||||
ai_defval_single_config,
|
||||
ai_defval_main_config,
|
||||
ai_defval_sub_config,
|
||||
ai_defval_subone_config,
|
||||
ai_rules_single_config,
|
||||
ai_rules_main_config,
|
||||
ai_rules_sub_one_config,
|
||||
ai_rules_sub_config,
|
||||
ai_query_custom_single_config,
|
||||
ai_query_custom_main_config,
|
||||
ai_query_custom_sub_one_config,
|
||||
ai_query_custom_sub_config,
|
||||
ai_query_def_single_config,
|
||||
ai_query_def_main_config,
|
||||
ai_query_def_sub_one_config,
|
||||
ai_query_def_sub_config,
|
||||
ai_control_single_config,
|
||||
ai_control_main_config,
|
||||
ai_control_sub_one_config,
|
||||
ai_control_sub_config,
|
||||
aiCommonAuthData,
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,548 @@
|
||||
/**
|
||||
* 全字段单表配置信息
|
||||
*/
|
||||
const singleTableConfig = {
|
||||
tableName: 'ai_single',
|
||||
tableTxt: 'online测试单表',
|
||||
tableType: 1,
|
||||
formTemplate: '1',
|
||||
showRelationType: false,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
/**
|
||||
* 单表字段
|
||||
*/
|
||||
const singleTableFields = [
|
||||
{
|
||||
dbFieldName: 'name',
|
||||
dbFieldTxt: '商品名称',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '1',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'price',
|
||||
dbFieldTxt: '单价',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'BigDecimal',
|
||||
fieldLength: 120,
|
||||
dbLength: 10,
|
||||
dbPointLength: 2,
|
||||
fieldShowType: 'text',
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'yuanjia',
|
||||
dbFieldTxt: '原价',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 6,
|
||||
dbPointLength: 2,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'geshu',
|
||||
dbFieldTxt: '个数',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'int',
|
||||
dbLength: 9,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'jycs',
|
||||
dbFieldTxt: '校验测试',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'province',
|
||||
dbFieldTxt: '正则校验',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '^[a-z|A-Z]{2,10}$',
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'zdmrz',
|
||||
dbFieldTxt: '自定义查询',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
fieldDefaultValue: '1',
|
||||
queryConfigFlag: '1',
|
||||
queryShowType: 'list',
|
||||
queryDefVal: '1',
|
||||
queryDictField: 'sex',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xiala',
|
||||
dbFieldTxt: '下拉',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'list',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
dictField: 'sex',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'danxuan',
|
||||
dbFieldTxt: '单选',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'radio',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
dictField: 'sex',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'duoxuan',
|
||||
dbFieldTxt: '多选',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'checkbox',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
dictField: 'urgent_level',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'kaiguan',
|
||||
dbFieldTxt: '开关',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'switch',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
fieldExtendJson: '[1,2]',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'riqi',
|
||||
dbFieldTxt: '日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'date',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 1,
|
||||
queryMode: 'group',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shijian',
|
||||
dbFieldTxt: '时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'datetime',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 1,
|
||||
queryMode: 'group',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'wenjian',
|
||||
dbFieldTxt: '文件',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 250,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'file',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'tupian',
|
||||
dbFieldTxt: '图片',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 250,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'image',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'dhwb',
|
||||
dbFieldTxt: '多行文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 250,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'textarea',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xldx',
|
||||
dbFieldTxt: '下拉多选',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 250,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'list_multi',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
dictField: 'urgent_level',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xlss',
|
||||
dbFieldTxt: '下拉搜索',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 50,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'sel_search',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 1,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'popup',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
dictField: 'username,realname',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup,popback',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popback',
|
||||
dbFieldTxt: 'popback',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'text',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'fen_tree',
|
||||
dbFieldTxt: '分类字典',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'cat_tree',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
dictField: 'B02',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'bmxz',
|
||||
dbFieldTxt: '部门选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'sel_depart',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 1,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'yhxz',
|
||||
dbFieldTxt: '用户选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'sel_user',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 1,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'fwb',
|
||||
dbFieldTxt: '富文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Text',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'umeditor',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'markdown',
|
||||
dbFieldTxt: 'markdown',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Blob',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'markdown',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 0,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'pca',
|
||||
dbFieldTxt: '省市区',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
fieldShowType: 'pca',
|
||||
fieldLength: 120,
|
||||
fieldMustInput: '0',
|
||||
isQuery: 1,
|
||||
queryMode: 'single',
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 表单页js增强
|
||||
* @type {string}
|
||||
*/
|
||||
const singleTableFormJs = `
|
||||
four(){
|
||||
this.triggleChangeValue('name', '通过增强设置值')
|
||||
}
|
||||
beforeSubmit(row){
|
||||
return new Promise((resolve, reject)=>{
|
||||
setTimeout(()=>{
|
||||
if(row.name == 'test'){
|
||||
reject('不能提交测试数据');
|
||||
}else{
|
||||
resolve();
|
||||
}
|
||||
},3000)
|
||||
})
|
||||
}
|
||||
onlChange(){
|
||||
return {
|
||||
name(){
|
||||
let value = event.value
|
||||
let row = this.getFieldsValue()
|
||||
let price = row.price
|
||||
let values = {'dhwb':'商品名称:'+value+',单价:'+price}
|
||||
this.triggleChangeValues(values)
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
// sql增强
|
||||
// noinspection SqlDialectInspection,SqlNoDataSourceInspection
|
||||
const singleTableSql = "update ai_single set price = 2.00 where id = '#{id}'";
|
||||
|
||||
/**
|
||||
* 索引配置
|
||||
*/
|
||||
const indexList = [
|
||||
{
|
||||
indexField: 'jycs',
|
||||
indexName: 'index_jycs',
|
||||
indexType: 'unique',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 此对象为最后混入里配置的对象 扩展表类型 属性名需要和此对象保持一致
|
||||
* 命名规则 表名_config
|
||||
*/
|
||||
const ai_single_config = {
|
||||
table: singleTableConfig,
|
||||
fields: singleTableFields,
|
||||
enhanceFormJs: singleTableFormJs,
|
||||
enhanceSql: singleTableSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_single_config;
|
||||
@@ -0,0 +1,143 @@
|
||||
/**
|
||||
* 简单订单表配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_easy_main',
|
||||
tableTxt: '订单测试表',
|
||||
tableType: 2,
|
||||
formTemplate: '2',
|
||||
showRelationType: false,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'order_code',
|
||||
dbFieldTxt: '订单编码',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'String',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: null,
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'text',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: '${order_num_rule}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: null,
|
||||
mainField: null,
|
||||
orderNum: 6,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'order_date',
|
||||
dbFieldTxt: '下单时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: null,
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'date',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: null,
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: null,
|
||||
mainField: null,
|
||||
orderNum: 7,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'descc',
|
||||
dbFieldTxt: '描述',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'String',
|
||||
dbLength: 100,
|
||||
dbPointLength: 0,
|
||||
dictField: null,
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'textarea',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: null,
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: null,
|
||||
mainField: null,
|
||||
orderNum: 8,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
];
|
||||
|
||||
const ai_easy_main_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: '',
|
||||
enhanceSql: '',
|
||||
};
|
||||
export default ai_easy_main_config;
|
||||
@@ -0,0 +1,256 @@
|
||||
/**
|
||||
* 简单订单产品明细配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_easy_sub',
|
||||
tableTxt: '订单产品明细',
|
||||
tableType: 3,
|
||||
formTemplate: '2',
|
||||
showRelationType: true,
|
||||
relationType: 0,
|
||||
tabOrderNum: 1,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'product_name',
|
||||
dbFieldTxt: '产品名字',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'String',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: null,
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'text',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: null,
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: null,
|
||||
mainField: null,
|
||||
orderNum: 6,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'price',
|
||||
dbFieldTxt: '价格',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: null,
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'text',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'n',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: null,
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: null,
|
||||
mainField: null,
|
||||
orderNum: 7,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'num',
|
||||
dbFieldTxt: '数量',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'int',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: null,
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'text',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'n',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: null,
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: null,
|
||||
mainField: null,
|
||||
orderNum: 8,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'pro_type',
|
||||
dbFieldTxt: '产品类型',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'String',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'radio',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: null,
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: null,
|
||||
mainField: null,
|
||||
orderNum: 9,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'order_fk_id',
|
||||
dbFieldTxt: '订单外键ID',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 0,
|
||||
dbType: 'String',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: null,
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'text',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: null,
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: 'ai_easy_main',
|
||||
mainField: 'id',
|
||||
orderNum: 10,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'descc',
|
||||
dbFieldTxt: '描述',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'String',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: null,
|
||||
dictTable: null,
|
||||
dictText: null,
|
||||
fieldShowType: 'text',
|
||||
fieldHref: null,
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: null,
|
||||
fieldDefaultValue: null,
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: null,
|
||||
mainField: null,
|
||||
orderNum: 11,
|
||||
converter: null,
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: null,
|
||||
queryDictText: null,
|
||||
queryDictField: null,
|
||||
queryDictTable: null,
|
||||
queryShowType: null,
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
];
|
||||
|
||||
const ai_easy_sub_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: '',
|
||||
enhanceSql: '',
|
||||
};
|
||||
export default ai_easy_sub_config;
|
||||
@@ -0,0 +1,598 @@
|
||||
//商城商家表配置
|
||||
const table = {
|
||||
themeTemplate: 'normal',
|
||||
tableName: 'ai_shop_business',
|
||||
scroll: 1,
|
||||
tableType: 3,
|
||||
tableVersion: 1,
|
||||
tableTxt: '商城商家表',
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
relationType: 1,
|
||||
tabOrderNum: 1,
|
||||
formCategory: 'temp',
|
||||
formTemplate: '1',
|
||||
isDesForm: 'N',
|
||||
};
|
||||
|
||||
//字段
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'business_name',
|
||||
dbFieldTxt: '商家名称',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '北京国炬',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'select_user',
|
||||
dbFieldTxt: '用户',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'sel_search',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '#{sysUserCode}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: 'customDemoConverter',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'business_desc',
|
||||
dbFieldTxt: '商家描述',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Text',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '*6-16',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'business_image',
|
||||
dbFieldTxt: '商家图片',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 1000,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'image',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'business_file',
|
||||
dbFieldTxt: '商家文件(证书)',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 1000,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'file',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'register_date',
|
||||
dbFieldTxt: '注册日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '#{date}',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'date',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'select_more',
|
||||
dbFieldTxt: '下拉多选',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'send_status',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list_multi',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'select_box',
|
||||
dbFieldTxt: '下拉框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sports',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹窗',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'realname,username',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup,popupback',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'mall_user_id',
|
||||
dbFieldTxt: '外键',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: 'ai_shop_user',
|
||||
mainField: 'id',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'integer_test',
|
||||
dbFieldTxt: 'integer测试',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'int',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '{{5*10-5}}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'double_test',
|
||||
dbFieldTxt: 'double测试',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'n6-16',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'js_exceprion',
|
||||
dbFieldTxt: 'js默认表达式',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '{{demoFieldDefVal_getAddress("北京市朝阳区")}}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'zhengze',
|
||||
dbFieldTxt: '正则',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'buiss_code',
|
||||
dbFieldTxt: '商家编码',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '${order_num_rule}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 1,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
//组合
|
||||
const ai_shop_business_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_shop_business_config;
|
||||
@@ -0,0 +1,672 @@
|
||||
//商城订单表配置
|
||||
const table = {
|
||||
themeTemplate: 'normal',
|
||||
tableName: 'ai_shop_order',
|
||||
scroll: 1,
|
||||
tableType: 3,
|
||||
tableVersion: 1,
|
||||
tableTxt: '商城订单表',
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
relationType: 0,
|
||||
tabOrderNum: 1,
|
||||
formCategory: 'temp',
|
||||
formTemplate: '1',
|
||||
isDesForm: 'N',
|
||||
};
|
||||
|
||||
//字段
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'mall_name',
|
||||
dbFieldTxt: '商品名称',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Text',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'buy_user',
|
||||
dbFieldTxt: '收货人',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 200,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '#{sysUserCode}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: 'customDemoConverter',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'buy_order',
|
||||
dbFieldTxt: '订单号',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '${order_num_rule}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'transaction_date',
|
||||
dbFieldTxt: '交易日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '*',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '#{date}',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'good_image',
|
||||
dbFieldTxt: '商品图片',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 1000,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'image',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: ' {"uploadnum":1}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'buy_count',
|
||||
dbFieldTxt: '购买数量',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'int',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'cope_with',
|
||||
dbFieldTxt: '单价',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'BigDecimal',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '{{100/50}}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'actual_payment',
|
||||
dbFieldTxt: '实付',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '{{100/50-10}}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'status',
|
||||
dbFieldTxt: '是否已付款',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'yn',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'radio',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '1',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'kaiguan',
|
||||
dbFieldTxt: '开关',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'yn',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'switch',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '1',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'good_file',
|
||||
dbFieldTxt: '文件',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 1000,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'file',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: ' {"uploadnum":1}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'select_more',
|
||||
dbFieldTxt: '下拉多选',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'org_category',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list_multi',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹窗',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'realname,username',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup,popupback',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '',
|
||||
queryDictText: 'realname',
|
||||
queryDictField: 'username',
|
||||
queryDictTable: 'sys_user',
|
||||
queryShowType: 'list',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'mall_user_id',
|
||||
dbFieldTxt: '外键',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: 'ai_shop_user',
|
||||
mainField: 'id',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'jiequ',
|
||||
dbFieldTxt: '列表显示截取',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '*6-16',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"showLength":5}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'js_expection',
|
||||
dbFieldTxt: 'js默认表单',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: null,
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '{{demoFieldDefVal_getAddress("北京市朝阳区")}}',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 22,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
{
|
||||
dbFieldName: 'zhengze',
|
||||
dbFieldTxt: '正则',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '^[\\u4e00-\\u9fa5]+$',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 23,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
//组合
|
||||
const ai_shop_order_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_shop_order_config;
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,654 @@
|
||||
/**
|
||||
* 全字段单表配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_query_custom_main',
|
||||
tableTxt: '自定义查询@主表',
|
||||
tableType: 2,
|
||||
formTemplate: '1',
|
||||
showRelationType: false,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'wen_ben',
|
||||
dbFieldTxt: '文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 36,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '测试',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi',
|
||||
dbFieldTxt: '日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '2021-12-28',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'date',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shijian',
|
||||
dbFieldTxt: '时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'time',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '19:40:25,20:00:00',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'time',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'duo_xuan',
|
||||
dbFieldTxt: '多选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'checkbox',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '1',
|
||||
queryDictText: '',
|
||||
queryDictField: 'sex',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'list',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_duo_xuan',
|
||||
dbFieldTxt: '下拉多选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'list_multi',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: 'realname',
|
||||
queryDictField: 'username',
|
||||
queryDictTable: 'sys_user',
|
||||
queryShowType: 'list_multi',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_sou_suo',
|
||||
dbFieldTxt: '下拉搜索框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'sel_search',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: 'realname',
|
||||
queryDictField: 'username',
|
||||
queryDictTable: 'sys_user',
|
||||
queryShowType: 'sel_search',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'fen_lei_zi_dian_shu',
|
||||
dbFieldTxt: '分类字典树',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'B01',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'cat_tree',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'f39a06bf9f390ba4a53d11bc4e0018d7',
|
||||
queryDictText: '',
|
||||
queryDictField: 'B01',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'cat_tree',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹窗',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'realname,username',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup,popback',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: 'popup,popback',
|
||||
queryDictField: 'realname,username',
|
||||
queryDictTable: 'report_user',
|
||||
queryShowType: 'popup',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'user_select',
|
||||
dbFieldTxt: '用户选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_user',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'jeecg',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'sel_user',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'depart_select',
|
||||
dbFieldTxt: '部门选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_depart',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'c6d7cb4deeac411cb3384b1b31278596',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'sel_depart',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'province_area',
|
||||
dbFieldTxt: '省市区下拉',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'pca',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '130303',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'pca',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'custom_tree',
|
||||
dbFieldTxt: '自定义树组件',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '0',
|
||||
dictTable: 'sys_category',
|
||||
dictText: 'id,pid,name,has_child',
|
||||
fieldShowType: 'sel_tree',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '5c8f68845e57f68ab93a2c8d82d26ae1',
|
||||
queryDictText: 'id,pid,name,has_child',
|
||||
queryDictField: '0',
|
||||
queryDictTable: 'sys_category',
|
||||
queryShowType: 'sel_tree',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi_fan_wei',
|
||||
dbFieldTxt: '日期范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '2021-12-20,2021-12-28',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'date',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shu_zhi',
|
||||
dbFieldTxt: '数值范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '3',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la',
|
||||
dbFieldTxt: '下拉框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'jeecg',
|
||||
queryDictText: 'realname',
|
||||
queryDictField: 'username',
|
||||
queryDictTable: 'sys_user',
|
||||
queryShowType: 'list',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'nyrsfm',
|
||||
dbFieldTxt: '年月日时分秒',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 22,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '2021-11-29 15:15:30,2021-12-31 15:15:30',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'datetime',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
/**
|
||||
* 此对象为最后混入里配置的对象 扩展表类型 属性名需要和此对象保持一致
|
||||
* 命名规则 表名_config
|
||||
*/
|
||||
const ai_query_custom_main_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_query_custom_main_config;
|
||||
@@ -0,0 +1,655 @@
|
||||
/**
|
||||
* 全字段单表配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_query_custom_sub',
|
||||
tableTxt: '自定义查询@一对多子表',
|
||||
tableType: 3,
|
||||
formTemplate: '1',
|
||||
showRelationType: true,
|
||||
relationType: 0,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'wen_ben',
|
||||
dbFieldTxt: '文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '测试',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shi_jian',
|
||||
dbFieldTxt: '时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'time',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '19:42:02',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'time',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi',
|
||||
dbFieldTxt: '日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '2021-12-28',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'date',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'select_box',
|
||||
dbFieldTxt: '下拉框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '1',
|
||||
queryDictText: '',
|
||||
queryDictField: 'sex',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'list',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'select_search',
|
||||
dbFieldTxt: '下拉搜索框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'sel_search',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: 'realname',
|
||||
queryDictField: 'username',
|
||||
queryDictTable: 'sys_user',
|
||||
queryShowType: 'sel_search',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'dict_tree_type',
|
||||
dbFieldTxt: '分类字典树',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'f39a06bf9f390ba4a53d11bc4e0018d7',
|
||||
queryDictText: '',
|
||||
queryDictField: 'B01',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'cat_tree',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹窗',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'realname,username',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup,popback',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: 'popup,popback',
|
||||
queryDictField: 'realname,username',
|
||||
queryDictTable: 'report_user',
|
||||
queryShowType: 'popup',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'depart_select',
|
||||
dbFieldTxt: '部门选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_depart',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'c6d7cb4deeac411cb3384b1b31278596',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'sel_depart',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'user_select',
|
||||
dbFieldTxt: '用户选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_user',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'sel_user',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'province_area',
|
||||
dbFieldTxt: '省市区组件',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '140405',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'pca',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'custom_assembly',
|
||||
dbFieldTxt: '自定义组件',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '5c8f68845e57f68ab93a2c8d82d26ae1',
|
||||
queryDictText: 'id,pid,name,has_child',
|
||||
queryDictField: '0',
|
||||
queryDictTable: 'sys_category',
|
||||
queryShowType: 'sel_tree',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'query_main_id',
|
||||
dbFieldTxt: '主表默认查询id',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: 'ai_query_custom_main',
|
||||
mainField: 'id',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shuzhi',
|
||||
dbFieldTxt: '数值范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '1,200',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi_fan_wei',
|
||||
dbFieldTxt: '日期范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Datetime',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'datetime',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '2021-11-28,2021-12-28',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_duo_xuan',
|
||||
dbFieldTxt: '下拉多选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'list_multi',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'jeecg',
|
||||
queryDictText: 'realname',
|
||||
queryDictField: 'username',
|
||||
queryDictTable: 'sys_user',
|
||||
queryShowType: 'list_multi',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'nyrsfm',
|
||||
dbFieldTxt: '年月日时分秒',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 22,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'datetime',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
/**
|
||||
* 此对象为最后混入里配置的对象 扩展表类型 属性名需要和此对象保持一致
|
||||
* 命名规则 表名_config
|
||||
*/
|
||||
const ai_query_custom_sub_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_query_custom_sub_config;
|
||||
@@ -0,0 +1,655 @@
|
||||
/**
|
||||
* 全字段单表配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_query_custom_sub_one',
|
||||
tableTxt: '自定义查询@一对一子表',
|
||||
tableType: 3,
|
||||
formTemplate: '1',
|
||||
showRelationType: true,
|
||||
relationType: 1,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'wen_ben',
|
||||
dbFieldTxt: '文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '测试',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi',
|
||||
dbFieldTxt: '日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '2021-12-28',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'datetime',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shi_jian',
|
||||
dbFieldTxt: '时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'time',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '19:40:25',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'time',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_duo_xuan',
|
||||
dbFieldTxt: '下拉多选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'list_multi',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: 'realname',
|
||||
queryDictField: 'username',
|
||||
queryDictTable: 'sys_user',
|
||||
queryShowType: 'list_multi',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_sou_suo',
|
||||
dbFieldTxt: '下拉搜索框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'sel_search',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: 'realname',
|
||||
queryDictField: 'username',
|
||||
queryDictTable: 'sys_user',
|
||||
queryShowType: 'sel_search',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'fen_lei_zi_dian_shu',
|
||||
dbFieldTxt: '分类字典树',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'B01',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'f39a06bf9f390ba4a53d11bc4e0018d7',
|
||||
queryDictText: '',
|
||||
queryDictField: 'B01',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'cat_tree',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹窗',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'realname,username',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup,popback',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: 'popup,popback',
|
||||
queryDictField: 'username,realname',
|
||||
queryDictTable: 'report_user',
|
||||
queryShowType: 'popup',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'user_select',
|
||||
dbFieldTxt: '用户选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_user',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'admin',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'sel_user',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'depart_select',
|
||||
dbFieldTxt: '部门选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_depart',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: 'c6d7cb4deeac411cb3384b1b31278596',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'sel_depart',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'province_area',
|
||||
dbFieldTxt: '省市区下拉',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '140405',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'pca',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'custom_tree',
|
||||
dbFieldTxt: '自定义树组件',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '0',
|
||||
dictTable: 'sys_category',
|
||||
dictText: 'id,pid,name,has_child',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '5c8f68845e57f68ab93a2c8d82d26ae1',
|
||||
queryDictText: 'id,pid,name,has_child',
|
||||
queryDictField: '0',
|
||||
queryDictTable: 'sys_category',
|
||||
queryShowType: 'sel_tree',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi_fan_wei',
|
||||
dbFieldTxt: '日期范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '2021-12-24,2021-12-28',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'date',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shu_zhi',
|
||||
dbFieldTxt: '数值范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '1,200',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la',
|
||||
dbFieldTxt: '下拉框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '1',
|
||||
queryDictText: '',
|
||||
queryDictField: 'sex',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'list',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'custom_main_id',
|
||||
dbFieldTxt: '自定义查询主表外键',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: 'ai_query_custom_main',
|
||||
mainField: 'id',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'nyrsfm',
|
||||
dbFieldTxt: '年月日时分秒',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 22,
|
||||
converter: '',
|
||||
queryConfigFlag: '1',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'datetime',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
/**
|
||||
* 此对象为最后混入里配置的对象 扩展表类型 属性名需要和此对象保持一致
|
||||
* 命名规则 表名_config
|
||||
*/
|
||||
const ai_query_custom_sub_one_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_query_custom_sub_one_config;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,730 @@
|
||||
/**
|
||||
* 全字段单表配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_query_def_main',
|
||||
tableTxt: '默认查询@主表',
|
||||
tableType: 2,
|
||||
formTemplate: '1',
|
||||
showRelationType: false,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'wen_ben',
|
||||
dbFieldTxt: '文本框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la',
|
||||
dbFieldTxt: '下拉框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'dan_xuan',
|
||||
dbFieldTxt: '单选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'duo_xuan',
|
||||
dbFieldTxt: '多选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'checkbox',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'kai_guan',
|
||||
dbFieldTxt: '开关',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'switch',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi',
|
||||
dbFieldTxt: '日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shi_jian',
|
||||
dbFieldTxt: '时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'time',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_duo_xuan',
|
||||
dbFieldTxt: '下拉多选',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'list_multi',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_sou_suo',
|
||||
dbFieldTxt: '下拉搜索',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'sel_search',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹窗',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'realname',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"popupMulti":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'fen_lei_zi_dian',
|
||||
dbFieldTxt: '分类字典树',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'B01',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'cat_tree',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'depart_select',
|
||||
dbFieldTxt: '部门选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_depart',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"multiSelect":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'user_select',
|
||||
dbFieldTxt: '用户选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_user',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"multiSelect":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'sheng_shi_qu',
|
||||
dbFieldTxt: '省市区组件',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'pca',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'zi_ding_yi_shu',
|
||||
dbFieldTxt: '自定义树',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '0',
|
||||
dictTable: 'sys_category',
|
||||
dictText: 'id,pid,name,has_child',
|
||||
fieldShowType: 'sel_tree',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shu_zi_fan_wei',
|
||||
dbFieldTxt: '数字范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 22,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi_fan_wei',
|
||||
dbFieldTxt: '日期范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 23,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'nyrsfm',
|
||||
dbFieldTxt: '年月日时分秒',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Datetime',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'datetime',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 24,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
/**
|
||||
* 此对象为最后混入里配置的对象 扩展表类型 属性名需要和此对象保持一致
|
||||
* 命名规则 表名_config
|
||||
*/
|
||||
const ai_query_def_main_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_query_def_main_config;
|
||||
@@ -0,0 +1,655 @@
|
||||
/**
|
||||
* 全字段单表配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_query_def_sub',
|
||||
tableTxt: '默认查询@一对多子表',
|
||||
tableType: 3,
|
||||
formTemplate: '1',
|
||||
showRelationType: true,
|
||||
relationType: 0,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'wen_ben',
|
||||
dbFieldTxt: '文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'dan_xuan',
|
||||
dbFieldTxt: '单选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'radio',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'switch_flag',
|
||||
dbFieldTxt: '开关',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'switch',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi',
|
||||
dbFieldTxt: '日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shi_jian',
|
||||
dbFieldTxt: '时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'time',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la',
|
||||
dbFieldTxt: '下拉框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_duo_xuan',
|
||||
dbFieldTxt: '下拉多选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list_multi',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_sou_suo',
|
||||
dbFieldTxt: '下拉搜索框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'sel_search',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹窗',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"popupMulti":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'depart_select',
|
||||
dbFieldTxt: '部门选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_depart',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"multiSelect":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'user_select',
|
||||
dbFieldTxt: '用户选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_user',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"multiSelect":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'more_text',
|
||||
dbFieldTxt: '多行文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'textarea',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi_fan_wei',
|
||||
dbFieldTxt: '日期范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shu_zi_fan_wei',
|
||||
dbFieldTxt: '数字范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'query_main_id',
|
||||
dbFieldTxt: '主表默认值id',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: 'ai_query_def_main',
|
||||
mainField: 'id',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'nyrsfm',
|
||||
dbFieldTxt: '年月日时分秒',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Datetime',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'datetime',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 22,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
/**
|
||||
* 此对象为最后混入里配置的对象 扩展表类型 属性名需要和此对象保持一致
|
||||
* 命名规则 表名_config
|
||||
*/
|
||||
const ai_query_def_sub_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_query_def_sub_config;
|
||||
@@ -0,0 +1,655 @@
|
||||
/**
|
||||
* 全字段单表配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_query_def_sub_one',
|
||||
tableTxt: '默认查询@一对一子表',
|
||||
tableType: 3,
|
||||
formTemplate: '1',
|
||||
showRelationType: true,
|
||||
relationType: 1,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'wen_ben',
|
||||
dbFieldTxt: '文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'dan_xuan',
|
||||
dbFieldTxt: '单选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'radio',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'switch_flag',
|
||||
dbFieldTxt: '开关',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'switch',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi',
|
||||
dbFieldTxt: '日期',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shi_jian',
|
||||
dbFieldTxt: '时间',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'time',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la',
|
||||
dbFieldTxt: '下拉框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_duo_xuan',
|
||||
dbFieldTxt: '下拉多选框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'list_multi',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la_sou_suo',
|
||||
dbFieldTxt: '下拉搜索框',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'sel_search',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹窗',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"popupMulti":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'depart_select',
|
||||
dbFieldTxt: '部门选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_depart',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"multiSelect":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'user_select',
|
||||
dbFieldTxt: '用户选择',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_user',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '{"multiSelect":false}',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'more_text',
|
||||
dbFieldTxt: '多行文本',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'textarea',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi_fan_wei',
|
||||
dbFieldTxt: '日期范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shu_zi_fan_wei',
|
||||
dbFieldTxt: '数字范围',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'double',
|
||||
dbLength: 10,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'query_main_id',
|
||||
dbFieldTxt: '主表默认值id',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: 'ai_query_def_main',
|
||||
mainField: 'id',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'nyrsfm',
|
||||
dbFieldTxt: '年月日时分秒',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Datetime',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'datetime',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 1,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'group',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 22,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
/**
|
||||
* 此对象为最后混入里配置的对象 扩展表类型 属性名需要和此对象保持一致
|
||||
* 命名规则 表名_config
|
||||
*/
|
||||
const ai_query_def_sub_one_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_query_def_sub_one_config;
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,921 @@
|
||||
/**
|
||||
* 全字段单表配置信息
|
||||
*/
|
||||
const table = {
|
||||
tableName: 'ai_rules_sub_one',
|
||||
tableTxt: '表单检验@一对一子表',
|
||||
tableType: 3,
|
||||
formTemplate: '1',
|
||||
showRelationType: true,
|
||||
relationType: 1,
|
||||
showIdSequence: false,
|
||||
themeTemplate: 'normal',
|
||||
scroll: 1,
|
||||
tableVersion: 1,
|
||||
isCheckbox: 'Y',
|
||||
isDbSynch: 'Y',
|
||||
isPage: 'Y',
|
||||
isTree: 'N',
|
||||
idType: 'UUID',
|
||||
queryMode: 'single',
|
||||
formCategory: 'temp',
|
||||
};
|
||||
|
||||
const fields = [
|
||||
{
|
||||
dbFieldName: 'phone',
|
||||
dbFieldTxt: '手机号',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'm',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 7,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'email',
|
||||
dbFieldTxt: '邮箱',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'e',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 8,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'you_bian',
|
||||
dbFieldTxt: '邮编',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'p',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 9,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'six_number',
|
||||
dbFieldTxt: '6到16位数字',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'n6-16',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 10,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'six_char',
|
||||
dbFieldTxt: '6到16位任意字符',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '*6-16',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 11,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'wangzhi',
|
||||
dbFieldTxt: '网址',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'url',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 12,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'zimu',
|
||||
dbFieldTxt: '字母',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 's',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 13,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shuzi',
|
||||
dbFieldTxt: '数字',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'n',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 14,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'zhengshu',
|
||||
dbFieldTxt: '整数',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'z',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 15,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'not_null',
|
||||
dbFieldTxt: '非空',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '*',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 16,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'six_string',
|
||||
dbFieldTxt: '6到18位字母',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 's6-18',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 17,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'chinese',
|
||||
dbFieldTxt: '中文正则',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '^[\\u4e00-\\u9fa5]+$',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 18,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'amount',
|
||||
dbFieldTxt: '金额',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'money',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 19,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'only_rule',
|
||||
dbFieldTxt: '唯一检验',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 20,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'rules_main_id',
|
||||
dbFieldTxt: '主表验证规则外键',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'text',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: '',
|
||||
fieldMustInput: '0',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 0,
|
||||
isShowList: 0,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: 'ai_rules_main',
|
||||
mainField: 'id',
|
||||
orderNum: 21,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'dan_xuan',
|
||||
dbFieldTxt: '单选框必填',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: 'sex',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'radio',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 22,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'kai_guan',
|
||||
dbFieldTxt: '开关必填',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'switch',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 23,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'ri_qi',
|
||||
dbFieldTxt: '日期必填',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'Date',
|
||||
dbLength: 0,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'date',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 24,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'shi_jian',
|
||||
dbFieldTxt: '时间必填',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 32,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'time',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 25,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'xia_la',
|
||||
dbFieldTxt: '下拉框必填',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'username',
|
||||
dictTable: 'sys_user',
|
||||
dictText: 'realname',
|
||||
fieldShowType: 'list',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 26,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'bmxz',
|
||||
dbFieldTxt: '部门选择必填',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_depart',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 27,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'yhxz',
|
||||
dbFieldTxt: '用户选择必填',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: '',
|
||||
dictTable: '',
|
||||
dictText: '',
|
||||
fieldShowType: 'sel_user',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 28,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
{
|
||||
dbFieldName: 'popup',
|
||||
dbFieldTxt: 'popup弹出框必填',
|
||||
dbIsKey: 0,
|
||||
dbIsNull: 1,
|
||||
dbType: 'string',
|
||||
dbLength: 255,
|
||||
dbPointLength: 0,
|
||||
dictField: 'realname,username',
|
||||
dictTable: 'report_user',
|
||||
dictText: 'popup,popback',
|
||||
fieldShowType: 'popup',
|
||||
fieldHref: '',
|
||||
fieldLength: 120,
|
||||
fieldValidType: 'only',
|
||||
fieldMustInput: '1',
|
||||
fieldExtendJson: '',
|
||||
fieldDefaultValue: '',
|
||||
isQuery: 0,
|
||||
isShowForm: 1,
|
||||
isShowList: 1,
|
||||
isReadOnly: 0,
|
||||
queryMode: 'single',
|
||||
mainTable: '',
|
||||
mainField: '',
|
||||
orderNum: 29,
|
||||
converter: '',
|
||||
queryConfigFlag: '0',
|
||||
queryDefVal: '',
|
||||
queryDictText: '',
|
||||
queryDictField: '',
|
||||
queryDictTable: '',
|
||||
queryShowType: 'text',
|
||||
queryValidType: null,
|
||||
queryMustInput: null,
|
||||
sortFlag: '0',
|
||||
alias: null,
|
||||
},
|
||||
];
|
||||
|
||||
//表单js增强
|
||||
const enhanceFormJs = '';
|
||||
|
||||
//sql增强
|
||||
const enhanceSql = '';
|
||||
|
||||
//索引
|
||||
const indexList = [];
|
||||
|
||||
/**
|
||||
* 此对象为最后混入里配置的对象 扩展表类型 属性名需要和此对象保持一致
|
||||
* 命名规则 表名_config
|
||||
*/
|
||||
const ai_rules_sub_one_config = {
|
||||
table: table,
|
||||
fields: fields,
|
||||
enhanceFormJs: enhanceFormJs,
|
||||
enhanceSql: enhanceSql,
|
||||
indexList: indexList,
|
||||
};
|
||||
export default ai_rules_sub_one_config;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 功能开关
|
||||
*/
|
||||
import type { Ref } from 'vue';
|
||||
import { ref, computed, provide, inject } from 'vue';
|
||||
|
||||
// 默认允许的功能列表
|
||||
const DEF_FUNC_LIST = [
|
||||
/** 显示创建按钮 */
|
||||
'SHOW_CREATE_BTN',
|
||||
/** 导入数据 */
|
||||
'IMPORT_DATA',
|
||||
/** 视图导出 */
|
||||
'VIEW_EXPORT',
|
||||
/** 允许批量操作 */
|
||||
'BATCH_ACTION',
|
||||
/** 批量编辑 */
|
||||
'BATCH_EDIT',
|
||||
/** 批量打印 */
|
||||
'BATCH_SYS_PRINT',
|
||||
/** 批量导出 */
|
||||
'BATCH_EXPORT',
|
||||
/** 批量删除 */
|
||||
'BATCH_REMOVE',
|
||||
/** 批量执行自定义动作(按钮) */
|
||||
'BATCH_CUSTOM_BUTTON',
|
||||
/** 记录分享 */
|
||||
'RECORD_SHARE',
|
||||
/** 记录讨论 */
|
||||
'RECORD_COMMENT',
|
||||
/** 记录打印 */
|
||||
'RECORD_SYS_PRINT',
|
||||
/** 记录日志 */
|
||||
'RECORD_LOGS',
|
||||
/** 允许下载附件 */
|
||||
'FILES_DOWNLOAD',
|
||||
] as const;
|
||||
|
||||
export type FuncCodeType = typeof DEF_FUNC_LIST[number];
|
||||
const piSymbol = 'ALLOW_FUNC_LIST';
|
||||
|
||||
/**
|
||||
* 功能开关
|
||||
*/
|
||||
export function useFuncSwitch() {
|
||||
const allowFuncList = inject<Ref<FuncCodeType[]>>(piSymbol, ref([]));
|
||||
|
||||
if (allowFuncList.value.length === 0) {
|
||||
allowFuncList.value = [...DEF_FUNC_LIST];
|
||||
provide(piSymbol, allowFuncList);
|
||||
console.info('注册 useFuncSwitch provided')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取判断是否允许使用某个功能的计算属性
|
||||
* @param code
|
||||
*/
|
||||
function getHasFunc(code: FuncCodeType) {
|
||||
return computed<boolean>(() => {
|
||||
return allowFuncList.value.includes(code);
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
getHasFunc,
|
||||
allowFuncList,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* 额外写一份冗余代码,提供给eoa模块调用
|
||||
*/
|
||||
import { ref, unref } from 'vue';
|
||||
import { getQueryVariable } from '/@/utils';
|
||||
import { isUrl } from '/@/utils/is';
|
||||
import {defHttp} from "/@/utils/http/axios";
|
||||
|
||||
/**
|
||||
* 获取流程节点历史信息
|
||||
* @param params
|
||||
*/
|
||||
export const hisProcessNodeInfo = (params) => {
|
||||
return defHttp.get({ url: '/act/process/extActProcessNode/getHisProcessNodeInfo', params }, { isTransformResponse: false });
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @param path 路径
|
||||
* @param taskDealRef 弹窗示例
|
||||
*/
|
||||
export function useBpmNodeInfo(path, taskDealRef) {
|
||||
const formData = ref({});
|
||||
/**
|
||||
* 获取流程历史节点信息
|
||||
* @param record
|
||||
*/
|
||||
function getHisProcessNodeInfo(record) {
|
||||
hisProcessNodeInfo({ procInstId: record.processInstanceId }).then((res) => {
|
||||
console.log('获取流程节点信息', res);
|
||||
if (res.success) {
|
||||
let data = {
|
||||
dataId: res.result.dataId,
|
||||
taskId: record.id,
|
||||
taskDefKey: record.taskId,
|
||||
procInsId: record.processInstanceId,
|
||||
tableName: res.result.tableName,
|
||||
vars: res.result.records,
|
||||
};
|
||||
formData.value = data;
|
||||
//update--begin--autor:scott-----date:20191005------for:流程节点配置组件URL的时候也支持传递参数了,解决TASK #3238流程节点无法与online的复制视图对接------
|
||||
console.log('获取流程节点表单URL ', res.result.formUrl);
|
||||
let tempFormUrl = res.result.formUrl;
|
||||
//节点配置表单URL,VUE组件类型对应的拓展参数
|
||||
if (tempFormUrl && tempFormUrl.indexOf('?') != -1 && !isUrl(tempFormUrl) && tempFormUrl.indexOf('{{DOMAIN_URL}}') == -1) {
|
||||
tempFormUrl = res.result.formUrl.split('?')[0];
|
||||
console.log('获取流程节点表单URL(去掉参数)', tempFormUrl);
|
||||
formData.value['extendUrlParams'] = getQueryVariable(res.result.formUrl);
|
||||
}
|
||||
path.value = tempFormUrl;
|
||||
//update--end--autor:scott-----date:20191005------for:流程节点配置组件URL的时候也支持传递参数了,解决TASK #3238流程节点无法与online的复制视图对接------
|
||||
console.log('获取流程节点信息formData', unref(formData));
|
||||
console.log('获取流程节点信息path', unref(path));
|
||||
taskDealRef.value.deal(record);
|
||||
taskDealRef.value.data.title = '流程历史';
|
||||
console.log('taskDealRef', taskDealRef.value);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return { getHisProcessNodeInfo, formData };
|
||||
}
|
||||
@@ -0,0 +1,527 @@
|
||||
/**
|
||||
* 额外写一份冗余代码,提供给eoa模块调用
|
||||
*/
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { BasicColumn, FormSchema } from '/@/components/Table';
|
||||
|
||||
/**
|
||||
* 接口地址定义
|
||||
*/
|
||||
const URL = {
|
||||
run: {
|
||||
list: '/act/task/list',
|
||||
claim: '/act/task/claim',
|
||||
taskEntrust: '/act/task/taskEntrust',
|
||||
getProcessNodeInfo: '/act/process/extActProcessNode/getProcessNodeInfo',
|
||||
getProcessTaskTransInfo: '/act/task/getProcessTaskTransInfo',
|
||||
},
|
||||
history: {
|
||||
list: '/act/task/taskHistoryList',
|
||||
getProcessNodeInfo: '/act/process/extActProcessNode/getHisProcessNodeInfo',
|
||||
getProcessTaskTransInfo: '/act/task/getHisProcessTaskTransInfo',
|
||||
},
|
||||
group: {
|
||||
list: '/act/task/taskGroupList',
|
||||
claim: '/act/task/claim',
|
||||
getProcessTaskTransInfo: '/act/task/getProcessTaskTransInfo',
|
||||
},
|
||||
processComplete: '/act/task/processComplete',
|
||||
processHistoryList: '/act/task/processHistoryList',
|
||||
taskEntrust: '/act/task/taskEntrust',
|
||||
taskComplaint: '/act/task/taskComplaint',
|
||||
afterAddSignTask: '/act/task/afterAddSignTask',
|
||||
beforeAddSignTask: '/act/task/beforeAddSignTask',
|
||||
claim: '/act/task/claim',
|
||||
notifyMeList: '/act/process/extActTaskNotification/list',
|
||||
};
|
||||
export enum TaskType {
|
||||
RUN = 'run',
|
||||
HIS = 'history',
|
||||
GROUP = 'group',
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表 列--running
|
||||
*/
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '业务标题',
|
||||
align: 'center',
|
||||
dataIndex: 'bpmBizTitle',
|
||||
slots: { customRender: 'bpmBizTitle' },
|
||||
},
|
||||
{
|
||||
title: '当前环节',
|
||||
align: 'center',
|
||||
width: 130,
|
||||
dataIndex: 'taskName',
|
||||
},
|
||||
{
|
||||
title: '流程名称',
|
||||
align: 'center',
|
||||
dataIndex: 'processDefinitionName',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '流程实例',
|
||||
align: 'center',
|
||||
dataIndex: 'processInstanceId',
|
||||
},
|
||||
{
|
||||
title: '发起人',
|
||||
width: 110,
|
||||
align: 'center',
|
||||
dataIndex: 'processApplyUserName',
|
||||
},
|
||||
{
|
||||
title: '开始时间',
|
||||
align: 'center',
|
||||
dataIndex: 'taskBeginTime',
|
||||
},
|
||||
{
|
||||
title: '流程编号',
|
||||
align: 'center',
|
||||
dataIndex: 'processDefinitionId',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '任务ID',
|
||||
align: 'center',
|
||||
dataIndex: 'taskId',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 列表 列--group
|
||||
*/
|
||||
export const columns_group: BasicColumn[] = [
|
||||
{
|
||||
title: '业务标题',
|
||||
align: 'center',
|
||||
dataIndex: 'bpmBizTitle',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '流程编号',
|
||||
align: 'center',
|
||||
dataIndex: 'processDefinitionId',
|
||||
},
|
||||
{
|
||||
title: '流程名称',
|
||||
align: 'center',
|
||||
dataIndex: 'processDefinitionName',
|
||||
},
|
||||
{
|
||||
title: '流程实例',
|
||||
align: 'center',
|
||||
dataIndex: 'processInstanceId',
|
||||
},
|
||||
{
|
||||
title: '任务ID',
|
||||
align: 'center',
|
||||
dataIndex: 'taskId',
|
||||
},
|
||||
{
|
||||
title: '发起人',
|
||||
align: 'center',
|
||||
dataIndex: 'processApplyUserName',
|
||||
},
|
||||
{
|
||||
title: '开始时间',
|
||||
align: 'center',
|
||||
dataIndex: 'taskBeginTime',
|
||||
},
|
||||
{
|
||||
title: '结束时间',
|
||||
align: 'center',
|
||||
dataIndex: 'taskEndTime',
|
||||
},
|
||||
{
|
||||
title: '当前环节',
|
||||
align: 'center',
|
||||
dataIndex: 'taskName',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 列表 列-history
|
||||
*/
|
||||
export const columns_history: BasicColumn[] = [
|
||||
{
|
||||
title: '业务标题',
|
||||
align: 'center',
|
||||
dataIndex: 'bpmBizTitle',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '流程编号',
|
||||
align: 'center',
|
||||
dataIndex: 'processDefinitionId',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '流程名称',
|
||||
align: 'center',
|
||||
dataIndex: 'processDefinitionName',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '流程实例',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
dataIndex: 'processInstanceId',
|
||||
},
|
||||
{
|
||||
title: '任务ID',
|
||||
align: 'center',
|
||||
dataIndex: 'taskId',
|
||||
},
|
||||
{
|
||||
title: '发起人',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
dataIndex: 'processApplyUserName',
|
||||
},
|
||||
{
|
||||
title: '办理人',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
dataIndex: 'taskAssigneeName',
|
||||
},
|
||||
{
|
||||
title: '开始时间',
|
||||
align: 'center',
|
||||
dataIndex: 'taskBeginTime',
|
||||
},
|
||||
{
|
||||
title: '结束时间',
|
||||
align: 'center',
|
||||
dataIndex: 'taskEndTime',
|
||||
},
|
||||
{
|
||||
title: '耗时',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
dataIndex: 'durationStr',
|
||||
},
|
||||
// {
|
||||
// title: '当前环节',
|
||||
// align: 'center',
|
||||
// width: 120,
|
||||
// dataIndex: 'taskName',
|
||||
// },
|
||||
];
|
||||
/**
|
||||
* 获取流程节点信息
|
||||
* @param params
|
||||
*/
|
||||
export const taskNodeInfo = (type, params) => {
|
||||
return defHttp.get({ url: URL[type].getProcessNodeInfo, params });
|
||||
};
|
||||
/**
|
||||
* 获取流程列表信息
|
||||
* @param params
|
||||
*/
|
||||
export const list = (type, params) => {
|
||||
return defHttp.get({ url: URL[type].list, params });
|
||||
};
|
||||
/**
|
||||
* 查询条件
|
||||
*/
|
||||
export const searchFormSchema: FormSchema[] = [
|
||||
{
|
||||
label: '业务标题',
|
||||
field: 'bpmBizTitle',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '流程名',
|
||||
field: 'processDefinitionName',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '发起人',
|
||||
field: 'userName',
|
||||
component: 'JSelectUserByDept',
|
||||
componentProps: {
|
||||
labelKey: 'realname',
|
||||
rowKey: 'username',
|
||||
showButton: false,
|
||||
isRadioSelection: true,
|
||||
},
|
||||
buss: 'run',
|
||||
},
|
||||
{
|
||||
label: '流程编号',
|
||||
field: 'processDefinitionId',
|
||||
component: 'Input',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 列表 流程历史跟踪
|
||||
*/
|
||||
export const taskTraceColumns: BasicColumn[] = [
|
||||
{
|
||||
title: '名称',
|
||||
dataIndex: 'name',
|
||||
customRender: function ({ text }) {
|
||||
if (text == 'start1') {
|
||||
return '开始';
|
||||
} else if (text == 'end') {
|
||||
return '结束';
|
||||
} else {
|
||||
return text;
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '流程实例ID',
|
||||
dataIndex: 'processInstanceId',
|
||||
},
|
||||
{
|
||||
title: '开始时间',
|
||||
dataIndex: 'startTime',
|
||||
},
|
||||
{
|
||||
title: '结束时间',
|
||||
dataIndex: 'endTime',
|
||||
},
|
||||
{
|
||||
title: '负责人',
|
||||
dataIndex: 'assigneeName',
|
||||
},
|
||||
{
|
||||
title: '处理结果',
|
||||
dataIndex: 'deleteReason',
|
||||
},
|
||||
{
|
||||
title: '处理意见',
|
||||
fixed: 'right',
|
||||
width: 350,
|
||||
dataIndex: 'remarks',
|
||||
slots: { customRender: 'remarks' },
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 提醒我的列表(催办)
|
||||
*/
|
||||
export const notifyMeColumns: BasicColumn[] = [
|
||||
{
|
||||
title: '流程名称',
|
||||
align: 'center',
|
||||
dataIndex: 'procName',
|
||||
},
|
||||
{
|
||||
title: '任务名称',
|
||||
align: 'center',
|
||||
dataIndex: 'taskName',
|
||||
},
|
||||
{
|
||||
title: '催办时间',
|
||||
align: 'center',
|
||||
dataIndex: 'opTime',
|
||||
},
|
||||
{
|
||||
title: '催办类型',
|
||||
align: 'center',
|
||||
dataIndex: 'notifyType',
|
||||
customRender: function ({ text }) {
|
||||
if (!text) {
|
||||
return '';
|
||||
}
|
||||
const srtArr = text.split(',');
|
||||
let value = '';
|
||||
if (srtArr.includes('1')) {
|
||||
value += ',页面通知';
|
||||
}
|
||||
if (srtArr.includes('2')) {
|
||||
value += ',邮件';
|
||||
}
|
||||
return value.substring(1);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '催办说明',
|
||||
align: 'center',
|
||||
dataIndex: 'remarks',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 用于列表渲染
|
||||
* @param urlObject
|
||||
*/
|
||||
export function useMyRunningTaskList(type) {
|
||||
const { tableContext } = useListPage({
|
||||
designScope: 'process-design',
|
||||
pagination: true,
|
||||
tableProps: {
|
||||
title: '',
|
||||
api: getDataList,
|
||||
columns: getColumns(),
|
||||
showIndexColumn: true,
|
||||
showTableSetting: false,
|
||||
canResize: false,
|
||||
scroll: { x: 1800 },
|
||||
actionColumn: { dataIndex: 'action', fixed: 'right', width: 150 },
|
||||
useSearchForm: TaskType.GROUP != type,
|
||||
formConfig: {
|
||||
schemas: getSearchFormSchema(),
|
||||
autoAdvancedCol: 3,
|
||||
baseColProps: { xs: 24, sm: 12, md: 6, lg: 6, xl: 6, xxl: 6 },
|
||||
actionColOptions: { xs: 24, sm: 12, md: 6, lg: 6, xl: 6, xxl: 6 },
|
||||
},
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload }] = tableContext;
|
||||
|
||||
/**
|
||||
* 数据请求接口
|
||||
* @param params
|
||||
*/
|
||||
function getDataList(params) {
|
||||
return list(type, params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列
|
||||
* 不同类型 列表列有少许差别
|
||||
*/
|
||||
function getColumns() {
|
||||
if (TaskType.RUN == type) {
|
||||
return columns;
|
||||
} else if (TaskType.GROUP == type) {
|
||||
return columns_group;
|
||||
} else {
|
||||
return columns_history;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询条件
|
||||
*/
|
||||
function getSearchFormSchema() {
|
||||
return searchFormSchema.filter((item) => !item.buss || item.buss === type);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取流程节点信息
|
||||
*/
|
||||
async function getTaskNodeInfo(record) {
|
||||
//查询条件
|
||||
const params = { taskId: record.id };
|
||||
const result = await taskNodeInfo(type, params);
|
||||
console.log('获取流程节点信息', result);
|
||||
const procInsId = record.processInstanceId || (result.records ? result.records.BPM_INST_ID : '');
|
||||
const formData: any = {
|
||||
taskId: record.id,
|
||||
taskDefKey: result.taskDefKey,
|
||||
procInsId: procInsId,
|
||||
dataId: result.dataId,
|
||||
tableName: result.tableName,
|
||||
permissionList: result.permissionList,
|
||||
subPermissionList: result.subPermissionList,
|
||||
vars: result.records,
|
||||
};
|
||||
let tempFormUrl = result.formUrl;
|
||||
console.log('获取流程节点表单URL', tempFormUrl);
|
||||
//节点配置表单URL,VUE组件类型对应的拓展参数
|
||||
if (tempFormUrl && tempFormUrl.indexOf('?') != -1 && !isURL(tempFormUrl) && tempFormUrl.indexOf('{{DOMAIN_URL}}') == -1) {
|
||||
tempFormUrl = result.formUrl.split('?')[0];
|
||||
console.log('获取流程节点表单URL(去掉参数)', tempFormUrl);
|
||||
const qv: any = getQueryVariable(result.formUrl);
|
||||
if (qv.edit == 1) {
|
||||
formData['disabled'] = false;
|
||||
}
|
||||
formData.extendUrlParams = qv;
|
||||
}
|
||||
//如果没有taskId参数,程序自动追加,用于设计器表单节点权限
|
||||
if (tempFormUrl != null && tempFormUrl.indexOf('{{DOMAIN_URL}}/desform/') != -1 && tempFormUrl.indexOf('taskId') == -1) {
|
||||
tempFormUrl = tempFormUrl.trim();
|
||||
if (tempFormUrl.endsWith('?')) {
|
||||
tempFormUrl = tempFormUrl + 'taskId=' + result.taskDefKey;
|
||||
} else {
|
||||
tempFormUrl = tempFormUrl + '&taskId=' + result.taskDefKey;
|
||||
}
|
||||
}
|
||||
return {
|
||||
formData,
|
||||
formUrl: tempFormUrl,
|
||||
isSignTask: result.isSignTask,
|
||||
assignee: result.assignee,
|
||||
taskIsHandel: result.taskIsHandel || false,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取历史任务信息
|
||||
*/
|
||||
async function getHistoryTaskInfo(record) {
|
||||
return await getTaskInfoForHistory(record);
|
||||
}
|
||||
|
||||
return {
|
||||
registerTable,
|
||||
reload,
|
||||
getTaskNodeInfo,
|
||||
getHistoryTaskInfo,
|
||||
};
|
||||
}
|
||||
|
||||
export async function getTaskInfoForHistory(record) {
|
||||
//查询条件
|
||||
const params = { procInstId: record.processInstanceId };
|
||||
const result = await taskNodeInfo('history', params);
|
||||
console.log('获取历史任务信息', result);
|
||||
const formData: any = {
|
||||
dataId: result.dataId,
|
||||
taskId: record.id,
|
||||
taskDefKey: record.taskId,
|
||||
procInsId: record.processInstanceId,
|
||||
tableName: result.tableName,
|
||||
vars: result.records,
|
||||
};
|
||||
let tempFormUrl = result.formUrl;
|
||||
console.log('获取流程节点表单URL', tempFormUrl);
|
||||
//节点配置表单URL,VUE组件类型对应的拓展参数
|
||||
if (tempFormUrl && tempFormUrl.indexOf('?') != -1 && !isURL(tempFormUrl) && tempFormUrl.indexOf('{{DOMAIN_URL}}') == -1) {
|
||||
tempFormUrl = result.formUrl.split('?')[0];
|
||||
console.log('获取流程节点表单URL(去掉参数)', tempFormUrl);
|
||||
formData.extendUrlParams = getQueryVariable(result.formUrl);
|
||||
}
|
||||
return {
|
||||
formData,
|
||||
formUrl: tempFormUrl,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取URL上参数
|
||||
* @param url
|
||||
*/
|
||||
function getQueryVariable(url) {
|
||||
if (!url) return;
|
||||
|
||||
let t,
|
||||
n,
|
||||
r,
|
||||
i = url.split('?')[1],
|
||||
s = {};
|
||||
(t = i.split('&')), (r = null), (n = null);
|
||||
for (const o in t) {
|
||||
const u = t[o].indexOf('=');
|
||||
u !== -1 && ((r = t[o].substr(0, u)), (n = t[o].substr(u + 1)), (s[r] = n));
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL地址
|
||||
* @param {*} s
|
||||
*/
|
||||
function isURL(s) {
|
||||
return /^http[s]?:\/\/.*/.test(s);
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* 自适应宽度构造器
|
||||
*
|
||||
* @time 2022-4-8
|
||||
* @author sunjianlei
|
||||
*/
|
||||
import { ref } from 'vue';
|
||||
import { useDebounceFn, tryOnUnmounted } from '@vueuse/core';
|
||||
import { useEventListener } from '/@/hooks/event/useEventListener';
|
||||
|
||||
// key = js运算符+数字
|
||||
const defWidthConfig: configType = {
|
||||
'<=565': '100%',
|
||||
'<=1366': '800px',
|
||||
'<=1600': '600px',
|
||||
'<=1920': '600px',
|
||||
'>1920': '500px',
|
||||
};
|
||||
|
||||
type configType = Record<string, string | number>;
|
||||
|
||||
/**
|
||||
* 自适应宽度
|
||||
*
|
||||
* @param widthConfig 宽度配置,可参考 defWidthConfig 配置
|
||||
* @param assign 是否合并默认配置
|
||||
* @param debounce 去抖毫秒数
|
||||
*/
|
||||
export function useAdaptiveWidth(widthConfig = defWidthConfig, assign = true, debounce = 50) {
|
||||
const widthConfigAssign = assign ? Object.assign({}, defWidthConfig, widthConfig) : widthConfig;
|
||||
const configKeys = Object.keys(widthConfigAssign);
|
||||
|
||||
const adaptiveWidth = ref<string | number>();
|
||||
|
||||
/**
|
||||
* 进行计算宽度
|
||||
* @param innerWidth
|
||||
*/
|
||||
function calcWidth(innerWidth) {
|
||||
let width;
|
||||
for (const key of configKeys) {
|
||||
try {
|
||||
// 通过js运算
|
||||
let flag = new Function(`return ${innerWidth} ${key}`)();
|
||||
if (flag) {
|
||||
width = widthConfigAssign[key];
|
||||
break;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
if (width) {
|
||||
adaptiveWidth.value = width;
|
||||
} else {
|
||||
console.warn('没有找到匹配的自适应宽度');
|
||||
}
|
||||
}
|
||||
|
||||
// 初始计算
|
||||
calcWidth(window.innerWidth);
|
||||
|
||||
// 监听 resize 事件
|
||||
const { removeEvent } = useEventListener({
|
||||
el: window,
|
||||
name: 'resize',
|
||||
listener: useDebounceFn(() => calcWidth(window.innerWidth), debounce),
|
||||
});
|
||||
// 卸载组件时取消监听事件
|
||||
tryOnUnmounted(() => removeEvent());
|
||||
|
||||
return { adaptiveWidth };
|
||||
}
|
||||
|
||||
/**
|
||||
* 抽屉自适应宽度
|
||||
*/
|
||||
export function useDrawerAdaptiveWidth() {
|
||||
return useAdaptiveWidth(
|
||||
{
|
||||
'<=620': '100%',
|
||||
'<=1600': 600,
|
||||
'<=1920': 650,
|
||||
'>1920': 700,
|
||||
},
|
||||
false
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user