da51029d12bae10e550cde53d60e49cc.json 16 KB

1
  1. {"remainingRequest":"D:\\jiayue\\pig-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\jiayue\\pig-ui\\src\\const\\crud\\gen\\gen.js","dependencies":[{"path":"D:\\jiayue\\pig-ui\\src\\const\\crud\\gen\\gen.js","mtime":1619070292871},{"path":"D:\\jiayue\\pig-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jiayue\\pig-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000}],"contextDependencies":[],"result":["/*\r\n * Copyright (c) 2018-2025, test All rights reserved.\r\n *\r\n * Redistribution and use in source and binary forms, with or without\r\n * modification, are permitted provided that the following conditions are met:\r\n *\r\n * Redistributions of source code must retain the above copyright notice,\r\n * this list of conditions and the following disclaimer.\r\n * Redistributions in binary form must reproduce the above copyright\r\n * notice, this list of conditions and the following disclaimer in the\r\n * documentation and/or other materials provided with the distribution.\r\n * Neither the name of the pig4cloud.com developer nor the names of its\r\n * contributors may be used to endorse or promote products derived from\r\n * this software without specific prior written permission.\r\n * Author: test\r\n */\n\n/**\r\n * \r\n * @param {校验数据源名} rule \r\n * @param {*} value \r\n * @param {*} callback \r\n */\nvar validateDsName = function validateDsName(rule, value, callback) {\n var re = /(?=.*[a-z])(?=.*_)/;\n\n if (value && !re.test(value)) {\n callback(new Error('数据源名称不合法, 组名_数据源名形式'));\n } else {\n callback();\n }\n};\n\nexport var tableOption = {\n selection: true,\n border: true,\n index: true,\n stripe: true,\n menuAlign: 'center',\n align: 'center',\n addBtn: false,\n editBtn: false,\n delBtn: false,\n searchMenuSpan: 6,\n column: [{\n label: '表名称',\n prop: 'tableName',\n align: 'center'\n }, {\n label: '表注释',\n prop: 'tableComment',\n align: 'center'\n }, {\n label: '表编码',\n prop: 'tableCollation',\n align: 'center'\n }, {\n label: '索引',\n prop: 'engine',\n align: 'center'\n }, {\n type: 'datetime',\n valueFormat: 'timestamp',\n format: 'yyyy-MM-dd hh:mm:ss',\n label: '创建时间',\n prop: 'createTime',\n align: 'center'\n }]\n};\nexport var formOption = {\n submitBtn: false,\n emptyBtn: false,\n submitText: '生成',\n column: [{\n label: '表名称',\n prop: 'tableName',\n disabled: true\n }, {\n label: '包名',\n prop: 'packageName',\n placeholder: '可为空,加载系统默认配置'\n }, {\n label: '作者',\n prop: 'author',\n placeholder: '可为空,加载系统默认配置'\n }, {\n label: '模块',\n prop: 'moduleName',\n placeholder: '可为空,加载系统默认配置'\n }, {\n label: '表前缀',\n prop: 'tablePrefix',\n placeholder: '可为空,加载系统默认配置'\n }, {\n label: '注释',\n prop: 'comments',\n placeholder: '可为空,加载表备注'\n }]\n};\nexport var formBatchOption = {\n submitText: '生成',\n column: [{\n label: '表名称',\n prop: 'tableName',\n disabled: true,\n minRows: 2,\n type: 'textarea',\n row: true,\n span: 24\n }, {\n label: '包名',\n prop: 'packageName',\n placeholder: '可为空,加载系统默认配置'\n }, {\n label: '作者',\n prop: 'author',\n placeholder: '可为空,加载系统默认配置'\n }, {\n label: '模块',\n prop: 'moduleName',\n placeholder: '可为空,加载系统默认配置'\n }, {\n label: '注释',\n prop: 'comments',\n placeholder: '可为空,加载表备注'\n }]\n};\nexport var tableDsOption = {\n border: true,\n index: true,\n indexLabel: '序号',\n stripe: true,\n menuAlign: 'center',\n align: 'center',\n column: [{\n label: '主键',\n prop: 'id',\n hide: true,\n addDisplay: false,\n editDisplay: false\n }, {\n label: '名称',\n prop: 'name',\n rules: [{\n required: true,\n message: '请输入名称',\n trigger: 'blur'\n }, {\n max: 32,\n message: '长度在 32 个字符',\n trigger: 'blur'\n }, {\n validator: validateDsName,\n trigger: 'blur'\n }]\n }, {\n label: 'jdbcUrl',\n prop: 'url',\n type: 'textarea',\n span: 24,\n row: true,\n minRows: 2,\n overHidden: true,\n rules: [{\n required: true,\n message: '请输入jdbcUrl',\n trigger: 'blur'\n }]\n }, {\n label: '用户名',\n prop: 'username',\n rules: [{\n required: true,\n message: '请输入用户名',\n trigger: 'blur'\n }, {\n max: 32,\n message: '长度在 32 个字符',\n trigger: 'blur'\n }]\n }, {\n label: '密码',\n prop: 'password',\n rules: [{\n required: true,\n message: '请输入密码',\n trigger: 'blur'\n }, {\n max: 32,\n message: '长度在 32 个字符',\n trigger: 'blur'\n }]\n }, {\n label: '创建时间',\n prop: 'createDate',\n addDisplay: false,\n editDisplay: false,\n overHidden: true\n }, {\n label: '更新时间',\n prop: 'updateDate',\n overHidden: true,\n addDisplay: false,\n editDisplay: false\n }]\n};",{"version":3,"sources":["D:/jiayue/pig-ui/src/const/crud/gen/gen.js"],"names":["validateDsName","rule","value","callback","re","test","Error","tableOption","selection","border","index","stripe","menuAlign","align","addBtn","editBtn","delBtn","searchMenuSpan","column","label","prop","type","valueFormat","format","formOption","submitBtn","emptyBtn","submitText","disabled","placeholder","formBatchOption","minRows","row","span","tableDsOption","indexLabel","hide","addDisplay","editDisplay","rules","required","message","trigger","max","validator","overHidden"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,IAAD,EAAOC,KAAP,EAAcC,QAAd,EAA2B;AAC9C,MAAIC,EAAE,GAAG,oBAAT;;AACA,MAAIF,KAAK,IAAK,CAAEE,EAAD,CAAKC,IAAL,CAAUH,KAAV,CAAf,EAAkC;AAChCC,IAAAA,QAAQ,CAAC,IAAIG,KAAJ,CAAU,qBAAV,CAAD,CAAR;AACD,GAFD,MAEO;AACLH,IAAAA,QAAQ;AACT;AACF,CAPD;;AASA,OAAO,IAAMI,WAAW,GAAG;AACzBC,EAAAA,SAAS,EAAE,IADc;AAEzBC,EAAAA,MAAM,EAAE,IAFiB;AAGzBC,EAAAA,KAAK,EAAE,IAHkB;AAIzBC,EAAAA,MAAM,EAAE,IAJiB;AAKzBC,EAAAA,SAAS,EAAE,QALc;AAMz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AAAA,KAAK,EAAE,KADT;AAEEC,IAAAA,IAAI,EAAE,UAFR;AAGEmB,IAAAA,KAAK,EAAE,CACL;AAAEC,MAAAA,QAAQ,EAAE,IAAZ;AAAkBC,MAAAA,OAAO,EAAE,QAA3B;AAAqCC,MAAAA,OAAO,EAAE;AAA9C,KADK,EAEL;AAAEC,MAAAA,GAAG,EAAE,EAAP;AAAWF,MAAAA,OAAO,EAAE,YAApB;AAAkCC,MAAAA,OAAO,EAAE;AAA3C,KAFK;AAHT,GA7BM,EAqCN;AACEvB,IAAAA,KAAK,EAAE,IADT;AAEEC,IAAAA,IAAI,EAAE,UAFR;AAGEmB,IAAAA,KAAK,EAAE,CACL;AAAEC,MAAAA,QAAQ,EAAE,IAAZ;AAAkBC,MAAAA,OAAO,EAAE,OAA3B;AAAoCC,MAAAA,OAAO,EAAE;AAA7C,KADK,EAEL;AAAEC,MAAAA,GAAG,EAAE,EAAP;AAAWF,MAAAA,OAAO,EAAE,YAApB;AAAkCC,MAAAA,OAAO,EAAE;AAA3C,KAFK;AAHT,GArCM,EA6CN;AACEvB,IAAAA,KAAK,EAAE,MADT;AAEEC,IAAAA,IAAI,EAAE,YAFR;AAGEiB,IAAAA,UAAU,EAAE,KAHd;AAIEC,IAAAA,WAAW,EAAE,KAJf;AAKEO,IAAAA,UAAU,EAAE;AALd,GA7CM,EAoDN;AACE1B,IAAAA,KAAK,EAAE,MADT;AAEEC,IAAAA,IAAI,EAAE,YAFR;AAGEyB,IAAAA,UAAU,EAAE,IAHd;AAIER,IAAAA,UAAU,EAAE,KAJd;AAKEC,IAAAA,WAAW,EAAE;AALf,GApDM;AAPmB,CAAtB","sourcesContent":["/*\r\n * Copyright (c) 2018-2025, test All rights reserved.\r\n *\r\n * Redistribution and use in source and binary forms, with or without\r\n * modification, are permitted provided that the following conditions are met:\r\n *\r\n * Redistributions of source code must retain the above copyright notice,\r\n * this list of conditions and the following disclaimer.\r\n * Redistributions in binary form must reproduce the above copyright\r\n * notice, this list of conditions and the following disclaimer in the\r\n * documentation and/or other materials provided with the distribution.\r\n * Neither the name of the pig4cloud.com developer nor the names of its\r\n * contributors may be used to endorse or promote products derived from\r\n * this software without specific prior written permission.\r\n * Author: test\r\n */\r\n\r\n/**\r\n * \r\n * @param {校验数据源名} rule \r\n * @param {*} value \r\n * @param {*} callback \r\n */\r\nvar validateDsName = (rule, value, callback) => {\r\n var re = /(?=.*[a-z])(?=.*_)/;\r\n if (value && (!(re).test(value))) {\r\n callback(new Error('数据源名称不合法, 组名_数据源名形式'))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport const tableOption = {\r\n selection: true,\r\n border: true,\r\n index: true,\r\n stripe: true,\r\n menuAlign: 'center',\r\n align: 'center',\r\n addBtn: false,\r\n editBtn: false,\r\n delBtn: false,\r\n searchMenuSpan: 6,\r\n column: [{\r\n label: '表名称',\r\n prop: 'tableName',\r\n align: 'center'\r\n }, {\r\n label: '表注释',\r\n prop: 'tableComment',\r\n align: 'center'\r\n }, {\r\n label: '表编码',\r\n prop: 'tableCollation',\r\n align: 'center'\r\n }, {\r\n label: '索引',\r\n prop: 'engine',\r\n align: 'center'\r\n }, {\r\n type: 'datetime',\r\n valueFormat: 'timestamp',\r\n format: 'yyyy-MM-dd hh:mm:ss',\r\n label: '创建时间',\r\n prop: 'createTime',\r\n align: 'center'\r\n }]\r\n}\r\n\r\nexport const formOption = {\r\n submitBtn: false,\r\n emptyBtn: false,\r\n submitText: '生成',\r\n column: [\r\n {\r\n label: '表名称',\r\n prop: 'tableName',\r\n disabled: true\r\n }, {\r\n label: '包名',\r\n prop: 'packageName',\r\n placeholder: '可为空,加载系统默认配置'\r\n }, {\r\n label: '作者',\r\n prop: 'author',\r\n placeholder: '可为空,加载系统默认配置'\r\n }, {\r\n label: '模块',\r\n prop: 'moduleName',\r\n placeholder: '可为空,加载系统默认配置'\r\n }, {\r\n label: '表前缀',\r\n prop: 'tablePrefix',\r\n placeholder: '可为空,加载系统默认配置'\r\n }, {\r\n label: '注释',\r\n prop: 'comments',\r\n placeholder: '可为空,加载表备注'\r\n }\r\n ]\r\n}\r\nexport const formBatchOption = {\r\n submitText: '生成',\r\n column: [\r\n {\r\n label: '表名称',\r\n prop: 'tableName',\r\n disabled: true,\r\n minRows: 2,\r\n type: 'textarea',\r\n row: true,\r\n span: 24\r\n },\r\n {\r\n label: '包名',\r\n prop: 'packageName',\r\n placeholder: '可为空,加载系统默认配置'\r\n }, {\r\n label: '作者',\r\n prop: 'author',\r\n placeholder: '可为空,加载系统默认配置'\r\n }, {\r\n label: '模块',\r\n prop: 'moduleName',\r\n placeholder: '可为空,加载系统默认配置'\r\n }, {\r\n label: '注释',\r\n prop: 'comments',\r\n placeholder: '可为空,加载表备注'\r\n }\r\n ]\r\n}\r\n\r\nexport const tableDsOption = {\r\n border: true,\r\n index: true,\r\n indexLabel: '序号',\r\n stripe: true,\r\n menuAlign: 'center',\r\n align: 'center',\r\n column: [\r\n {\r\n label: '主键',\r\n prop: 'id',\r\n hide: true,\r\n addDisplay: false,\r\n editDisplay: false\r\n },\r\n {\r\n label: '名称',\r\n prop: 'name',\r\n rules: [\r\n { required: true, message: '请输入名称', trigger: 'blur' },\r\n { max: 32, message: '长度在 32 个字符', trigger: 'blur' },\r\n { validator: validateDsName, trigger: 'blur' }\r\n ]\r\n },\r\n {\r\n label: 'jdbcUrl',\r\n prop: 'url',\r\n type: 'textarea',\r\n span: 24,\r\n row: true,\r\n minRows: 2,\r\n overHidden: true,\r\n rules: [\r\n { required: true, message: '请输入jdbcUrl', trigger: 'blur' }\r\n ]\r\n },\r\n {\r\n label: '用户名',\r\n prop: 'username',\r\n rules: [\r\n { required: true, message: '请输入用户名', trigger: 'blur' },\r\n { max: 32, message: '长度在 32 个字符', trigger: 'blur' }\r\n ]\r\n },\r\n {\r\n label: '密码',\r\n prop: 'password',\r\n rules: [\r\n { required: true, message: '请输入密码', trigger: 'blur' },\r\n { max: 32, message: '长度在 32 个字符', trigger: 'blur' }\r\n ]\r\n },\r\n {\r\n label: '创建时间',\r\n prop: 'createDate',\r\n addDisplay: false,\r\n editDisplay: false,\r\n overHidden: true\r\n },\r\n {\r\n label: '更新时间',\r\n prop: 'updateDate',\r\n overHidden: true,\r\n addDisplay: false,\r\n editDisplay: false\r\n }\r\n ]\r\n}\r\n"]}]}