anncic-apihelper 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.js +1 -1
- package/dist/helper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApicreateService.js +1 -1
- package/dist/templateFun/Action.js +1 -1
- package/dist/templateFun/Common.js +1 -1
- package/dist/templateFun/Entities.js +1 -1
- package/dist/templateFun/Event.js +1 -1
- package/dist/templateFun/Handler.js +1 -1
- package/dist/templateFun/Search.js +1 -1
- package/dist/templateFun/Validator.js +1 -1
- package/dist/templateVue/Layout.js +1 -1
- package/dist/templateVue/LayoutVue.js +1 -1
- package/dist/templateVue/Router.js +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +3 -3
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x32d60b=a0_0x1aab;(function(_0x4dbc77,_0x1ae00c){var _0x429485=a0_0x1aab,_0x4cd2df=_0x4dbc77();while(!![]){try{var _0x14fd0d=-parseInt(_0x429485(0xbc))/0x1+-parseInt(_0x429485(0xb3))/0x2+parseInt(_0x429485(0xb7))/0x3+-parseInt(_0x429485(0xb1))/0x4*(-parseInt(_0x429485(0xb9))/0x5)+-parseInt(_0x429485(0xa6))/0x6+-parseInt(_0x429485(0xa5))/0x7*(-parseInt(_0x429485(0xb4))/0x8)+-parseInt(_0x429485(0xa3))/0x9;if(_0x14fd0d===_0x1ae00c)break;else _0x4cd2df['push'](_0x4cd2df['shift']());}catch(_0x47a415){_0x4cd2df['push'](_0x4cd2df['shift']());}}}(a0_0xa2a6,0x1bff1));function a0_0x1aab(_0x18819b,_0x3e49fd){var _0xa2a648=a0_0xa2a6();return a0_0x1aab=function(_0x1aab0,_0x8e50e4){_0x1aab0=_0x1aab0-0xa3;var _0x444249=_0xa2a648[_0x1aab0];return _0x444249;},a0_0x1aab(_0x18819b,_0x3e49fd);}function a0_0xa2a6(){var _0x240f64=['CustomConfiguration','anncic-apihelper','Inject','@midwayjs/core','1196DjYsXF','object','79992pOKicH','744tINExk','function','MidwayApplicationManager','538986LYmIZE','metadata','3590PGTisy','length','decorate','153702rzCDJs','defineProperty','MidwayDecoratorService','699732zeWhcr','application','15645KeiPcl','1296480ZUmIkY','__esModule','MidwayConfigService','__decorate','prototype','design:type','getOwnPropertyDescriptor'];a0_0xa2a6=function(){return _0x240f64;};return a0_0xa2a6();}var __decorate=this&&this[a0_0x32d60b(0xa9)]||function(_0x57c70d,_0x139c21,_0x5f14ba,_0x54d629){var _0x4cd6c8=a0_0x32d60b,_0x47ad9f=arguments[_0x4cd6c8(0xba)],_0x21c16e=_0x47ad9f<0x3?_0x139c21:_0x54d629===null?_0x54d629=Object[_0x4cd6c8(0xac)](_0x139c21,_0x5f14ba):_0x54d629,_0x1db2f7;if(typeof Reflect===_0x4cd6c8(0xb2)&&typeof Reflect[_0x4cd6c8(0xbb)]===_0x4cd6c8(0xb5))_0x21c16e=Reflect[_0x4cd6c8(0xbb)](_0x57c70d,_0x139c21,_0x5f14ba,_0x54d629);else{for(var _0xa69e90=_0x57c70d['length']-0x1;_0xa69e90>=0x0;_0xa69e90--)if(_0x1db2f7=_0x57c70d[_0xa69e90])_0x21c16e=(_0x47ad9f<0x3?_0x1db2f7(_0x21c16e):_0x47ad9f>0x3?_0x1db2f7(_0x139c21,_0x5f14ba,_0x21c16e):_0x1db2f7(_0x139c21,_0x5f14ba))||_0x21c16e;}return _0x47ad9f>0x3&&_0x21c16e&&Object[_0x4cd6c8(0xbd)](_0x139c21,_0x5f14ba,_0x21c16e),_0x21c16e;},__metadata=this&&this['__metadata']||function(_0x5f4d57,_0x18d921){var _0x2ddfd3=a0_0x32d60b;if(typeof Reflect===_0x2ddfd3(0xb2)&&typeof Reflect[_0x2ddfd3(0xb8)]===_0x2ddfd3(0xb5))return Reflect[_0x2ddfd3(0xb8)](_0x5f4d57,_0x18d921);};Object[a0_0x32d60b(0xbd)](exports,a0_0x32d60b(0xa7),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a0_0x32d60b(0xb0)),core_2=require(a0_0x32d60b(0xb0)),typeorm=require('@anncic-api/typeorm');let CustomConfiguration=class CustomConfiguration{};__decorate([(0x0,core_1[a0_0x32d60b(0xaf)])(),__metadata('design:type',core_2[a0_0x32d60b(0xa8)])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1[a0_0x32d60b(0xaf)])(),__metadata(a0_0x32d60b(0xab),core_2[a0_0x32d60b(0xbe)])],CustomConfiguration[a0_0x32d60b(0xaa)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a0_0x32d60b(0xb6)])],CustomConfiguration[a0_0x32d60b(0xaa)],a0_0x32d60b(0xa4),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'imports':[typeorm],'namespace':a0_0x32d60b(0xae)})],CustomConfiguration),exports[a0_0x32d60b(0xad)]=CustomConfiguration;
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x4a928b=a1_0x3152;(function(_0x542f54,_0x53bd50){const _0x31eb72=a1_0x3152,_0x5762d9=_0x542f54();while(!![]){try{const _0x1cffc4=-parseInt(_0x31eb72(0x1ee))/0x1+-parseInt(_0x31eb72(0x1de))/0x2*(-parseInt(_0x31eb72(0x1e9))/0x3)+-parseInt(_0x31eb72(0x1e8))/0x4+parseInt(_0x31eb72(0x1e7))/0x5*(parseInt(_0x31eb72(0x1db))/0x6)+-parseInt(_0x31eb72(0x1da))/0x7+-parseInt(_0x31eb72(0x1dc))/0x8+parseInt(_0x31eb72(0x1e5))/0x9;if(_0x1cffc4===_0x53bd50)break;else _0x5762d9['push'](_0x5762d9['shift']());}catch(_0x1b05cc){_0x5762d9['push'](_0x5762d9['shift']());}}}(a1_0x5c3e,0x862a9));function a1_0x3152(_0x3431ca,_0x1f0e04){const _0x5c3e4b=a1_0x5c3e();return a1_0x3152=function(_0x31521a,_0x38427a){_0x31521a=_0x31521a-0x1d7;let _0xbcfbdd=_0x5c3e4b[_0x31521a];return _0xbcfbdd;},a1_0x3152(_0x3431ca,_0x1f0e04);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x4a928b(0x1ed)]=exports['getProp']=void 0x0;const columnTypes={'json':a1_0x4a928b(0x1f3),'char':a1_0x4a928b(0x1ea),'varchar':a1_0x4a928b(0x1ea),'text':a1_0x4a928b(0x1e1),'longtext':a1_0x4a928b(0x1f0),'mediumtext':a1_0x4a928b(0x1e6),'int':a1_0x4a928b(0x1f1),'float':a1_0x4a928b(0x1f2),'double':'float','decimal':a1_0x4a928b(0x1ef),'date':a1_0x4a928b(0x1d9),'time':a1_0x4a928b(0x1eb),'datetime':a1_0x4a928b(0x1eb),'timestamp':a1_0x4a928b(0x1e0),'tinyint':a1_0x4a928b(0x1e2)};function getProp(_0x39ed77){const _0x39b57a=a1_0x4a928b;if(columnTypes[_0x39b57a(0x1ec)](_0x39ed77))return columnTypes[_0x39ed77];else return _0x39ed77['indexOf']('(')>-0x1||_0x39ed77[_0x39b57a(0x1df)]('\x20')>-0x1?(_0x39ed77=_0x39ed77[_0x39b57a(0x1e4)](0x0,_0x39ed77[_0x39b57a(0x1df)]('(')>-0x1?_0x39ed77[_0x39b57a(0x1df)]('('):_0x39ed77[_0x39b57a(0x1df)]('\x20')),columnTypes[_0x39ed77]||_0x39ed77):_0x39b57a(0x1ea);}function a1_0x5c3e(){const _0x23a42f=['5468610VMoUqt','666408iSbmAW','5636720eeZlUG','length','190FpadOV','indexOf','timestamp','text','tinyint','split','substr','24640434axQXMv','mediumtext','5LSBjwc','964424RUDfdt','12324FGcvuE','string','datetime','hasOwnProperty','getEnum','962683IaHwkp','decimal','longtext','number','float','json','enum','getProp','date'];a1_0x5c3e=function(){return _0x23a42f;};return a1_0x5c3e();}exports[a1_0x4a928b(0x1d8)]=getProp;function getEnum(_0x49d7b7){const _0xdb5b05=a1_0x4a928b;if(getProp(_0x49d7b7)==_0xdb5b05(0x1d7))return _0x49d7b7[_0xdb5b05(0x1e4)](0x5,_0x49d7b7[_0xdb5b05(0x1dd)]-0x6)['replace'](/[\'|\"]/g,'')[_0xdb5b05(0x1e3)](',');return[];}exports[a1_0x4a928b(0x1ed)]=getEnum;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x1fbaa1=a2_0x4571;(function(_0xbdb9fe,_0x447904){var _0x40a8be=a2_0x4571,_0x1a03c9=_0xbdb9fe();while(!![]){try{var _0x2423cc=-parseInt(_0x40a8be(0xb7))/0x1*(parseInt(_0x40a8be(0xb3))/0x2)+-parseInt(_0x40a8be(0xad))/0x3+parseInt(_0x40a8be(0xb2))/0x4*(-parseInt(_0x40a8be(0xb0))/0x5)+-parseInt(_0x40a8be(0xaa))/0x6*(parseInt(_0x40a8be(0xb6))/0x7)+parseInt(_0x40a8be(0xb5))/0x8*(-parseInt(_0x40a8be(0xab))/0x9)+-parseInt(_0x40a8be(0xaf))/0xa*(-parseInt(_0x40a8be(0xa9))/0xb)+parseInt(_0x40a8be(0xb1))/0xc;if(_0x2423cc===_0x447904)break;else _0x1a03c9['push'](_0x1a03c9['shift']());}catch(_0x1c4626){_0x1a03c9['push'](_0x1a03c9['shift']());}}}(a2_0x6c96,0xa73ad));Object['defineProperty'](exports,a2_0x1fbaa1(0xae),{'value':!![]}),exports[a2_0x1fbaa1(0xb8)]=exports['ApicreateService']=void 0x0;var ApicreateService_1=require('./service/ApicreateService');Object[a2_0x1fbaa1(0xac)](exports,'ApicreateService',{'enumerable':!![],'get':function(){var _0x48530a=a2_0x1fbaa1;return ApicreateService_1[_0x48530a(0xb4)];}});function a2_0x4571(_0x5a13bf,_0x2e8f24){var _0x6c9637=a2_0x6c96();return a2_0x4571=function(_0x4571bd,_0x44e118){_0x4571bd=_0x4571bd-0xa9;var _0x384c81=_0x6c9637[_0x4571bd];return _0x384c81;},a2_0x4571(_0x5a13bf,_0x2e8f24);}var configuration_1=require('./configuration');Object[a2_0x1fbaa1(0xac)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x47a15e=a2_0x1fbaa1;return configuration_1[_0x47a15e(0xb9)];}});function a2_0x6c96(){var _0x1913f1=['10nyOibt','299555lLfWmo','32061456jBVPxO','20MgXpih','860564FCKkqg','ApicreateService','45464ZdgIBX','42bRbxLF','1qMTeCM','Configuration','CustomConfiguration','11386023phCFXe','207582YWidFx','1233YSkdNl','defineProperty','3917754jETyDV','__esModule'];a2_0x6c96=function(){return _0x1913f1;};return a2_0x6c96();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a3_0x5ad2(){const _0x3ff7d8=['ScopeEnum','toLowerCase','=\x20\x22','dirname','length','8mqtqXL','1067vTneOK','join','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','app','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','LIKE\x20\x22','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','path','Key','38647qIQDjy','/vue','Inject','metadata','match','isDevelopmentEnvironment','\x20不存在','die','/pages/','../templateVue/Router','Scope','@midwayjs/core','function','/config.ts','../templateFun/Validator','../templateFun/Entities','dataSource','substring','cwd','App','20392200rGkeiD','Config','1398grYzUj','design:type','ApicreateService','/app','substr','tablestartLowShort','PRI','table','\x20表注释不存在','4795384jDFgJA','query','CreateModuleConfig','Comment','104034WxlrAW','module','__esModule','@midwayjs/typeorm','getDataSource','decorate','tablestartLow','map','../templateFun/Search','9826218HoFQfQ','utf-8','string','/index.vue','getOwnPropertyDescriptor','prototype','/exceptions/','dataSourceManager','moduleName','/module/','5AgDGdj','split','__metadata','325336FNhzHK','\x22\x20AND\x20table_name\x20','onlyvue','.ts','existsSync','tablestart','comment','object','getBaseDir','hasvue','database','tablestartUpShort2','5930JGPzya','config','tablestartUpShort','Primary','Fields','getConfig','tablestartUp','../templateVue/Layout','controller','typeorm\x20未配置数据源\x20','3ZWNMoM','../templateFun/Handler','basedir','MidwayEnvironmentService','\x22\x20AND\x20table_name\x20=\x20\x27','connection','default','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middlewares:\x20[],\x0a}'];a3_0x5ad2=function(){return _0x3ff7d8;};return a3_0x5ad2();}const a3_0x251257=a3_0x2960;(function(_0x465cc7,_0x3dec7b){const _0x421e8d=a3_0x2960,_0x373cd3=_0x465cc7();while(!![]){try{const _0x5c1cc2=parseInt(_0x421e8d(0x1ce))/0x1+parseInt(_0x421e8d(0x1b8))/0x2*(parseInt(_0x421e8d(0x17e))/0x3)+parseInt(_0x421e8d(0x1b4))/0x4*(-parseInt(_0x421e8d(0x1cb))/0x5)+-parseInt(_0x421e8d(0x1ab))/0x6*(parseInt(_0x421e8d(0x195))/0x7)+-parseInt(_0x421e8d(0x18b))/0x8*(-parseInt(_0x421e8d(0x1c1))/0x9)+-parseInt(_0x421e8d(0x1da))/0xa*(-parseInt(_0x421e8d(0x18c))/0xb)+parseInt(_0x421e8d(0x1a9))/0xc;if(_0x5c1cc2===_0x3dec7b)break;else _0x373cd3['push'](_0x373cd3['shift']());}catch(_0x5be58d){_0x373cd3['push'](_0x373cd3['shift']());}}}(a3_0x5ad2,0xb4db3));function a3_0x2960(_0xfa31ae,_0x1e6541){const _0x5ad20c=a3_0x5ad2();return a3_0x2960=function(_0x2960a7,_0x1cda39){_0x2960a7=_0x2960a7-0x177;let _0x2a4405=_0x5ad20c[_0x2960a7];return _0x2a4405;},a3_0x2960(_0xfa31ae,_0x1e6541);}var __decorate=this&&this['__decorate']||function(_0x828a47,_0x453b7d,_0x132b5d,_0x4ec17b){const _0xde9d9c=a3_0x2960;var _0x495d2a=arguments[_0xde9d9c(0x18a)],_0x17defc=_0x495d2a<0x3?_0x453b7d:_0x4ec17b===null?_0x4ec17b=Object[_0xde9d9c(0x1c5)](_0x453b7d,_0x132b5d):_0x4ec17b,_0xb04bda;if(typeof Reflect===_0xde9d9c(0x1d5)&&typeof Reflect[_0xde9d9c(0x1bd)]===_0xde9d9c(0x1a1))_0x17defc=Reflect[_0xde9d9c(0x1bd)](_0x828a47,_0x453b7d,_0x132b5d,_0x4ec17b);else{for(var _0x33c0df=_0x828a47[_0xde9d9c(0x18a)]-0x1;_0x33c0df>=0x0;_0x33c0df--)if(_0xb04bda=_0x828a47[_0x33c0df])_0x17defc=(_0x495d2a<0x3?_0xb04bda(_0x17defc):_0x495d2a>0x3?_0xb04bda(_0x453b7d,_0x132b5d,_0x17defc):_0xb04bda(_0x453b7d,_0x132b5d))||_0x17defc;}return _0x495d2a>0x3&&_0x17defc&&Object['defineProperty'](_0x453b7d,_0x132b5d,_0x17defc),_0x17defc;},__metadata=this&&this[a3_0x251257(0x1cd)]||function(_0x2c0214,_0x592eef){const _0x4d2484=a3_0x251257;if(typeof Reflect===_0x4d2484(0x1d5)&&typeof Reflect[_0x4d2484(0x198)]===_0x4d2484(0x1a1))return Reflect['metadata'](_0x2c0214,_0x592eef);};Object['defineProperty'](exports,a3_0x251257(0x1ba),{'value':!![]}),exports['ApicreateService']=void 0x0;const fs=require('fs'),path=require(a3_0x251257(0x193)),core_1=require(a3_0x251257(0x1a0)),typeorm_1=require(a3_0x251257(0x1bb)),core_2=require(a3_0x251257(0x1a0)),Common_1=require('../templateFun/Common'),Event_1=require('../templateFun/Event'),Search_1=require(a3_0x251257(0x1c0)),Entities_1=require(a3_0x251257(0x1a4)),Handler_1=require(a3_0x251257(0x17f)),Validator_1=require(a3_0x251257(0x1a3)),Action_1=require('../templateFun/Action'),Router_1=require(a3_0x251257(0x19e)),Layout_1=require(a3_0x251257(0x17b)),LayoutVue_1=require('../templateVue/LayoutVue');let ApicreateService=class ApicreateService{async['create'](_0x29a1d5){const _0x2aa883=a3_0x251257;var _0x34964e,_0x4a3eb9,_0x4fdf9b,_0x3deb47,_0x3c323e;if(this['environment'][_0x2aa883(0x19a)]()&&((_0x34964e=this['config'])===null||_0x34964e===void 0x0?void 0x0:_0x34964e[_0x2aa883(0x1a5)])&&this[_0x2aa883(0x18f)][_0x2aa883(0x179)]('apitest')){!_0x29a1d5['connection']&&(_0x29a1d5[_0x2aa883(0x183)]=_0x2aa883(0x184));if(!((_0x4fdf9b=(_0x4a3eb9=this[_0x2aa883(0x1db)])===null||_0x4a3eb9===void 0x0?void 0x0:_0x4a3eb9['dataSource'])===null||_0x4fdf9b===void 0x0?void 0x0:_0x4fdf9b[_0x29a1d5['connection']]))throw new Error(_0x2aa883(0x17d)+_0x29a1d5['connection']);if(!this[_0x2aa883(0x1c8)]['hasDataSource'](_0x29a1d5[_0x2aa883(0x183)]))throw new Error('typeorm\x20数据源\x20'+_0x29a1d5[_0x2aa883(0x183)]+_0x2aa883(0x19b));if(!this['dataSourceManager']['isConnected'](_0x29a1d5['connection']))throw new Error('typeorm\x20数据源\x20'+_0x29a1d5['connection']+'\x20未连接');const _0x4969f6=this[_0x2aa883(0x18f)][_0x2aa883(0x1d6)](),_0x369011=this['dataSourceManager'][_0x2aa883(0x1bc)](_0x29a1d5[_0x2aa883(0x183)]),_0x451281=await _0x369011[_0x2aa883(0x1b5)](_0x2aa883(0x18e)+this[_0x2aa883(0x1db)][_0x2aa883(0x1a5)][_0x29a1d5[_0x2aa883(0x183)]][_0x2aa883(0x1d8)]+_0x2aa883(0x1cf)+((_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x1b2)])?_0x2aa883(0x188)+_0x29a1d5['table']+'\x22':_0x2aa883(0x191)+(_0x29a1d5['tableprefix']||'')+'%\x22'))||[];for(let _0xe159f0=0x0;_0xe159f0<_0x451281[_0x2aa883(0x18a)];_0xe159f0++){const _0x254690=_0x451281[_0xe159f0][_0x2aa883(0x1b2)],_0x313284=await _0x369011['query'](_0x2aa883(0x192)+this[_0x2aa883(0x1db)]['dataSource'][_0x29a1d5['connection']][_0x2aa883(0x1d8)]+_0x2aa883(0x182)+_0x254690+'\x27')||[];if((_0x3deb47=_0x313284[0x0])===null||_0x3deb47===void 0x0?void 0x0:_0x3deb47['comment']){const _0x59afb0={'tablename':_0x254690,'Primary':{},'Fields':{},'Comment':(_0x3c323e=_0x313284[0x0])===null||_0x3c323e===void 0x0?void 0x0:_0x3c323e[_0x2aa883(0x1d4)]};_0x59afb0['tablestart']=_0x254690[_0x2aa883(0x1af)]((_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x1af)])||0x0,_0x254690[_0x2aa883(0x18a)]),_0x59afb0[_0x2aa883(0x180)]=(_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x1b9)])?_0x4969f6+'/apps/'+_0x59afb0['tablestart'][_0x2aa883(0x1cc)]('_')[0x0][_0x2aa883(0x187)]():_0x4969f6+_0x2aa883(0x1ae);const _0x42368c=_0x59afb0[_0x2aa883(0x1d3)][_0x2aa883(0x1cc)]('_')['filter'](_0x3d0fa6=>_0x3d0fa6&&_0x3d0fa6['trim']());(_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5['module'])&&(await this['CreateModuleConfig'](_0x59afb0),_0x59afb0['moduleName']=_0x42368c[0x0][_0x2aa883(0x187)]());_0x59afb0[_0x2aa883(0x1be)]=_0x42368c['map'](_0x21992b=>_0x21992b[_0x2aa883(0x187)]())['join'](''),_0x59afb0[_0x2aa883(0x17a)]=_0x42368c[_0x2aa883(0x1bf)](_0x4a0d13=>''+_0x4a0d13[_0x2aa883(0x1a6)](0x0,0x1)['toUpperCase']()+_0x4a0d13[_0x2aa883(0x1a6)](0x1)[_0x2aa883(0x187)]())[_0x2aa883(0x18d)]('');(_0x59afb0===null||_0x59afb0===void 0x0?void 0x0:_0x59afb0[_0x2aa883(0x1c9)])&&_0x42368c['length']>0x1&&_0x42368c[0x0][_0x2aa883(0x187)]()==_0x59afb0[_0x2aa883(0x1c9)]?(_0x59afb0[_0x2aa883(0x1dc)]=_0x59afb0[_0x2aa883(0x17a)][_0x2aa883(0x1a6)](_0x59afb0['moduleName'][_0x2aa883(0x18a)],_0x59afb0[_0x2aa883(0x17a)]['length']),_0x59afb0[_0x2aa883(0x1b0)]=_0x59afb0[_0x2aa883(0x1be)][_0x2aa883(0x1a6)](_0x59afb0[_0x2aa883(0x1c9)][_0x2aa883(0x18a)],_0x59afb0[_0x2aa883(0x1be)][_0x2aa883(0x18a)])):(_0x59afb0[_0x2aa883(0x1dc)]=_0x59afb0['tablestartUp'],_0x59afb0['tablestartLowShort']=_0x59afb0[_0x2aa883(0x1be)]);_0x59afb0[_0x2aa883(0x1d9)]=_0x59afb0[_0x2aa883(0x1dc)]['replace'](/\/{2,}/g,'/')[_0x2aa883(0x199)](/[\/|A-Z]*[^A-Z]+/g)[_0x2aa883(0x18d)]('-')['toLowerCase']()['replace'](/\/\-/g,'/');for(let _0xf0374e of await _0x369011[_0x2aa883(0x1b5)](_0x2aa883(0x190)+_0x254690+'`')){_0xf0374e[_0x2aa883(0x194)]==_0x2aa883(0x1b1)?_0x59afb0[_0x2aa883(0x177)]=_0xf0374e:_0x59afb0[_0x2aa883(0x178)][_0xf0374e['Field']]=_0xf0374e;}(_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x17c)])&&(_0x59afb0[_0x2aa883(0x17c)]=_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x17c)]);if(!(_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x1d0)])&&!fs[_0x2aa883(0x1d2)](_0x59afb0[_0x2aa883(0x180)]+_0x2aa883(0x1c7)+_0x59afb0[_0x2aa883(0x1dc)]+_0x2aa883(0x1d1))){var _0x1c0e44=[];if(typeof(_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x17c)])=='string')_0x1c0e44=[_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x17c)]];else Array['isArray'](_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5['controller'])?_0x1c0e44=_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5['controller']:_0x1c0e44=[!![]];_0x59afb0['controllers']=_0x1c0e44,await(0x0,Common_1['default'])(_0x59afb0),await(0x0,Event_1[_0x2aa883(0x184)])(_0x59afb0),await(0x0,Search_1[_0x2aa883(0x184)])(_0x59afb0),await(0x0,Entities_1[_0x2aa883(0x184)])(_0x59afb0),await(0x0,Handler_1[_0x2aa883(0x184)])(_0x59afb0),await(0x0,Validator_1[_0x2aa883(0x184)])(_0x59afb0);for(let _0x5dd4b1 of _0x1c0e44){_0x59afb0[_0x2aa883(0x17c)]=_0x5dd4b1,await(0x0,Action_1[_0x2aa883(0x184)])(_0x59afb0);}}if((_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x1d7)])||(_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x1d0)])){var _0x1c0e44=[];if(typeof(_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x17c)])==_0x2aa883(0x1c3))_0x1c0e44=[_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x17c)]];else Array['isArray'](_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5[_0x2aa883(0x17c)])?_0x1c0e44=_0x29a1d5===null||_0x29a1d5===void 0x0?void 0x0:_0x29a1d5['controller']:_0x1c0e44=[!![]];for(let _0x106a7d of _0x1c0e44){_0x59afb0[_0x2aa883(0x17c)]=_0x106a7d;let _0x272b42=process[_0x2aa883(0x1a7)]()+_0x2aa883(0x196)+(typeof _0x59afb0[_0x2aa883(0x17c)]==_0x2aa883(0x1c3)?'/'+_0x106a7d:'');_0x59afb0['moduleName']?_0x272b42=_0x272b42+(_0x2aa883(0x1ca)+_0x59afb0['moduleName']+'/'+_0x59afb0[_0x2aa883(0x1dc)]+'/index.vue'):_0x272b42=_0x272b42+(_0x2aa883(0x19d)+_0x59afb0['tablestartUpShort']+_0x2aa883(0x1c4)),!fs[_0x2aa883(0x1d2)](_0x272b42)&&(await(0x0,Router_1[_0x2aa883(0x184)])(_0x59afb0),await(0x0,Layout_1[_0x2aa883(0x184)])(_0x59afb0)),await(0x0,LayoutVue_1['default'])(_0x59afb0);}}}else console['error']('表:'+_0x254690+_0x2aa883(0x1b3));}}return _0x2aa883(0x19c);}async[a3_0x251257(0x1b6)](_0x3f53cd){const _0x3ed44b=a3_0x251257,_0x32b84b=_0x3f53cd[_0x3ed44b(0x1d3)]['split']('_')[0x0][_0x3ed44b(0x187)]();if(!fs[_0x3ed44b(0x1d2)](_0x3f53cd['basedir']+'/config.ts')){let _0x34a3b3='export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27'+(_0x3f53cd[_0x3ed44b(0x1b7)]||_0x32b84b)+_0x3ed44b(0x185);fs['mkdirSync'](path[_0x3ed44b(0x189)](_0x3f53cd[_0x3ed44b(0x180)]+_0x3ed44b(0x1a2)),{'recursive':!![]}),fs['writeFileSync'](_0x3f53cd['basedir']+_0x3ed44b(0x1a2),_0x34a3b3,_0x3ed44b(0x1c2));}}};__decorate([(0x0,core_2[a3_0x251257(0x1a8)])(),__metadata(a3_0x251257(0x1ac),Object)],ApicreateService[a3_0x251257(0x1c6)],a3_0x251257(0x18f),void 0x0),__decorate([(0x0,core_2[a3_0x251257(0x1aa)])('typeorm'),__metadata(a3_0x251257(0x1ac),Object)],ApicreateService[a3_0x251257(0x1c6)],a3_0x251257(0x1db),void 0x0),__decorate([(0x0,core_2[a3_0x251257(0x197)])(),__metadata(a3_0x251257(0x1ac),core_1[a3_0x251257(0x181)])],ApicreateService[a3_0x251257(0x1c6)],'environment',void 0x0),__decorate([(0x0,core_2[a3_0x251257(0x197)])(),__metadata('design:type',typeorm_1['TypeORMDataSourceManager'])],ApicreateService[a3_0x251257(0x1c6)],a3_0x251257(0x1c8),void 0x0),ApicreateService=__decorate([(0x0,core_2['Provide'])(a3_0x251257(0x1ad)),(0x0,core_2[a3_0x251257(0x19f)])(core_2[a3_0x251257(0x186)]['Singleton'])],ApicreateService),exports[a3_0x251257(0x1ad)]=ApicreateService;
|
|
1
|
+
'use strict';const a3_0x70ef98=a3_0x32f7;(function(_0x3bdbad,_0x5717df){const _0x2c1b2f=a3_0x32f7,_0x407535=_0x3bdbad();while(!![]){try{const _0x505935=parseInt(_0x2c1b2f(0x117))/0x1+parseInt(_0x2c1b2f(0x128))/0x2+parseInt(_0x2c1b2f(0x161))/0x3+parseInt(_0x2c1b2f(0x135))/0x4+parseInt(_0x2c1b2f(0x15a))/0x5*(parseInt(_0x2c1b2f(0x139))/0x6)+parseInt(_0x2c1b2f(0x118))/0x7+-parseInt(_0x2c1b2f(0xfe))/0x8*(parseInt(_0x2c1b2f(0x153))/0x9);if(_0x505935===_0x5717df)break;else _0x407535['push'](_0x407535['shift']());}catch(_0x4e0998){_0x407535['push'](_0x407535['shift']());}}}(a3_0x1b98,0xdcf17));var __decorate=this&&this[a3_0x70ef98(0x13d)]||function(_0x436816,_0x2dc8b7,_0x2139d6,_0x1a0292){const _0x4c086d=a3_0x70ef98;var _0x3f2b73=arguments[_0x4c086d(0x115)],_0x5020cd=_0x3f2b73<0x3?_0x2dc8b7:_0x1a0292===null?_0x1a0292=Object['getOwnPropertyDescriptor'](_0x2dc8b7,_0x2139d6):_0x1a0292,_0x4325cf;if(typeof Reflect===_0x4c086d(0x110)&&typeof Reflect[_0x4c086d(0x132)]===_0x4c086d(0x167))_0x5020cd=Reflect[_0x4c086d(0x132)](_0x436816,_0x2dc8b7,_0x2139d6,_0x1a0292);else{for(var _0x49e6df=_0x436816[_0x4c086d(0x115)]-0x1;_0x49e6df>=0x0;_0x49e6df--)if(_0x4325cf=_0x436816[_0x49e6df])_0x5020cd=(_0x3f2b73<0x3?_0x4325cf(_0x5020cd):_0x3f2b73>0x3?_0x4325cf(_0x2dc8b7,_0x2139d6,_0x5020cd):_0x4325cf(_0x2dc8b7,_0x2139d6))||_0x5020cd;}return _0x3f2b73>0x3&&_0x5020cd&&Object['defineProperty'](_0x2dc8b7,_0x2139d6,_0x5020cd),_0x5020cd;},__metadata=this&&this['__metadata']||function(_0x36b80c,_0xc8a902){const _0x3f1f3b=a3_0x70ef98;if(typeof Reflect===_0x3f1f3b(0x110)&&typeof Reflect[_0x3f1f3b(0x165)]==='function')return Reflect['metadata'](_0x36b80c,_0xc8a902);};Object[a3_0x70ef98(0x130)](exports,'__esModule',{'value':!![]}),exports[a3_0x70ef98(0x15b)]=void 0x0;const fs=require('fs'),path=require(a3_0x70ef98(0x12d)),core_1=require('@midwayjs/core'),typeorm_1=require('@midwayjs/typeorm'),core_2=require('@midwayjs/core'),Common_1=require(a3_0x70ef98(0x140)),Event_1=require(a3_0x70ef98(0x15e)),Search_1=require(a3_0x70ef98(0x150)),Entities_1=require(a3_0x70ef98(0x13b)),Handler_1=require(a3_0x70ef98(0x107)),Validator_1=require(a3_0x70ef98(0x111)),Action_1=require(a3_0x70ef98(0x164)),Router_1=require(a3_0x70ef98(0x146)),Layout_1=require(a3_0x70ef98(0x12a)),LayoutVue_1=require(a3_0x70ef98(0x103));let ApicreateService=class ApicreateService{async[a3_0x70ef98(0x121)](_0x5c6419){const _0x3a6f2f=a3_0x70ef98;var _0x5070a1,_0x5e3473,_0x52dfdc,_0x14d19c,_0x947e9;if(this[_0x3a6f2f(0x11a)][_0x3a6f2f(0x104)]()&&((_0x5070a1=this[_0x3a6f2f(0x152)])===null||_0x5070a1===void 0x0?void 0x0:_0x5070a1['dataSource'])&&this[_0x3a6f2f(0x14c)][_0x3a6f2f(0x11b)](_0x3a6f2f(0x126))){!_0x5c6419[_0x3a6f2f(0x116)]&&(_0x5c6419[_0x3a6f2f(0x116)]=_0x3a6f2f(0x120));if(!((_0x52dfdc=(_0x5e3473=this[_0x3a6f2f(0x152)])===null||_0x5e3473===void 0x0?void 0x0:_0x5e3473[_0x3a6f2f(0x14f)])===null||_0x52dfdc===void 0x0?void 0x0:_0x52dfdc[_0x5c6419[_0x3a6f2f(0x116)]]))throw new Error('typeorm\x20未配置数据源\x20'+_0x5c6419['connection']);if(!this[_0x3a6f2f(0x105)]['hasDataSource'](_0x5c6419[_0x3a6f2f(0x116)]))throw new Error(_0x3a6f2f(0x10a)+_0x5c6419[_0x3a6f2f(0x116)]+_0x3a6f2f(0x127));if(!this[_0x3a6f2f(0x105)][_0x3a6f2f(0x142)](_0x5c6419[_0x3a6f2f(0x116)]))throw new Error(_0x3a6f2f(0x10a)+_0x5c6419[_0x3a6f2f(0x116)]+_0x3a6f2f(0x160));const _0x2371a6=this[_0x3a6f2f(0x14c)][_0x3a6f2f(0x13e)](),_0x28b1dd=this[_0x3a6f2f(0x105)][_0x3a6f2f(0x14b)](_0x5c6419[_0x3a6f2f(0x116)]),_0x2a0a17=await _0x28b1dd[_0x3a6f2f(0x13c)](_0x3a6f2f(0x131)+this[_0x3a6f2f(0x152)][_0x3a6f2f(0x14f)][_0x5c6419[_0x3a6f2f(0x116)]]['database']+_0x3a6f2f(0x10c)+((_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x14e)])?_0x3a6f2f(0x10b)+_0x5c6419['table']+'\x22':_0x3a6f2f(0x11e)+(_0x5c6419['tableprefix']||'')+'%\x22'))||[];for(let _0x5775e1=0x0;_0x5775e1<_0x2a0a17[_0x3a6f2f(0x115)];_0x5775e1++){const _0x5b89d3=_0x2a0a17[_0x5775e1][_0x3a6f2f(0x14e)],_0xbef1d=await _0x28b1dd[_0x3a6f2f(0x13c)](_0x3a6f2f(0x15d)+this[_0x3a6f2f(0x152)][_0x3a6f2f(0x14f)][_0x5c6419['connection']][_0x3a6f2f(0x143)]+_0x3a6f2f(0x109)+_0x5b89d3+'\x27')||[];if((_0x14d19c=_0xbef1d[0x0])===null||_0x14d19c===void 0x0?void 0x0:_0x14d19c['comment']){const _0x10af36={'tablename':_0x5b89d3,'Primary':{},'Fields':{},'Comment':(_0x947e9=_0xbef1d[0x0])===null||_0x947e9===void 0x0?void 0x0:_0x947e9['comment']};_0x10af36['tablestart']=_0x5b89d3['substr']((_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x129)])||0x0,_0x5b89d3['length']),_0x10af36['basedir']=(_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x157)])?_0x2371a6+_0x3a6f2f(0x155)+_0x10af36[_0x3a6f2f(0x112)]['split']('_')[0x0]['toLowerCase']():_0x2371a6+'/app';const _0x118ea2=_0x10af36['tablestart'][_0x3a6f2f(0x159)]('_')[_0x3a6f2f(0x11f)](_0x3f8574=>_0x3f8574&&_0x3f8574[_0x3a6f2f(0xff)]());(_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x157)])&&(await this[_0x3a6f2f(0x119)](_0x10af36),_0x10af36[_0x3a6f2f(0x147)]=_0x118ea2[0x0]['toLowerCase']());_0x10af36[_0x3a6f2f(0x125)]=_0x118ea2['map'](_0x1145fc=>_0x1145fc[_0x3a6f2f(0x106)]())[_0x3a6f2f(0x15f)](''),_0x10af36[_0x3a6f2f(0x138)]=_0x118ea2[_0x3a6f2f(0x12b)](_0x4d6259=>''+_0x4d6259['substring'](0x0,0x1)[_0x3a6f2f(0x102)]()+_0x4d6259[_0x3a6f2f(0x11d)](0x1)[_0x3a6f2f(0x106)]())[_0x3a6f2f(0x15f)]('');(_0x10af36===null||_0x10af36===void 0x0?void 0x0:_0x10af36[_0x3a6f2f(0x147)])&&_0x118ea2[_0x3a6f2f(0x115)]>0x1&&_0x118ea2[0x0]['toLowerCase']()==_0x10af36[_0x3a6f2f(0x147)]?(_0x10af36[_0x3a6f2f(0x149)]=_0x10af36[_0x3a6f2f(0x138)][_0x3a6f2f(0x11d)](_0x10af36['moduleName'][_0x3a6f2f(0x115)],_0x10af36[_0x3a6f2f(0x138)][_0x3a6f2f(0x115)]),_0x10af36['tablestartLowShort']=_0x10af36[_0x3a6f2f(0x125)][_0x3a6f2f(0x11d)](_0x10af36[_0x3a6f2f(0x147)][_0x3a6f2f(0x115)],_0x10af36[_0x3a6f2f(0x125)][_0x3a6f2f(0x115)])):(_0x10af36['tablestartUpShort']=_0x10af36[_0x3a6f2f(0x138)],_0x10af36[_0x3a6f2f(0x113)]=_0x10af36[_0x3a6f2f(0x125)]);_0x10af36['tablestartUpShort2']=_0x10af36[_0x3a6f2f(0x149)]['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x3a6f2f(0x15f)]('-')[_0x3a6f2f(0x106)]()[_0x3a6f2f(0x151)](/\/\-/g,'/');for(let _0x2bbbca of await _0x28b1dd[_0x3a6f2f(0x13c)](_0x3a6f2f(0x12e)+_0x5b89d3+'`')){_0x2bbbca[_0x3a6f2f(0x12f)]=='PRI'?_0x10af36[_0x3a6f2f(0x156)]=_0x2bbbca:_0x10af36['Fields'][_0x2bbbca[_0x3a6f2f(0x124)]]=_0x2bbbca;}(_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x148)])&&(_0x10af36[_0x3a6f2f(0x148)]=_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419['controller']);if(!(_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x100)])&&!fs[_0x3a6f2f(0x114)](_0x10af36['basedir']+_0x3a6f2f(0x14d)+_0x10af36[_0x3a6f2f(0x149)]+_0x3a6f2f(0x158))){var _0x4335c3=[];if(typeof(_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x148)])==_0x3a6f2f(0x144))_0x4335c3=[_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x148)]];else Array[_0x3a6f2f(0x108)](_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x148)])?_0x4335c3=_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419['controller']:_0x4335c3=[!![]];_0x10af36[_0x3a6f2f(0x133)]=_0x4335c3,await(0x0,Common_1[_0x3a6f2f(0x120)])(_0x10af36),await(0x0,Event_1[_0x3a6f2f(0x120)])(_0x10af36),await(0x0,Search_1[_0x3a6f2f(0x120)])(_0x10af36),await(0x0,Entities_1[_0x3a6f2f(0x120)])(_0x10af36),await(0x0,Handler_1[_0x3a6f2f(0x120)])(_0x10af36),await(0x0,Validator_1[_0x3a6f2f(0x120)])(_0x10af36);for(let _0x2e8685 of _0x4335c3){_0x10af36[_0x3a6f2f(0x148)]=_0x2e8685,await(0x0,Action_1[_0x3a6f2f(0x120)])(_0x10af36);}}if((_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x166)])||(_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419['onlyvue'])){var _0x4335c3=[];if(typeof(_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x148)])==_0x3a6f2f(0x144))_0x4335c3=[_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x148)]];else Array[_0x3a6f2f(0x108)](_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x148)])?_0x4335c3=_0x5c6419===null||_0x5c6419===void 0x0?void 0x0:_0x5c6419[_0x3a6f2f(0x148)]:_0x4335c3=[!![]];for(let _0xcc11eb of _0x4335c3){_0x10af36[_0x3a6f2f(0x148)]=_0xcc11eb;let _0x408798=process[_0x3a6f2f(0x145)]()+'/vue'+(typeof _0x10af36['controller']==_0x3a6f2f(0x144)?'/'+_0xcc11eb:'');_0x10af36['moduleName']?_0x408798=_0x408798+(_0x3a6f2f(0x11c)+_0x10af36[_0x3a6f2f(0x147)]+'/'+_0x10af36['tablestartUpShort']+_0x3a6f2f(0x162)):_0x408798=_0x408798+('/pages/'+_0x10af36['tablestartUpShort']+'/index.vue'),!fs[_0x3a6f2f(0x114)](_0x408798)&&(await(0x0,Router_1[_0x3a6f2f(0x120)])(_0x10af36),await(0x0,Layout_1[_0x3a6f2f(0x120)])(_0x10af36)),await(0x0,LayoutVue_1['default'])(_0x10af36);}}}else console[_0x3a6f2f(0x14a)]('表:'+_0x5b89d3+'\x20表注释不存在');}}return _0x3a6f2f(0x134);}async['CreateModuleConfig'](_0x46f899){const _0x3ef267=a3_0x70ef98,_0x404079=_0x46f899[_0x3ef267(0x112)][_0x3ef267(0x159)]('_')[0x0][_0x3ef267(0x106)]();if(!fs['existsSync'](_0x46f899[_0x3ef267(0x13f)]+_0x3ef267(0x10e))){let _0xf76bc6='export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27'+(_0x46f899['Comment']||_0x404079)+_0x3ef267(0x10d);fs[_0x3ef267(0x12c)](path[_0x3ef267(0x154)](_0x46f899[_0x3ef267(0x13f)]+_0x3ef267(0x10e)),{'recursive':!![]}),fs[_0x3ef267(0x101)](_0x46f899[_0x3ef267(0x13f)]+_0x3ef267(0x10e),_0xf76bc6,_0x3ef267(0x10f));}}};function a3_0x1b98(){const _0x4ee36a=['1716510uQZBwr','/index.vue','Singleton','../templateFun/Action','metadata','hasvue','function','Scope','48eNdAei','trim','onlyvue','writeFileSync','toUpperCase','../templateVue/LayoutVue','isDevelopmentEnvironment','dataSourceManager','toLowerCase','../templateFun/Handler','isArray','\x22\x20AND\x20table_name\x20=\x20\x27','typeorm\x20数据源\x20','=\x20\x22','\x22\x20AND\x20table_name\x20','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middlewares:\x20[],\x0a}','/config.ts','utf-8','object','../templateFun/Validator','tablestart','tablestartLowShort','existsSync','length','connection','211463mNCrqP','682815kxJgba','CreateModuleConfig','environment','getConfig','/module/','substring','LIKE\x20\x22','filter','default','create','App','Config','Field','tablestartLow','apitest','\x20不存在','139926Vxqwdx','substr','../templateVue/Layout','map','mkdirSync','path','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','Key','defineProperty','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','decorate','controllers','die','2320112awHRgN','design:type','prototype','tablestartUp','2744832HxBtlG','Provide','../templateFun/Entities','query','__decorate','getBaseDir','basedir','../templateFun/Common','MidwayEnvironmentService','isConnected','database','string','cwd','../templateVue/Router','moduleName','controller','tablestartUpShort','error','getDataSource','app','/exceptions/','table','dataSource','../templateFun/Search','replace','config','2311695rNGIhg','dirname','/apps/','Primary','module','.ts','split','10MygLGP','ApicreateService','Inject','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','../templateFun/Event','join','\x20未连接'];a3_0x1b98=function(){return _0x4ee36a;};return a3_0x1b98();}function a3_0x32f7(_0x205d40,_0xc0354c){const _0x1b9878=a3_0x1b98();return a3_0x32f7=function(_0x32f720,_0x3ca61a){_0x32f720=_0x32f720-0xfd;let _0x194c04=_0x1b9878[_0x32f720];return _0x194c04;},a3_0x32f7(_0x205d40,_0xc0354c);}__decorate([(0x0,core_2[a3_0x70ef98(0x122)])(),__metadata('design:type',Object)],ApicreateService[a3_0x70ef98(0x137)],a3_0x70ef98(0x14c),void 0x0),__decorate([(0x0,core_2[a3_0x70ef98(0x123)])('typeorm'),__metadata(a3_0x70ef98(0x136),Object)],ApicreateService[a3_0x70ef98(0x137)],a3_0x70ef98(0x152),void 0x0),__decorate([(0x0,core_2[a3_0x70ef98(0x15c)])(),__metadata(a3_0x70ef98(0x136),core_1[a3_0x70ef98(0x141)])],ApicreateService[a3_0x70ef98(0x137)],a3_0x70ef98(0x11a),void 0x0),__decorate([(0x0,core_2[a3_0x70ef98(0x15c)])(),__metadata(a3_0x70ef98(0x136),typeorm_1['TypeORMDataSourceManager'])],ApicreateService[a3_0x70ef98(0x137)],a3_0x70ef98(0x105),void 0x0),ApicreateService=__decorate([(0x0,core_2[a3_0x70ef98(0x13a)])(a3_0x70ef98(0x15b)),(0x0,core_2[a3_0x70ef98(0xfd)])(core_2['ScopeEnum'][a3_0x70ef98(0x163)])],ApicreateService),exports[a3_0x70ef98(0x15b)]=ApicreateService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x493717=a4_0x11ac;(function(_0x579bb9,_0x45b2b8){const _0x1baba5=a4_0x11ac,_0x4cdd07=_0x579bb9();while(!![]){try{const _0x185a6c=parseInt(_0x1baba5(0xe2))/0x1+-parseInt(_0x1baba5(0xdf))/0x2+parseInt(_0x1baba5(0xf2))/0x3*(-parseInt(_0x1baba5(0xf6))/0x4)+parseInt(_0x1baba5(0xc1))/0x5+-parseInt(_0x1baba5(0xe9))/0x6+parseInt(_0x1baba5(0xbb))/0x7*(parseInt(_0x1baba5(0xca))/0x8)+-parseInt(_0x1baba5(0xb8))/0x9;if(_0x185a6c===_0x45b2b8)break;else _0x4cdd07['push'](_0x4cdd07['shift']());}catch(_0x4b6d20){_0x4cdd07['push'](_0x4cdd07['shift']());}}}(a4_0x5a61,0x98752));function a4_0x11ac(_0x45e3bb,_0x482709){const _0x5a6123=a4_0x5a61();return a4_0x11ac=function(_0x11acae,_0x394dd){_0x11acae=_0x11acae-0xb4;let _0x5e2b65=_0x5a6123[_0x11acae];return _0x5e2b65;},a4_0x11ac(_0x45e3bb,_0x482709);}function a4_0x5a61(){const _0x542ad5=['defineProperty','export\x20class\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','DTOUpdate)\x20{\x0a','\x20\x20\x20\x20async\x20detail(','Handler\x20}\x20from\x20\x27','/Search\x27;\x0a\x0a\x0a','/controller/','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','/handlers/','1880366WoWNfU','DTOSearch\x20=\x20{};\x0a\x0a','toUpperCase','612250QRTYZO','DTOSearch\x20}\x20from\x20\x27','\x20\x20\x20\x20async\x20remove(','Controller\x20{\x0a\x0a',':\x20number)\x20{\x0a','default','Handler.remove(','3008634iYfHZC','Handler.list(conditions,\x20pageinfo);\x0a\x0a','DTOSearch\x20=\x20{\x20','string','@Action(__filename,\x20\x27','/validators/','\x20\x20\x20\x20@Api(\x27添加数据\x27,\x20\x27post\x27)\x0a','toLowerCase','.ts','3SnOQjW','/Create\x27;\x0a','existsSync','\x27)\x0a','1183568GFuqvg','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(deletes);\x0a','import\x20{\x20Inject,\x20Action,\x20Api,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a',',\x20conditions);\x0a\x0a','substring','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','\x20\x20\x20\x20async\x20create(params:\x20','\x20\x20\x20\x20@Api(\x27修改数据\x27,\x20\x27put\x27,\x20\x27/:','374805cerOok','DTOCreate)\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','5182121maarov','\x20\x20\x20\x20}\x0a\x0a\x0a','\x20};\x0a\x0a','\x20\x20\x20\x20@Api(\x22删除数据\x22,\x20\x27del\x27,\x20\x27/:','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','/Update\x27;\x0a','5255360zAouCg','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','path','@/apps/','\x27;\x0a','import\x20{\x20','utf-8','Field','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','8pCygGU',':\x20string)\x20{\x0a',':\x20number,\x20params:\x20','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20@Api(\x27数据列表\x27)\x0a','dirname','DTOUpdate\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes\x20=\x20await\x20this.','Handler\x0a\x0a\x0a','writeFileSync','@/app'];a4_0x5a61=function(){return _0x542ad5;};return a4_0x5a61();}Object[a4_0x493717(0xd5)](exports,'__esModule',{'value':!![]});const fs=require('fs'),path_1=require(a4_0x493717(0xc3));async function default_1({controller:_0x38957d,tablestartUp:_0x1ba354,tablestartUpShort:_0x1419fe,basedir:_0x52e5c5,Primary:_0x258b03,Comment:_0x414661,moduleName:_0x576e02}){const _0x2e6b57=a4_0x493717;if(_0x38957d){const _0x4a7edd=_0x52e5c5+(typeof _0x38957d==_0x2e6b57(0xec)?_0x2e6b57(0xdc)+_0x38957d+'/'+_0x1419fe+_0x2e6b57(0xf1):_0x2e6b57(0xdc)+_0x1419fe+_0x2e6b57(0xf1));if(!fs[_0x2e6b57(0xf4)](_0x4a7edd)){let _0x481bee='';_0x481bee+='import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a',_0x481bee+=_0x2e6b57(0xf8),_0x481bee+='import\x20{\x20'+_0x1ba354+_0x2e6b57(0xda)+(typeof _0x576e02==_0x2e6b57(0xec)?_0x2e6b57(0xc4)+_0x576e02:_0x2e6b57(0xd4))+_0x2e6b57(0xde)+_0x1419fe+_0x2e6b57(0xc5),_0x481bee+=_0x2e6b57(0xc6)+(typeof _0x38957d==_0x2e6b57(0xec)?_0x38957d['substring'](0x0,0x1)['toUpperCase']()+_0x38957d[_0x2e6b57(0xb4)](0x1)[_0x2e6b57(0xf0)]():'')+_0x1ba354+_0x2e6b57(0xcd)+(typeof _0x576e02=='string'?_0x2e6b57(0xc4)+_0x576e02:_0x2e6b57(0xd4))+_0x2e6b57(0xee)+_0x1419fe+_0x2e6b57(0xf3),_0x481bee+='import\x20{\x20'+(typeof _0x38957d==_0x2e6b57(0xec)?_0x38957d[_0x2e6b57(0xb4)](0x0,0x1)[_0x2e6b57(0xe1)]()+_0x38957d[_0x2e6b57(0xb4)](0x1)[_0x2e6b57(0xf0)]():'')+_0x1ba354+_0x2e6b57(0xd0)+(typeof _0x576e02==_0x2e6b57(0xec)?_0x2e6b57(0xc4)+_0x576e02:_0x2e6b57(0xd4))+'/validators/'+_0x1419fe+_0x2e6b57(0xc0),_0x481bee+=_0x2e6b57(0xc6)+(typeof _0x38957d=='string'?_0x38957d[_0x2e6b57(0xb4)](0x0,0x1)['toUpperCase']()+_0x38957d['substring'](0x1)[_0x2e6b57(0xf0)]():'')+_0x1ba354+_0x2e6b57(0xe3)+(typeof _0x576e02=='string'?'@/apps/'+_0x576e02:'@/app')+_0x2e6b57(0xee)+_0x1419fe+_0x2e6b57(0xdb),_0x481bee+=_0x2e6b57(0xed)+_0x414661+'\x27)\x0a',_0x481bee+=_0x2e6b57(0xd6)+_0x1ba354+_0x2e6b57(0xe5),_0x481bee+=_0x2e6b57(0xdd),_0x481bee+='\x20\x20\x20\x20@Inject()\x20protected\x20'+_0x1ba354+'Handler:\x20'+_0x1ba354+_0x2e6b57(0xd2),_0x481bee+=_0x2e6b57(0xce),_0x481bee+='\x20\x20\x20\x20async\x20index(conditions:\x20'+(typeof _0x38957d==_0x2e6b57(0xec)?_0x38957d[_0x2e6b57(0xb4)](0x0,0x1)[_0x2e6b57(0xe1)]()+_0x38957d[_0x2e6b57(0xb4)](0x1)[_0x2e6b57(0xf0)]():'')+_0x1ba354+_0x2e6b57(0xbf),_0x481bee+=_0x2e6b57(0xc9)+_0x1ba354+_0x2e6b57(0xea),_0x481bee+=_0x2e6b57(0xc2),_0x481bee+=_0x2e6b57(0xbc),_0x481bee+='\x20\x20\x20\x20@Api(\x27数据详情\x27,\x20\x27get\x27,\x20\x27/:'+_0x258b03[_0x2e6b57(0xc8)]+'\x27)\x0a',_0x481bee+=_0x2e6b57(0xd9)+_0x258b03['Field']+_0x2e6b57(0xe6),_0x481bee+=_0x2e6b57(0xb5)+(typeof _0x38957d=='string'?_0x38957d['substring'](0x0,0x1)[_0x2e6b57(0xe1)]()+_0x38957d[_0x2e6b57(0xb4)](0x1)[_0x2e6b57(0xf0)]():'')+_0x1ba354+_0x2e6b57(0xeb)+_0x258b03['Field']+_0x2e6b57(0xbd),_0x481bee+=_0x2e6b57(0xd7)+_0x1ba354+'Handler.detail(conditions);\x0a\x0a',_0x481bee+=_0x2e6b57(0xba),_0x481bee+=_0x2e6b57(0xbc),_0x481bee+=_0x2e6b57(0xef),_0x481bee+=_0x2e6b57(0xb6)+(typeof _0x38957d==_0x2e6b57(0xec)?_0x38957d[_0x2e6b57(0xb4)](0x0,0x1)[_0x2e6b57(0xe1)]()+_0x38957d['substring'](0x1)['toLowerCase']():'')+_0x1ba354+_0x2e6b57(0xb9),_0x481bee+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x1ba354+'Handler.create(params);\x0a\x0a',_0x481bee+=_0x2e6b57(0xba),_0x481bee+=_0x2e6b57(0xbc),_0x481bee+=_0x2e6b57(0xb7)+_0x258b03['Field']+_0x2e6b57(0xf5),_0x481bee+='\x20\x20\x20\x20async\x20update('+_0x258b03[_0x2e6b57(0xc8)]+_0x2e6b57(0xcc)+(typeof _0x38957d=='string'?_0x38957d[_0x2e6b57(0xb4)](0x0,0x1)['toUpperCase']()+_0x38957d['substring'](0x1)['toLowerCase']():'')+_0x1ba354+_0x2e6b57(0xd8),_0x481bee+=_0x2e6b57(0xb5)+(typeof _0x38957d==_0x2e6b57(0xec)?_0x38957d[_0x2e6b57(0xb4)](0x0,0x1)[_0x2e6b57(0xe1)]()+_0x38957d[_0x2e6b57(0xb4)](0x1)[_0x2e6b57(0xf0)]():'')+_0x1ba354+_0x2e6b57(0xeb)+_0x258b03['Field']+'\x20};\x0a\x0a',_0x481bee+=_0x2e6b57(0xd7)+_0x1ba354+'Handler.update(conditions,\x20params);\x0a\x0a',_0x481bee+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a',_0x481bee+=_0x2e6b57(0xbc),_0x481bee+=_0x2e6b57(0xbe)+_0x258b03['Field']+_0x2e6b57(0xf5),_0x481bee+=_0x2e6b57(0xe4)+_0x258b03[_0x2e6b57(0xc8)]+_0x2e6b57(0xcb),_0x481bee+=_0x2e6b57(0xb5)+(typeof _0x38957d==_0x2e6b57(0xec)?_0x38957d[_0x2e6b57(0xb4)](0x0,0x1)[_0x2e6b57(0xe1)]()+_0x38957d[_0x2e6b57(0xb4)](0x1)['toLowerCase']():'')+_0x1ba354+_0x2e6b57(0xe0),_0x481bee+=_0x2e6b57(0xd1)+_0x1ba354+_0x2e6b57(0xe8)+_0x258b03[_0x2e6b57(0xc8)]+_0x2e6b57(0xf9),_0x481bee+=_0x2e6b57(0xf7),_0x481bee+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x481bee+='}',!fs[_0x2e6b57(0xf4)]((0x0,path_1[_0x2e6b57(0xcf)])(_0x4a7edd))&&fs['mkdirSync']((0x0,path_1[_0x2e6b57(0xcf)])(_0x4a7edd),{'recursive':!![]}),fs[_0x2e6b57(0xd3)](_0x4a7edd,_0x481bee,_0x2e6b57(0xc7));}}}exports[a4_0x493717(0xe7)]=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x1e60d3=a5_0x31f7;function a5_0x31f7(_0x245e6a,_0x43c433){const _0x3793c0=a5_0x3793();return a5_0x31f7=function(_0x31f733,_0x35beac){_0x31f733=_0x31f733-0x137;let _0x4597f1=_0x3793c0[_0x31f733];return _0x4597f1;},a5_0x31f7(_0x245e6a,_0x43c433);}(function(_0x4d575c,_0x4ae499){const _0x2d75e0=a5_0x31f7,_0xdd3356=_0x4d575c();while(!![]){try{const _0x3cefaf=-parseInt(_0x2d75e0(0x145))/0x1*(parseInt(_0x2d75e0(0x142))/0x2)+parseInt(_0x2d75e0(0x158))/0x3*(-parseInt(_0x2d75e0(0x14d))/0x4)+parseInt(_0x2d75e0(0x155))/0x5+parseInt(_0x2d75e0(0x14f))/0x6*(-parseInt(_0x2d75e0(0x13c))/0x7)+parseInt(_0x2d75e0(0x159))/0x8*(-parseInt(_0x2d75e0(0x13a))/0x9)+parseInt(_0x2d75e0(0x157))/0xa+parseInt(_0x2d75e0(0x156))/0xb;if(_0x3cefaf===_0x4ae499)break;else _0xdd3356['push'](_0xdd3356['shift']());}catch(_0x4f4f30){_0xdd3356['push'](_0xdd3356['shift']());}}}(a5_0x3793,0xd3339));Object[a5_0x1e60d3(0x146)](exports,a5_0x1e60d3(0x144),{'value':!![]});const fs=require('fs'),path=require(a5_0x1e60d3(0x151));function a5_0x3793(){const _0x4bfd52=['/enum.ts','__esModule','17431KzjHBL','defineProperty','\x20\x20\x20\x20//\x20@AnnEnumMsg(\x27status\x27,\x20\x27关闭\x27)\x0a','\x20*\x20**/\x0a','\x20\x20\x20\x20//\x20static\x20readonly\x20STATUS_ON:\x20number\x20=\x201;\x0a\x0a','export\x20class\x20','-错误信息设置\x0a','existsSync','5984snpPTU','writeFileSync','18cAxJne','\x20\x20\x20\x20//\x20@AnnEnumMsg(\x27status\x27,\x20\x27开启\x27)\x0a','path','/entities/','utf-8','Error\x20{\x0a\x0a','333130CptajE','41351024aWKtOg','2904690uQjVLN','393FLbCIt','4328MazQam','mkdirSync','/exceptions/','default','\x20\x20\x20\x20//\x20static\x20readonly\x20STATUS_OFF:\x20number\x20=\x200;\x0a\x0a','14247zrXplu','Enum\x20{\x0a\x0a','3218978jJFjdh','.ts','dirname','\x20*\x20','/**\x0a','-常量设置\x0a','94XGxArQ'];a5_0x3793=function(){return _0x4bfd52;};return a5_0x3793();}async function default_1({tablestartUp:_0x14a70c,tablestartUpShort:_0x380918,basedir:_0xf8fb27,Comment:_0x1574da}){await entity_emum({'tablestartUp':_0x14a70c,'tablestartUpShort':_0x380918,'basedir':_0xf8fb27,'Comment':_0x1574da}),await entity_exceptions({'tablestartUp':_0x14a70c,'tablestartUpShort':_0x380918,'basedir':_0xf8fb27,'Comment':_0x1574da});}exports[a5_0x1e60d3(0x138)]=default_1;async function entity_emum({tablestartUp:_0x56f6eb,tablestartUpShort:_0x2129c7,basedir:_0x4b6de0,Comment:_0x25c66f}){const _0x15d7ca=a5_0x1e60d3,_0x323e16=_0x4b6de0+(_0x15d7ca(0x152)+_0x2129c7+_0x15d7ca(0x143));if(!fs[_0x15d7ca(0x14c)](_0x323e16)){let _0x109f3f='';_0x109f3f+=_0x15d7ca(0x140),_0x109f3f+=_0x15d7ca(0x13f)+_0x25c66f+_0x15d7ca(0x141),_0x109f3f+=_0x15d7ca(0x148),_0x109f3f+=_0x15d7ca(0x14a)+_0x56f6eb+_0x15d7ca(0x13b),_0x109f3f+=_0x15d7ca(0x150),_0x109f3f+=_0x15d7ca(0x149),_0x109f3f+=_0x15d7ca(0x147),_0x109f3f+=_0x15d7ca(0x139),_0x109f3f+='}',!fs['existsSync'](path[_0x15d7ca(0x13e)](_0x323e16))&&fs[_0x15d7ca(0x15a)](path[_0x15d7ca(0x13e)](_0x323e16),{'recursive':!![]}),fs['writeFileSync'](_0x323e16,_0x109f3f,_0x15d7ca(0x153));}}async function entity_exceptions({tablestartUp:_0x4c8fce,tablestartUpShort:_0x7e220c,basedir:_0xbc1dbc,Comment:_0xc165ef}){const _0x4edac3=a5_0x1e60d3,_0x133bc1=_0xbc1dbc+(_0x4edac3(0x137)+_0x7e220c+_0x4edac3(0x13d));if(!fs['existsSync'](_0x133bc1)){let _0x3510d1='';_0x3510d1+='/**\x0a',_0x3510d1+=_0x4edac3(0x13f)+_0xc165ef+_0x4edac3(0x14b),_0x3510d1+=_0x4edac3(0x148),_0x3510d1+=_0x4edac3(0x14a)+_0x4c8fce+_0x4edac3(0x154),_0x3510d1+='\x20\x20\x20\x20//\x20@AnnErrorMsg(\x27数据不存在\x27)\x0a',_0x3510d1+='\x20\x20\x20\x20//\x20static\x20readonly\x20NOTFIND\x20=\x204040001;\x0a\x0a',_0x3510d1+='}',!fs[_0x4edac3(0x14c)](path[_0x4edac3(0x13e)](_0x133bc1))&&fs[_0x4edac3(0x15a)](path[_0x4edac3(0x13e)](_0x133bc1),{'recursive':!![]}),fs[_0x4edac3(0x14e)](_0x133bc1,_0x3510d1,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a6_0x2d8203=a6_0x39a3;(function(_0xb6d23,_0x560b24){const _0x55073c=a6_0x39a3,_0x4ded21=_0xb6d23();while(!![]){try{const _0x5696ce=parseInt(_0x55073c(0x122))/0x1+parseInt(_0x55073c(0xfd))/0x2+-parseInt(_0x55073c(0xe1))/0x3*(-parseInt(_0x55073c(0x11d))/0x4)+parseInt(_0x55073c(0xce))/0x5*(-parseInt(_0x55073c(0xd6))/0x6)+-parseInt(_0x55073c(0x113))/0x7*(-parseInt(_0x55073c(0x124))/0x8)+parseInt(_0x55073c(0xec))/0x9+parseInt(_0x55073c(0xe4))/0xa*(-parseInt(_0x55073c(0x111))/0xb);if(_0x5696ce===_0x560b24)break;else _0x4ded21['push'](_0x4ded21['shift']());}catch(_0xc09633){_0x4ded21['push'](_0x4ded21['shift']());}}}(a6_0x449c,0x8e9b6));function a6_0x39a3(_0x15b856,_0x2a7d58){const _0x449c33=a6_0x449c();return a6_0x39a3=function(_0x39a391,_0x589d73){_0x39a391=_0x39a391-0xce;let _0x2838dd=_0x449c33[_0x39a391];return _0x2838dd;},a6_0x39a3(_0x15b856,_0x2a7d58);}Object[a6_0x2d8203(0x12a)](exports,a6_0x2d8203(0xfa),{'value':!![]});const fs=require('fs'),path_1=require(a6_0x2d8203(0x11c)),helper_1=require(a6_0x2d8203(0x130));async function default_1({tablename:_0x388d2f,tablestartUp:_0x5c6fc4,tablestartUpShort:_0x61998c,basedir:_0x44e67b,Primary:_0x3ddc96,Fields:_0x4198c0,Comment:_0x4bd710,moduleName:_0x5a9a30}){await entity({'tablename':_0x388d2f,'tablestartUp':_0x5c6fc4,'tablestartUpShort':_0x61998c,'basedir':_0x44e67b,'Primary':_0x3ddc96,'Fields':_0x4198c0,'Comment':_0x4bd710,'moduleName':_0x5a9a30}),await repository({'tablestartUp':_0x5c6fc4,'tablestartUpShort':_0x61998c,'basedir':_0x44e67b,'Comment':_0x4bd710,'moduleName':_0x5a9a30});}exports[a6_0x2d8203(0xea)]=default_1;async function entity({tablename:_0x501e28,tablestartUp:_0x354f5d,tablestartUpShort:_0x2327a2,basedir:_0x52951b,Primary:_0x4739d5,Fields:_0x32c857,Comment:_0x574c95,moduleName:_0x473111}){const _0x9f3e3c=a6_0x2d8203,_0x40544a=_0x52951b+(_0x9f3e3c(0x10e)+_0x2327a2+_0x9f3e3c(0x129));if(!fs[_0x9f3e3c(0x121)](_0x40544a)){let _0x336580='',_0x344d41='';_0x336580+=_0x9f3e3c(0xfb),_0x336580+='\x20\x20\x20\x20'+_0x4739d5['Field']+_0x9f3e3c(0x112);for(let _0xafd076 in _0x32c857){let _0x47966b=_0x32c857[_0xafd076],_0x19a20d=(0x0,helper_1['getProp'])(_0x47966b[_0x9f3e3c(0x103)]);if(_0x47966b['Field']==_0x9f3e3c(0xef)||_0x47966b[_0x9f3e3c(0xeb)]==_0x9f3e3c(0xfe)||_0x47966b[_0x9f3e3c(0xeb)]==_0x9f3e3c(0x11b)||_0x47966b[_0x9f3e3c(0xeb)]==_0x9f3e3c(0xe6))continue;if(_0x19a20d=='json')_0x336580+=_0x9f3e3c(0x11a)+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xf9)+(_0x47966b[_0x9f3e3c(0xd2)]==_0x9f3e3c(0xe5)?_0x9f3e3c(0xd7):_0x9f3e3c(0xff))+_0x9f3e3c(0x10f),_0x336580+='\x20\x20\x20\x20'+_0x47966b['Field']+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x19a20d==_0x9f3e3c(0x110)){let _0x4d3ef7=(0x0,helper_1[_0x9f3e3c(0xf6)])(_0x47966b[_0x9f3e3c(0x103)]);_0x336580+=_0x9f3e3c(0x10c)+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xd5)+(_0x4d3ef7[0x0]||'')+_0x9f3e3c(0xdf)+_0x4d3ef7[_0x9f3e3c(0xd0)](_0x9f3e3c(0xf3))+'\x27]\x20})\x0a',_0x336580+='\x20\x20\x20\x20'+_0x47966b['Field']+_0x9f3e3c(0x132)+_0x4d3ef7[_0x9f3e3c(0xd0)](_0x9f3e3c(0x11e))+_0x9f3e3c(0xdd);}else{if(_0x19a20d==_0x9f3e3c(0x123))_0x336580+=_0x9f3e3c(0xee)+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xd1)+(_0x47966b[_0x9f3e3c(0xd2)]==_0x9f3e3c(0xe5)?_0x9f3e3c(0xd7):_0x9f3e3c(0xff))+'\x20})\x0a',_0x336580+=_0x9f3e3c(0x106)+_0x47966b['Field']+':\x20number;\x0a\x0a';else{if(_0x19a20d==_0x9f3e3c(0xed))_0x336580+=_0x9f3e3c(0x12b)+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xd1)+(_0x47966b[_0x9f3e3c(0xd2)]=='YES'?_0x9f3e3c(0xd7):'false')+'\x20})\x0a',_0x336580+=_0x9f3e3c(0x106)+_0x47966b['Field']+_0x9f3e3c(0x112);else{if(_0x19a20d==_0x9f3e3c(0x11f))_0x336580+=_0x9f3e3c(0x100)+_0x47966b['Comment']+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x47966b['Null']=='YES'?'true':_0x9f3e3c(0xff))+_0x9f3e3c(0xe0),_0x336580+=_0x9f3e3c(0x106)+_0x47966b['Field']+':\x20number;\x0a\x0a';else{if(_0x19a20d=='number')_0x336580+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xf9)+(_0x47966b[_0x9f3e3c(0xd2)]==_0x9f3e3c(0xe5)?'true':_0x9f3e3c(0xff))+_0x9f3e3c(0x10f),_0x336580+=_0x9f3e3c(0x106)+_0x47966b[_0x9f3e3c(0xeb)]+_0x9f3e3c(0x112);else{if(_0x19a20d==_0x9f3e3c(0x108))_0x336580+=_0x9f3e3c(0x12f)+_0x47966b[_0x9f3e3c(0x115)]+'\x27,\x20nullable:\x20'+(_0x47966b[_0x9f3e3c(0xd2)]=='YES'?_0x9f3e3c(0xd7):'false')+_0x9f3e3c(0x10f),_0x336580+=_0x9f3e3c(0x106)+_0x47966b['Field']+_0x9f3e3c(0x112);else{if(_0x19a20d=='date')_0x336580+=_0x9f3e3c(0x105)+_0x47966b[_0x9f3e3c(0x115)]+'\x27,\x20nullable:\x20'+(_0x47966b['Null']==_0x9f3e3c(0xe5)?_0x9f3e3c(0xd7):_0x9f3e3c(0xff))+_0x9f3e3c(0xe0),_0x336580+='\x20\x20\x20\x20'+_0x47966b[_0x9f3e3c(0xeb)]+_0x9f3e3c(0xe2);else{if(_0x19a20d==_0x9f3e3c(0x10b))_0x336580+=_0x9f3e3c(0xde)+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xf9)+(_0x47966b[_0x9f3e3c(0xd2)]=='YES'?_0x9f3e3c(0xd7):_0x9f3e3c(0xff))+_0x9f3e3c(0xe0),_0x336580+=_0x9f3e3c(0x106)+_0x47966b['Field']+_0x9f3e3c(0xe2);else{if(_0x19a20d=='timestamp')_0x336580+=_0x9f3e3c(0x128)+_0x47966b['Comment']+_0x9f3e3c(0xf9)+(_0x47966b[_0x9f3e3c(0xd2)]==_0x9f3e3c(0xe5)?_0x9f3e3c(0xd7):_0x9f3e3c(0xff))+_0x9f3e3c(0xe0),_0x336580+='\x20\x20\x20\x20'+_0x47966b[_0x9f3e3c(0xeb)]+_0x9f3e3c(0xe2);else{if(_0x19a20d==_0x9f3e3c(0xf8))_0x336580+='\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27'+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xf9)+(_0x47966b['Null']==_0x9f3e3c(0xe5)?_0x9f3e3c(0xd7):'false')+_0x9f3e3c(0x10f),_0x336580+='\x20\x20\x20\x20'+_0x47966b[_0x9f3e3c(0xeb)]+':\x20string;\x0a\x0a';else{if(_0x19a20d==_0x9f3e3c(0x131))_0x336580+=_0x9f3e3c(0xd9)+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xf9)+(_0x47966b[_0x9f3e3c(0xd2)]=='YES'?_0x9f3e3c(0xd7):_0x9f3e3c(0xff))+_0x9f3e3c(0x10f),_0x336580+='\x20\x20\x20\x20'+_0x47966b[_0x9f3e3c(0xeb)]+_0x9f3e3c(0x119);else _0x19a20d==_0x9f3e3c(0x109)?(_0x336580+=_0x9f3e3c(0xf1)+_0x47966b[_0x9f3e3c(0x115)]+_0x9f3e3c(0xf9)+(_0x47966b['Null']==_0x9f3e3c(0xe5)?_0x9f3e3c(0xd7):'false')+_0x9f3e3c(0x10f),_0x336580+=_0x9f3e3c(0x106)+_0x47966b['Field']+_0x9f3e3c(0x119)):(_0x336580+=_0x9f3e3c(0x125)+_0x47966b[_0x9f3e3c(0x115)]+'\x27,\x20nullable:\x20'+(_0x47966b[_0x9f3e3c(0xd2)]=='YES'?'true':'false')+_0x9f3e3c(0x10f),_0x336580+=_0x9f3e3c(0x106)+_0x47966b[_0x9f3e3c(0xeb)]+_0x9f3e3c(0x119));}}}}}}}}}}}}_0x344d41+=_0x9f3e3c(0xe8),_0x344d41+=_0x9f3e3c(0x116),_0x344d41+=_0x9f3e3c(0xd4),_0x344d41+=_0x9f3e3c(0x114)+_0x354f5d+_0x9f3e3c(0x12e)+(typeof _0x473111==_0x9f3e3c(0xf4)?_0x9f3e3c(0x117)+_0x473111:_0x9f3e3c(0x104))+_0x9f3e3c(0xfc)+_0x2327a2+_0x9f3e3c(0xdd),_0x344d41+=_0x9f3e3c(0xd3),_0x344d41+='\x20*\x20'+_0x574c95+_0x9f3e3c(0xe9),_0x344d41+=_0x9f3e3c(0xd8),_0x344d41+='@ProvideSearch('+_0x354f5d+_0x9f3e3c(0xf0),_0x344d41+=_0x9f3e3c(0xe3)+_0x501e28+_0x9f3e3c(0x10a),_0x344d41+=_0x9f3e3c(0xdb)+_0x354f5d+_0x9f3e3c(0x127),_0x344d41+=_0x9f3e3c(0x12c),_0x344d41+=_0x9f3e3c(0x102),_0x344d41+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x344d41+=_0x9f3e3c(0x101),_0x344d41+=_0x9f3e3c(0xf2),_0x344d41+=_0x9f3e3c(0x12d),_0x344d41+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x344d41+=_0x9f3e3c(0xda),_0x344d41+=_0x9f3e3c(0x118),_0x344d41+='}',_0x344d41=_0x344d41['replace']('%column%',_0x336580),!fs[_0x9f3e3c(0x121)]((0x0,path_1[_0x9f3e3c(0xdc)])(_0x40544a))&&fs['mkdirSync']((0x0,path_1[_0x9f3e3c(0xdc)])(_0x40544a),{'recursive':!![]}),fs['writeFileSync'](_0x40544a,_0x344d41,_0x9f3e3c(0x126));}}async function repository({tablestartUp:_0x14f6f4,tablestartUpShort:_0x5dfcaf,basedir:_0x2a8a7a,Comment:_0x3f7b8c,moduleName:_0xee8b0b}){const _0x46a837=a6_0x2d8203,_0x1b7f24=_0x2a8a7a+(_0x46a837(0x10e)+_0x5dfcaf+_0x46a837(0x107));if(!fs[_0x46a837(0x121)](_0x1b7f24)){let _0x74390d='';_0x74390d+=_0x46a837(0xd3),_0x74390d+=_0x46a837(0x10d)+_0x3f7b8c+'-实体处理器\x0a',_0x74390d+='\x20*\x20**/\x0a',_0x74390d+=_0x46a837(0xe7),_0x74390d+='import\x20{\x20'+_0x14f6f4+'Entity\x20}\x20from\x20\x27'+(typeof _0xee8b0b==_0x46a837(0xf4)?_0x46a837(0x117)+_0xee8b0b:_0x46a837(0x104))+_0x46a837(0x10e)+_0x5dfcaf+'/entity\x27;\x0a\x0a',_0x74390d+=_0x46a837(0xf7)+_0x14f6f4+_0x46a837(0xcf),_0x74390d+='export\x20class\x20'+_0x14f6f4+_0x46a837(0xf5)+_0x14f6f4+'Entity>{\x0a\x0a',_0x74390d+='}',!fs[_0x46a837(0x121)]((0x0,path_1[_0x46a837(0xdc)])(_0x1b7f24))&&fs['mkdirSync']((0x0,path_1['dirname'])(_0x1b7f24),{'recursive':!![]}),fs[_0x46a837(0x120)](_0x1b7f24,_0x74390d,_0x46a837(0x126));}}function a6_0x449c(){const _0x5b071a=['float','128IPThEr','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','utf-8','Entity\x20{\x0a\x0a','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','/entity.ts','defineProperty','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','%column%','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','Search\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','../helper','longtext',':\x20\x27','10OnBVKH','Entity)\x0a','join','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','Null','/**\x0a','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20PrimaryGeneratedColumn,\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x27,\x20default:\x20\x27','2088636OGiofR','true','\x20*\x20**/\x0a','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','export\x20class\x20','dirname','\x27;\x0a\x0a','\x20\x20\x20\x20@Column(\x27datetime\x27,\x20{\x20comment:\x20\x27','\x27,\x20enum:\x20[\x27','\x20})\x0a','3lkrltW',':\x20Date;\x0a\x0a','@ProvideEntity({\x20tableName:\x20\x27','15950mNAHcq','YES','deleted_at','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','-实体\x0a','default','Field','4424976WqyzGc','double','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','displayorder','Search)\x0a','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','\x27,\x20\x27','string','\x20extends\x20Repository<','getEnum','@ProvideRepository(','text','\x27,\x20nullable:\x20','__esModule','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','/searchs/','1408138jNqfIu','created_at','false','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','Type','@/app','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20','/index.ts','tinyint','mediumtext','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','datetime','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','\x20*\x20','/entities/',',\x20unique:\x20false\x20})\x0a','enum','14465atnSfn',':\x20number;\x0a\x0a','442015zBSqEl','import\x20{\x20','Comment','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','@/apps/','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a',':\x20string;\x0a\x0a','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','updated_at','path','1706204ixeZup','\x27\x20|\x20\x27','decimal','writeFileSync','existsSync','745151bzmziO'];a6_0x449c=function(){return _0x5b071a;};return a6_0x449c();}
|
|
1
|
+
'use strict';const a6_0x1f3f1b=a6_0x22c0;(function(_0xff5983,_0x2a140a){const _0xe6224d=a6_0x22c0,_0x5cfb8b=_0xff5983();while(!![]){try{const _0x111fdd=parseInt(_0xe6224d(0x172))/0x1+-parseInt(_0xe6224d(0x16c))/0x2*(parseInt(_0xe6224d(0x18b))/0x3)+parseInt(_0xe6224d(0x15f))/0x4*(-parseInt(_0xe6224d(0x146))/0x5)+-parseInt(_0xe6224d(0x18f))/0x6*(parseInt(_0xe6224d(0x19a))/0x7)+-parseInt(_0xe6224d(0x186))/0x8*(parseInt(_0xe6224d(0x174))/0x9)+-parseInt(_0xe6224d(0x198))/0xa*(parseInt(_0xe6224d(0x13f))/0xb)+parseInt(_0xe6224d(0x15a))/0xc*(parseInt(_0xe6224d(0x14f))/0xd);if(_0x111fdd===_0x2a140a)break;else _0x5cfb8b['push'](_0x5cfb8b['shift']());}catch(_0x331a0d){_0x5cfb8b['push'](_0x5cfb8b['shift']());}}}(a6_0x3808,0x6db81));function a6_0x22c0(_0x71de51,_0x4f9a2f){const _0x380861=a6_0x3808();return a6_0x22c0=function(_0x22c016,_0x4bf0a4){_0x22c016=_0x22c016-0x13e;let _0x58e1a8=_0x380861[_0x22c016];return _0x58e1a8;},a6_0x22c0(_0x71de51,_0x4f9a2f);}Object[a6_0x1f3f1b(0x150)](exports,a6_0x1f3f1b(0x15e),{'value':!![]});const fs=require('fs'),path_1=require(a6_0x1f3f1b(0x17a)),helper_1=require('../helper');function a6_0x3808(){const _0x52e85c=['@/app','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','710hySMXJ','YES','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x27,\x20nullable:\x20',':\x20number;\x0a\x0a','replace','\x20\x20\x20\x20','existsSync','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','110617EHIfHD','defineProperty','json','\x27,\x20default:\x20\x27','/entity.ts','string','Null','\x20*\x20','double',':\x20string;\x0a\x0a','Search)\x0a','2124VNPHzJ','\x20*\x20**/\x0a','\x27\x20|\x20\x27','default','__esModule','8520cYBjFR','float','displayorder','%column%','@ProvideEntity({\x20tableName:\x20\x27','utf-8','number','/**\x0a','/index.ts',':\x20Date;\x0a\x0a','@ProvideSearch(','-实体\x0a','\x20})\x0a','2gdsgbX','dirname','date','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','Entity)\x0a','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','703466tYZOfd',':\x20\x27','991917FxUoqd','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','writeFileSync','mkdirSync','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','path','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x27,\x20enum:\x20[\x27','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','Field','tinyint','Type','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','deleted_at',',\x20unique:\x20false\x20})\x0a','8GQhQJt','mediumtext','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','1819659ughKZN','false','enum','/entities/','12TBOjmW','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','\x27,\x20\x27','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','Search\x20}\x20from\x20\x27','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','@/apps/','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','Entity>{\x0a\x0a','60oGLETZ','true','2522716WKHNKe','created_at','Comment','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','join','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','export\x20class\x20','timestamp','text','\x27;\x0a\x0a','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','36938MSbFpK','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','\x27]\x20})\x0a','datetime','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27'];a6_0x3808=function(){return _0x52e85c;};return a6_0x3808();}async function default_1({tablename:_0x329989,tablestartUp:_0x11f043,tablestartUpShort:_0x4ef3a3,basedir:_0x2678f4,Primary:_0x244bca,Fields:_0x37bae6,Comment:_0x3d18a9,moduleName:_0xd60441}){await entity({'tablename':_0x329989,'tablestartUp':_0x11f043,'tablestartUpShort':_0x4ef3a3,'basedir':_0x2678f4,'Primary':_0x244bca,'Fields':_0x37bae6,'Comment':_0x3d18a9,'moduleName':_0xd60441}),await repository({'tablestartUp':_0x11f043,'tablestartUpShort':_0x4ef3a3,'basedir':_0x2678f4,'Comment':_0x3d18a9,'moduleName':_0xd60441});}exports[a6_0x1f3f1b(0x15d)]=default_1;async function entity({tablename:_0x216c1d,tablestartUp:_0x199d35,tablestartUpShort:_0x4b8d65,basedir:_0x21e0cc,Primary:_0x2b7636,Fields:_0x5c824f,Comment:_0xf2df98,moduleName:_0x5b6eba}){const _0x465fc6=a6_0x1f3f1b,_0x50c6d5=_0x21e0cc+('/entities/'+_0x4b8d65+_0x465fc6(0x153));if(!fs[_0x465fc6(0x14d)](_0x50c6d5)){let _0x2f35aa='',_0xdcbca3='';_0x2f35aa+=_0x465fc6(0x17e),_0x2f35aa+=_0x465fc6(0x14c)+_0x2b7636['Field']+_0x465fc6(0x14a);for(let _0x48d7f9 in _0x5c824f){let _0x1a81b2=_0x5c824f[_0x48d7f9],_0x109c8b=(0x0,helper_1['getProp'])(_0x1a81b2[_0x465fc6(0x181)]);if(_0x1a81b2[_0x465fc6(0x17f)]==_0x465fc6(0x161)||_0x1a81b2[_0x465fc6(0x17f)]==_0x465fc6(0x19b)||_0x1a81b2[_0x465fc6(0x17f)]=='updated_at'||_0x1a81b2['Field']==_0x465fc6(0x184))continue;if(_0x109c8b==_0x465fc6(0x151))_0x2f35aa+=_0x465fc6(0x19e)+_0x1a81b2['Comment']+_0x465fc6(0x149)+(_0x1a81b2[_0x465fc6(0x155)]==_0x465fc6(0x147)?_0x465fc6(0x199):_0x465fc6(0x18c))+_0x465fc6(0x185),_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2['Field']+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x109c8b==_0x465fc6(0x18d)){let _0x299b6c=(0x0,helper_1['getEnum'])(_0x1a81b2[_0x465fc6(0x181)]);_0x2f35aa+=_0x465fc6(0x143)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x152)+(_0x299b6c[0x0]||'')+_0x465fc6(0x17d)+_0x299b6c[_0x465fc6(0x19f)](_0x465fc6(0x191))+_0x465fc6(0x141),_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2[_0x465fc6(0x17f)]+_0x465fc6(0x173)+_0x299b6c[_0x465fc6(0x19f)](_0x465fc6(0x15c))+_0x465fc6(0x1a4);}else{if(_0x109c8b==_0x465fc6(0x160))_0x2f35aa+=_0x465fc6(0x13e)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x189)+(_0x1a81b2[_0x465fc6(0x155)]==_0x465fc6(0x147)?_0x465fc6(0x199):_0x465fc6(0x18c))+_0x465fc6(0x16b),_0x2f35aa+='\x20\x20\x20\x20'+_0x1a81b2['Field']+_0x465fc6(0x14a);else{if(_0x109c8b==_0x465fc6(0x157))_0x2f35aa+=_0x465fc6(0x171)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x189)+(_0x1a81b2[_0x465fc6(0x155)]==_0x465fc6(0x147)?_0x465fc6(0x199):'false')+_0x465fc6(0x16b),_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2['Field']+_0x465fc6(0x14a);else{if(_0x109c8b=='decimal')_0x2f35aa+=_0x465fc6(0x1a0)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x179)+(_0x1a81b2[_0x465fc6(0x155)]=='YES'?_0x465fc6(0x199):'false')+_0x465fc6(0x16b),_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2[_0x465fc6(0x17f)]+_0x465fc6(0x14a);else{if(_0x109c8b==_0x465fc6(0x165))_0x2f35aa+=_0x465fc6(0x196)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x149)+(_0x1a81b2[_0x465fc6(0x155)]==_0x465fc6(0x147)?_0x465fc6(0x199):_0x465fc6(0x18c))+_0x465fc6(0x185),_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2[_0x465fc6(0x17f)]+_0x465fc6(0x14a);else{if(_0x109c8b==_0x465fc6(0x180))_0x2f35aa+=_0x465fc6(0x14e)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x149)+(_0x1a81b2[_0x465fc6(0x155)]=='YES'?_0x465fc6(0x199):_0x465fc6(0x18c))+_0x465fc6(0x185),_0x2f35aa+='\x20\x20\x20\x20'+_0x1a81b2['Field']+_0x465fc6(0x14a);else{if(_0x109c8b==_0x465fc6(0x16e))_0x2f35aa+=_0x465fc6(0x175)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x149)+(_0x1a81b2[_0x465fc6(0x155)]==_0x465fc6(0x147)?_0x465fc6(0x199):_0x465fc6(0x18c))+_0x465fc6(0x16b),_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2[_0x465fc6(0x17f)]+_0x465fc6(0x168);else{if(_0x109c8b==_0x465fc6(0x142))_0x2f35aa+='\x20\x20\x20\x20@Column(\x27datetime\x27,\x20{\x20comment:\x20\x27'+_0x1a81b2[_0x465fc6(0x19c)]+'\x27,\x20nullable:\x20'+(_0x1a81b2[_0x465fc6(0x155)]=='YES'?'true':_0x465fc6(0x18c))+_0x465fc6(0x16b),_0x2f35aa+='\x20\x20\x20\x20'+_0x1a81b2[_0x465fc6(0x17f)]+_0x465fc6(0x168);else{if(_0x109c8b==_0x465fc6(0x1a2))_0x2f35aa+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x1a81b2['Comment']+_0x465fc6(0x149)+(_0x1a81b2[_0x465fc6(0x155)]==_0x465fc6(0x147)?_0x465fc6(0x199):'false')+'\x20})\x0a',_0x2f35aa+='\x20\x20\x20\x20'+_0x1a81b2[_0x465fc6(0x17f)]+':\x20Date;\x0a\x0a';else{if(_0x109c8b==_0x465fc6(0x1a3))_0x2f35aa+=_0x465fc6(0x192)+_0x1a81b2['Comment']+_0x465fc6(0x149)+(_0x1a81b2['Null']==_0x465fc6(0x147)?'true':_0x465fc6(0x18c))+_0x465fc6(0x185),_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2['Field']+_0x465fc6(0x158);else{if(_0x109c8b=='longtext')_0x2f35aa+=_0x465fc6(0x176)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x149)+(_0x1a81b2['Null']=='YES'?_0x465fc6(0x199):_0x465fc6(0x18c))+',\x20unique:\x20false\x20})\x0a',_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2[_0x465fc6(0x17f)]+_0x465fc6(0x158);else _0x109c8b==_0x465fc6(0x187)?(_0x2f35aa+=_0x465fc6(0x19d)+_0x1a81b2[_0x465fc6(0x19c)]+_0x465fc6(0x149)+(_0x1a81b2['Null']=='YES'?_0x465fc6(0x199):'false')+_0x465fc6(0x185),_0x2f35aa+=_0x465fc6(0x14c)+_0x1a81b2['Field']+_0x465fc6(0x158)):(_0x2f35aa+=_0x465fc6(0x196)+_0x1a81b2['Comment']+_0x465fc6(0x149)+(_0x1a81b2[_0x465fc6(0x155)]==_0x465fc6(0x147)?_0x465fc6(0x199):_0x465fc6(0x18c))+_0x465fc6(0x185),_0x2f35aa+='\x20\x20\x20\x20'+_0x1a81b2[_0x465fc6(0x17f)]+_0x465fc6(0x158));}}}}}}}}}}}}_0xdcbca3+=_0x465fc6(0x194),_0xdcbca3+=_0x465fc6(0x182),_0xdcbca3+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20PrimaryGeneratedColumn,\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0xdcbca3+='import\x20{\x20'+_0x199d35+_0x465fc6(0x193)+(typeof _0x5b6eba==_0x465fc6(0x154)?_0x465fc6(0x195)+_0x5b6eba:_0x465fc6(0x144))+'/searchs/'+_0x4b8d65+'\x27;\x0a\x0a',_0xdcbca3+=_0x465fc6(0x166),_0xdcbca3+=_0x465fc6(0x156)+_0xf2df98+_0x465fc6(0x16a),_0xdcbca3+=_0x465fc6(0x15b),_0xdcbca3+=_0x465fc6(0x169)+_0x199d35+_0x465fc6(0x159),_0xdcbca3+=_0x465fc6(0x163)+_0x216c1d+_0x465fc6(0x18a),_0xdcbca3+=_0x465fc6(0x1a1)+_0x199d35+'Entity\x20{\x0a\x0a',_0xdcbca3+=_0x465fc6(0x162),_0xdcbca3+=_0x465fc6(0x183),_0xdcbca3+=_0x465fc6(0x190),_0xdcbca3+=_0x465fc6(0x17c),_0xdcbca3+='\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',_0xdcbca3+=_0x465fc6(0x188),_0xdcbca3+=_0x465fc6(0x145),_0xdcbca3+=_0x465fc6(0x140),_0xdcbca3+=_0x465fc6(0x16f),_0xdcbca3+='}',_0xdcbca3=_0xdcbca3[_0x465fc6(0x14b)](_0x465fc6(0x162),_0x2f35aa),!fs[_0x465fc6(0x14d)]((0x0,path_1[_0x465fc6(0x16d)])(_0x50c6d5))&&fs[_0x465fc6(0x178)]((0x0,path_1[_0x465fc6(0x16d)])(_0x50c6d5),{'recursive':!![]}),fs[_0x465fc6(0x177)](_0x50c6d5,_0xdcbca3,_0x465fc6(0x164));}}async function repository({tablestartUp:_0x46deb7,tablestartUpShort:_0x50c13c,basedir:_0x14f3fc,Comment:_0x4c6b80,moduleName:_0x3dc446}){const _0x3981d5=a6_0x1f3f1b,_0x56fa96=_0x14f3fc+(_0x3981d5(0x18e)+_0x50c13c+_0x3981d5(0x167));if(!fs['existsSync'](_0x56fa96)){let _0x1484e7='';_0x1484e7+=_0x3981d5(0x166),_0x1484e7+='\x20*\x20'+_0x4c6b80+'-实体处理器\x0a',_0x1484e7+=_0x3981d5(0x15b),_0x1484e7+=_0x3981d5(0x148),_0x1484e7+='import\x20{\x20'+_0x46deb7+_0x3981d5(0x17b)+(typeof _0x3dc446=='string'?_0x3981d5(0x195)+_0x3dc446:_0x3981d5(0x144))+_0x3981d5(0x18e)+_0x50c13c+'/entity\x27;\x0a\x0a',_0x1484e7+='@ProvideRepository('+_0x46deb7+_0x3981d5(0x170),_0x1484e7+='export\x20class\x20'+_0x46deb7+'\x20extends\x20Repository<'+_0x46deb7+_0x3981d5(0x197),_0x1484e7+='}',!fs[_0x3981d5(0x14d)]((0x0,path_1[_0x3981d5(0x16d)])(_0x56fa96))&&fs['mkdirSync']((0x0,path_1['dirname'])(_0x56fa96),{'recursive':!![]}),fs[_0x3981d5(0x177)](_0x56fa96,_0x1484e7,_0x3981d5(0x164));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a7_0x51ccf2=a7_0x5182;(function(_0x3b2ca7,_0x2a35fb){const _0x515d01=a7_0x5182,_0x3297d4=_0x3b2ca7();while(!![]){try{const _0x4c65d6=-parseInt(_0x515d01(0x132))/0x1*(parseInt(_0x515d01(0x133))/0x2)+-parseInt(_0x515d01(0x138))/0x3+-parseInt(_0x515d01(0x151))/0x4*(parseInt(_0x515d01(0x139))/0x5)+-parseInt(_0x515d01(0x135))/0x6*(-parseInt(_0x515d01(0x148))/0x7)+parseInt(_0x515d01(0x13d))/0x8*(parseInt(_0x515d01(0x13b))/0x9)+-parseInt(_0x515d01(0x14f))/0xa+parseInt(_0x515d01(0x142))/0xb;if(_0x4c65d6===_0x2a35fb)break;else _0x3297d4['push'](_0x3297d4['shift']());}catch(_0x4f9d77){_0x3297d4['push'](_0x3297d4['shift']());}}}(a7_0x3cb2,0x7b7a9));function a7_0x3cb2(){const _0x21414c=['import\x20{\x20','7956817cRahpW','\x20\x20\x20\x20@InjectRepository(','utf-8','/events.ts','@/app','/entities/','1148819CQrIJP','\x20}\x20from\x20\x27','path','@Event()\x0a','@/apps/','\x27;\x0a\x0a','mkdirSync','2277910PkMBPQ','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','111376jbgxGU','1rSJpmu','287714PkjRfb',')\x20protected\x20','12pOgIeF','existsSync','dirname','1077906ZxfoAu','135LAyyFn','Event\x20{\x0a\x0a','18uAHrJm',';\x0a\x0a\x0a','3747704vQJUGG','writeFileSync','string','default'];a7_0x3cb2=function(){return _0x21414c;};return a7_0x3cb2();}function a7_0x5182(_0x6ecf3,_0x5c41a6){const _0x3cb2b3=a7_0x3cb2();return a7_0x5182=function(_0x518258,_0x2c2645){_0x518258=_0x518258-0x132;let _0x12baa4=_0x3cb2b3[_0x518258];return _0x12baa4;},a7_0x5182(_0x6ecf3,_0x5c41a6);}Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=require('fs'),path_1=require(a7_0x51ccf2(0x14a));async function default_1({tablestartUp:_0x6aa042,tablestartUpShort:_0x4d699b,basedir:_0x6c5c8a,moduleName:_0x15852a}){const _0x28dacb=a7_0x51ccf2,_0x597d0f=_0x6c5c8a+(_0x28dacb(0x147)+_0x4d699b+_0x28dacb(0x145));if(!fs[_0x28dacb(0x136)](_0x597d0f)){let _0x5c5076='';_0x5c5076+='import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a',_0x5c5076+=_0x28dacb(0x150),_0x5c5076+=_0x28dacb(0x141)+_0x6aa042+_0x28dacb(0x149)+(typeof _0x15852a==_0x28dacb(0x13f)?_0x28dacb(0x14c)+_0x15852a:_0x28dacb(0x146))+'/entities/'+_0x4d699b+_0x28dacb(0x14d),_0x5c5076+=_0x28dacb(0x14b),_0x5c5076+='export\x20class\x20'+_0x6aa042+_0x28dacb(0x13a),_0x5c5076+='\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a',_0x5c5076+=_0x28dacb(0x143)+_0x6aa042+_0x28dacb(0x134)+_0x6aa042+':\x20'+_0x6aa042+_0x28dacb(0x13c),_0x5c5076+='}',!fs[_0x28dacb(0x136)]((0x0,path_1[_0x28dacb(0x137)])(_0x597d0f))&&fs[_0x28dacb(0x14e)]((0x0,path_1[_0x28dacb(0x137)])(_0x597d0f),{'recursive':!![]}),fs[_0x28dacb(0x13e)](_0x597d0f,_0x5c5076,_0x28dacb(0x144));}}exports[a7_0x51ccf2(0x140)]=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a8_0x390f77=a8_0x2eab;(function(_0x4c8557,_0x32e804){const _0x20e3fe=a8_0x2eab,_0x30a56a=_0x4c8557();while(!![]){try{const _0x49ef26=parseInt(_0x20e3fe(0xee))/0x1+parseInt(_0x20e3fe(0xd7))/0x2+-parseInt(_0x20e3fe(0x113))/0x3+parseInt(_0x20e3fe(0x10b))/0x4+parseInt(_0x20e3fe(0xfd))/0x5*(parseInt(_0x20e3fe(0xfe))/0x6)+-parseInt(_0x20e3fe(0xd4))/0x7*(parseInt(_0x20e3fe(0xeb))/0x8)+-parseInt(_0x20e3fe(0xf9))/0x9*(parseInt(_0x20e3fe(0xf2))/0xa);if(_0x49ef26===_0x32e804)break;else _0x30a56a['push'](_0x30a56a['shift']());}catch(_0x351285){_0x30a56a['push'](_0x30a56a['shift']());}}}(a8_0x13dd,0x25939));function a8_0x13dd(){const _0x2b7517=[':\x20string\x20|\x20number,\x20conditions?:\x20SearchParams<','existsSync','Field','.ts','DTOUpdate\x20}\x20from\x20\x27','@Scope(ScopeEnum.Singleton)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','@/apps/','261420wfKcVv','\x20*\x20','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','\x20\x20\x20\x20@InjectRepository(','\x20\x20\x20\x20\x20*\x20删除数据\x0a','utf-8','mkdirSync','\x20\x20\x20\x20}\x0a\x0a\x0a','197169syTKaQ','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','string','import\x20{\x20Inject,\x20Provide,\x20Scope,\x20ScopeEnum\x20}\x20from\x20\x27anncic-api\x27;\x0a','Entity>,\x20params:\x20',';\x0a\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','@Provide()\x0a','.merge(tmpModel,\x20params);\x0a','dirname','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','3703RNBmFg','.save(tmpModel);\x0a','DTOCreate)\x20{\x0a','489616LARcjY','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.','Entity\x20}\x20from\x20\x27','@/app','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','Handler\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x27;\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','/Create\x27;\x0a','/entities/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20AnnError(AnnError.NOFIND,\x20{\x20message:\x20\x27数据不存在\x27\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','import\x20{\x20','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','.softRemove(tmpModel))\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','1456TlcfBc','\x20\x20\x20\x20async\x20remove(','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','145515cBFYTQ','.create(params)\x0a\x0a','Entity[],\x20number]>\x20{\x0a','DTOCreate\x20}\x20from\x20\x27','80SurBdb','default','/handlers/','\x20\x20\x20\x20\x20*\x20修改数据\x0a','/Update\x27;\x0a','}`.split(\x27,\x27)).getMany();\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','456903iIoFZu','export\x20class\x20','/entity\x27;\x0a','/validators/','5yXUQHM','1598232YYighJ','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<'];a8_0x13dd=function(){return _0x2b7517;};return a8_0x13dd();}Object['defineProperty'](exports,'__esModule',{'value':!![]});function a8_0x2eab(_0xba533e,_0x4d603c){const _0x13dd5c=a8_0x13dd();return a8_0x2eab=function(_0x2eaba4,_0x4e1eb){_0x2eaba4=_0x2eaba4-0xcf;let _0x519f4e=_0x13dd5c[_0x2eaba4];return _0x519f4e;},a8_0x2eab(_0xba533e,_0x4d603c);}const fs=require('fs'),path_1=require('path');async function default_1({controller:_0x233ab1,tablestartUp:_0x2881c8,tablestartUpShort:_0x21368f,basedir:_0x5bdef8,Primary:_0x53caba,Comment:_0x75d23,moduleName:_0x17bf3b}){const _0x4df0c4=a8_0x2eab;if(_0x233ab1){const _0x5c74b4=_0x5bdef8+(_0x4df0c4(0xf4)+_0x21368f+_0x4df0c4(0x103));if(!fs[_0x4df0c4(0x101)](_0x5c74b4)){let _0x17e9d0='';_0x17e9d0+=_0x4df0c4(0x117),_0x17e9d0+='import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a',_0x17e9d0+=_0x4df0c4(0xd3),_0x17e9d0+=_0x4df0c4(0xe7)+_0x2881c8+'\x20}\x20from\x20\x27'+(typeof _0x17bf3b==_0x4df0c4(0x116)?_0x4df0c4(0x10a)+_0x17bf3b:_0x4df0c4(0xdd))+'/entities/'+_0x21368f+_0x4df0c4(0xe1),_0x17e9d0+=_0x4df0c4(0xe7)+_0x2881c8+_0x4df0c4(0xdc)+(typeof _0x17bf3b==_0x4df0c4(0x116)?'@/apps/'+_0x17bf3b:'@/app')+_0x4df0c4(0xe4)+_0x21368f+_0x4df0c4(0xfb),_0x17e9d0+=_0x4df0c4(0xe7)+_0x2881c8+_0x4df0c4(0xf1)+(typeof _0x17bf3b=='string'?'@/apps/'+_0x17bf3b:'@/app')+_0x4df0c4(0xfc)+_0x21368f+_0x4df0c4(0xe3),_0x17e9d0+=_0x4df0c4(0xe7)+_0x2881c8+_0x4df0c4(0x104)+(typeof _0x17bf3b==_0x4df0c4(0x116)?_0x4df0c4(0x10a)+_0x17bf3b:_0x4df0c4(0xdd))+_0x4df0c4(0xfc)+_0x21368f+_0x4df0c4(0xf6),_0x17e9d0+='\x0a',_0x17e9d0+='/**\x0a',_0x17e9d0+=_0x4df0c4(0x10c)+_0x75d23+'\x0a',_0x17e9d0+='\x20*\x20**/\x0a',_0x17e9d0+=_0x4df0c4(0xd0),_0x17e9d0+=_0x4df0c4(0x105),_0x17e9d0+=_0x4df0c4(0xfa)+_0x2881c8+_0x4df0c4(0xdf),_0x17e9d0+=_0x4df0c4(0x115),_0x17e9d0+='\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a',_0x17e9d0+=_0x4df0c4(0xd9),_0x17e9d0+=_0x4df0c4(0x10e)+_0x2881c8+')\x20'+_0x21368f+':\x20'+_0x2881c8+_0x4df0c4(0x119),_0x17e9d0+='\x20\x20\x20\x20/**\x0a',_0x17e9d0+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x17e9d0+=_0x4df0c4(0xd8),_0x17e9d0+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x2881c8+_0x4df0c4(0xe2)+_0x2881c8+_0x4df0c4(0xf0),_0x17e9d0+=_0x4df0c4(0xe0)+_0x21368f+'.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x17e9d0+=_0x4df0c4(0xe6),_0x17e9d0+=_0x4df0c4(0xcf),_0x17e9d0+=_0x4df0c4(0xde),_0x17e9d0+=_0x4df0c4(0x112),_0x17e9d0+=_0x4df0c4(0x114),_0x17e9d0+='\x20\x20\x20\x20\x20*\x20数据详情\x0a',_0x17e9d0+=_0x4df0c4(0xd8),_0x17e9d0+=_0x4df0c4(0x107)+_0x2881c8+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x17e9d0+=_0x4df0c4(0x109)+_0x21368f+_0x4df0c4(0xea),_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20AnnError(AnnError.NOFIND,\x20{\x20message:\x20\x27数据不存在\x27\x20})\x0a',_0x17e9d0+=_0x4df0c4(0x108),_0x17e9d0+=_0x4df0c4(0xcf),_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x17e9d0+=_0x4df0c4(0x112),_0x17e9d0+=_0x4df0c4(0x114),_0x17e9d0+=_0x4df0c4(0xda),_0x17e9d0+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x17e9d0+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x2881c8+_0x4df0c4(0xd6),_0x17e9d0+=_0x4df0c4(0xf8)+_0x21368f+_0x4df0c4(0xef),_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x21368f+'.save(tmpModel);\x0a',_0x17e9d0+=_0x4df0c4(0x112),_0x17e9d0+='\x20\x20\x20\x20/**\x0a',_0x17e9d0+=_0x4df0c4(0xf5),_0x17e9d0+=_0x4df0c4(0xd8),_0x17e9d0+=_0x4df0c4(0xff)+_0x2881c8+_0x4df0c4(0x118)+_0x2881c8+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x17e9d0+=_0x4df0c4(0x109)+_0x21368f+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x17e9d0+=_0x4df0c4(0x106),_0x17e9d0+=_0x4df0c4(0xe5),_0x17e9d0+=_0x4df0c4(0x108),_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x21368f+_0x4df0c4(0xd1),_0x17e9d0+=_0x4df0c4(0x10d)+_0x21368f+_0x4df0c4(0xd5),_0x17e9d0+=_0x4df0c4(0x112),_0x17e9d0+=_0x4df0c4(0x114),_0x17e9d0+=_0x4df0c4(0x10f),_0x17e9d0+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x17e9d0+=_0x4df0c4(0xec)+_0x53caba[_0x4df0c4(0x102)]+_0x4df0c4(0x100)+_0x2881c8+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x17e9d0+=_0x4df0c4(0xed)+_0x21368f+_0x4df0c4(0xea),_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.andWhereInIds(`${'+_0x53caba[_0x4df0c4(0x102)]+_0x4df0c4(0xf7),_0x17e9d0+=_0x4df0c4(0xcf),_0x17e9d0+=_0x4df0c4(0xe8),_0x17e9d0+=_0x4df0c4(0xdb)+_0x21368f+_0x4df0c4(0xe9),_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x17e9d0+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a',_0x17e9d0+=_0x4df0c4(0x112),_0x17e9d0+='}',!fs[_0x4df0c4(0x101)]((0x0,path_1['dirname'])(_0x5c74b4))&&fs[_0x4df0c4(0x111)]((0x0,path_1[_0x4df0c4(0xd2)])(_0x5c74b4),{'recursive':!![]}),fs['writeFileSync'](_0x5c74b4,_0x17e9d0,_0x4df0c4(0x110));}}}exports[a8_0x390f77(0xf3)]=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a9_0x1a59(_0x529df4,_0x1cf547){const _0x266d24=a9_0x266d();return a9_0x1a59=function(_0x1a597f,_0x15ef6c){_0x1a597f=_0x1a597f-0x1e8;let _0x26adb1=_0x266d24[_0x1a597f];return _0x26adb1;},a9_0x1a59(_0x529df4,_0x1cf547);}const a9_0x525cd1=a9_0x1a59;(function(_0x10d54a,_0x5baa5a){const _0x288fdd=a9_0x1a59,_0x2dd2f2=_0x10d54a();while(!![]){try{const _0x53a4d7=-parseInt(_0x288fdd(0x20b))/0x1+-parseInt(_0x288fdd(0x206))/0x2*(-parseInt(_0x288fdd(0x1fa))/0x3)+parseInt(_0x288fdd(0x20f))/0x4+parseInt(_0x288fdd(0x20d))/0x5*(-parseInt(_0x288fdd(0x225))/0x6)+parseInt(_0x288fdd(0x1eb))/0x7+parseInt(_0x288fdd(0x1e8))/0x8*(-parseInt(_0x288fdd(0x205))/0x9)+-parseInt(_0x288fdd(0x215))/0xa*(-parseInt(_0x288fdd(0x1ea))/0xb);if(_0x53a4d7===_0x5baa5a)break;else _0x2dd2f2['push'](_0x2dd2f2['shift']());}catch(_0xa04766){_0x2dd2f2['push'](_0x2dd2f2['shift']());}}}(a9_0x266d,0x86f2f));Object['defineProperty'](exports,a9_0x525cd1(0x212),{'value':!![]});function a9_0x266d(){const _0x50173d=['\x20\x20\x20\x20}\x0a\x0a','_end\x27,\x20\x27','813PGExSb','_end:\x20string)\x20{\x0a','\x20<=\x20:','timestamp','Search\x20{\x0a\x0a','getProp','longtext','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','text','_end`,\x20{\x20','_start\x27,\x20\x27','4580046viySpR','7494VUnfAD','\x20*\x20','Field','Comment',':>=\x20起始时间(之后)\x27)\x0a','513208zVahfp','@Provide()\x0a','1255UTNkef','\x20>=\x20:','3091020DrjNLT','_start\x20})\x0a','\x20\x20\x20\x20async\x20','__esModule','\x20*\x20**/\x0a','indexOf','60exrRex','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','displayorder','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','datetime',':<=\x20起始时间(之前)\x27)\x0a','existsSync','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','Type','export\x20class\x20','writeFileSync','date','\x20\x20\x20\x20@Search(\x27','dirname','path','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','21066RYFbwM','16DmHzXz','-自定义检索\x0a','295471aMAHTR','7109550FQgtEr','%column%','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','replace','\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a','utf-8','_end\x20})\x0a','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a','deleted_at','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','json','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<\x20起始时间(之前)\x27)\x0a','/searchs/'];a9_0x266d=function(){return _0x50173d;};return a9_0x266d();}const fs=require('fs'),path_1=require(a9_0x525cd1(0x223)),helper_1=require('../helper');async function default_1({tablestartUp:_0x3baf53,tablestartUpShort:_0x3c02be,basedir:_0x5b3c97,Fields:_0x25c940,Comment:_0x355f6b}){const _0xd93c95=a9_0x525cd1,_0xacb017=_0x5b3c97+(_0xd93c95(0x1f7)+_0x3c02be+'.ts');if(!fs['existsSync'](_0xacb017)){let _0x29908c='',_0x351ad6='';for(let _0x378826 in _0x25c940){let _0x22206d=_0x25c940[_0x378826],_0x39babc=(0x0,helper_1[_0xd93c95(0x1ff)])(_0x22206d[_0xd93c95(0x21d)]);if(_0x22206d[_0xd93c95(0x208)]==_0xd93c95(0x217)||_0x22206d['Field']=='created_at'||_0x22206d[_0xd93c95(0x208)]=='updated_at'||_0x22206d['Field']==_0xd93c95(0x1f3))continue;if(_0x39babc==_0xd93c95(0x1f5)){}else{if(_0x39babc==_0xd93c95(0x202)){}else{if(_0x39babc==_0xd93c95(0x200)){}else[_0xd93c95(0x220),_0xd93c95(0x219),_0xd93c95(0x1fd)][_0xd93c95(0x214)](_0x39babc)>-0x1&&(_0x29908c+=_0xd93c95(0x221)+_0x22206d[_0xd93c95(0x208)]+_0xd93c95(0x204)+_0x22206d[_0xd93c95(0x209)]+_0xd93c95(0x20a),_0x29908c+=_0xd93c95(0x211)+_0x22206d[_0xd93c95(0x208)]+'_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x22206d[_0xd93c95(0x208)]+'_start:\x20string)\x20{\x0a',_0x29908c+=_0xd93c95(0x218)+_0x22206d['Field']+_0xd93c95(0x20e)+_0x22206d[_0xd93c95(0x208)]+'_start`,\x20{\x20'+_0x22206d[_0xd93c95(0x208)]+_0xd93c95(0x210),_0x29908c+='\x20\x20\x20\x20}\x0a\x0a',_0x29908c+=_0xd93c95(0x221)+_0x22206d[_0xd93c95(0x208)]+_0xd93c95(0x1f9)+_0x22206d[_0xd93c95(0x209)]+_0xd93c95(0x21a),_0x29908c+=_0xd93c95(0x211)+_0x22206d[_0xd93c95(0x208)]+'_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x22206d['Field']+_0xd93c95(0x1fb),_0x29908c+=_0xd93c95(0x218)+_0x22206d[_0xd93c95(0x208)]+_0xd93c95(0x1fc)+_0x22206d['Field']+_0xd93c95(0x203)+_0x22206d[_0xd93c95(0x208)]+_0xd93c95(0x1f1),_0x29908c+=_0xd93c95(0x1f8));}}}_0x29908c+=_0xd93c95(0x1f2),_0x29908c+=_0xd93c95(0x1f4),_0x29908c+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a',_0x29908c+=_0xd93c95(0x1f8),_0x29908c+=_0xd93c95(0x1f6),_0x29908c+=_0xd93c95(0x224),_0x29908c+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a',_0x29908c+=_0xd93c95(0x1f8),_0x29908c+=_0xd93c95(0x1ef),_0x29908c+=_0xd93c95(0x216),_0x29908c+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a',_0x29908c+=_0xd93c95(0x1f8),_0x29908c+='\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<\x20起始时间(之前)\x27)\x0a',_0x29908c+=_0xd93c95(0x1ed),_0x29908c+=_0xd93c95(0x21c),_0x29908c+=_0xd93c95(0x1f8),_0x351ad6+=_0xd93c95(0x201),_0x351ad6+='/**\x0a',_0x351ad6+=_0xd93c95(0x207)+_0x355f6b+_0xd93c95(0x1e9),_0x351ad6+=_0xd93c95(0x213),_0x351ad6+=_0xd93c95(0x20c),_0x351ad6+=_0xd93c95(0x21e)+_0x3baf53+_0xd93c95(0x1fe),_0x351ad6+=_0xd93c95(0x1ec),_0x351ad6+='}',_0x351ad6=_0x351ad6[_0xd93c95(0x1ee)](_0xd93c95(0x1ec),_0x29908c),!fs[_0xd93c95(0x21b)]((0x0,path_1['dirname'])(_0xacb017))&&fs['mkdirSync']((0x0,path_1[_0xd93c95(0x222)])(_0xacb017),{'recursive':!![]}),fs[_0xd93c95(0x21f)](_0xacb017,_0x351ad6,_0xd93c95(0x1f0));}}exports['default']=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a10_0x1cfb8d=a10_0x5d1d;function a10_0x17fe(){const _0x5ac51d=['\x27;\x0a\x0a','255MAvRlV','31048riNryA','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','?:\x20number;\x0a\x0a','\x27\x20|\x20\x27','\x27,\x20\x27','Enum,\x20\x27','\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a','toLowerCase','}\x0a\x0a','enum','8YZKZjb','mkdirSync','DTOUpdate\x20extends\x20OmitDto(','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','2225846YfDAxh','mediumtext','704eUrQte','\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','text','find','DTOUpdate\x20{\x0a\x0a','DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','589678wPUhcg','\x27,\x20RuleType.date()','?:\x20any\x20|\x20any[];\x0a\x0a','timestamp','date','decimal','\x20*\x20**/\x0a','Null','DTOSearch\x20{\x0a\x0a','float','9GbYhcd','.required()','/**\x0a','\x27,\x20RuleType.number()','Field','%DtoColumn%','Enum\x20}\x20from\x20\x27','substring','\x27))\x0a','/validators/','\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a','Type','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','string','\x27,\x20RuleType.number())\x0a','Comment','12MXBdgG','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','\x27)))\x0a','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','DTOSearch\x20extends\x20OmitDto(','defineProperty',':\x20string;\x0a\x0a','/entities/','\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a','writeFileSync','DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','\x20\x20\x20\x20','import\x20{\x20','existsSync','indexOf','created_at','replace','\x27,\x20RuleType.any())\x0a','datetime','\x20*\x20数据更新验证\x0a',':\x20\x27','YES','getEnum','longtext','displayorder','json','updated_at','\x20\x20\x20\x20@Rule(\x27','tinyint','5378990GJkbZI',':\x20number;\x0a\x0a','number','\x20*\x20','@/apps/','%SearchDtoColumn%','export\x20class\x20','_end?:\x20string;\x0a\x0a','?:\x20string;\x0a\x0a','../helper','1357740dGFyKo','\x20*\x20数据添加验证\x0a','boolean','\x27,\x20RuleType.string()','DTOCreate\x20extends\x20OmitDto(','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','@/app','/Update.ts','/enum\x27;\x0a','/Create.ts',':\x20any\x20|\x20any[];\x0a\x0a','double','DTOCreate\x20{\x0a\x0a','\x20*\x20数据检索验证\x0a','toUpperCase','utf-8','join','163896jZPxCB','\x27,\x20RuleType.string())\x0a','deleted_at','\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a','getProp','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','\x27,\x20RuleType.string().valid(\x27','2562932pwxlfX'];a10_0x17fe=function(){return _0x5ac51d;};return a10_0x17fe();}(function(_0x385955,_0xd1ed59){const _0x362eaa=a10_0x5d1d,_0x1e5fef=_0x385955();while(!![]){try{const _0x27efa5=parseInt(_0x362eaa(0x1aa))/0x1+parseInt(_0x362eaa(0x203))/0x2+-parseInt(_0x362eaa(0x193))/0x3*(parseInt(_0x362eaa(0x194))/0x4)+parseInt(_0x362eaa(0x1eb))/0x5*(-parseInt(_0x362eaa(0x1c4))/0x6)+-parseInt(_0x362eaa(0x1a2))/0x7*(-parseInt(_0x362eaa(0x19e))/0x8)+-parseInt(_0x362eaa(0x1b4))/0x9*(-parseInt(_0x362eaa(0x1e1))/0xa)+parseInt(_0x362eaa(0x1a4))/0xb*(-parseInt(_0x362eaa(0x1fc))/0xc);if(_0x27efa5===_0xd1ed59)break;else _0x1e5fef['push'](_0x1e5fef['shift']());}catch(_0x5954e8){_0x1e5fef['push'](_0x1e5fef['shift']());}}}(a10_0x17fe,0x9eb3b));Object[a10_0x1cfb8d(0x1c9)](exports,'__esModule',{'value':!![]});const fs=require('fs'),helper_1=require(a10_0x1cfb8d(0x1ea));async function default_1({controllers:_0x2b0997,tablestartUp:_0x2b1888,tablestartUpShort:_0x4cc4d5,basedir:_0x3da2b9,Primary:_0x101085,Fields:_0x31e09c,Comment:_0x463ed4,moduleName:_0x26f3f8}){const _0x1641cd=a10_0x1cfb8d,_0x4fdf90=_0x3da2b9+('/validators/'+_0x4cc4d5);!fs[_0x1641cd(0x1d1)](_0x4fdf90)&&fs[_0x1641cd(0x19f)](_0x4fdf90,{'recursive':!![]}),await DTOCreate({'controllers':_0x2b0997,'tablestartUp':_0x2b1888,'tablestartUpShort':_0x4cc4d5,'basedir':_0x3da2b9,'Fields':_0x31e09c,'Comment':_0x463ed4,'moduleName':_0x26f3f8}),await DTOUpdate({'controllers':_0x2b0997,'tablestartUp':_0x2b1888,'tablestartUpShort':_0x4cc4d5,'basedir':_0x3da2b9,'Fields':_0x31e09c,'Comment':_0x463ed4,'moduleName':_0x26f3f8}),await DTOSearch({'controllers':_0x2b0997,'tablestartUp':_0x2b1888,'tablestartUpShort':_0x4cc4d5,'basedir':_0x3da2b9,'Fields':_0x31e09c,'Primary':_0x101085,'Comment':_0x463ed4,'moduleName':_0x26f3f8});}exports['default']=default_1;async function DTOCreate({controllers:_0x1a6cce,tablestartUp:_0x19fe4c,tablestartUpShort:_0x2b7112,basedir:_0x300b83,Fields:_0x3f1a93,Comment:_0x391486,moduleName:_0x2a3733}){const _0x35a596=a10_0x1cfb8d,_0x2581d2=_0x300b83+(_0x35a596(0x1bd)+_0x2b7112+_0x35a596(0x1f4));if(!fs['existsSync'](_0x2581d2)){let _0x16a05f='',_0x5c04c2='',_0x3cdf27=![];for(let _0x59e0a0 in _0x3f1a93){let _0x453e82=_0x3f1a93[_0x59e0a0],_0x250dfa=(0x0,helper_1[_0x35a596(0x200)])(_0x453e82['Type']);if(_0x453e82[_0x35a596(0x1b8)]==_0x35a596(0x1dc)||_0x453e82[_0x35a596(0x1b8)]==_0x35a596(0x1d3)||_0x453e82[_0x35a596(0x1b8)]=='updated_at'||_0x453e82[_0x35a596(0x1b8)]==_0x35a596(0x1fe))continue;if([_0x35a596(0x1a6),_0x35a596(0x1db),_0x35a596(0x1a3)][_0x35a596(0x1d2)](_0x250dfa)!=-0x1)_0x16a05f+=_0x35a596(0x1df)+_0x453e82['Comment']+'\x27,\x20RuleType.string())\x0a',_0x16a05f+=_0x35a596(0x1cf)+_0x453e82['Field']+'?:\x20string;\x0a\x0a';else{if([_0x35a596(0x1b3),_0x35a596(0x1f6),'decimal',_0x35a596(0x1e3)][_0x35a596(0x1d2)](_0x250dfa)!=-0x1)_0x16a05f+=_0x35a596(0x1df)+_0x453e82[_0x35a596(0x1c3)]+_0x35a596(0x1b7)+(_0x453e82['Null']!=_0x35a596(0x1d9)?_0x35a596(0x1b5):'')+')\x0a',_0x16a05f+=_0x35a596(0x1cf)+_0x453e82['Field']+(_0x453e82[_0x35a596(0x1b1)]!=_0x35a596(0x1d9)?'?':'')+':\x20number;\x0a\x0a';else{if([_0x35a596(0x1e0)][_0x35a596(0x1d2)](_0x250dfa)!=-0x1)_0x3cdf27=!![],_0x16a05f+='\x20\x20\x20\x20@Rule(\x27'+_0x453e82['Comment']+_0x35a596(0x201)+_0x19fe4c+'Enum,\x20\x27'+_0x453e82[_0x35a596(0x1b8)]+'\x27))'+(_0x453e82[_0x35a596(0x1b1)]!=_0x35a596(0x1d9)?_0x35a596(0x1b5):'')+')\x0a',_0x16a05f+=_0x35a596(0x1cf)+_0x453e82[_0x35a596(0x1b8)]+(_0x453e82[_0x35a596(0x1b1)]!=_0x35a596(0x1d9)?'?':'')+_0x35a596(0x1e2);else{if(_0x250dfa==_0x35a596(0x1dd))_0x16a05f+='\x20\x20\x20\x20@Rule(\x27'+_0x453e82[_0x35a596(0x1c3)]+'\x27,\x20RuleType.any())\x0a',_0x16a05f+=_0x35a596(0x1cf)+_0x453e82[_0x35a596(0x1b8)]+(_0x453e82[_0x35a596(0x1b1)]!=_0x35a596(0x1d9)?'?':'')+_0x35a596(0x1f5);else{if(_0x250dfa==_0x35a596(0x19d)){let _0x2da5e3=(0x0,helper_1['getEnum'])(_0x453e82[_0x35a596(0x1bf)]);_0x16a05f+=_0x35a596(0x1df)+_0x453e82[_0x35a596(0x1c3)]+_0x35a596(0x202)+_0x2da5e3[_0x35a596(0x1fb)](_0x35a596(0x198))+'\x27)'+(_0x453e82[_0x35a596(0x1b1)]!='YES'?'.required()':'')+')\x0a',_0x16a05f+=_0x35a596(0x1cf)+_0x453e82[_0x35a596(0x1b8)]+(_0x453e82['Null']!='YES'?'?':'')+_0x35a596(0x1d8)+_0x2da5e3['join'](_0x35a596(0x197))+_0x35a596(0x192);}else[_0x35a596(0x1ae),_0x35a596(0x1d6),_0x35a596(0x1ad)][_0x35a596(0x1d2)](_0x250dfa)>-0x1?(_0x16a05f+=_0x35a596(0x1df)+_0x453e82[_0x35a596(0x1c3)]+_0x35a596(0x1ab)+(_0x453e82[_0x35a596(0x1b1)]!=_0x35a596(0x1d9)?'.required()':'')+')\x0a',_0x16a05f+=_0x35a596(0x1cf)+_0x453e82[_0x35a596(0x1b8)]+(_0x453e82[_0x35a596(0x1b1)]!=_0x35a596(0x1d9)?'?':'')+_0x35a596(0x1ca)):(_0x16a05f+=_0x35a596(0x1df)+_0x453e82[_0x35a596(0x1c3)]+_0x35a596(0x1ee)+(_0x453e82[_0x35a596(0x1b1)]!=_0x35a596(0x1d9)?_0x35a596(0x1b5):'')+')\x0a',_0x16a05f+='\x20\x20\x20\x20'+_0x453e82[_0x35a596(0x1b8)]+(_0x453e82[_0x35a596(0x1b1)]!='YES'?'?':'')+_0x35a596(0x1ca));}}}}}_0x16a05f+=_0x35a596(0x195),_0x16a05f+=_0x35a596(0x1a1);(_0x1a6cce===null||_0x1a6cce===void 0x0?void 0x0:_0x1a6cce[_0x35a596(0x1a7)](_0x671cb4=>typeof _0x671cb4!=_0x35a596(0x1ed)))?_0x5c04c2+=_0x35a596(0x1c7):_0x5c04c2+=_0x35a596(0x1f0);_0x3cdf27&&(_0x5c04c2+=_0x35a596(0x1d0)+_0x19fe4c+_0x35a596(0x1ba)+(typeof _0x2a3733=='string'?_0x35a596(0x1e5)+_0x2a3733:_0x35a596(0x1f1))+_0x35a596(0x1cb)+_0x2b7112+_0x35a596(0x1f3));_0x5c04c2+='\x0a',_0x5c04c2+=_0x35a596(0x1b6),_0x5c04c2+=_0x35a596(0x1e4)+_0x391486+'\x0a',_0x5c04c2+=_0x35a596(0x1ec),_0x5c04c2+=_0x35a596(0x1b0),_0x5c04c2+=_0x35a596(0x1e7)+_0x19fe4c+_0x35a596(0x1f7),_0x5c04c2+='%DtoColumn%',_0x5c04c2+='}\x0a\x0a';for(const _0x4b60a3 of _0x1a6cce){typeof _0x4b60a3==_0x35a596(0x1c1)&&(_0x5c04c2+=_0x35a596(0x1e7)+_0x4b60a3[_0x35a596(0x1bb)](0x0,0x1)[_0x35a596(0x1f9)]()+_0x4b60a3['substring'](0x1)['toLowerCase']()+_0x19fe4c+_0x35a596(0x1ef)+_0x19fe4c+_0x35a596(0x1a9),_0x5c04c2+=_0x35a596(0x19c));}_0x5c04c2=_0x5c04c2[_0x35a596(0x1d4)](_0x35a596(0x1b9),_0x16a05f),fs[_0x35a596(0x1cd)](_0x2581d2,_0x5c04c2,_0x35a596(0x1fa));}}function a10_0x5d1d(_0x42c2e6,_0x426a76){const _0x17feb5=a10_0x17fe();return a10_0x5d1d=function(_0x5d1df3,_0x570669){_0x5d1df3=_0x5d1df3-0x192;let _0x5e3606=_0x17feb5[_0x5d1df3];return _0x5e3606;},a10_0x5d1d(_0x42c2e6,_0x426a76);}async function DTOUpdate({controllers:_0x43b441,tablestartUp:_0x14f8e4,tablestartUpShort:_0x15c45f,basedir:_0x5ab94e,Fields:_0x17c777,Comment:_0x428126,moduleName:_0x248ad8}){const _0x5b2ca6=a10_0x1cfb8d,_0x4647ad=_0x5ab94e+('/validators/'+_0x15c45f+_0x5b2ca6(0x1f2));if(!fs[_0x5b2ca6(0x1d1)](_0x4647ad)){let _0x118245='',_0x442468='',_0x7f3f07=![];for(let _0x2c4a35 in _0x17c777){let _0x59e131=_0x17c777[_0x2c4a35],_0x1ab53e=(0x0,helper_1[_0x5b2ca6(0x200)])(_0x59e131[_0x5b2ca6(0x1bf)]);if(_0x59e131[_0x5b2ca6(0x1b8)]=='displayorder'||_0x59e131[_0x5b2ca6(0x1b8)]==_0x5b2ca6(0x1d3)||_0x59e131['Field']=='updated_at'||_0x59e131[_0x5b2ca6(0x1b8)]==_0x5b2ca6(0x1fe))continue;if(['text',_0x5b2ca6(0x1db),_0x5b2ca6(0x1a3)][_0x5b2ca6(0x1d2)](_0x1ab53e)!=-0x1)_0x118245+=_0x5b2ca6(0x1df)+_0x59e131[_0x5b2ca6(0x1c3)]+'\x27,\x20RuleType.string())\x0a',_0x118245+=_0x5b2ca6(0x1cf)+_0x59e131[_0x5b2ca6(0x1b8)]+'?:\x20string;\x0a\x0a';else{if([_0x5b2ca6(0x1b3),_0x5b2ca6(0x1f6),_0x5b2ca6(0x1af),_0x5b2ca6(0x1e3)][_0x5b2ca6(0x1d2)](_0x1ab53e)!=-0x1)_0x118245+=_0x5b2ca6(0x1df)+_0x59e131[_0x5b2ca6(0x1c3)]+'\x27,\x20RuleType.number())\x0a',_0x118245+=_0x5b2ca6(0x1cf)+_0x59e131[_0x5b2ca6(0x1b8)]+'?:\x20number;\x0a\x0a';else{if([_0x5b2ca6(0x1e0)][_0x5b2ca6(0x1d2)](_0x1ab53e)!=-0x1)_0x7f3f07=!![],_0x118245+=_0x5b2ca6(0x1df)+_0x59e131[_0x5b2ca6(0x1c3)]+_0x5b2ca6(0x201)+_0x14f8e4+_0x5b2ca6(0x199)+_0x59e131['Field']+_0x5b2ca6(0x1c6),_0x118245+=_0x5b2ca6(0x1cf)+_0x59e131[_0x5b2ca6(0x1b8)]+_0x5b2ca6(0x196);else{if(_0x1ab53e=='json')_0x118245+=_0x5b2ca6(0x1df)+_0x59e131[_0x5b2ca6(0x1c3)]+_0x5b2ca6(0x1d5),_0x118245+=_0x5b2ca6(0x1cf)+_0x59e131[_0x5b2ca6(0x1b8)]+_0x5b2ca6(0x1ac);else{if(_0x1ab53e==_0x5b2ca6(0x19d)){let _0x1a90e7=(0x0,helper_1[_0x5b2ca6(0x1da)])(_0x59e131[_0x5b2ca6(0x1bf)]);_0x118245+='\x20\x20\x20\x20@Rule(\x27'+_0x59e131['Comment']+'\x27,\x20RuleType.string().valid(\x27'+_0x1a90e7['join'](_0x5b2ca6(0x198))+_0x5b2ca6(0x1bc),_0x118245+=_0x5b2ca6(0x1cf)+_0x59e131[_0x5b2ca6(0x1b8)]+'?:\x20\x27'+_0x1a90e7['join'](_0x5b2ca6(0x197))+'\x27;\x0a\x0a';}else[_0x5b2ca6(0x1ae),_0x5b2ca6(0x1d6),_0x5b2ca6(0x1ad)]['indexOf'](_0x1ab53e)>-0x1?(_0x118245+=_0x5b2ca6(0x1df)+_0x59e131[_0x5b2ca6(0x1c3)]+'\x27,\x20RuleType.date())\x0a',_0x118245+=_0x5b2ca6(0x1cf)+_0x59e131[_0x5b2ca6(0x1b8)]+_0x5b2ca6(0x1e9)):(_0x118245+=_0x5b2ca6(0x1df)+_0x59e131[_0x5b2ca6(0x1c3)]+'\x27,\x20RuleType.string())\x0a',_0x118245+=_0x5b2ca6(0x1cf)+_0x59e131[_0x5b2ca6(0x1b8)]+'?:\x20string;\x0a\x0a');}}}}}_0x118245+=_0x5b2ca6(0x195),_0x118245+=_0x5b2ca6(0x1a1);(_0x43b441===null||_0x43b441===void 0x0?void 0x0:_0x43b441[_0x5b2ca6(0x1a7)](_0x539f59=>typeof _0x539f59!=_0x5b2ca6(0x1ed)))?_0x442468+=_0x5b2ca6(0x1c7):_0x442468+=_0x5b2ca6(0x1f0);_0x7f3f07&&(_0x442468+=_0x5b2ca6(0x1d0)+_0x14f8e4+_0x5b2ca6(0x1ba)+(typeof _0x248ad8=='string'?_0x5b2ca6(0x1e5)+_0x248ad8:'@/app')+'/entities/'+_0x15c45f+'/enum\x27;\x0a');_0x442468+='\x0a',_0x442468+='/**\x0a',_0x442468+='\x20*\x20'+_0x428126+'\x0a',_0x442468+=_0x5b2ca6(0x1d7),_0x442468+=_0x5b2ca6(0x1b0),_0x442468+=_0x5b2ca6(0x1e7)+_0x14f8e4+_0x5b2ca6(0x1a8),_0x442468+=_0x5b2ca6(0x1b9),_0x442468+=_0x5b2ca6(0x19c);for(const _0x2d8a50 of _0x43b441){typeof _0x2d8a50==_0x5b2ca6(0x1c1)&&(_0x442468+='export\x20class\x20'+_0x2d8a50['substring'](0x0,0x1)['toUpperCase']()+_0x2d8a50[_0x5b2ca6(0x1bb)](0x1)[_0x5b2ca6(0x19b)]()+_0x14f8e4+_0x5b2ca6(0x1a0)+_0x14f8e4+_0x5b2ca6(0x1ce),_0x442468+=_0x5b2ca6(0x19c));}_0x442468=_0x442468[_0x5b2ca6(0x1d4)](_0x5b2ca6(0x1b9),_0x118245),fs[_0x5b2ca6(0x1cd)](_0x4647ad,_0x442468,_0x5b2ca6(0x1fa));}}async function DTOSearch({controllers:_0x424a76,tablestartUp:_0x4662e3,tablestartUpShort:_0x4a09a6,basedir:_0x4396d8,Fields:_0x4a9f5f,Primary:_0x3bf116,Comment:_0x341367,moduleName:_0x453ff8}){const _0xd56939=a10_0x1cfb8d,_0x53d8e9=_0x4396d8+(_0xd56939(0x1bd)+_0x4a09a6+'/Search.ts');if(!fs[_0xd56939(0x1d1)](_0x53d8e9)){let _0x262f08='',_0x10ba37='',_0xbbe371=![];for(let _0x4279c4 of[{[_0x3bf116[_0xd56939(0x1b8)]]:_0x3bf116},_0x4a9f5f]){for(let _0x34374d in _0x4279c4){let _0x5435ba=_0x4279c4[_0x34374d],_0x59fd36=(0x0,helper_1['getProp'])(_0x5435ba[_0xd56939(0x1bf)]);if(_0x5435ba[_0xd56939(0x1b8)]==_0xd56939(0x1dc)||_0x5435ba[_0xd56939(0x1b8)]==_0xd56939(0x1d3)||_0x5435ba[_0xd56939(0x1b8)]==_0xd56939(0x1de)||_0x5435ba[_0xd56939(0x1b8)]==_0xd56939(0x1fe))continue;if([_0xd56939(0x1a6),_0xd56939(0x1db),'mediumtext']['indexOf'](_0x59fd36)!=-0x1){}else{if([_0xd56939(0x1b3),'double',_0xd56939(0x1af),'number'][_0xd56939(0x1d2)](_0x59fd36)!=-0x1)_0x262f08+=_0xd56939(0x1df)+_0x5435ba['Comment']+_0xd56939(0x1c2),_0x262f08+=_0xd56939(0x1cf)+_0x5435ba[_0xd56939(0x1b8)]+_0xd56939(0x196);else{if([_0xd56939(0x1e0)][_0xd56939(0x1d2)](_0x59fd36)!=-0x1)_0xbbe371=!![],_0x262f08+=_0xd56939(0x1df)+_0x5435ba[_0xd56939(0x1c3)]+_0xd56939(0x201)+_0x4662e3+_0xd56939(0x199)+_0x5435ba[_0xd56939(0x1b8)]+_0xd56939(0x1c6),_0x262f08+='\x20\x20\x20\x20'+_0x5435ba[_0xd56939(0x1b8)]+_0xd56939(0x196);else{if(_0x59fd36==_0xd56939(0x1dd)){}else{if(_0x59fd36==_0xd56939(0x19d)){let _0x37df96=(0x0,helper_1[_0xd56939(0x1da)])(_0x5435ba[_0xd56939(0x1bf)]);_0x262f08+=_0xd56939(0x1df)+_0x5435ba[_0xd56939(0x1c3)]+_0xd56939(0x202)+_0x37df96[_0xd56939(0x1fb)](_0xd56939(0x198))+_0xd56939(0x1bc),_0x262f08+=_0xd56939(0x1cf)+_0x5435ba[_0xd56939(0x1b8)]+'?:\x20\x27'+_0x37df96[_0xd56939(0x1fb)](_0xd56939(0x197))+'\x27;\x0a\x0a';}else['date',_0xd56939(0x1d6),_0xd56939(0x1ad)][_0xd56939(0x1d2)](_0x59fd36)>-0x1?(_0x262f08+=_0xd56939(0x1df)+_0x5435ba[_0xd56939(0x1c3)]+'\x27,\x20RuleType.string())\x0a',_0x262f08+=_0xd56939(0x1cf)+_0x5435ba[_0xd56939(0x1b8)]+'?:\x20string;\x0a\x0a',_0x262f08+=_0xd56939(0x1df)+_0x5435ba[_0xd56939(0x1c3)]+_0xd56939(0x1a5),_0x262f08+=_0xd56939(0x1cf)+_0x5435ba[_0xd56939(0x1b8)]+'_start?:\x20string;\x0a\x0a',_0x262f08+=_0xd56939(0x1df)+_0x5435ba[_0xd56939(0x1c3)]+_0xd56939(0x1cc),_0x262f08+='\x20\x20\x20\x20'+_0x5435ba[_0xd56939(0x1b8)]+_0xd56939(0x1e8)):(_0x262f08+=_0xd56939(0x1df)+_0x5435ba['Comment']+_0xd56939(0x1fd),_0x262f08+=_0xd56939(0x1cf)+_0x5435ba[_0xd56939(0x1b8)]+_0xd56939(0x1e9));}}}}}}_0x262f08+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0x262f08+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a',_0x262f08+=_0xd56939(0x1c0),_0x262f08+=_0xd56939(0x1be),_0x262f08+=_0xd56939(0x1c5),_0x262f08+=_0xd56939(0x1ff),_0x262f08+='\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a',_0x262f08+='\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a',_0x262f08+='\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x262f08+=_0xd56939(0x19a);(_0x424a76===null||_0x424a76===void 0x0?void 0x0:_0x424a76['find'](_0x4e9390=>typeof _0x4e9390!='boolean'))?_0x10ba37+=_0xd56939(0x1c7):_0x10ba37+=_0xd56939(0x1f0);_0xbbe371&&(_0x10ba37+='import\x20{\x20'+_0x4662e3+_0xd56939(0x1ba)+(typeof _0x453ff8==_0xd56939(0x1c1)?_0xd56939(0x1e5)+_0x453ff8:_0xd56939(0x1f1))+_0xd56939(0x1cb)+_0x4a09a6+_0xd56939(0x1f3));_0x10ba37+='\x0a',_0x10ba37+='/**\x0a',_0x10ba37+=_0xd56939(0x1e4)+_0x341367+'\x0a',_0x10ba37+=_0xd56939(0x1f8),_0x10ba37+=_0xd56939(0x1b0),_0x10ba37+=_0xd56939(0x1e7)+_0x4662e3+_0xd56939(0x1b2),_0x10ba37+=_0xd56939(0x1e6),_0x10ba37+=_0xd56939(0x19c);for(const _0x36daa0 of _0x424a76){typeof _0x36daa0=='string'&&(_0x10ba37+=_0xd56939(0x1e7)+_0x36daa0[_0xd56939(0x1bb)](0x0,0x1)[_0xd56939(0x1f9)]()+_0x36daa0['substring'](0x1)[_0xd56939(0x19b)]()+_0x4662e3+_0xd56939(0x1c8)+_0x4662e3+'DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x10ba37+=_0xd56939(0x19c));}_0x10ba37=_0x10ba37[_0xd56939(0x1d4)](_0xd56939(0x1e6),_0x262f08),fs['writeFileSync'](_0x53d8e9,_0x10ba37,_0xd56939(0x1fa));}}
|
|
1
|
+
'use strict';function a10_0x1b86(){const _0x55753c=['import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','double','json','tinyint','replace','/**\x0a','getProp','import\x20{\x20','default',':\x20number;\x0a\x0a','export\x20class\x20','8oHzRsc','Null','\x27,\x20RuleType.date())\x0a','?:\x20string;\x0a\x0a','mkdirSync','float','265200qswhUG','\x20\x20\x20\x20','_start?:\x20string;\x0a\x0a','Type','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a','indexOf','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','DTOSearch\x20{\x0a\x0a','longtext','date','mediumtext','/Update.ts','find','/entities/','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','created_at','\x27)))\x0a','YES','writeFileSync','423wIdKOU',':\x20any\x20|\x20any[];\x0a\x0a','?:\x20\x27','\x27,\x20RuleType.any())\x0a','updated_at','/Create.ts','\x20*\x20数据更新验证\x0a','Enum\x20}\x20from\x20\x27','DTOUpdate\x20extends\x20OmitDto(','toUpperCase','DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','%DtoColumn%','552942IbRpqh','\x20*\x20数据添加验证\x0a','DTOCreate\x20{\x0a\x0a','77Xhzqfb','\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a','/Search.ts','DTOSearch\x20extends\x20OmitDto(','number','deleted_at',':\x20\x27','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','string','toLowerCase','Enum,\x20\x27','?:\x20number;\x0a\x0a','enum','\x27;\x0a\x0a','Comment','\x27))\x0a','utf-8','}\x0a\x0a','\x20\x20\x20\x20@Rule(\x27','.required()','decimal','\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a','../helper','/validators/','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','%SearchDtoColumn%','1687AtuOHR','timestamp','Field','\x27))','displayorder',':\x20string;\x0a\x0a','\x27,\x20RuleType.number())\x0a','datetime','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','@/apps/','486780UxyuKB','boolean','?:\x20any\x20|\x20any[];\x0a\x0a','existsSync','\x27,\x20RuleType.number()','1580CCwYRK','\x27\x20|\x20\x27','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','\x27,\x20RuleType.string()','DTOUpdate\x20{\x0a\x0a','getEnum','232DjevQB','7FZERFG','/enum\x27;\x0a','\x20*\x20数据检索验证\x0a','__esModule','\x20*\x20','_end?:\x20string;\x0a\x0a','\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','join','240936qTCbfE','\x27,\x20RuleType.string().valid(\x27','\x27,\x20RuleType.date()','\x27,\x20\x27','791600HZhakv','\x27,\x20RuleType.string())\x0a','text','@/app','\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a','DTOCreate\x20extends\x20OmitDto(','substring'];a10_0x1b86=function(){return _0x55753c;};return a10_0x1b86();}const a10_0xf25d5a=a10_0x532a;(function(_0x35c57b,_0x259c3d){const _0x417455=a10_0x532a,_0x451b44=_0x35c57b();while(!![]){try{const _0x79f7ce=-parseInt(_0x417455(0xe8))/0x1*(parseInt(_0x417455(0xfd))/0x2)+parseInt(_0x417455(0x136))/0x3*(-parseInt(_0x417455(0xf7))/0x4)+parseInt(_0x417455(0x10a))/0x5+parseInt(_0x417455(0x122))/0x6*(-parseInt(_0x417455(0xfe))/0x7)+-parseInt(_0x417455(0x11c))/0x8*(-parseInt(_0x417455(0x142))/0x9)+parseInt(_0x417455(0xf2))/0xa+-parseInt(_0x417455(0x145))/0xb*(-parseInt(_0x417455(0x106))/0xc);if(_0x79f7ce===_0x259c3d)break;else _0x451b44['push'](_0x451b44['shift']());}catch(_0x3ce107){_0x451b44['push'](_0x451b44['shift']());}}}(a10_0x1b86,0x1baf3));Object['defineProperty'](exports,a10_0xf25d5a(0x101),{'value':!![]});const fs=require('fs'),helper_1=require(a10_0xf25d5a(0xe4));function a10_0x532a(_0x349a1f,_0x445d15){const _0x1b8657=a10_0x1b86();return a10_0x532a=function(_0x532a1c,_0x20ee61){_0x532a1c=_0x532a1c-0xdf;let _0x3e4de1=_0x1b8657[_0x532a1c];return _0x3e4de1;},a10_0x532a(_0x349a1f,_0x445d15);}async function default_1({controllers:_0x58bf23,tablestartUp:_0x2f8794,tablestartUpShort:_0x39acf3,basedir:_0xa8d735,Primary:_0x47a1f3,Fields:_0x108d41,Comment:_0x251c13,moduleName:_0x5b5d92}){const _0x11436e=a10_0xf25d5a,_0xa66c28=_0xa8d735+(_0x11436e(0xe5)+_0x39acf3);!fs[_0x11436e(0xf5)](_0xa66c28)&&fs[_0x11436e(0x120)](_0xa66c28,{'recursive':!![]}),await DTOCreate({'controllers':_0x58bf23,'tablestartUp':_0x2f8794,'tablestartUpShort':_0x39acf3,'basedir':_0xa8d735,'Fields':_0x108d41,'Comment':_0x251c13,'moduleName':_0x5b5d92}),await DTOUpdate({'controllers':_0x58bf23,'tablestartUp':_0x2f8794,'tablestartUpShort':_0x39acf3,'basedir':_0xa8d735,'Fields':_0x108d41,'Comment':_0x251c13,'moduleName':_0x5b5d92}),await DTOSearch({'controllers':_0x58bf23,'tablestartUp':_0x2f8794,'tablestartUpShort':_0x39acf3,'basedir':_0xa8d735,'Fields':_0x108d41,'Primary':_0x47a1f3,'Comment':_0x251c13,'moduleName':_0x5b5d92});}exports[a10_0xf25d5a(0x119)]=default_1;async function DTOCreate({controllers:_0x47bbaf,tablestartUp:_0xef1894,tablestartUpShort:_0x4dce9a,basedir:_0x247350,Fields:_0x5c1c20,Comment:_0x2cc75d,moduleName:_0x2f7435}){const _0x3e6ed1=a10_0xf25d5a,_0x4435d6=_0x247350+('/validators/'+_0x4dce9a+_0x3e6ed1(0x13b));if(!fs['existsSync'](_0x4435d6)){let _0x155516='',_0x5aa3dd='',_0x7fe1b2=![];for(let _0x1e5180 in _0x5c1c20){let _0x34eeb9=_0x5c1c20[_0x1e5180],_0xd031eb=(0x0,helper_1['getProp'])(_0x34eeb9[_0x3e6ed1(0x125)]);if(_0x34eeb9[_0x3e6ed1(0xea)]==_0x3e6ed1(0xec)||_0x34eeb9[_0x3e6ed1(0xea)]==_0x3e6ed1(0x132)||_0x34eeb9[_0x3e6ed1(0xea)]==_0x3e6ed1(0x13a)||_0x34eeb9['Field']=='deleted_at')continue;if([_0x3e6ed1(0x10c),_0x3e6ed1(0x12b),_0x3e6ed1(0x12d)]['indexOf'](_0xd031eb)!=-0x1)_0x155516+=_0x3e6ed1(0xe0)+_0x34eeb9[_0x3e6ed1(0x153)]+'\x27,\x20RuleType.string())\x0a',_0x155516+=_0x3e6ed1(0x123)+_0x34eeb9[_0x3e6ed1(0xea)]+_0x3e6ed1(0x11f);else{if([_0x3e6ed1(0x121),_0x3e6ed1(0x112),_0x3e6ed1(0xe2),_0x3e6ed1(0x149)][_0x3e6ed1(0x128)](_0xd031eb)!=-0x1)_0x155516+='\x20\x20\x20\x20@Rule(\x27'+_0x34eeb9[_0x3e6ed1(0x153)]+_0x3e6ed1(0xf6)+(_0x34eeb9['Null']!='YES'?_0x3e6ed1(0xe1):'')+')\x0a',_0x155516+=_0x3e6ed1(0x123)+_0x34eeb9['Field']+(_0x34eeb9['Null']!=_0x3e6ed1(0x134)?'?':'')+_0x3e6ed1(0x11a);else{if(['tinyint']['indexOf'](_0xd031eb)!=-0x1)_0x7fe1b2=!![],_0x155516+=_0x3e6ed1(0xe0)+_0x34eeb9[_0x3e6ed1(0x153)]+_0x3e6ed1(0x129)+_0xef1894+_0x3e6ed1(0x14f)+_0x34eeb9[_0x3e6ed1(0xea)]+_0x3e6ed1(0xeb)+(_0x34eeb9[_0x3e6ed1(0x11d)]!=_0x3e6ed1(0x134)?_0x3e6ed1(0xe1):'')+')\x0a',_0x155516+=_0x3e6ed1(0x123)+_0x34eeb9[_0x3e6ed1(0xea)]+(_0x34eeb9[_0x3e6ed1(0x11d)]!=_0x3e6ed1(0x134)?'?':'')+':\x20number;\x0a\x0a';else{if(_0xd031eb==_0x3e6ed1(0x113))_0x155516+=_0x3e6ed1(0xe0)+_0x34eeb9['Comment']+_0x3e6ed1(0x139),_0x155516+=_0x3e6ed1(0x123)+_0x34eeb9[_0x3e6ed1(0xea)]+(_0x34eeb9['Null']!=_0x3e6ed1(0x134)?'?':'')+_0x3e6ed1(0x137);else{if(_0xd031eb=='enum'){let _0x44bba6=(0x0,helper_1['getEnum'])(_0x34eeb9[_0x3e6ed1(0x125)]);_0x155516+=_0x3e6ed1(0xe0)+_0x34eeb9[_0x3e6ed1(0x153)]+_0x3e6ed1(0x107)+_0x44bba6[_0x3e6ed1(0x105)](_0x3e6ed1(0x109))+'\x27)'+(_0x34eeb9[_0x3e6ed1(0x11d)]!=_0x3e6ed1(0x134)?_0x3e6ed1(0xe1):'')+')\x0a',_0x155516+=_0x3e6ed1(0x123)+_0x34eeb9[_0x3e6ed1(0xea)]+(_0x34eeb9['Null']!='YES'?'?':'')+_0x3e6ed1(0x14b)+_0x44bba6[_0x3e6ed1(0x105)](_0x3e6ed1(0xf8))+_0x3e6ed1(0x152);}else[_0x3e6ed1(0x12c),'datetime',_0x3e6ed1(0xe9)][_0x3e6ed1(0x128)](_0xd031eb)>-0x1?(_0x155516+='\x20\x20\x20\x20@Rule(\x27'+_0x34eeb9[_0x3e6ed1(0x153)]+_0x3e6ed1(0x108)+(_0x34eeb9['Null']!=_0x3e6ed1(0x134)?_0x3e6ed1(0xe1):'')+')\x0a',_0x155516+=_0x3e6ed1(0x123)+_0x34eeb9[_0x3e6ed1(0xea)]+(_0x34eeb9[_0x3e6ed1(0x11d)]!=_0x3e6ed1(0x134)?'?':'')+_0x3e6ed1(0xed)):(_0x155516+='\x20\x20\x20\x20@Rule(\x27'+_0x34eeb9[_0x3e6ed1(0x153)]+_0x3e6ed1(0xfa)+(_0x34eeb9[_0x3e6ed1(0x11d)]!=_0x3e6ed1(0x134)?_0x3e6ed1(0xe1):'')+')\x0a',_0x155516+=_0x3e6ed1(0x123)+_0x34eeb9['Field']+(_0x34eeb9[_0x3e6ed1(0x11d)]!=_0x3e6ed1(0x134)?'?':'')+_0x3e6ed1(0xed));}}}}}_0x155516+=_0x3e6ed1(0xf0),_0x155516+=_0x3e6ed1(0x14c);(_0x47bbaf===null||_0x47bbaf===void 0x0?void 0x0:_0x47bbaf[_0x3e6ed1(0x12f)](_0x21235c=>typeof _0x21235c!=_0x3e6ed1(0xf3)))?_0x5aa3dd+=_0x3e6ed1(0xf9):_0x5aa3dd+=_0x3e6ed1(0x111);_0x7fe1b2&&(_0x5aa3dd+='import\x20{\x20'+_0xef1894+_0x3e6ed1(0x13d)+(typeof _0x2f7435==_0x3e6ed1(0x14d)?'@/apps/'+_0x2f7435:_0x3e6ed1(0x10d))+_0x3e6ed1(0x130)+_0x4dce9a+_0x3e6ed1(0xff));_0x5aa3dd+='\x0a',_0x5aa3dd+='/**\x0a',_0x5aa3dd+=_0x3e6ed1(0x102)+_0x2cc75d+'\x0a',_0x5aa3dd+=_0x3e6ed1(0x143),_0x5aa3dd+='\x20*\x20**/\x0a',_0x5aa3dd+=_0x3e6ed1(0x11b)+_0xef1894+_0x3e6ed1(0x144),_0x5aa3dd+='%DtoColumn%',_0x5aa3dd+=_0x3e6ed1(0xdf);for(const _0x2eecfd of _0x47bbaf){typeof _0x2eecfd==_0x3e6ed1(0x14d)&&(_0x5aa3dd+=_0x3e6ed1(0x11b)+_0x2eecfd[_0x3e6ed1(0x110)](0x0,0x1)['toUpperCase']()+_0x2eecfd['substring'](0x1)[_0x3e6ed1(0x14e)]()+_0xef1894+_0x3e6ed1(0x10f)+_0xef1894+'DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x5aa3dd+='}\x0a\x0a');}_0x5aa3dd=_0x5aa3dd[_0x3e6ed1(0x115)](_0x3e6ed1(0x141),_0x155516),fs[_0x3e6ed1(0x135)](_0x4435d6,_0x5aa3dd,'utf-8');}}async function DTOUpdate({controllers:_0x39c7de,tablestartUp:_0x4e3505,tablestartUpShort:_0x3211d6,basedir:_0x688261,Fields:_0x59ec18,Comment:_0xb53b34,moduleName:_0x51d1c3}){const _0x50003f=a10_0xf25d5a,_0x39f81b=_0x688261+(_0x50003f(0xe5)+_0x3211d6+_0x50003f(0x12e));if(!fs['existsSync'](_0x39f81b)){let _0x31af66='',_0x4d55bd='',_0x41569b=![];for(let _0x502dd7 in _0x59ec18){let _0xf9b281=_0x59ec18[_0x502dd7],_0x589dca=(0x0,helper_1['getProp'])(_0xf9b281['Type']);if(_0xf9b281[_0x50003f(0xea)]==_0x50003f(0xec)||_0xf9b281[_0x50003f(0xea)]=='created_at'||_0xf9b281[_0x50003f(0xea)]=='updated_at'||_0xf9b281[_0x50003f(0xea)]=='deleted_at')continue;if(['text',_0x50003f(0x12b),_0x50003f(0x12d)][_0x50003f(0x128)](_0x589dca)!=-0x1)_0x31af66+=_0x50003f(0xe0)+_0xf9b281[_0x50003f(0x153)]+_0x50003f(0x10b),_0x31af66+=_0x50003f(0x123)+_0xf9b281[_0x50003f(0xea)]+_0x50003f(0x11f);else{if(['float',_0x50003f(0x112),_0x50003f(0xe2),_0x50003f(0x149)][_0x50003f(0x128)](_0x589dca)!=-0x1)_0x31af66+=_0x50003f(0xe0)+_0xf9b281[_0x50003f(0x153)]+_0x50003f(0xee),_0x31af66+=_0x50003f(0x123)+_0xf9b281['Field']+_0x50003f(0x150);else{if(['tinyint'][_0x50003f(0x128)](_0x589dca)!=-0x1)_0x41569b=!![],_0x31af66+=_0x50003f(0xe0)+_0xf9b281[_0x50003f(0x153)]+_0x50003f(0x129)+_0x4e3505+_0x50003f(0x14f)+_0xf9b281[_0x50003f(0xea)]+'\x27)))\x0a',_0x31af66+='\x20\x20\x20\x20'+_0xf9b281[_0x50003f(0xea)]+_0x50003f(0x150);else{if(_0x589dca=='json')_0x31af66+=_0x50003f(0xe0)+_0xf9b281[_0x50003f(0x153)]+_0x50003f(0x139),_0x31af66+=_0x50003f(0x123)+_0xf9b281[_0x50003f(0xea)]+_0x50003f(0xf4);else{if(_0x589dca==_0x50003f(0x151)){let _0x46927e=(0x0,helper_1[_0x50003f(0xfc)])(_0xf9b281['Type']);_0x31af66+='\x20\x20\x20\x20@Rule(\x27'+_0xf9b281[_0x50003f(0x153)]+_0x50003f(0x107)+_0x46927e[_0x50003f(0x105)](_0x50003f(0x109))+_0x50003f(0x154),_0x31af66+=_0x50003f(0x123)+_0xf9b281['Field']+'?:\x20\x27'+_0x46927e['join']('\x27\x20|\x20\x27')+_0x50003f(0x152);}else[_0x50003f(0x12c),_0x50003f(0xef),_0x50003f(0xe9)][_0x50003f(0x128)](_0x589dca)>-0x1?(_0x31af66+='\x20\x20\x20\x20@Rule(\x27'+_0xf9b281[_0x50003f(0x153)]+_0x50003f(0x11e),_0x31af66+='\x20\x20\x20\x20'+_0xf9b281['Field']+_0x50003f(0x11f)):(_0x31af66+='\x20\x20\x20\x20@Rule(\x27'+_0xf9b281[_0x50003f(0x153)]+_0x50003f(0x10b),_0x31af66+=_0x50003f(0x123)+_0xf9b281[_0x50003f(0xea)]+_0x50003f(0x11f));}}}}}_0x31af66+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0x31af66+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a';(_0x39c7de===null||_0x39c7de===void 0x0?void 0x0:_0x39c7de[_0x50003f(0x12f)](_0x139179=>typeof _0x139179!=_0x50003f(0xf3)))?_0x4d55bd+='import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a':_0x4d55bd+=_0x50003f(0x111);_0x41569b&&(_0x4d55bd+=_0x50003f(0x118)+_0x4e3505+_0x50003f(0x13d)+(typeof _0x51d1c3==_0x50003f(0x14d)?_0x50003f(0xf1)+_0x51d1c3:_0x50003f(0x10d))+_0x50003f(0x130)+_0x3211d6+_0x50003f(0xff));_0x4d55bd+='\x0a',_0x4d55bd+=_0x50003f(0x116),_0x4d55bd+=_0x50003f(0x102)+_0xb53b34+'\x0a',_0x4d55bd+=_0x50003f(0x13c),_0x4d55bd+='\x20*\x20**/\x0a',_0x4d55bd+=_0x50003f(0x11b)+_0x4e3505+_0x50003f(0xfb),_0x4d55bd+=_0x50003f(0x141),_0x4d55bd+=_0x50003f(0xdf);for(const _0x32b42e of _0x39c7de){typeof _0x32b42e==_0x50003f(0x14d)&&(_0x4d55bd+='export\x20class\x20'+_0x32b42e[_0x50003f(0x110)](0x0,0x1)[_0x50003f(0x13f)]()+_0x32b42e[_0x50003f(0x110)](0x1)[_0x50003f(0x14e)]()+_0x4e3505+_0x50003f(0x13e)+_0x4e3505+_0x50003f(0x140),_0x4d55bd+=_0x50003f(0xdf));}_0x4d55bd=_0x4d55bd[_0x50003f(0x115)](_0x50003f(0x141),_0x31af66),fs['writeFileSync'](_0x39f81b,_0x4d55bd,_0x50003f(0x155));}}async function DTOSearch({controllers:_0x3e8886,tablestartUp:_0x40bbf7,tablestartUpShort:_0x50ff6b,basedir:_0x5b9044,Fields:_0x29e885,Primary:_0x1c62d7,Comment:_0x371f9e,moduleName:_0xb368f1}){const _0x252184=a10_0xf25d5a,_0x51e5e1=_0x5b9044+(_0x252184(0xe5)+_0x50ff6b+_0x252184(0x147));if(!fs[_0x252184(0xf5)](_0x51e5e1)){let _0x5f0eb1='',_0x1917d2='',_0x27e67a=![];for(let _0x4512ce of[{[_0x1c62d7[_0x252184(0xea)]]:_0x1c62d7},_0x29e885]){for(let _0x12055c in _0x4512ce){let _0x4547d6=_0x4512ce[_0x12055c],_0x1dc07e=(0x0,helper_1[_0x252184(0x117)])(_0x4547d6[_0x252184(0x125)]);if(_0x4547d6[_0x252184(0xea)]==_0x252184(0xec)||_0x4547d6[_0x252184(0xea)]=='created_at'||_0x4547d6[_0x252184(0xea)]=='updated_at'||_0x4547d6[_0x252184(0xea)]==_0x252184(0x14a))continue;if(['text',_0x252184(0x12b),'mediumtext'][_0x252184(0x128)](_0x1dc07e)!=-0x1){}else{if([_0x252184(0x121),'double',_0x252184(0xe2),_0x252184(0x149)]['indexOf'](_0x1dc07e)!=-0x1)_0x5f0eb1+=_0x252184(0xe0)+_0x4547d6[_0x252184(0x153)]+_0x252184(0xee),_0x5f0eb1+=_0x252184(0x123)+_0x4547d6[_0x252184(0xea)]+_0x252184(0x150);else{if([_0x252184(0x114)][_0x252184(0x128)](_0x1dc07e)!=-0x1)_0x27e67a=!![],_0x5f0eb1+=_0x252184(0xe0)+_0x4547d6[_0x252184(0x153)]+_0x252184(0x129)+_0x40bbf7+_0x252184(0x14f)+_0x4547d6['Field']+_0x252184(0x133),_0x5f0eb1+=_0x252184(0x123)+_0x4547d6[_0x252184(0xea)]+_0x252184(0x150);else{if(_0x1dc07e=='json'){}else{if(_0x1dc07e=='enum'){let _0x2666a5=(0x0,helper_1['getEnum'])(_0x4547d6[_0x252184(0x125)]);_0x5f0eb1+='\x20\x20\x20\x20@Rule(\x27'+_0x4547d6[_0x252184(0x153)]+_0x252184(0x107)+_0x2666a5[_0x252184(0x105)](_0x252184(0x109))+_0x252184(0x154),_0x5f0eb1+=_0x252184(0x123)+_0x4547d6[_0x252184(0xea)]+_0x252184(0x138)+_0x2666a5[_0x252184(0x105)]('\x27\x20|\x20\x27')+'\x27;\x0a\x0a';}else[_0x252184(0x12c),_0x252184(0xef),'timestamp']['indexOf'](_0x1dc07e)>-0x1?(_0x5f0eb1+=_0x252184(0xe0)+_0x4547d6['Comment']+'\x27,\x20RuleType.string())\x0a',_0x5f0eb1+=_0x252184(0x123)+_0x4547d6[_0x252184(0xea)]+'?:\x20string;\x0a\x0a',_0x5f0eb1+=_0x252184(0xe0)+_0x4547d6[_0x252184(0x153)]+_0x252184(0x104),_0x5f0eb1+=_0x252184(0x123)+_0x4547d6[_0x252184(0xea)]+_0x252184(0x124),_0x5f0eb1+=_0x252184(0xe0)+_0x4547d6[_0x252184(0x153)]+_0x252184(0x10e),_0x5f0eb1+='\x20\x20\x20\x20'+_0x4547d6['Field']+_0x252184(0x103)):(_0x5f0eb1+=_0x252184(0xe0)+_0x4547d6[_0x252184(0x153)]+_0x252184(0x10b),_0x5f0eb1+='\x20\x20\x20\x20'+_0x4547d6['Field']+_0x252184(0x11f));}}}}}}_0x5f0eb1+=_0x252184(0xf0),_0x5f0eb1+=_0x252184(0x14c),_0x5f0eb1+=_0x252184(0xe6),_0x5f0eb1+='\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a',_0x5f0eb1+='\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x5f0eb1+=_0x252184(0x146),_0x5f0eb1+=_0x252184(0x131),_0x5f0eb1+=_0x252184(0xe3),_0x5f0eb1+=_0x252184(0x126),_0x5f0eb1+='\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a';(_0x3e8886===null||_0x3e8886===void 0x0?void 0x0:_0x3e8886[_0x252184(0x12f)](_0x2591b5=>typeof _0x2591b5!=_0x252184(0xf3)))?_0x1917d2+=_0x252184(0xf9):_0x1917d2+=_0x252184(0x111);_0x27e67a&&(_0x1917d2+=_0x252184(0x118)+_0x40bbf7+'Enum\x20}\x20from\x20\x27'+(typeof _0xb368f1==_0x252184(0x14d)?_0x252184(0xf1)+_0xb368f1:_0x252184(0x10d))+_0x252184(0x130)+_0x50ff6b+_0x252184(0xff));_0x1917d2+='\x0a',_0x1917d2+=_0x252184(0x116),_0x1917d2+=_0x252184(0x102)+_0x371f9e+'\x0a',_0x1917d2+=_0x252184(0x100),_0x1917d2+='\x20*\x20**/\x0a',_0x1917d2+=_0x252184(0x11b)+_0x40bbf7+_0x252184(0x12a),_0x1917d2+='%SearchDtoColumn%',_0x1917d2+='}\x0a\x0a';for(const _0x16579c of _0x3e8886){typeof _0x16579c==_0x252184(0x14d)&&(_0x1917d2+=_0x252184(0x11b)+_0x16579c[_0x252184(0x110)](0x0,0x1)[_0x252184(0x13f)]()+_0x16579c[_0x252184(0x110)](0x1)['toLowerCase']()+_0x40bbf7+_0x252184(0x148)+_0x40bbf7+_0x252184(0x127),_0x1917d2+=_0x252184(0xdf));}_0x1917d2=_0x1917d2[_0x252184(0x115)](_0x252184(0xe7),_0x5f0eb1),fs[_0x252184(0x135)](_0x51e5e1,_0x1917d2,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x4fce06=a11_0x59cf;function a11_0x59cf(_0x381a8b,_0x2bd354){const _0x4d35ea=a11_0x4d35();return a11_0x59cf=function(_0x59cf34,_0x136744){_0x59cf34=_0x59cf34-0xba;let _0x9744d4=_0x4d35ea[_0x59cf34];return _0x9744d4;},a11_0x59cf(_0x381a8b,_0x2bd354);}(function(_0x5a094d,_0xed0905){const _0x56a1e7=a11_0x59cf,_0x1ebe14=_0x5a094d();while(!![]){try{const _0xba24da=-parseInt(_0x56a1e7(0xe9))/0x1*(-parseInt(_0x56a1e7(0xcb))/0x2)+parseInt(_0x56a1e7(0xcc))/0x3+parseInt(_0x56a1e7(0xf4))/0x4+parseInt(_0x56a1e7(0xbc))/0x5*(parseInt(_0x56a1e7(0xd6))/0x6)+parseInt(_0x56a1e7(0xc7))/0x7*(parseInt(_0x56a1e7(0xc5))/0x8)+-parseInt(_0x56a1e7(0xc6))/0x9+-parseInt(_0x56a1e7(0xef))/0xa;if(_0xba24da===_0xed0905)break;else _0x1ebe14['push'](_0x1ebe14['shift']());}catch(_0xb3d2c6){_0x1ebe14['push'](_0x1ebe14['shift']());}}}(a11_0x4d35,0x420af));Object['defineProperty'](exports,a11_0x4fce06(0xfa),{'value':!![]});const fs=require('fs'),path_1=require(a11_0x4fce06(0xd5));function a11_0x4d35(){const _0x43a9e1=['\x20\x20\x20\x20data()\x20{\x0a','\x20\x20\x20\x20}\x0a','padEnd','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label>Admin<i\x20class=\x22el-icon-arrow-down\x20el-icon--right\x22\x20/></label>\x0a',',\x20path:\x20\x22','__esModule','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-dropdown-menu>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20confirmButtonClass:\x20\x22el-button--danger\x22,\x0a','10JcPSoN','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.log(\x22点击退出\x22)\x0a','mkdirSync','\x20\x20\x20\x20</page-layout>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-dropdown-item\x20command=\x22outLogin\x22>退出登录</el-dropdown-item>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-avatar\x20:size=\x2230\x22>A</el-avatar>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]},\x0a','\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a','writeFileSync','136BvqHxz','290835QJogPh','178122MxzDHJ','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','\x20\x20\x20\x20.user\x20{display:\x20flex;align-items:\x20center;height:100%}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-dropdown-menu>\x0a','166OespTR','1331028MZzTgK','/pages/layout.vue','dirname','cwd','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20methods:\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20handleCommand(command)\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#userbar>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$confirm(\x22确认是否退出当前用户?\x22,\x22提示\x22,\x20{\x0a','path','302490nMYPPI','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22user\x22>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20menus:\x20[\x0a','<style\x20scoped>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{title:\x20\x22首页\x22\x20,children:[\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).then(()\x20=>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a','/vue','{title:\x20\x22','string','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20type:\x20\x22warning\x22,\x0a','<script>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here\x0a','utf-8','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#dropdown>\x0a','//\x20add\x20menu\x20here','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-dropdown>\x0a','</script>\x0a\x0a','default','5622pGdPLd','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-dropdown\x20trigger=\x22click\x22\x20@command=\x22handleCommand\x22\x20style=\x22height:\x20100%;\x22>\x0a','<template>\x0a','export\x20default\x20{\x0a','readFileSync','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','16771470wdWIsI','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(command\x20==\x20\x22outLogin\x22){\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20confirmButtonText:\x20\x22退出\x22,\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\x0a','</style>\x0a','2145036aASKiD'];a11_0x4d35=function(){return _0x43a9e1;};return a11_0x4d35();}async function default_1({tablestartUpShort:_0x4450fa,controller:_0x191953,moduleName:_0x33bc72,Comment:_0x1565d3}){const _0x22af55=a11_0x4fce06;let _0x4de899=process[_0x22af55(0xcf)]()+_0x22af55(0xdd)+(typeof _0x191953=='string'?'/'+_0x191953:'');_0x33bc72?_0x4de899=_0x4de899+('/module/'+_0x33bc72+'/layout.vue'):_0x4de899=_0x4de899+_0x22af55(0xcd);await createLayout(_0x4de899);const _0x288407=fs[_0x22af55(0xed)](_0x4de899,_0x22af55(0xe3));fs[_0x22af55(0xc4)](_0x4de899,_0x288407['replace'](_0x22af55(0xe5),_0x22af55(0xde)+(_0x1565d3+'\x22')['padEnd'](0x14)+_0x22af55(0xf9)+(''+(typeof _0x33bc72==_0x22af55(0xdf)?'/'+_0x33bc72+'/':'/')+_0x4450fa+'\x22')[_0x22af55(0xf7)](0x14)+'},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here'));}exports[a11_0x4fce06(0xe8)]=default_1;async function createLayout(_0x49ff5a){const _0x3cbc43=a11_0x4fce06;if(!fs['existsSync'](_0x49ff5a)){let _0x373bc4=_0x3cbc43(0xeb);_0x373bc4+='\x20\x20\x20\x20<page-layout\x20:menus=\x22menus\x22>\x0a',_0x373bc4+=_0x3cbc43(0xd3),_0x373bc4+=_0x3cbc43(0xea),_0x373bc4+=_0x3cbc43(0xd7),_0x373bc4+=_0x3cbc43(0xc1),_0x373bc4+=_0x3cbc43(0xf8),_0x373bc4+=_0x3cbc43(0xba),_0x373bc4+=_0x3cbc43(0xe4),_0x373bc4+=_0x3cbc43(0xca),_0x373bc4+=_0x3cbc43(0xc0),_0x373bc4+=_0x3cbc43(0xfb),_0x373bc4+=_0x3cbc43(0xdc),_0x373bc4+=_0x3cbc43(0xe6),_0x373bc4+=_0x3cbc43(0xc3),_0x373bc4+=_0x3cbc43(0xbf),_0x373bc4+='</template>\x0a\x0a',_0x373bc4+=_0x3cbc43(0xe1),_0x373bc4+=_0x3cbc43(0xec),_0x373bc4+=_0x3cbc43(0xf5),_0x373bc4+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a',_0x373bc4+=_0x3cbc43(0xd8),_0x373bc4+=_0x3cbc43(0xda),_0x373bc4+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{title:\x20\x22控制台\x22\x20,\x20path:\x20\x22/\x22,affix:true},\x0a',_0x373bc4+=_0x3cbc43(0xe2),_0x373bc4+=_0x3cbc43(0xc2),_0x373bc4+=_0x3cbc43(0xf2),_0x373bc4+=_0x3cbc43(0xd0),_0x373bc4+='\x20\x20\x20\x20},\x0a',_0x373bc4+=_0x3cbc43(0xd1),_0x373bc4+=_0x3cbc43(0xd2),_0x373bc4+=_0x3cbc43(0xf0),_0x373bc4+=_0x3cbc43(0xd4),_0x373bc4+=_0x3cbc43(0xe0),_0x373bc4+=_0x3cbc43(0xf1),_0x373bc4+=_0x3cbc43(0xbb),_0x373bc4+=_0x3cbc43(0xdb),_0x373bc4+=_0x3cbc43(0xbd),_0x373bc4+=_0x3cbc43(0xc8),_0x373bc4+=_0x3cbc43(0xee),_0x373bc4+=_0x3cbc43(0xd0),_0x373bc4+=_0x3cbc43(0xf6),_0x373bc4+='}\x0a',_0x373bc4+=_0x3cbc43(0xe7),_0x373bc4+=_0x3cbc43(0xd9),_0x373bc4+=_0x3cbc43(0xc9),_0x373bc4+=_0x3cbc43(0xf3),fs[_0x3cbc43(0xbe)]((0x0,path_1[_0x3cbc43(0xce)])(_0x49ff5a),{'recursive':!![]}),fs['writeFileSync'](_0x49ff5a,_0x373bc4,_0x3cbc43(0xe3));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a12_0x2d1adf=a12_0x506d;(function(_0x23f151,_0x31dbbd){const _0x9cf13a=a12_0x506d,_0x56ff26=_0x23f151();while(!![]){try{const _0x310803=parseInt(_0x9cf13a(0x134))/0x1+parseInt(_0x9cf13a(0x100))/0x2+-parseInt(_0x9cf13a(0x104))/0x3+parseInt(_0x9cf13a(0x138))/0x4+parseInt(_0x9cf13a(0x13e))/0x5+-parseInt(_0x9cf13a(0x13b))/0x6+-parseInt(_0x9cf13a(0x102))/0x7;if(_0x310803===_0x31dbbd)break;else _0x56ff26['push'](_0x56ff26['shift']());}catch(_0x2330fb){_0x56ff26['push'](_0x56ff26['shift']());}}}(a12_0x1f41,0xb09c8));Object[a12_0x2d1adf(0x129)](exports,a12_0x2d1adf(0x125),{'value':!![]});function a12_0x1f41(){const _0x13bdab=['\x22\x20:limit=\x225\x22\x20/>','\x0a</template>\x0a<script>\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20props:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20search:\x20{type:\x20Object\x20,default:\x20()=>{return\x20{}}},\x0a\x20\x20\x20\x20}\x0a}\x0a</script>','<el-date-picker\x20v-model=\x22search.','substr','\x22\x20\x20placeholder=\x22请输入','\x22\x20type=\x22textarea\x22/>','<page-editor\x20v-model=\x22formdata.','<el-table-column\x20prop=','string','thumb','padEnd','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','text','existsSync','path','\x22\x20placeholder=\x22请输入','_id','<el-select-search\x20v-model=\x22formdata.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-form>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-tab-pane>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</el-tabs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20type=\x22primary\x22\x20@click=\x22ActionSave(formdata)\x22>保存</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20</page-dialog>\x0a</template>\x0a<script>\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20data(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formdata:{},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20methods:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20open(','<el-select-search\x20v-model=\x22search.','\x22\x20value=\x22','`\x22\x20type=\x22primary\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20添加\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','<el-select-tags\x20v-model=\x22formdata.','Comment','\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20/>','dirname','<template>\x0a\x20\x20\x20\x20<page\x20:loading=\x22loading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<page-table\x20:datas=\x22table.data\x22\x20:pageinfo=\x22table.search\x22\x20@transform=\x22LoadDatas\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#search>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<search\x20v-model:search=\x22table.search\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20@click=\x22$refs[\x27page-store\x27].open()\x22\x20v-permission=\x22`post@','writeFileSync','indexOf','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20align=\x27center\x27\x20show-overflow-tooltip\x20/>','tags','enum','<el-select\x20v-model=\x22formdata.','\x22\x20placeholder=\x22请选择','deleted_at','endsWith','/pages/','datetime','Field','\x22\x20/>','\x22\x20split=\x22-\x22\x20/>','`\x22\x20type=\x22text\x22\x20size=\x22small\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20编辑\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20@click=\x22ActionDel(scope.row)\x22\x20v-permission=\x22`delete@','/vue','date','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x27,item).then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$emit(\x22save\x22),this.$notify({message:\x20res?.message\x20||\x20\x27操作成功\x27})\x20,\x20this.$refs[\x27page-dialog\x27].close();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a}\x0a</script>','_start\x22\x20placeholder=\x22选择','mkdirSync','Type','utf-8','longtext','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','<el-select\x20v-model=\x22search.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','img','</a>','\x22\x20class=\x22block\x22>','\x27,this.table.search).then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.table.data\x20=\x20res.data\x20,\x20this.table.search._count\x20=\x20res.extra.pagetotal\x20,\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27}),this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20删除\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要删除的数据\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20ActionDel(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20item.id\x20){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$confirm(\x27此操作将永久删除,\x20是否继续?\x27,\x20\x27提示\x27,\x20{confirmButtonText:\x20\x27确定\x27,cancelButtonText:\x20\x27取消\x27,type:\x20\x27warning\x27}).then(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$del(\x27','<el-option\x20label=\x22','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','510574VwgSut','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22排序\x22\x20align=\x27center\x27\x20prop=\x22displayorder\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22操作\x22\x20align=\x22center\x22\x20fixed=\x22right\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#default=\x22scope\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20@click=\x22$refs[\x27page-store\x27].open(scope.row.','1758491UQzXaI','<el-input-number\x20v-model=\x22formdata.','2093382RDEwjg','<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20/>','displayorder','<template\x20#default=\x22scope\x22>','</el-table-column>','/index.vue','\x20label=\x22','timestamp','\x22\x20api=\x22','<template\x20#reference>','){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$get(\x27','</el-form-item>','created_at','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','`\x22\x20type=\x22text\x22\x20size=\x22small\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20删除\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-table-column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</page-table>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<store\x20ref=\x22page-store\x22\x20@save=\x22LoadDatas\x22/>\x0a\x20\x20\x20\x20</page>\x0a</template>\x0a<script>\x0aimport\x20store\x20from\x20\x22./components/store.vue\x22\x0aimport\x20search\x20from\x20\x22./components/search.vue\x22\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20components:\x20{store,search},\x0a\x20\x20\x20\x20data(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20table:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20data:[],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_page:1,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_size:20,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_count:0,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20mounted()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20Object.assign(this.table.search,this.$route.params,this.$route.query),this.LoadDatas();\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20methods:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20获取数据列表\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20page\x20分页-当前页\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20size\x20分页-每页数量\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20LoadDatas(page,size){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page\x20&&\x20(this.table.search._page\x20=\x20page),size\x20&&\x20(this.table.search._size\x20=\x20size),this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$get(\x27','/\x27+','\x22\x20align=\x27center\x27\x20show-overflow-tooltip>','结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','/components/store.vue','<el-input\x20v-model=\x22search.','number','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.formdata\x20=\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$refs[\x27page-dialog\x27].open()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(',').then(res=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.LoadDatas()\x20,\x20this.$notify({message:\x20res?.message\x20||\x20\x27操作成功\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$notify.error({message:err||\x27删除失败\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(()=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a}\x0a</script>','</template>','<el-form-item\x20label=\x22','getProp','\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20placeholder=\x22请输入或选择','mediumtext','updated_at',')\x22\x20style=\x22width:\x2040px;\x20cursor:pointer\x22\x20/>','__esModule','<el-date-picker\x20v-model=\x22formdata.','<template>\x0a\x20\x20\x20\x20','../helper','defineProperty','<el-input\x20v-model=\x22formdata.','</el-select>',')\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','_end\x22\x20placeholder=\x22选择','/components/search.vue','\x22\x20placeholder=\x22选择','num','getEnum',').then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.formdata\x20=\x20res.data,\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27}),this.$refs[\x27page-dialog\x27].close();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20保存\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要保存的数据\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20ActionSave(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$save(\x27','/module/','661482zKebhW','<img\x20:src=\x22$img(scope.row.','logo','\x22\x20:min=\x221\x22\x20:max=\x22100\x22\x20/>','2934896CRMVKG','\x20\x20\x20\x20','<page-images\x20v-model=\x22formdata.','1100976CpmLgt','<template>\x0a\x20\x20\x20\x20<page-dialog\x20ref=\x22page-dialog\x22\x20:loading=\x22loading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<el-tabs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-tab-pane\x20label=\x22基本信息\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-form\x20ref=\x22form\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cwd','1027050dvRlUe'];a12_0x1f41=function(){return _0x13bdab;};return a12_0x1f41();}const fs=require('fs'),path_1=require(a12_0x2d1adf(0xd1)),helper_1=require(a12_0x2d1adf(0x128));function a12_0x506d(_0x8c44ab,_0x3536d2){const _0x1f41bc=a12_0x1f41();return a12_0x506d=function(_0x506d78,_0x1df4f3){_0x506d78=_0x506d78-0xca;let _0x4d886b=_0x1f41bc[_0x506d78];return _0x4d886b;},a12_0x506d(_0x8c44ab,_0x3536d2);}async function default_1({moduleName:_0x167106,controller:_0x8eb72a,tablestartUpShort:_0x58101d,tablestartUpShort2:_0x52b2cd,Primary:_0x2aad90,Fields:_0x3c062d}){await createIndex({'moduleName':_0x167106,'controller':_0x8eb72a,'tablestartUpShort':_0x58101d,'tablestartUpShort2':_0x52b2cd,'Primary':_0x2aad90,'Fields':_0x3c062d}),await createStore({'moduleName':_0x167106,'controller':_0x8eb72a,'tablestartUpShort':_0x58101d,'tablestartUpShort2':_0x52b2cd,'Primary':_0x2aad90,'Fields':_0x3c062d}),await createSearch({'moduleName':_0x167106,'controller':_0x8eb72a,'tablestartUpShort':_0x58101d,'tablestartUpShort2':_0x52b2cd,'Primary':_0x2aad90,'Fields':_0x3c062d});}exports['default']=default_1;async function createIndex({moduleName:_0xc41487,controller:_0x110b23,tablestartUpShort:_0x3d4d33,tablestartUpShort2:_0xdb74c4,Primary:_0x39e0c4,Fields:_0x5220dc}){const _0x3ea13f=a12_0x2d1adf;let _0xaaf18c=process['cwd']()+_0x3ea13f(0xee)+(typeof _0x110b23=='string'?'/'+_0x110b23:'');_0xc41487?_0xaaf18c=_0xaaf18c+(_0x3ea13f(0x133)+_0xc41487+'/'+_0x3d4d33+_0x3ea13f(0x109)):_0xaaf18c=_0xaaf18c+(_0x3ea13f(0xe8)+_0x3d4d33+_0x3ea13f(0x109));if(!fs[_0x3ea13f(0xd0)](_0xaaf18c)){let _0x48a20e=_0x3ea13f(0xca)+('\x22'+_0x39e0c4['Field']+'\x22')[_0x3ea13f(0xcd)](0x14)+(_0x3ea13f(0x10a)+(_0x39e0c4[_0x3ea13f(0xda)]||'编号')+'\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20\x20width=\x22120\x22\x20/>');for(let _0x574a62 in _0x5220dc){const _0x3eaaa5=_0x5220dc[_0x574a62];if([_0x3ea13f(0x110),'updated_at','deleted_at',_0x3ea13f(0x106)][_0x3ea13f(0xdf)](_0x574a62)!=-0x1)continue;if(_0x574a62[_0x3ea13f(0x142)](-0x3)==_0x3ea13f(0xfa)||_0x574a62[_0x3ea13f(0x142)](-0x5)==_0x3ea13f(0xcc)||_0x574a62=='thumb'||_0x574a62['substr'](-0x4)==_0x3ea13f(0x136)||_0x574a62=='logo')_0x48a20e+='\x0a'+_0x3ea13f(0x11a)+_0x3ea13f(0xca)+('\x22'+_0x574a62+'\x22')[_0x3ea13f(0xcd)](0x14)+(_0x3ea13f(0x10a)+(_0x3eaaa5[_0x3ea13f(0xda)]||_0x3eaaa5[_0x3ea13f(0xea)])+_0x3ea13f(0x115)),_0x48a20e+='\x0a'+_0x3ea13f(0xe0)+_0x3ea13f(0x107),_0x48a20e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>',_0x48a20e+='\x0a'+_0x3ea13f(0xf0)+('<a\x20:href=\x22$img(scope.row.'+_0x574a62+')\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>'),_0x48a20e+='\x0a'+_0x3ea13f(0xf7)+(_0x3ea13f(0x135)+_0x574a62+_0x3ea13f(0x12c)),_0x48a20e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ea13f(0xfb),_0x48a20e+='\x0a'+_0x3ea13f(0xf0)+_0x3ea13f(0x10d),_0x48a20e+='\x0a'+_0x3ea13f(0xf7)+(_0x3ea13f(0x135)+_0x574a62+_0x3ea13f(0x124)),_0x48a20e+='\x0a'+_0x3ea13f(0xf0)+_0x3ea13f(0x11d),_0x48a20e+='\x0a'+_0x3ea13f(0xce)+'</el-popover>',_0x48a20e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ea13f(0x11d),_0x48a20e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ea13f(0x108);else[_0x3ea13f(0xcf),_0x3ea13f(0xf6)][_0x3ea13f(0xdf)]((0x0,helper_1[_0x3ea13f(0x11f)])(_0x3eaaa5[_0x3ea13f(0xf4)]))==-0x1&&(_0x48a20e+='\x0a'+_0x3ea13f(0x11a)+_0x3ea13f(0xca)+('\x22'+_0x574a62+'\x22')[_0x3ea13f(0xcd)](0x14)+('\x20label=\x22'+(_0x3eaaa5[_0x3ea13f(0xda)]||_0x3eaaa5['Field'])+_0x3ea13f(0xe1)));}const _0x250a4d=''+(typeof _0x110b23=='string'?_0x110b23+'/':'')+(_0xc41487?_0xc41487+'/':'')+_0xdb74c4,_0x45cd98=''+(typeof _0x110b23==_0x3ea13f(0xcb)?_0x110b23+'/':'')+(_0xc41487?_0xc41487+'/':'')+_0xdb74c4+'/:'+_0x39e0c4['Field'],_0x5dabb4=''+(typeof _0x110b23=='string'?_0x110b23+'/':'')+(_0xc41487?_0xc41487+'/':'')+_0xdb74c4+'/:'+_0x39e0c4['Field'];fs[_0x3ea13f(0xf3)]((0x0,path_1[_0x3ea13f(0xdc)])(_0xaaf18c),{'recursive':!![]}),fs[_0x3ea13f(0xde)](_0xaaf18c,_0x3ea13f(0xdd)+_0x250a4d+_0x3ea13f(0xd8)+_0x48a20e+_0x3ea13f(0x101)+_0x39e0c4[_0x3ea13f(0xea)]+')\x22\x20\x20v-permission=\x22`put@'+_0x45cd98+_0x3ea13f(0xed)+_0x5dabb4+_0x3ea13f(0x113)+_0x250a4d+_0x3ea13f(0xfd)+(typeof _0x110b23==_0x3ea13f(0xcb)?_0x110b23+'/':'')+(_0xc41487?_0xc41487+'/':'')+_0xdb74c4+'/\x27+item.'+_0x39e0c4['Field']+_0x3ea13f(0x11c),_0x3ea13f(0xf5));}}async function createSearch({moduleName:_0x43cc8e,tablestartUpShort:_0x23f7e6,tablestartUpShort2:_0x5fdbe0,controller:_0x160b7d,Primary:_0x171b8d,Fields:_0x5b7218}){const _0x2942c9=a12_0x2d1adf;let _0x5bd86a=process[_0x2942c9(0x13d)]()+_0x2942c9(0xee)+(typeof _0x160b7d==_0x2942c9(0xcb)?'/'+_0x160b7d:'');_0x43cc8e?_0x5bd86a=_0x5bd86a+(_0x2942c9(0x133)+_0x43cc8e+'/'+_0x23f7e6+_0x2942c9(0x12e)):_0x5bd86a=_0x5bd86a+('/pages/'+_0x23f7e6+_0x2942c9(0x12e));if(!fs[_0x2942c9(0xd0)](_0x5bd86a)){let _0x308f68='';_0x308f68+='\x0a'+_0x2942c9(0x139)+(_0x2942c9(0x11e)+(_0x171b8d[_0x2942c9(0xda)]||'编号')+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+(_0x2942c9(0x118)+_0x171b8d[_0x2942c9(0xea)]+'\x22\x20placeholder=\x22请输入'+(_0x171b8d[_0x2942c9(0xda)]||'编号')+_0x2942c9(0xeb)),_0x308f68+='\x0a'+'\x20\x20\x20\x20'+_0x2942c9(0x10f);for(let _0x379697 in _0x5b7218){const _0x3e5514=_0x5b7218[_0x379697];if([_0x2942c9(0x123),_0x2942c9(0xe6),_0x2942c9(0x106)][_0x2942c9(0xdf)](_0x379697)!=-0x1)continue;if(_0x379697['substr'](-0x3)==_0x2942c9(0x130))_0x308f68+='\x0a'+_0x2942c9(0x139)+(_0x2942c9(0x11e)+(_0x3e5514[_0x2942c9(0xda)]||_0x3e5514['Field'])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+('<el-input-number\x20v-model=\x22search.'+_0x379697+_0x2942c9(0xd2)+_0x3e5514[_0x2942c9(0xda)]+_0x2942c9(0x137)),_0x308f68+='\x0a'+_0x2942c9(0x139)+_0x2942c9(0x10f)+'\x0a';else{if(_0x379697[_0x2942c9(0xe7)](_0x2942c9(0xd3))){let _0x54aa44=''+(typeof _0x160b7d==_0x2942c9(0xcb)?_0x160b7d+'/':'')+(_0x43cc8e?_0x43cc8e+'/':'')+_0x5fdbe0;_0x308f68+='\x0a'+_0x2942c9(0x120)+(_0x2942c9(0x11e)+(_0x3e5514['Comment']||_0x3e5514[_0x2942c9(0xea)])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0xf9)+(_0x2942c9(0xd6)+_0x379697+_0x2942c9(0x10c)+_0x54aa44+_0x2942c9(0xdb)),_0x308f68+='\x0a'+_0x2942c9(0x120)+_0x2942c9(0x10f)+'\x0a';}else switch((0x0,helper_1['getProp'])(_0x3e5514[_0x2942c9(0xf4)])){case _0x2942c9(0xe3):_0x308f68+='\x0a'+'\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x3e5514[_0x2942c9(0xda)]||_0x3e5514[_0x2942c9(0xea)])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+(_0x2942c9(0xf8)+_0x379697+_0x2942c9(0xe5)+_0x3e5514[_0x2942c9(0xda)]+'\x22>');for(let _0x4100b5 of(0x0,helper_1[_0x2942c9(0x131)])(_0x3e5514[_0x2942c9(0xf4)])){_0x308f68+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2942c9(0xfe)+_0x4100b5+_0x2942c9(0xd7)+_0x4100b5+'\x22\x20/>');}_0x308f68+='\x0a'+_0x2942c9(0x120)+_0x2942c9(0x12b),_0x308f68+='\x0a'+_0x2942c9(0x139)+'</el-form-item>'+'\x0a';break;case _0x2942c9(0xef):_0x308f68+='\x0a'+_0x2942c9(0x139)+(_0x2942c9(0x11e)+(_0x3e5514[_0x2942c9(0xda)]||_0x3e5514[_0x2942c9(0xea)])+'\x22>'),_0x308f68+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-date-picker\x20v-model=\x22search.'+_0x379697+_0x2942c9(0xf2)+_0x3e5514[_0x2942c9(0xda)]+'开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x308f68+='\x0a'+'\x20\x20\x20\x20'+_0x2942c9(0x10f)+'\x0a',_0x308f68+='\x0a'+_0x2942c9(0x139)+(_0x2942c9(0x11e)+(_0x3e5514[_0x2942c9(0xda)]||_0x3e5514['Field'])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+(_0x2942c9(0x141)+_0x379697+_0x2942c9(0x12d)+_0x3e5514[_0x2942c9(0xda)]+_0x2942c9(0x116)),_0x308f68+='\x0a'+_0x2942c9(0x139)+_0x2942c9(0x10f)+'\x0a';break;case'datetime':_0x308f68+='\x0a'+'\x20\x20\x20\x20'+(_0x2942c9(0x11e)+(_0x3e5514[_0x2942c9(0xda)]||_0x3e5514[_0x2942c9(0xea)])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+('<el-date-picker\x20v-model=\x22search.'+_0x379697+'_start\x22\x20placeholder=\x22选择'+_0x3e5514[_0x2942c9(0xda)]+_0x2942c9(0x112)),_0x308f68+='\x0a'+_0x2942c9(0x139)+_0x2942c9(0x10f)+'\x0a',_0x308f68+='\x0a'+_0x2942c9(0x139)+('<el-form-item\x20label=\x22'+(_0x3e5514[_0x2942c9(0xda)]||_0x3e5514[_0x2942c9(0xea)])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+(_0x2942c9(0x141)+_0x379697+_0x2942c9(0x12d)+_0x3e5514[_0x2942c9(0xda)]+_0x2942c9(0xff)),_0x308f68+='\x0a'+'\x20\x20\x20\x20'+_0x2942c9(0x10f)+'\x0a';break;case _0x2942c9(0x10b):_0x308f68+='\x0a'+_0x2942c9(0x139)+(_0x2942c9(0x11e)+(_0x3e5514[_0x2942c9(0xda)]||_0x3e5514[_0x2942c9(0xea)])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+(_0x2942c9(0x141)+_0x379697+_0x2942c9(0xf2)+_0x3e5514[_0x2942c9(0xda)]+'开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x308f68+='\x0a'+'\x20\x20\x20\x20'+'</el-form-item>'+'\x0a',_0x308f68+='\x0a'+_0x2942c9(0x139)+('<el-form-item\x20label=\x22'+(_0x3e5514['Comment']||_0x3e5514[_0x2942c9(0xea)])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+(_0x2942c9(0x141)+_0x379697+_0x2942c9(0x12d)+_0x3e5514[_0x2942c9(0xda)]+_0x2942c9(0xff)),_0x308f68+='\x0a'+'\x20\x20\x20\x20'+_0x2942c9(0x10f)+'\x0a';break;case _0x2942c9(0xcb):_0x308f68+='\x0a'+_0x2942c9(0x139)+(_0x2942c9(0x11e)+(_0x3e5514[_0x2942c9(0xda)]||_0x3e5514[_0x2942c9(0xea)])+'\x22>'),_0x308f68+='\x0a'+_0x2942c9(0x120)+(_0x2942c9(0x118)+_0x379697+'\x22\x20placeholder=\x22请输入'+_0x3e5514[_0x2942c9(0xda)]+_0x2942c9(0xeb)),_0x308f68+='\x0a'+'\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';}}}fs[_0x2942c9(0xf3)]((0x0,path_1[_0x2942c9(0xdc)])(_0x5bd86a),{'recursive':!![]}),fs[_0x2942c9(0xde)](_0x5bd86a,_0x2942c9(0x127)+_0x308f68+_0x2942c9(0x140),'utf-8');}}async function createStore({moduleName:_0xecf0b8,controller:_0x5877ff,tablestartUpShort:_0x5ef4cb,tablestartUpShort2:_0x43e256,Primary:_0x253103,Fields:_0x296273}){const _0x492834=a12_0x2d1adf;let _0x1223b7=process[_0x492834(0x13d)]()+'/vue'+(typeof _0x5877ff==_0x492834(0xcb)?'/'+_0x5877ff:'');_0xecf0b8?_0x1223b7=_0x1223b7+('/module/'+_0xecf0b8+'/'+_0x5ef4cb+_0x492834(0x117)):_0x1223b7=_0x1223b7+(_0x492834(0xe8)+_0x5ef4cb+_0x492834(0x117));if(!fs[_0x492834(0xd0)](_0x1223b7)){let _0x1e198c='';for(let _0x3b8c20 in _0x296273){const _0x5af4af=_0x296273[_0x3b8c20];if([_0x492834(0x110),'updated_at',_0x492834(0xe6),_0x492834(0x106)]['indexOf'](_0x3b8c20)!=-0x1)continue;if(_0x3b8c20[_0x492834(0x142)](-0x4)=='imgs'||_0x3b8c20[_0x492834(0x142)](-0x5)=='thumbs')_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af['Comment']||_0x5af4af['Field'])+_0x492834(0xfc)),_0x1e198c+='\x0a'+_0x492834(0xce)+(_0x492834(0x13a)+_0x3b8c20+_0x492834(0x13f)),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';else{if(_0x3b8c20[_0x492834(0x142)](-0x3)==_0x492834(0xfa)||_0x3b8c20['substr'](-0x5)==_0x492834(0xcc)||_0x3b8c20==_0x492834(0xcc)||_0x3b8c20[_0x492834(0x142)](-0x4)==_0x492834(0x136)||_0x3b8c20=='logo')_0x1e198c+='\x0a'+_0x492834(0xe0)+('<el-form-item\x20label=\x22'+(_0x5af4af['Comment']||_0x5af4af['Field'])+'\x22\x20class=\x22block\x22>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x492834(0x13a)+_0x3b8c20+'\x22\x20:limit=\x221\x22\x20/>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x492834(0x10f)+'\x0a';else{if(_0x3b8c20[_0x492834(0x142)](-0x4)==_0x492834(0xe2))_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af['Comment']||_0x5af4af[_0x492834(0xea)])+'\x22>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x492834(0xd9)+_0x3b8c20+_0x492834(0x121)+_0x5af4af[_0x492834(0xda)]+_0x492834(0xec)),_0x1e198c+='\x0a'+_0x492834(0xe0)+_0x492834(0x10f)+'\x0a';else{if(_0x3b8c20[_0x492834(0x142)](-0x3)==_0x492834(0x130))_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af['Comment']||_0x5af4af[_0x492834(0xea)])+'\x22>'),_0x1e198c+='\x0a'+_0x492834(0xce)+(_0x492834(0x103)+_0x3b8c20+_0x492834(0xd2)+_0x5af4af['Comment']+'\x22\x20:min=\x221\x22\x20:max=\x22100\x22\x20/>'),_0x1e198c+='\x0a'+_0x492834(0xe0)+'</el-form-item>'+'\x0a';else{if(_0x3b8c20[_0x492834(0x142)](-0x4)=='_ids')_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x5af4af[_0x492834(0xda)]||_0x5af4af[_0x492834(0xea)])+'\x22>'),_0x1e198c+='\x0a'+_0x492834(0xce)+(_0x492834(0x12a)+_0x3b8c20+'\x22\x20placeholder=\x22请输入'+_0x5af4af[_0x492834(0xda)]+_0x492834(0xeb)),_0x1e198c+='\x0a'+_0x492834(0xe0)+_0x492834(0x10f)+'\x0a';else{if(_0x3b8c20[_0x492834(0x142)](-0x3)==_0x492834(0xd3)){let _0x4e382d=''+(typeof _0x5877ff==_0x492834(0xcb)?_0x5877ff+'/':'')+(_0xecf0b8?_0xecf0b8+'/':'')+_0x43e256;_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af[_0x492834(0xda)]||_0x5af4af[_0x492834(0xea)])+'\x22>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x492834(0xd4)+_0x3b8c20+_0x492834(0x10c)+_0x4e382d+_0x492834(0xdb)),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x492834(0x10f)+'\x0a';}else switch((0x0,helper_1['getProp'])(_0x5af4af[_0x492834(0xf4)])){case _0x492834(0x119):_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af[_0x492834(0xda)]||_0x5af4af['Field'])+'\x22>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-input-number\x20v-model=\x22formdata.'+_0x3b8c20+_0x492834(0xd2)+_0x5af4af[_0x492834(0xda)]+'\x22\x20:min=\x221\x22\x20/>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x492834(0x10f)+'\x0a';break;case _0x492834(0xe3):_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af['Comment']||_0x5af4af[_0x492834(0xea)])+'\x22>'),_0x1e198c+='\x0a'+_0x492834(0xce)+(_0x492834(0xe4)+_0x3b8c20+_0x492834(0xe5)+_0x5af4af['Comment']+'\x22>');for(let _0x4db513 of(0x0,helper_1[_0x492834(0x131)])(_0x5af4af['Type'])){_0x1e198c+='\x0a'+_0x492834(0xf0)+(_0x492834(0xfe)+_0x4db513+'\x22\x20value=\x22'+_0x4db513+_0x492834(0xeb));}_0x1e198c+='\x0a'+_0x492834(0xce)+'</el-select>',_0x1e198c+='\x0a'+_0x492834(0xe0)+_0x492834(0x10f)+'\x0a';break;case _0x492834(0xcf):_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af[_0x492834(0xda)]||_0x5af4af[_0x492834(0xea)])+_0x492834(0xfc)),_0x1e198c+='\x0a'+_0x492834(0xce)+(_0x492834(0x12a)+_0x3b8c20+_0x492834(0x143)+_0x5af4af[_0x492834(0xda)]+_0x492834(0x144)),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';break;case _0x492834(0xf6):_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x5af4af['Comment']||_0x5af4af[_0x492834(0xea)])+_0x492834(0xfc)),_0x1e198c+='\x0a'+_0x492834(0xce)+(_0x492834(0x145)+_0x3b8c20+_0x492834(0xeb)),_0x1e198c+='\x0a'+_0x492834(0xe0)+_0x492834(0x10f)+'\x0a';break;case _0x492834(0x122):_0x1e198c+='\x0a'+_0x492834(0xe0)+('<el-form-item\x20label=\x22'+(_0x5af4af[_0x492834(0xda)]||_0x5af4af[_0x492834(0xea)])+_0x492834(0xfc)),_0x1e198c+='\x0a'+_0x492834(0xce)+(_0x492834(0x145)+_0x3b8c20+'\x22\x20/>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x492834(0x10f)+'\x0a';break;case'date':_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x5af4af[_0x492834(0xda)]||_0x5af4af[_0x492834(0xea)])+'\x22>'),_0x1e198c+='\x0a'+_0x492834(0xce)+(_0x492834(0x126)+_0x3b8c20+_0x492834(0x12f)+_0x5af4af[_0x492834(0xda)]+'\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x1e198c+='\x0a'+_0x492834(0xe0)+_0x492834(0x10f)+'\x0a';break;case _0x492834(0xe9):_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af[_0x492834(0xda)]||_0x5af4af[_0x492834(0xea)])+'\x22>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x492834(0x126)+_0x3b8c20+_0x492834(0x12f)+_0x5af4af['Comment']+_0x492834(0x111)),_0x1e198c+='\x0a'+_0x492834(0xe0)+_0x492834(0x10f)+'\x0a';break;case'timestamp':_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x5af4af[_0x492834(0xda)]||_0x5af4af[_0x492834(0xea)])+'\x22>'),_0x1e198c+='\x0a'+_0x492834(0xce)+('<el-date-picker\x20v-model=\x22formdata.'+_0x3b8c20+_0x492834(0x12f)+_0x5af4af['Comment']+_0x492834(0x111)),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';break;default:_0x1e198c+='\x0a'+_0x492834(0xe0)+(_0x492834(0x11e)+(_0x5af4af[_0x492834(0xda)]||_0x5af4af['Field'])+'\x22>'),_0x1e198c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x492834(0x12a)+_0x3b8c20+_0x492834(0xd2)+_0x5af4af[_0x492834(0xda)]+_0x492834(0xeb)),_0x1e198c+='\x0a'+_0x492834(0xe0)+'</el-form-item>'+'\x0a';}}}}}}}_0x1e198c+='\x0a'+_0x492834(0xe0)+'<el-form-item\x20label=\x22排序\x22>',_0x1e198c+='\x0a'+_0x492834(0xce)+_0x492834(0x105),_0x1e198c+='\x0a'+_0x492834(0xe0)+_0x492834(0x10f)+'\x0a',fs[_0x492834(0xf3)]((0x0,path_1[_0x492834(0xdc)])(_0x1223b7),{'recursive':!![]}),fs[_0x492834(0xde)](_0x1223b7,_0x492834(0x13c)+_0x1e198c+_0x492834(0xd5)+_0x253103[_0x492834(0xea)]+_0x492834(0x11b)+_0x253103[_0x492834(0xea)]+_0x492834(0x10e)+(typeof _0x5877ff==_0x492834(0xcb)?_0x5877ff+'/':'')+(_0xecf0b8?_0xecf0b8+'/':'')+_0x43e256+_0x492834(0x114)+_0x253103[_0x492834(0xea)]+_0x492834(0x132)+(typeof _0x5877ff==_0x492834(0xcb)?_0x5877ff+'/':'')+(_0xecf0b8?_0xecf0b8+'/':'')+_0x43e256+_0x492834(0xf1),_0x492834(0xf5));}}
|
|
1
|
+
'use strict';function a12_0x3b96(_0x30bc3b,_0x5a24d7){const _0x5df7a1=a12_0x5df7();return a12_0x3b96=function(_0x3b960a,_0x2bc1d6){_0x3b960a=_0x3b960a-0x1e4;let _0x357d99=_0x5df7a1[_0x3b960a];return _0x357d99;},a12_0x3b96(_0x30bc3b,_0x5a24d7);}const a12_0x335e4c=a12_0x3b96;(function(_0x2e3708,_0x44c2c9){const _0x12f01e=a12_0x3b96,_0x304fc3=_0x2e3708();while(!![]){try{const _0x2fd834=-parseInt(_0x12f01e(0x1fb))/0x1+-parseInt(_0x12f01e(0x230))/0x2*(parseInt(_0x12f01e(0x218))/0x3)+-parseInt(_0x12f01e(0x243))/0x4*(-parseInt(_0x12f01e(0x1f8))/0x5)+parseInt(_0x12f01e(0x229))/0x6+-parseInt(_0x12f01e(0x25b))/0x7*(-parseInt(_0x12f01e(0x1e9))/0x8)+parseInt(_0x12f01e(0x1ef))/0x9*(-parseInt(_0x12f01e(0x22a))/0xa)+parseInt(_0x12f01e(0x1e4))/0xb;if(_0x2fd834===_0x44c2c9)break;else _0x304fc3['push'](_0x304fc3['shift']());}catch(_0x4bb7af){_0x304fc3['push'](_0x304fc3['shift']());}}}(a12_0x5df7,0x55134));Object[a12_0x335e4c(0x21b)](exports,a12_0x335e4c(0x1f0),{'value':!![]});const fs=require('fs'),path_1=require('path'),helper_1=require(a12_0x335e4c(0x22d));function a12_0x5df7(){const _0x259d1c=['<template>\x0a\x20\x20\x20\x20<page-dialog\x20ref=\x22page-dialog\x22\x20:loading=\x22loading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<el-tabs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-tab-pane\x20label=\x22基本信息\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-form\x20ref=\x22form\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_start\x22\x20placeholder=\x22选择','</el-popover>','`\x22\x20type=\x22primary\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20添加\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20placeholder=\x22请输入或选择','117cPYEZE','__esModule','\x22\x20:min=\x221\x22\x20/>','mediumtext','<el-select-search\x20v-model=\x22search.','<template\x20#reference>','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22排序\x22\x20align=\x27center\x27\x20prop=\x22displayorder\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22操作\x22\x20align=\x22center\x22\x20fixed=\x22right\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#default=\x22scope\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20@click=\x22$refs[\x27page-store\x27].open(scope.row.','\x27,this.table.search).then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.table.data\x20=\x20res.data\x20,\x20this.table.search._count\x20=\x20res.extra.pagetotal\x20,\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27}),this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20删除\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要删除的数据\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20ActionDel(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20item.id\x20){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$confirm(\x27此操作将永久删除,\x20是否继续?\x27,\x20\x27提示\x27,\x20{confirmButtonText:\x20\x27确定\x27,cancelButtonText:\x20\x27取消\x27,type:\x20\x27warning\x27}).then(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$del(\x27','<el-input-number\x20v-model=\x22search.','20TMXCVr','\x0a</template>\x0a<script>\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20props:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20search:\x20{type:\x20Object\x20,default:\x20()=>{return\x20{}}},\x0a\x20\x20\x20\x20}\x0a}\x0a</script>','\x22\x20value=\x22','658829jqzKwi','<el-select\x20v-model=\x22search.','<page-images\x20v-model=\x22formdata.','<el-select-search\x20v-model=\x22formdata.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',').then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.formdata\x20=\x20res.data,\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27}),this.$refs[\x27page-dialog\x27].close();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20保存\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要保存的数据\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20ActionSave(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$save(\x27','cwd','Comment','default','<el-table-column\x20prop=','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','logo','<el-input\x20v-model=\x22search.',')\x22\x20style=\x22width:\x2040px;\x20cursor:pointer\x22\x20/>','</el-select>','/pages/','Field','getEnum','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','<img\x20:src=\x22$img(scope.row.','created_at','<el-form-item\x20label=\x22排序\x22>','displayorder','\x22\x20placeholder=\x22请选择','<el-select-tags\x20v-model=\x22formdata.','\x22\x20/>','utf-8','\x20\x20\x20\x20','tags','201HJqmZl','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20','defineProperty','结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','longtext','datetime','text','\x22\x20placeholder=\x22请输入','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','substr','){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$get(\x27','string','imgs','<el-date-picker\x20v-model=\x22formdata.','/\x27+','){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.formdata\x20=\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$refs[\x27page-dialog\x27].open()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(','484062QDrKAo','448170zgxZUc','indexOf','</a>','../helper','thumbs','/index.vue','15998kcPeor','`\x22\x20type=\x22text\x22\x20size=\x22small\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20删除\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-table-column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</page-table>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<store\x20ref=\x22page-store\x22\x20@save=\x22LoadDatas\x22/>\x0a\x20\x20\x20\x20</page>\x0a</template>\x0a<script>\x0aimport\x20store\x20from\x20\x22./components/store.vue\x22\x0aimport\x20search\x20from\x20\x22./components/search.vue\x22\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20components:\x20{store,search},\x0a\x20\x20\x20\x20data(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20table:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20data:[],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_page:1,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_size:20,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_count:0,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20mounted()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20Object.assign(this.table.search,this.$route.params,this.$route.query),this.LoadDatas();\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20methods:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20获取数据列表\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20page\x20分页-当前页\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20size\x20分页-每页数量\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20LoadDatas(page,size){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page\x20&&\x20(this.table.search._page\x20=\x20page),size\x20&&\x20(this.table.search._size\x20=\x20size),this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$get(\x27','\x22\x20:limit=\x221\x22\x20/>','existsSync','<el-form-item\x20label=\x22','<el-option\x20label=\x22','\x22\x20align=\x27center\x27\x20show-overflow-tooltip\x20/>','_id','\x22\x20placeholder=\x22选择','dirname','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-form>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-tab-pane>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</el-tabs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20type=\x22primary\x22\x20@click=\x22ActionSave(formdata)\x22>保存</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20</page-dialog>\x0a</template>\x0a<script>\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20data(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formdata:{},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20methods:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20open(','<page-editor\x20v-model=\x22formdata.','<el-select\x20v-model=\x22formdata.','\x27,item).then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$emit(\x22save\x22),this.$notify({message:\x20res?.message\x20||\x20\x27操作成功\x27})\x20,\x20this.$refs[\x27page-dialog\x27].close();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a}\x0a</script>','deleted_at','</el-table-column>','<el-date-picker\x20v-model=\x22search.','\x22\x20class=\x22block\x22>','\x22\x20align=\x27center\x27\x20show-overflow-tooltip>','268304YHebEZ','\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20/>','`\x22\x20type=\x22text\x22\x20size=\x22small\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20编辑\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20@click=\x22ActionDel(scope.row)\x22\x20v-permission=\x22`delete@','Type','_end\x22\x20placeholder=\x22选择','/components/store.vue',')\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','getProp',')\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>','endsWith','thumb','enum','\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','writeFileSync',').then(res=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.LoadDatas()\x20,\x20this.$notify({message:\x20res?.message\x20||\x20\x27操作成功\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$notify.error({message:err||\x27删除失败\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(()=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a}\x0a</script>','padEnd','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','img','</template>','/components/search.vue','\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20\x20width=\x22120\x22\x20/>','\x22\x20:min=\x221\x22\x20:max=\x22100\x22\x20/>','<template\x20#default=\x22scope\x22>','num','1442nwAMdy','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mkdirSync','<a\x20:href=\x22$img(scope.row.','\x22\x20:limit=\x225\x22\x20/>','\x20label=\x22','<el-input\x20v-model=\x22formdata.','/vue','<template>\x0a\x20\x20\x20\x20<page\x20:loading=\x22loading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<page-table\x20:datas=\x22table.data\x22\x20:pageinfo=\x22table.search\x22\x20@transform=\x22LoadDatas\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#search>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<search\x20v-model:search=\x22table.search\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20@click=\x22$refs[\x27page-store\x27].open()\x22\x20v-permission=\x22`post@','</el-form-item>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','timestamp','12174272oGzjNp','number','\x22\x20split=\x22-\x22\x20/>','/module/','updated_at','26024fdfZVz'];a12_0x5df7=function(){return _0x259d1c;};return a12_0x5df7();}async function default_1({moduleName:_0x661925,controller:_0x5ea088,tablestartUpShort:_0x212b34,tablestartUpShort2:_0x3320a4,Primary:_0x2af524,Fields:_0x4ee6f9}){await createIndex({'moduleName':_0x661925,'controller':_0x5ea088,'tablestartUpShort':_0x212b34,'tablestartUpShort2':_0x3320a4,'Primary':_0x2af524,'Fields':_0x4ee6f9}),await createStore({'moduleName':_0x661925,'controller':_0x5ea088,'tablestartUpShort':_0x212b34,'tablestartUpShort2':_0x3320a4,'Primary':_0x2af524,'Fields':_0x4ee6f9}),await createSearch({'moduleName':_0x661925,'controller':_0x5ea088,'tablestartUpShort':_0x212b34,'tablestartUpShort2':_0x3320a4,'Primary':_0x2af524,'Fields':_0x4ee6f9});}exports[a12_0x335e4c(0x203)]=default_1;async function createIndex({moduleName:_0xe6b761,controller:_0x38f841,tablestartUpShort:_0x5e84dc,tablestartUpShort2:_0xd6370c,Primary:_0x357aa6,Fields:_0x512302}){const _0x26cd89=a12_0x335e4c;let _0x4d4405=process['cwd']()+_0x26cd89(0x262)+(typeof _0x38f841==_0x26cd89(0x224)?'/'+_0x38f841:'');_0xe6b761?_0x4d4405=_0x4d4405+('/module/'+_0xe6b761+'/'+_0x5e84dc+'/index.vue'):_0x4d4405=_0x4d4405+(_0x26cd89(0x20a)+_0x5e84dc+_0x26cd89(0x22f));if(!fs[_0x26cd89(0x233)](_0x4d4405)){let _0x2e36f3=_0x26cd89(0x204)+('\x22'+_0x357aa6[_0x26cd89(0x20b)]+'\x22')[_0x26cd89(0x252)](0x14)+('\x20label=\x22'+(_0x357aa6[_0x26cd89(0x202)]||'编号')+_0x26cd89(0x257));for(let _0x52afa4 in _0x512302){const _0x5d968c=_0x512302[_0x52afa4];if([_0x26cd89(0x20f),'updated_at','deleted_at',_0x26cd89(0x211)][_0x26cd89(0x22b)](_0x52afa4)!=-0x1)continue;if(_0x52afa4['substr'](-0x3)==_0x26cd89(0x254)||_0x52afa4[_0x26cd89(0x222)](-0x5)==_0x26cd89(0x24d)||_0x52afa4=='thumb'||_0x52afa4[_0x26cd89(0x222)](-0x4)==_0x26cd89(0x206)||_0x52afa4==_0x26cd89(0x206))_0x2e36f3+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x26cd89(0x204)+('\x22'+_0x52afa4+'\x22')[_0x26cd89(0x252)](0x14)+('\x20label=\x22'+(_0x5d968c[_0x26cd89(0x202)]||_0x5d968c[_0x26cd89(0x20b)])+_0x26cd89(0x242)),_0x2e36f3+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x26cd89(0x259),_0x2e36f3+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>',_0x2e36f3+='\x0a'+_0x26cd89(0x1ff)+(_0x26cd89(0x25e)+_0x52afa4+_0x26cd89(0x24b)),_0x2e36f3+='\x0a'+_0x26cd89(0x25c)+(_0x26cd89(0x20e)+_0x52afa4+_0x26cd89(0x249)),_0x2e36f3+='\x0a'+_0x26cd89(0x1ff)+_0x26cd89(0x22c),_0x2e36f3+='\x0a'+_0x26cd89(0x1ff)+_0x26cd89(0x1f4),_0x2e36f3+='\x0a'+_0x26cd89(0x25c)+(_0x26cd89(0x20e)+_0x52afa4+_0x26cd89(0x208)),_0x2e36f3+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</template>',_0x2e36f3+='\x0a'+_0x26cd89(0x205)+_0x26cd89(0x1ec),_0x2e36f3+='\x0a'+_0x26cd89(0x219)+_0x26cd89(0x255),_0x2e36f3+='\x0a'+_0x26cd89(0x20d)+_0x26cd89(0x23f);else[_0x26cd89(0x21f),_0x26cd89(0x21d)][_0x26cd89(0x22b)]((0x0,helper_1['getProp'])(_0x5d968c[_0x26cd89(0x246)]))==-0x1&&(_0x2e36f3+='\x0a'+_0x26cd89(0x20d)+_0x26cd89(0x204)+('\x22'+_0x52afa4+'\x22')[_0x26cd89(0x252)](0x14)+(_0x26cd89(0x260)+(_0x5d968c[_0x26cd89(0x202)]||_0x5d968c[_0x26cd89(0x20b)])+_0x26cd89(0x236)));}const _0x1f0d94=''+(typeof _0x38f841==_0x26cd89(0x224)?_0x38f841+'/':'')+(_0xe6b761?_0xe6b761+'/':'')+_0xd6370c,_0x3381a0=''+(typeof _0x38f841==_0x26cd89(0x224)?_0x38f841+'/':'')+(_0xe6b761?_0xe6b761+'/':'')+_0xd6370c+'/:'+_0x357aa6[_0x26cd89(0x20b)],_0x37db7c=''+(typeof _0x38f841==_0x26cd89(0x224)?_0x38f841+'/':'')+(_0xe6b761?_0xe6b761+'/':'')+_0xd6370c+'/:'+_0x357aa6[_0x26cd89(0x20b)];fs[_0x26cd89(0x25d)]((0x0,path_1['dirname'])(_0x4d4405),{'recursive':!![]}),fs[_0x26cd89(0x250)](_0x4d4405,_0x26cd89(0x263)+_0x1f0d94+_0x26cd89(0x1ed)+_0x2e36f3+_0x26cd89(0x1f5)+_0x357aa6[_0x26cd89(0x20b)]+')\x22\x20\x20v-permission=\x22`put@'+_0x3381a0+_0x26cd89(0x245)+_0x37db7c+_0x26cd89(0x231)+_0x1f0d94+_0x26cd89(0x1f6)+(typeof _0x38f841=='string'?_0x38f841+'/':'')+(_0xe6b761?_0xe6b761+'/':'')+_0xd6370c+'/\x27+item.'+_0x357aa6[_0x26cd89(0x20b)]+_0x26cd89(0x251),_0x26cd89(0x215));}}async function createSearch({moduleName:_0x3fa633,tablestartUpShort:_0x5d3cf5,tablestartUpShort2:_0x331d8d,controller:_0x54d647,Primary:_0x181e64,Fields:_0x4999d7}){const _0x23b8f3=a12_0x335e4c;let _0x4a0381=process[_0x23b8f3(0x201)]()+_0x23b8f3(0x262)+(typeof _0x54d647==_0x23b8f3(0x224)?'/'+_0x54d647:'');_0x3fa633?_0x4a0381=_0x4a0381+(_0x23b8f3(0x1e7)+_0x3fa633+'/'+_0x5d3cf5+_0x23b8f3(0x256)):_0x4a0381=_0x4a0381+(_0x23b8f3(0x20a)+_0x5d3cf5+_0x23b8f3(0x256));if(!fs[_0x23b8f3(0x233)](_0x4a0381)){let _0x5417db='';_0x5417db+='\x0a'+'\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x181e64[_0x23b8f3(0x202)]||'编号')+'\x22>'),_0x5417db+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-input\x20v-model=\x22search.'+_0x181e64[_0x23b8f3(0x20b)]+_0x23b8f3(0x220)+(_0x181e64[_0x23b8f3(0x202)]||'编号')+_0x23b8f3(0x214)),_0x5417db+='\x0a'+_0x23b8f3(0x216)+_0x23b8f3(0x264);for(let _0x54d2b3 in _0x4999d7){const _0x23b526=_0x4999d7[_0x54d2b3];if([_0x23b8f3(0x1e8),_0x23b8f3(0x23e),_0x23b8f3(0x211)][_0x23b8f3(0x22b)](_0x54d2b3)!=-0x1)continue;if(_0x54d2b3['substr'](-0x3)==_0x23b8f3(0x25a))_0x5417db+='\x0a'+'\x20\x20\x20\x20'+(_0x23b8f3(0x234)+(_0x23b526['Comment']||_0x23b526[_0x23b8f3(0x20b)])+'\x22>'),_0x5417db+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x23b8f3(0x1f7)+_0x54d2b3+_0x23b8f3(0x220)+_0x23b526[_0x23b8f3(0x202)]+_0x23b8f3(0x258)),_0x5417db+='\x0a'+_0x23b8f3(0x216)+_0x23b8f3(0x264)+'\x0a';else{if(_0x54d2b3[_0x23b8f3(0x24c)](_0x23b8f3(0x237))){let _0x409b7d=''+(typeof _0x54d647==_0x23b8f3(0x224)?_0x54d647+'/':'')+(_0x3fa633?_0x3fa633+'/':'')+_0x331d8d;_0x5417db+='\x0a'+_0x23b8f3(0x21a)+('<el-form-item\x20label=\x22'+(_0x23b526[_0x23b8f3(0x202)]||_0x23b526[_0x23b8f3(0x20b)])+'\x22>'),_0x5417db+='\x0a'+_0x23b8f3(0x265)+(_0x23b8f3(0x1f3)+_0x54d2b3+'\x22\x20api=\x22'+_0x409b7d+'\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20/>'),_0x5417db+='\x0a'+_0x23b8f3(0x21a)+_0x23b8f3(0x264)+'\x0a';}else switch((0x0,helper_1[_0x23b8f3(0x24a)])(_0x23b526[_0x23b8f3(0x246)])){case _0x23b8f3(0x24e):_0x5417db+='\x0a'+_0x23b8f3(0x216)+(_0x23b8f3(0x234)+(_0x23b526[_0x23b8f3(0x202)]||_0x23b526[_0x23b8f3(0x20b)])+'\x22>'),_0x5417db+='\x0a'+_0x23b8f3(0x21a)+(_0x23b8f3(0x1fc)+_0x54d2b3+_0x23b8f3(0x212)+_0x23b526[_0x23b8f3(0x202)]+'\x22>');for(let _0x45407d of(0x0,helper_1['getEnum'])(_0x23b526[_0x23b8f3(0x246)])){_0x5417db+='\x0a'+_0x23b8f3(0x265)+('<el-option\x20label=\x22'+_0x45407d+_0x23b8f3(0x1fa)+_0x45407d+'\x22\x20/>');}_0x5417db+='\x0a'+_0x23b8f3(0x21a)+_0x23b8f3(0x209),_0x5417db+='\x0a'+_0x23b8f3(0x216)+_0x23b8f3(0x264)+'\x0a';break;case'date':_0x5417db+='\x0a'+_0x23b8f3(0x216)+(_0x23b8f3(0x234)+(_0x23b526[_0x23b8f3(0x202)]||_0x23b526[_0x23b8f3(0x20b)])+'\x22>'),_0x5417db+='\x0a'+_0x23b8f3(0x21a)+('<el-date-picker\x20v-model=\x22search.'+_0x54d2b3+'_start\x22\x20placeholder=\x22选择'+_0x23b526[_0x23b8f3(0x202)]+'开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x5417db+='\x0a'+_0x23b8f3(0x216)+'</el-form-item>'+'\x0a',_0x5417db+='\x0a'+'\x20\x20\x20\x20'+(_0x23b8f3(0x234)+(_0x23b526[_0x23b8f3(0x202)]||_0x23b526[_0x23b8f3(0x20b)])+'\x22>'),_0x5417db+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x23b8f3(0x240)+_0x54d2b3+_0x23b8f3(0x247)+_0x23b526[_0x23b8f3(0x202)]+_0x23b8f3(0x21c)),_0x5417db+='\x0a'+_0x23b8f3(0x216)+_0x23b8f3(0x264)+'\x0a';break;case _0x23b8f3(0x21e):_0x5417db+='\x0a'+_0x23b8f3(0x216)+(_0x23b8f3(0x234)+(_0x23b526['Comment']||_0x23b526[_0x23b8f3(0x20b)])+'\x22>'),_0x5417db+='\x0a'+_0x23b8f3(0x21a)+('<el-date-picker\x20v-model=\x22search.'+_0x54d2b3+_0x23b8f3(0x1eb)+_0x23b526[_0x23b8f3(0x202)]+'开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x5417db+='\x0a'+_0x23b8f3(0x216)+_0x23b8f3(0x264)+'\x0a',_0x5417db+='\x0a'+_0x23b8f3(0x216)+(_0x23b8f3(0x234)+(_0x23b526[_0x23b8f3(0x202)]||_0x23b526['Field'])+'\x22>'),_0x5417db+='\x0a'+_0x23b8f3(0x21a)+(_0x23b8f3(0x240)+_0x54d2b3+'_end\x22\x20placeholder=\x22选择'+_0x23b526['Comment']+_0x23b8f3(0x221)),_0x5417db+='\x0a'+_0x23b8f3(0x216)+_0x23b8f3(0x264)+'\x0a';break;case _0x23b8f3(0x266):_0x5417db+='\x0a'+'\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x23b526[_0x23b8f3(0x202)]||_0x23b526['Field'])+'\x22>'),_0x5417db+='\x0a'+_0x23b8f3(0x21a)+('<el-date-picker\x20v-model=\x22search.'+_0x54d2b3+_0x23b8f3(0x1eb)+_0x23b526[_0x23b8f3(0x202)]+'开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x5417db+='\x0a'+'\x20\x20\x20\x20'+_0x23b8f3(0x264)+'\x0a',_0x5417db+='\x0a'+_0x23b8f3(0x216)+(_0x23b8f3(0x234)+(_0x23b526[_0x23b8f3(0x202)]||_0x23b526['Field'])+'\x22>'),_0x5417db+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x23b8f3(0x240)+_0x54d2b3+_0x23b8f3(0x247)+_0x23b526['Comment']+_0x23b8f3(0x221)),_0x5417db+='\x0a'+_0x23b8f3(0x216)+_0x23b8f3(0x264)+'\x0a';break;case _0x23b8f3(0x224):_0x5417db+='\x0a'+_0x23b8f3(0x216)+(_0x23b8f3(0x234)+(_0x23b526['Comment']||_0x23b526[_0x23b8f3(0x20b)])+'\x22>'),_0x5417db+='\x0a'+_0x23b8f3(0x21a)+(_0x23b8f3(0x207)+_0x54d2b3+_0x23b8f3(0x220)+_0x23b526['Comment']+'\x22\x20/>'),_0x5417db+='\x0a'+_0x23b8f3(0x216)+'</el-form-item>'+'\x0a';}}}fs['mkdirSync']((0x0,path_1[_0x23b8f3(0x239)])(_0x4a0381),{'recursive':!![]}),fs['writeFileSync'](_0x4a0381,'<template>\x0a\x20\x20\x20\x20'+_0x5417db+_0x23b8f3(0x1f9),_0x23b8f3(0x215));}}async function createStore({moduleName:_0x5b4afc,controller:_0x18700b,tablestartUpShort:_0x1d59cb,tablestartUpShort2:_0xfa8720,Primary:_0x28a057,Fields:_0x348bca}){const _0x4b9ac6=a12_0x335e4c;let _0x2bd118=process[_0x4b9ac6(0x201)]()+_0x4b9ac6(0x262)+(typeof _0x18700b=='string'?'/'+_0x18700b:'');_0x5b4afc?_0x2bd118=_0x2bd118+(_0x4b9ac6(0x1e7)+_0x5b4afc+'/'+_0x1d59cb+_0x4b9ac6(0x248)):_0x2bd118=_0x2bd118+('/pages/'+_0x1d59cb+'/components/store.vue');if(!fs[_0x4b9ac6(0x233)](_0x2bd118)){let _0x5332b7='';for(let _0xb4a2bd in _0x348bca){const _0x1b4cfd=_0x348bca[_0xb4a2bd];if(['created_at',_0x4b9ac6(0x1e8),_0x4b9ac6(0x23e),'displayorder'][_0x4b9ac6(0x22b)](_0xb4a2bd)!=-0x1)continue;if(_0xb4a2bd['substr'](-0x4)==_0x4b9ac6(0x225)||_0xb4a2bd['substr'](-0x5)==_0x4b9ac6(0x22e))_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+('<el-form-item\x20label=\x22'+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd[_0x4b9ac6(0x20b)])+_0x4b9ac6(0x241)),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+(_0x4b9ac6(0x1fd)+_0xb4a2bd+_0x4b9ac6(0x25f)),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x264)+'\x0a';else{if(_0xb4a2bd['substr'](-0x3)==_0x4b9ac6(0x254)||_0xb4a2bd['substr'](-0x5)==_0x4b9ac6(0x24d)||_0xb4a2bd=='thumb'||_0xb4a2bd['substr'](-0x4)==_0x4b9ac6(0x206)||_0xb4a2bd==_0x4b9ac6(0x206))_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd[_0x4b9ac6(0x20b)])+_0x4b9ac6(0x241)),_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b9ac6(0x1fd)+_0xb4a2bd+_0x4b9ac6(0x232)),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x264)+'\x0a';else{if(_0xb4a2bd[_0x4b9ac6(0x222)](-0x4)==_0x4b9ac6(0x217))_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd[_0x4b9ac6(0x20b)])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+(_0x4b9ac6(0x213)+_0xb4a2bd+_0x4b9ac6(0x1ee)+_0x1b4cfd[_0x4b9ac6(0x202)]+_0x4b9ac6(0x1e6)),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x264)+'\x0a';else{if(_0xb4a2bd[_0x4b9ac6(0x222)](-0x3)==_0x4b9ac6(0x25a))_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd['Field'])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+('<el-input-number\x20v-model=\x22formdata.'+_0xb4a2bd+_0x4b9ac6(0x220)+_0x1b4cfd[_0x4b9ac6(0x202)]+_0x4b9ac6(0x258)),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x264)+'\x0a';else{if(_0xb4a2bd['substr'](-0x4)=='_ids')_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd['Field'])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+('<el-input\x20v-model=\x22formdata.'+_0xb4a2bd+'\x22\x20placeholder=\x22请输入'+_0x1b4cfd[_0x4b9ac6(0x202)]+'\x22\x20/>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x264)+'\x0a';else{if(_0xb4a2bd[_0x4b9ac6(0x222)](-0x3)==_0x4b9ac6(0x237)){let _0x5e55dc=''+(typeof _0x18700b==_0x4b9ac6(0x224)?_0x18700b+'/':'')+(_0x5b4afc?_0x5b4afc+'/':'')+_0xfa8720;_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd['Comment']||_0x1b4cfd['Field'])+'\x22>'),_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b9ac6(0x1fe)+_0xb4a2bd+'\x22\x20api=\x22'+_0x5e55dc+_0x4b9ac6(0x244)),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+'</el-form-item>'+'\x0a';}else switch((0x0,helper_1[_0x4b9ac6(0x24a)])(_0x1b4cfd['Type'])){case _0x4b9ac6(0x1e5):_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd[_0x4b9ac6(0x20b)])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+('<el-input-number\x20v-model=\x22formdata.'+_0xb4a2bd+_0x4b9ac6(0x220)+_0x1b4cfd[_0x4b9ac6(0x202)]+_0x4b9ac6(0x1f1)),_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';break;case _0x4b9ac6(0x24e):_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd['Comment']||_0x1b4cfd[_0x4b9ac6(0x20b)])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+(_0x4b9ac6(0x23c)+_0xb4a2bd+_0x4b9ac6(0x212)+_0x1b4cfd[_0x4b9ac6(0x202)]+'\x22>');for(let _0x56942b of(0x0,helper_1[_0x4b9ac6(0x20c)])(_0x1b4cfd[_0x4b9ac6(0x246)])){_0x5332b7+='\x0a'+_0x4b9ac6(0x1ff)+(_0x4b9ac6(0x235)+_0x56942b+'\x22\x20value=\x22'+_0x56942b+_0x4b9ac6(0x214));}_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+_0x4b9ac6(0x209),_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';break;case'text':_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd[_0x4b9ac6(0x20b)])+_0x4b9ac6(0x241)),_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b9ac6(0x261)+_0xb4a2bd+'\x22\x20\x20placeholder=\x22请输入'+_0x1b4cfd[_0x4b9ac6(0x202)]+'\x22\x20type=\x22textarea\x22/>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x264)+'\x0a';break;case _0x4b9ac6(0x21d):_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd['Comment']||_0x1b4cfd[_0x4b9ac6(0x20b)])+_0x4b9ac6(0x241)),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+(_0x4b9ac6(0x23b)+_0xb4a2bd+_0x4b9ac6(0x214)),_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b9ac6(0x264)+'\x0a';break;case _0x4b9ac6(0x1f2):_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd[_0x4b9ac6(0x20b)])+'\x22\x20class=\x22block\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+(_0x4b9ac6(0x23b)+_0xb4a2bd+_0x4b9ac6(0x214)),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x264)+'\x0a';break;case'date':_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+('<el-form-item\x20label=\x22'+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd[_0x4b9ac6(0x20b)])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+('<el-date-picker\x20v-model=\x22formdata.'+_0xb4a2bd+_0x4b9ac6(0x238)+_0x1b4cfd['Comment']+_0x4b9ac6(0x24f)),_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b9ac6(0x264)+'\x0a';break;case _0x4b9ac6(0x21e):_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd['Field'])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+('<el-date-picker\x20v-model=\x22formdata.'+_0xb4a2bd+_0x4b9ac6(0x238)+_0x1b4cfd['Comment']+_0x4b9ac6(0x253)),_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';break;case _0x4b9ac6(0x266):_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd[_0x4b9ac6(0x202)]||_0x1b4cfd[_0x4b9ac6(0x20b)])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+(_0x4b9ac6(0x226)+_0xb4a2bd+_0x4b9ac6(0x238)+_0x1b4cfd[_0x4b9ac6(0x202)]+_0x4b9ac6(0x253)),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+'</el-form-item>'+'\x0a';break;default:_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+(_0x4b9ac6(0x234)+(_0x1b4cfd['Comment']||_0x1b4cfd['Field'])+'\x22>'),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+('<el-input\x20v-model=\x22formdata.'+_0xb4a2bd+_0x4b9ac6(0x220)+_0x1b4cfd['Comment']+_0x4b9ac6(0x214)),_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x264)+'\x0a';}}}}}}}_0x5332b7+='\x0a'+_0x4b9ac6(0x219)+_0x4b9ac6(0x210),_0x5332b7+='\x0a'+_0x4b9ac6(0x205)+'<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20/>',_0x5332b7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b9ac6(0x264)+'\x0a',fs[_0x4b9ac6(0x25d)]((0x0,path_1[_0x4b9ac6(0x239)])(_0x2bd118),{'recursive':!![]}),fs[_0x4b9ac6(0x250)](_0x2bd118,_0x4b9ac6(0x1ea)+_0x5332b7+_0x4b9ac6(0x23a)+_0x28a057[_0x4b9ac6(0x20b)]+_0x4b9ac6(0x228)+_0x28a057[_0x4b9ac6(0x20b)]+_0x4b9ac6(0x223)+(typeof _0x18700b==_0x4b9ac6(0x224)?_0x18700b+'/':'')+(_0x5b4afc?_0x5b4afc+'/':'')+_0xfa8720+_0x4b9ac6(0x227)+_0x28a057[_0x4b9ac6(0x20b)]+_0x4b9ac6(0x200)+(typeof _0x18700b==_0x4b9ac6(0x224)?_0x18700b+'/':'')+(_0x5b4afc?_0x5b4afc+'/':'')+_0xfa8720+_0x4b9ac6(0x23d),'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a13_0x4288d4=a13_0x4b60;(function(_0x561c4c,_0x549eb1){const _0x246119=a13_0x4b60,_0xe0e830=_0x561c4c();while(!![]){try{const _0x13073c=parseInt(_0x246119(0xc7))/0x1+-parseInt(_0x246119(0xcc))/0x2*(parseInt(_0x246119(0xb5))/0x3)+-parseInt(_0x246119(0xd1))/0x4*(parseInt(_0x246119(0xb7))/0x5)+parseInt(_0x246119(0xc8))/0x6+-parseInt(_0x246119(0xba))/0x7*(-parseInt(_0x246119(0xd6))/0x8)+-parseInt(_0x246119(0xbe))/0x9+-parseInt(_0x246119(0xce))/0xa;if(_0x13073c===_0x549eb1)break;else _0xe0e830['push'](_0xe0e830['shift']());}catch(_0x2c274e){_0xe0e830['push'](_0xe0e830['shift']());}}}(a13_0x17f7,0x7b5f3));Object[a13_0x4288d4(0xb6)](exports,a13_0x4288d4(0xd5),{'value':!![]});const fs=require('fs'),path_1=require(a13_0x4288d4(0xb9));async function default_1({tablestartUpShort:_0x5856b,moduleName:_0x13ac30,controller:_0x572ed4,Comment:_0x5bbbc8}){await createRoutes({'tablestartUpShort':_0x5856b,'moduleName':_0x13ac30,'controller':_0x572ed4,'Comment':_0x5bbbc8});}function a13_0x4b60(_0x1e891d,_0x168d39){const _0x17f7ca=a13_0x17f7();return a13_0x4b60=function(_0x4b605c,_0x4acd20){_0x4b605c=_0x4b605c-0xb5;let _0x552104=_0x17f7ca[_0x4b605c];return _0x552104;},a13_0x4b60(_0x1e891d,_0x168d39);}function a13_0x17f7(){const _0x36adf9=['existsSync','\x27,\x20component:layout,\x20children:[\x0a','//\x20add\x20route\x20here','utf-8','mkdirSync','padEnd','974304RXkbTI','1508136HqOogO','{name:\x20\x22','writeFileSync',',\x20path:\x20\x22','2NFyMiI','/routes.js','11468490WiknUY',']}\x0a','dirname','477088sURxMM','/module/','\x20\x20\x20\x20//\x20add\x20route\x20here\x0a','default','__esModule','7868208HdgCvH','397581TjnDRk','defineProperty','15zvSnfn','/pages/routes.js','path','7tVilKN','/index.vue\x27)},\x0a\x20\x20\x20\x20//\x20add\x20route\x20here','import\x20layout\x20from\x20\x22./layout.vue\x22\x0a\x0a','readFileSync','599967zaEHKD','string','cwd'];a13_0x17f7=function(){return _0x36adf9;};return a13_0x17f7();}exports[a13_0x4288d4(0xd4)]=default_1;async function createRoutes({tablestartUpShort:_0x35fca8,moduleName:_0x495055,controller:_0x22b03c,Comment:_0x20daae}){const _0x16666e=a13_0x4288d4;let _0x19467f=process[_0x16666e(0xc0)]()+'/vue'+(typeof _0x22b03c==_0x16666e(0xbf)?'/'+_0x22b03c:'');_0x495055?_0x19467f=_0x19467f+(_0x16666e(0xd2)+_0x495055+_0x16666e(0xcd)):_0x19467f=_0x19467f+_0x16666e(0xb8);if(!fs[_0x16666e(0xc1)](_0x19467f)){let _0x4807db=_0x16666e(0xbc);_0x4807db+='export\x20default\x20{path:\x20\x27/'+(_0x495055||'')+_0x16666e(0xc2),_0x4807db+=_0x16666e(0xd3),_0x4807db+=_0x16666e(0xcf),fs[_0x16666e(0xc5)]((0x0,path_1[_0x16666e(0xd0)])(_0x19467f),{'recursive':!![]}),fs[_0x16666e(0xca)](_0x19467f,_0x4807db,_0x16666e(0xc4));}const _0x34363e=fs[_0x16666e(0xbd)](_0x19467f,_0x16666e(0xc4));fs[_0x16666e(0xca)](_0x19467f,_0x34363e['replace'](_0x16666e(0xc3),_0x16666e(0xc9)+(_0x20daae+'\x22')[_0x16666e(0xc6)](0x14)+_0x16666e(0xcb)+('/'+_0x35fca8+'\x22')[_0x16666e(0xc6)](0x14)+(',\x20component:\x20()=>\x20import(\x27./'+_0x35fca8+_0x16666e(0xbb))));}
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a14_0x19d7(){var _0x18f26d=['1388640AUdMdj','59171400pDMqHu','360084NdqKVV','81LGWQrI','4byerec','6534grNcnP','7317396GLusuC','11399080lKdIPA','4120405FGriaD','161huJhNl'];a14_0x19d7=function(){return _0x18f26d;};return a14_0x19d7();}(function(_0x279c73,_0x247c9c){var _0x137b2b=a14_0x5691,_0x46e1e0=_0x279c73();while(!![]){try{var _0x4c5ab2=parseInt(_0x137b2b(0x1bd))/0x1*(-parseInt(_0x137b2b(0x1bf))/0x2)+-parseInt(_0x137b2b(0x1ba))/0x3+-parseInt(_0x137b2b(0x1be))/0x4*(parseInt(_0x137b2b(0x1b8))/0x5)+parseInt(_0x137b2b(0x1bc))/0x6*(-parseInt(_0x137b2b(0x1b9))/0x7)+-parseInt(_0x137b2b(0x1b7))/0x8+-parseInt(_0x137b2b(0x1c0))/0x9+parseInt(_0x137b2b(0x1bb))/0xa;if(_0x4c5ab2===_0x247c9c)break;else _0x46e1e0['push'](_0x46e1e0['shift']());}catch(_0x46558b){_0x46e1e0['push'](_0x46e1e0['shift']());}}}(a14_0x19d7,0xb6725));function a14_0x5691(_0x393a35,_0x3a6faa){var _0x19d750=a14_0x19d7();return a14_0x5691=function(_0x569185,_0x23761b){_0x569185=_0x569185-0x1b7;var _0x170e31=_0x19d750[_0x569185];return _0x170e31;},a14_0x5691(_0x393a35,_0x3a6faa);}Object['defineProperty'](exports,'__esModule',{'value':!![]});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-apihelper",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@anncic-api/typeorm": "^1.2.
|
|
17
|
+
"@anncic-api/typeorm": "^1.2.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^18.8.4",
|
|
21
21
|
"javascript-obfuscator": "2.19.0",
|
|
22
22
|
"typescript": "^4.8.4"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "425478059fdc37cb53af3b1c9022d4cbc116b656"
|
|
25
25
|
}
|