anncic-apihelper 3.4.12 → 3.4.15
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.d.ts +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/Api.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/templateVue/Validator.js +1 -1
- package/dist/templateVueV2/Api.js +1 -1
- package/dist/templateVueV2/Layout.js +1 -1
- package/dist/templateVueV2/LayoutVue.js +1 -1
- package/dist/templateVueV2/Router.js +1 -1
- package/dist/templateVueV2/Validator.js +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x1af9c5=a10_0x38df;(function(_0x145978,_0x57882d){const _0x288682=a10_0x38df,_0x4c21ae=_0x145978();while(!![]){try{const _0x26e681=parseInt(_0x288682(0x121))/0x1+parseInt(_0x288682(0x152))/0x2+-parseInt(_0x288682(0x177))/0x3*(parseInt(_0x288682(0x12f))/0x4)+-parseInt(_0x288682(0x140))/0x5+-parseInt(_0x288682(0x175))/0x6+-parseInt(_0x288682(0x133))/0x7+-parseInt(_0x288682(0x143))/0x8*(-parseInt(_0x288682(0x12b))/0x9);if(_0x26e681===_0x57882d)break;else _0x4c21ae['push'](_0x4c21ae['shift']());}catch(_0x564066){_0x4c21ae['push'](_0x4c21ae['shift']());}}}(a10_0x5508,0x9ef77));const a10_0x373154=(function(){let _0x1ff53a=!![];return function(_0x679830,_0x2af741){const _0x350316=_0x1ff53a?function(){const _0x2dd988=a10_0x38df;if(_0x2af741){const _0x5a89a9=_0x2af741[_0x2dd988(0x16e)](_0x679830,arguments);return _0x2af741=null,_0x5a89a9;}}:function(){};return _0x1ff53a=![],_0x350316;};}()),a10_0x60d795=a10_0x373154(this,function(){const _0x2babb2=a10_0x38df;return a10_0x60d795[_0x2babb2(0x153)]()[_0x2babb2(0x155)]('(((.+)+)+)+$')[_0x2babb2(0x153)]()['constructor'](a10_0x60d795)[_0x2babb2(0x155)](_0x2babb2(0x130));});a10_0x60d795();'use strict';Object[a10_0x1af9c5(0x14c)](exports,'__esModule',{'value':!![]});const fs=require('fs'),helper_1=require('../helper');async function default_1({controllers:_0x315989,tablestartUp:_0x4f4206,tablestartUpShort:_0x1c8dc7,basedir:_0x5356d9,Primary:_0x2397ba,Fields:_0xa9c83c,Comment:_0x5056a6,moduleName:_0xa0845b,apporbasic:_0x4cf7dc}){const _0x392618=a10_0x1af9c5,_0x347332=_0x5356d9+(_0x392618(0x116)+_0x1c8dc7);!fs[_0x392618(0x124)](_0x347332)&&fs[_0x392618(0x128)](_0x347332,{'recursive':!![]}),await DTOCreate({'controllers':_0x315989,'tablestartUp':_0x4f4206,'tablestartUpShort':_0x1c8dc7,'basedir':_0x5356d9,'Fields':_0xa9c83c,'Comment':_0x5056a6,'moduleName':_0xa0845b,'apporbasic':_0x4cf7dc}),await DTOUpdate({'controllers':_0x315989,'tablestartUp':_0x4f4206,'tablestartUpShort':_0x1c8dc7,'basedir':_0x5356d9,'Fields':_0xa9c83c,'Comment':_0x5056a6,'moduleName':_0xa0845b,'apporbasic':_0x4cf7dc}),await DTOSearch({'controllers':_0x315989,'tablestartUp':_0x4f4206,'tablestartUpShort':_0x1c8dc7,'basedir':_0x5356d9,'Fields':_0xa9c83c,'Primary':_0x2397ba,'Comment':_0x5056a6,'moduleName':_0xa0845b,'apporbasic':_0x4cf7dc});}function a10_0x5508(){const _0x8fa4b8=['\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','2727qKuLdG','find','utf-8','Type','1470856uQLnzX','(((.+)+)+)+$','indexOf','text','2902312wjnGCw','\x27,\x20RuleType.date())\x0a','default','/**\x0a','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','DTOCreate\x20{\x0a\x0a','float','double','join','\x27)))\x0a','\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','DTOUpdate\x20{\x0a\x0a',':\x20\x27','2459780iHAcHI',':\x20string;\x0a\x0a','_between?:\x20string[];\x0a\x0a','30040GPDdBb',':\x20number;\x0a\x0a','json','\x20\x20\x20\x20updated_at_between?:\x20string[];\x0a\x0a','DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','mediumtext','\x27;\x0a\x0a','\x27,\x20RuleType.string()','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','defineProperty','\x20*\x20','\x27,\x20RuleType.any())\x0a','substring','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x20\x20\x20\x20@Rule(\x27','1547642hiljID','toString','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','search','longtext','\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a','/Search.ts','\x27,\x20RuleType.number()','enum','\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','tinyint','\x27,\x20\x27','\x20\x20\x20\x20','%DtoColumn%','\x20*\x20数据更新验证\x0a','\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a',':\x20any\x20|\x20any[];\x0a\x0a','Comment','toUpperCase','?:\x20\x27','\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','boolean','Field','YES','DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a','DTOSearch\x20{\x0a\x0a','\x27;\x0a','apply','DTOSearch\x20extends\x20OmitDto(','getProp','replace','toLowerCase','.required()','}\x0a\x0a','971022OUowIi','/Update.ts','3YnzYTH','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x27))\x0a','updated_at','displayorder','date','\x27,\x20RuleType.number())\x0a','timestamp','\x27\x20|\x20\x27','export\x20class\x20','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','?:\x20string;\x0a\x0a','%SearchDtoColumn%','\x27,\x20RuleType.string())\x0a','_end?:\x20string;\x0a\x0a','decimal','Enum,\x20\x27','number','string','?:\x20number;\x0a\x0a','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','Null','/validators/','DTOUpdate\x20extends\x20OmitDto(','deleted_at','Enum\x20}\x20from\x20\x27','/enums/','DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','\x20*\x20**/\x0a','datetime','\x27,\x20RuleType.string().valid(\x27','\x27,\x20RuleType.date()','\x20\x20\x20\x20created_at_between?:\x20string[];\x0a\x0a','175664eaTwIg','getEnum','writeFileSync','existsSync','@/apps/','import\x20{\x20','created_at','mkdirSync','?:\x20any\x20|\x20any[];\x0a\x0a'];a10_0x5508=function(){return _0x8fa4b8;};return a10_0x5508();}function a10_0x38df(_0x408de5,_0xb27a1f){const _0x1c76cd=a10_0x5508();return a10_0x38df=function(_0x60d795,_0x373154){_0x60d795=_0x60d795-0x10d;let _0x5508fe=_0x1c76cd[_0x60d795];return _0x5508fe;},a10_0x38df(_0x408de5,_0xb27a1f);}exports[a10_0x1af9c5(0x135)]=default_1;async function DTOCreate({controllers:_0x348a03,tablestartUp:_0x397030,tablestartUpShort:_0x6166e0,basedir:_0x511a49,Fields:_0x348df2,Comment:_0x280ad4,moduleName:_0x8e7b16,apporbasic:_0x2bdaca}){const _0x11c286=a10_0x1af9c5,_0x587714=_0x511a49+(_0x11c286(0x116)+_0x6166e0+'/Create.ts');if(!fs['existsSync'](_0x587714)){let _0xec0ea='',_0x55f2e7='',_0xa1c459=![];for(let _0x5c0ba4 in _0x348df2){let _0x51b9c1=_0x348df2[_0x5c0ba4],_0x2c0069=(0x0,helper_1[_0x11c286(0x170)])(_0x51b9c1[_0x11c286(0x12e)]);if(_0x51b9c1[_0x11c286(0x169)]==_0x11c286(0x17b)||_0x51b9c1[_0x11c286(0x169)]==_0x11c286(0x127)||_0x51b9c1['Field']==_0x11c286(0x17a)||_0x51b9c1[_0x11c286(0x169)]==_0x11c286(0x118))continue;if([_0x11c286(0x132),'longtext',_0x11c286(0x148)][_0x11c286(0x131)](_0x2c0069)!=-0x1)_0xec0ea+='\x20\x20\x20\x20@Rule(\x27'+_0x51b9c1['Comment']+_0x11c286(0x10d),_0xec0ea+=_0x11c286(0x15e)+_0x51b9c1['Field']+'?:\x20string;\x0a\x0a';else{if(['float',_0x11c286(0x13a),_0x11c286(0x10f),_0x11c286(0x111)][_0x11c286(0x131)](_0x2c0069)!=-0x1)_0xec0ea+=_0x11c286(0x151)+_0x51b9c1[_0x11c286(0x163)]+_0x11c286(0x159)+(_0x51b9c1[_0x11c286(0x115)]!='YES'?_0x11c286(0x173):'')+')\x0a',_0xec0ea+='\x20\x20\x20\x20'+_0x51b9c1[_0x11c286(0x169)]+(_0x51b9c1[_0x11c286(0x115)]!=_0x11c286(0x16a)?'?':'')+_0x11c286(0x144);else{if([_0x11c286(0x15c)][_0x11c286(0x131)](_0x2c0069)!=-0x1)_0xa1c459=!![],_0xec0ea+='\x20\x20\x20\x20@Rule(\x27'+_0x51b9c1[_0x11c286(0x163)]+_0x11c286(0x181)+_0x397030+'Enum,\x20\x27'+_0x51b9c1['Field']+'\x27))'+(_0x51b9c1[_0x11c286(0x115)]!=_0x11c286(0x16a)?_0x11c286(0x173):'')+')\x0a',_0xec0ea+='\x20\x20\x20\x20'+_0x51b9c1[_0x11c286(0x169)]+(_0x51b9c1[_0x11c286(0x115)]!='YES'?'?':'')+_0x11c286(0x144);else{if(_0x2c0069==_0x11c286(0x145))_0xec0ea+=_0x11c286(0x151)+_0x51b9c1[_0x11c286(0x163)]+_0x11c286(0x14e),_0xec0ea+=_0x11c286(0x15e)+_0x51b9c1[_0x11c286(0x169)]+(_0x51b9c1['Null']!=_0x11c286(0x16a)?'?':'')+_0x11c286(0x162);else{if(_0x2c0069=='enum'){let _0xfffaf1=(0x0,helper_1[_0x11c286(0x122)])(_0x51b9c1[_0x11c286(0x12e)]);_0xec0ea+='\x20\x20\x20\x20@Rule(\x27'+_0x51b9c1[_0x11c286(0x163)]+_0x11c286(0x11e)+_0xfffaf1[_0x11c286(0x13b)](_0x11c286(0x15d))+'\x27)'+(_0x51b9c1[_0x11c286(0x115)]!=_0x11c286(0x16a)?_0x11c286(0x173):'')+')\x0a',_0xec0ea+=_0x11c286(0x15e)+_0x51b9c1[_0x11c286(0x169)]+(_0x51b9c1[_0x11c286(0x115)]!='YES'?'?':'')+_0x11c286(0x13f)+_0xfffaf1[_0x11c286(0x13b)](_0x11c286(0x17f))+_0x11c286(0x149);}else[_0x11c286(0x17c),_0x11c286(0x11d),_0x11c286(0x17e)][_0x11c286(0x131)](_0x2c0069)>-0x1?(_0xec0ea+=_0x11c286(0x151)+_0x51b9c1['Comment']+_0x11c286(0x11f)+(_0x51b9c1[_0x11c286(0x115)]!=_0x11c286(0x16a)?_0x11c286(0x173):'')+')\x0a',_0xec0ea+='\x20\x20\x20\x20'+_0x51b9c1['Field']+(_0x51b9c1[_0x11c286(0x115)]!='YES'?'?':'')+_0x11c286(0x141)):(_0xec0ea+=_0x11c286(0x151)+_0x51b9c1[_0x11c286(0x163)]+_0x11c286(0x14a)+(_0x51b9c1[_0x11c286(0x115)]!=_0x11c286(0x16a)?_0x11c286(0x173):'')+')\x0a',_0xec0ea+=_0x11c286(0x15e)+_0x51b9c1[_0x11c286(0x169)]+(_0x51b9c1[_0x11c286(0x115)]!=_0x11c286(0x16a)?'?':'')+_0x11c286(0x141));}}}}}_0xec0ea+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0xec0ea+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a';(_0x348a03===null||_0x348a03===void 0x0?void 0x0:_0x348a03['find'](_0x2c23be=>typeof _0x2c23be!='boolean'))?_0x55f2e7+=_0x11c286(0x167):_0x55f2e7+=_0x11c286(0x14b);_0xa1c459&&(_0x55f2e7+='import\x20{\x20'+_0x397030+_0x11c286(0x119)+(typeof _0x8e7b16=='string'?_0x11c286(0x125)+_0x8e7b16:'@/'+_0x2bdaca)+_0x11c286(0x11a)+_0x6166e0+_0x11c286(0x16d));_0x55f2e7+='\x0a',_0x55f2e7+=_0x11c286(0x136),_0x55f2e7+=_0x11c286(0x14d)+_0x280ad4+'\x0a',_0x55f2e7+='\x20*\x20数据添加验证\x0a',_0x55f2e7+=_0x11c286(0x11c),_0x55f2e7+=_0x11c286(0x180)+_0x397030+_0x11c286(0x138),_0x55f2e7+=_0x11c286(0x15f),_0x55f2e7+=_0x11c286(0x174);for(const _0x3f08b6 of _0x348a03){typeof _0x3f08b6==_0x11c286(0x112)&&(_0x55f2e7+=_0x11c286(0x180)+_0x3f08b6[_0x11c286(0x14f)](0x0,0x1)[_0x11c286(0x164)]()+_0x3f08b6[_0x11c286(0x14f)](0x1)[_0x11c286(0x172)]()+_0x397030+'DTOCreate\x20extends\x20OmitDto('+_0x397030+_0x11c286(0x147),_0x55f2e7+=_0x11c286(0x174));}_0x55f2e7=_0x55f2e7[_0x11c286(0x171)](_0x11c286(0x15f),_0xec0ea),fs[_0x11c286(0x123)](_0x587714,_0x55f2e7,'utf-8');}}async function DTOUpdate({controllers:_0x69e9e6,tablestartUp:_0x1fdc60,tablestartUpShort:_0x131f9b,basedir:_0x532992,Fields:_0x19c81f,Comment:_0x5d57a5,moduleName:_0x303b1d,apporbasic:_0x5019ca}){const _0x2f9fa5=a10_0x1af9c5,_0x9cfa3=_0x532992+('/validators/'+_0x131f9b+_0x2f9fa5(0x176));if(!fs[_0x2f9fa5(0x124)](_0x9cfa3)){let _0x4ab5d4='',_0x23de80='',_0x4a1837=![];for(let _0x478d5d in _0x19c81f){let _0x387c59=_0x19c81f[_0x478d5d],_0x3e5e7a=(0x0,helper_1['getProp'])(_0x387c59[_0x2f9fa5(0x12e)]);if(_0x387c59[_0x2f9fa5(0x169)]==_0x2f9fa5(0x17b)||_0x387c59[_0x2f9fa5(0x169)]==_0x2f9fa5(0x127)||_0x387c59[_0x2f9fa5(0x169)]==_0x2f9fa5(0x17a)||_0x387c59[_0x2f9fa5(0x169)]==_0x2f9fa5(0x118))continue;if([_0x2f9fa5(0x132),_0x2f9fa5(0x156),'mediumtext']['indexOf'](_0x3e5e7a)!=-0x1)_0x4ab5d4+='\x20\x20\x20\x20@Rule(\x27'+_0x387c59['Comment']+_0x2f9fa5(0x10d),_0x4ab5d4+=_0x2f9fa5(0x15e)+_0x387c59[_0x2f9fa5(0x169)]+_0x2f9fa5(0x182);else{if([_0x2f9fa5(0x139),_0x2f9fa5(0x13a),_0x2f9fa5(0x10f),_0x2f9fa5(0x111)]['indexOf'](_0x3e5e7a)!=-0x1)_0x4ab5d4+='\x20\x20\x20\x20@Rule(\x27'+_0x387c59[_0x2f9fa5(0x163)]+_0x2f9fa5(0x17d),_0x4ab5d4+=_0x2f9fa5(0x15e)+_0x387c59[_0x2f9fa5(0x169)]+'?:\x20number;\x0a\x0a';else{if(['tinyint'][_0x2f9fa5(0x131)](_0x3e5e7a)!=-0x1)_0x4a1837=!![],_0x4ab5d4+=_0x2f9fa5(0x151)+_0x387c59[_0x2f9fa5(0x163)]+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0x1fdc60+_0x2f9fa5(0x110)+_0x387c59[_0x2f9fa5(0x169)]+'\x27)))\x0a',_0x4ab5d4+=_0x2f9fa5(0x15e)+_0x387c59[_0x2f9fa5(0x169)]+_0x2f9fa5(0x113);else{if(_0x3e5e7a==_0x2f9fa5(0x145))_0x4ab5d4+=_0x2f9fa5(0x151)+_0x387c59[_0x2f9fa5(0x163)]+_0x2f9fa5(0x14e),_0x4ab5d4+=_0x2f9fa5(0x15e)+_0x387c59['Field']+_0x2f9fa5(0x129);else{if(_0x3e5e7a=='enum'){let _0x5e7cad=(0x0,helper_1[_0x2f9fa5(0x122)])(_0x387c59[_0x2f9fa5(0x12e)]);_0x4ab5d4+=_0x2f9fa5(0x151)+_0x387c59['Comment']+_0x2f9fa5(0x11e)+_0x5e7cad[_0x2f9fa5(0x13b)](_0x2f9fa5(0x15d))+_0x2f9fa5(0x179),_0x4ab5d4+=_0x2f9fa5(0x15e)+_0x387c59[_0x2f9fa5(0x169)]+_0x2f9fa5(0x165)+_0x5e7cad[_0x2f9fa5(0x13b)](_0x2f9fa5(0x17f))+_0x2f9fa5(0x149);}else['date',_0x2f9fa5(0x11d),_0x2f9fa5(0x17e)][_0x2f9fa5(0x131)](_0x3e5e7a)>-0x1?(_0x4ab5d4+='\x20\x20\x20\x20@Rule(\x27'+_0x387c59['Comment']+_0x2f9fa5(0x134),_0x4ab5d4+=_0x2f9fa5(0x15e)+_0x387c59[_0x2f9fa5(0x169)]+_0x2f9fa5(0x182)):(_0x4ab5d4+=_0x2f9fa5(0x151)+_0x387c59[_0x2f9fa5(0x163)]+_0x2f9fa5(0x10d),_0x4ab5d4+=_0x2f9fa5(0x15e)+_0x387c59['Field']+_0x2f9fa5(0x182));}}}}}_0x4ab5d4+=_0x2f9fa5(0x12a),_0x4ab5d4+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a';(_0x69e9e6===null||_0x69e9e6===void 0x0?void 0x0:_0x69e9e6[_0x2f9fa5(0x12c)](_0x5f5a03=>typeof _0x5f5a03!=_0x2f9fa5(0x168)))?_0x23de80+=_0x2f9fa5(0x167):_0x23de80+='import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a';_0x4a1837&&(_0x23de80+=_0x2f9fa5(0x126)+_0x1fdc60+_0x2f9fa5(0x119)+(typeof _0x303b1d==_0x2f9fa5(0x112)?'@/apps/'+_0x303b1d:'@/'+_0x5019ca)+'/enums/'+_0x131f9b+'\x27;\x0a');_0x23de80+='\x0a',_0x23de80+=_0x2f9fa5(0x136),_0x23de80+='\x20*\x20'+_0x5d57a5+'\x0a',_0x23de80+=_0x2f9fa5(0x160),_0x23de80+=_0x2f9fa5(0x11c),_0x23de80+=_0x2f9fa5(0x180)+_0x1fdc60+_0x2f9fa5(0x13e),_0x23de80+=_0x2f9fa5(0x15f),_0x23de80+=_0x2f9fa5(0x174);for(const _0x5c0d5b of _0x69e9e6){typeof _0x5c0d5b=='string'&&(_0x23de80+=_0x2f9fa5(0x180)+_0x5c0d5b[_0x2f9fa5(0x14f)](0x0,0x1)[_0x2f9fa5(0x164)]()+_0x5c0d5b['substring'](0x1)[_0x2f9fa5(0x172)]()+_0x1fdc60+_0x2f9fa5(0x117)+_0x1fdc60+_0x2f9fa5(0x11b),_0x23de80+=_0x2f9fa5(0x174));}_0x23de80=_0x23de80[_0x2f9fa5(0x171)](_0x2f9fa5(0x15f),_0x4ab5d4),fs[_0x2f9fa5(0x123)](_0x9cfa3,_0x23de80,_0x2f9fa5(0x12d));}}async function DTOSearch({controllers:_0xd245cd,tablestartUp:_0x308da3,tablestartUpShort:_0x263f6f,basedir:_0x4cd60d,Fields:_0x45f6e1,Primary:_0x42292b,Comment:_0x3fda8c,moduleName:_0x2add30,apporbasic:_0x176738}){const _0x3f7430=a10_0x1af9c5,_0xe61438=_0x4cd60d+('/validators/'+_0x263f6f+_0x3f7430(0x158));if(!fs[_0x3f7430(0x124)](_0xe61438)){let _0x2681b9='',_0x2f22a7='',_0x537876=![];for(let _0x81d3e0 of[{[_0x42292b[_0x3f7430(0x169)]]:_0x42292b},_0x45f6e1]){for(let _0x1af635 in _0x81d3e0){let _0x27309b=_0x81d3e0[_0x1af635],_0x245555=(0x0,helper_1['getProp'])(_0x27309b[_0x3f7430(0x12e)]);if(_0x27309b[_0x3f7430(0x169)]==_0x3f7430(0x17b)||_0x27309b[_0x3f7430(0x169)]==_0x3f7430(0x127)||_0x27309b['Field']==_0x3f7430(0x17a)||_0x27309b[_0x3f7430(0x169)]==_0x3f7430(0x118))continue;if([_0x3f7430(0x132),_0x3f7430(0x156),_0x3f7430(0x148)][_0x3f7430(0x131)](_0x245555)!=-0x1){}else{if([_0x3f7430(0x139),_0x3f7430(0x13a),_0x3f7430(0x10f),'number'][_0x3f7430(0x131)](_0x245555)!=-0x1)_0x2681b9+=_0x3f7430(0x151)+_0x27309b[_0x3f7430(0x163)]+_0x3f7430(0x17d),_0x2681b9+='\x20\x20\x20\x20'+_0x27309b['Field']+_0x3f7430(0x113);else{if([_0x3f7430(0x15c)][_0x3f7430(0x131)](_0x245555)!=-0x1)_0x537876=!![],_0x2681b9+=_0x3f7430(0x151)+_0x27309b['Comment']+_0x3f7430(0x181)+_0x308da3+'Enum,\x20\x27'+_0x27309b[_0x3f7430(0x169)]+_0x3f7430(0x13c),_0x2681b9+='\x20\x20\x20\x20'+_0x27309b[_0x3f7430(0x169)]+_0x3f7430(0x113);else{if(_0x245555==_0x3f7430(0x145)){}else{if(_0x245555==_0x3f7430(0x15a)){let _0x4f191c=(0x0,helper_1[_0x3f7430(0x122)])(_0x27309b[_0x3f7430(0x12e)]);_0x2681b9+=_0x3f7430(0x151)+_0x27309b[_0x3f7430(0x163)]+'\x27,\x20RuleType.string().valid(\x27'+_0x4f191c[_0x3f7430(0x13b)](_0x3f7430(0x15d))+_0x3f7430(0x179),_0x2681b9+='\x20\x20\x20\x20'+_0x27309b[_0x3f7430(0x169)]+_0x3f7430(0x165)+_0x4f191c[_0x3f7430(0x13b)](_0x3f7430(0x17f))+_0x3f7430(0x149);}else['date','datetime','timestamp'][_0x3f7430(0x131)](_0x245555)>-0x1?(_0x2681b9+=_0x3f7430(0x151)+_0x27309b[_0x3f7430(0x163)]+_0x3f7430(0x10d),_0x2681b9+=_0x3f7430(0x15e)+_0x27309b[_0x3f7430(0x169)]+_0x3f7430(0x182),_0x2681b9+='\x20\x20\x20\x20@Rule(\x27'+_0x27309b[_0x3f7430(0x163)]+_0x3f7430(0x15b),_0x2681b9+=_0x3f7430(0x15e)+_0x27309b[_0x3f7430(0x169)]+_0x3f7430(0x142),_0x2681b9+=_0x3f7430(0x151)+_0x27309b[_0x3f7430(0x163)]+_0x3f7430(0x13d),_0x2681b9+=_0x3f7430(0x15e)+_0x27309b[_0x3f7430(0x169)]+'_start?:\x20string;\x0a\x0a',_0x2681b9+='\x20\x20\x20\x20@Rule(\x27'+_0x27309b[_0x3f7430(0x163)]+'\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x2681b9+=_0x3f7430(0x15e)+_0x27309b[_0x3f7430(0x169)]+_0x3f7430(0x10e)):(_0x2681b9+=_0x3f7430(0x151)+_0x27309b[_0x3f7430(0x163)]+_0x3f7430(0x10d),_0x2681b9+='\x20\x20\x20\x20'+_0x27309b[_0x3f7430(0x169)]+_0x3f7430(0x182));}}}}}}_0x2681b9+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0x2681b9+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a',_0x2681b9+=_0x3f7430(0x154),_0x2681b9+=_0x3f7430(0x120),_0x2681b9+=_0x3f7430(0x178),_0x2681b9+=_0x3f7430(0x166),_0x2681b9+=_0x3f7430(0x137),_0x2681b9+='\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a',_0x2681b9+='\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a',_0x2681b9+=_0x3f7430(0x146),_0x2681b9+=_0x3f7430(0x150),_0x2681b9+=_0x3f7430(0x161),_0x2681b9+=_0x3f7430(0x114),_0x2681b9+=_0x3f7430(0x157);(_0xd245cd===null||_0xd245cd===void 0x0?void 0x0:_0xd245cd[_0x3f7430(0x12c)](_0x5acc3b=>typeof _0x5acc3b!=_0x3f7430(0x168)))?_0x2f22a7+=_0x3f7430(0x167):_0x2f22a7+='import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a';_0x537876&&(_0x2f22a7+='import\x20{\x20'+_0x308da3+_0x3f7430(0x119)+(typeof _0x2add30=='string'?_0x3f7430(0x125)+_0x2add30:'@/'+_0x176738)+_0x3f7430(0x11a)+_0x263f6f+'\x27;\x0a');_0x2f22a7+='\x0a',_0x2f22a7+='/**\x0a',_0x2f22a7+=_0x3f7430(0x14d)+_0x3fda8c+'\x0a',_0x2f22a7+='\x20*\x20数据检索验证\x0a',_0x2f22a7+=_0x3f7430(0x11c),_0x2f22a7+='export\x20class\x20'+_0x308da3+_0x3f7430(0x16c),_0x2f22a7+=_0x3f7430(0x183),_0x2f22a7+=_0x3f7430(0x174);for(const _0x1378f of _0xd245cd){typeof _0x1378f==_0x3f7430(0x112)&&(_0x2f22a7+=_0x3f7430(0x180)+_0x1378f[_0x3f7430(0x14f)](0x0,0x1)[_0x3f7430(0x164)]()+_0x1378f[_0x3f7430(0x14f)](0x1)[_0x3f7430(0x172)]()+_0x308da3+_0x3f7430(0x16f)+_0x308da3+_0x3f7430(0x16b),_0x2f22a7+=_0x3f7430(0x174));}_0x2f22a7=_0x2f22a7[_0x3f7430(0x171)](_0x3f7430(0x183),_0x2681b9),fs[_0x3f7430(0x123)](_0xe61438,_0x2f22a7,'utf-8');}}
|
|
1
|
+
const a10_0x17df9f=a10_0x2498;(function(_0x3a477c,_0x1dc5ae){const _0x509b26=a10_0x2498,_0x22482d=_0x3a477c();while(!![]){try{const _0x3a288c=parseInt(_0x509b26(0x20b))/0x1+parseInt(_0x509b26(0x20c))/0x2+-parseInt(_0x509b26(0x1f1))/0x3+parseInt(_0x509b26(0x252))/0x4+-parseInt(_0x509b26(0x204))/0x5+-parseInt(_0x509b26(0x210))/0x6+parseInt(_0x509b26(0x21b))/0x7;if(_0x3a288c===_0x1dc5ae)break;else _0x22482d['push'](_0x22482d['shift']());}catch(_0x3c92c3){_0x22482d['push'](_0x22482d['shift']());}}}(a10_0x57b5,0x204cd));const a10_0x8cbe02=(function(){let _0x4c0e33=!![];return function(_0x234d10,_0x1f0cab){const _0x2b686f=_0x4c0e33?function(){if(_0x1f0cab){const _0x10e3d2=_0x1f0cab['apply'](_0x234d10,arguments);return _0x1f0cab=null,_0x10e3d2;}}:function(){};return _0x4c0e33=![],_0x2b686f;};}()),a10_0x356464=a10_0x8cbe02(this,function(){const _0x16e549=a10_0x2498;return a10_0x356464['toString']()[_0x16e549(0x22d)](_0x16e549(0x21f))[_0x16e549(0x224)]()[_0x16e549(0x1eb)](a10_0x356464)[_0x16e549(0x22d)](_0x16e549(0x21f));});a10_0x356464();function a10_0x2498(_0x4ca0da,_0x3899b4){const _0x8876c7=a10_0x57b5();return a10_0x2498=function(_0x356464,_0x8cbe02){_0x356464=_0x356464-0x1e7;let _0x57b59b=_0x8876c7[_0x356464];return _0x57b59b;},a10_0x2498(_0x4ca0da,_0x3899b4);}'use strict';Object[a10_0x17df9f(0x1f3)](exports,'__esModule',{'value':!![]});function a10_0x57b5(){const _0x1d0bec=['default','\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a','/**\x0a','updated_at','197250oZLUEE','\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','float','?:\x20any\x20|\x20any[];\x0a\x0a','?:\x20number;\x0a\x0a','import\x20{\x20','32646OTZOBE','149602qWUTsz','\x27,\x20RuleType.number())\x0a','text','double','566604IeLlRm','indexOf','deleted_at','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','substring','Enum\x20}\x20from\x20\x27','\x20*\x20数据更新验证\x0a','?:\x20\x27','\x27,\x20RuleType.any())\x0a','utf-8','\x27,\x20RuleType.string()','1285088vyHJsR','toUpperCase','find','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','(((.+)+)+)+$','/Create.ts','getProp','\x20\x20\x20\x20','/Search.ts','toString','displayorder','\x20*\x20数据检索验证\x0a','Type','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','.required()','DTOCreate\x20extends\x20OmitDto(','existsSync','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','search','writeFileSync','\x20\x20\x20\x20@Rule(\x27','Comment','number','DTOSearch\x20extends\x20OmitDto(',':\x20\x27','DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a',':\x20string;\x0a\x0a',':\x20number;\x0a\x0a','getEnum','/enums/','decimal','_end?:\x20string;\x0a\x0a','/Update.ts','\x20*\x20数据添加验证\x0a','replace','tinyint','mediumtext','date','Enum,\x20\x27','%DtoColumn%','join','\x27))','mkdirSync','\x20\x20\x20\x20updated_at_between?:\x20string[];\x0a\x0a',':\x20any\x20|\x20any[];\x0a\x0a','\x27)))\x0a','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','\x27\x20|\x20\x27','enum','\x27,\x20\x27','../helper','\x27,\x20RuleType.date())\x0a','\x27,\x20RuleType.string())\x0a','\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a','443396GQksQi','DTOUpdate\x20{\x0a\x0a','datetime','\x27;\x0a','\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a','\x27;\x0a\x0a','\x27))\x0a','json','Null','YES','export\x20class\x20','timestamp','\x27,\x20RuleType.string().valid(\x27','constructor','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','_start?:\x20string;\x0a\x0a','DTOSearch\x20{\x0a\x0a','\x20\x20\x20\x20created_at_between?:\x20string[];\x0a\x0a','407085oaOwyX','?:\x20string;\x0a\x0a','defineProperty','string','\x20*\x20**/\x0a','boolean','}\x0a\x0a','toLowerCase','longtext','\x27,\x20RuleType.number()','@/apps/','/validators/','Field','%SearchDtoColumn%','\x20*\x20'];a10_0x57b5=function(){return _0x1d0bec;};return a10_0x57b5();}const fs=require('fs'),helper_1=require(a10_0x17df9f(0x24e));async function default_1({controllers:_0x44cacf,tablestartUp:_0x4524b8,tablestartUpShort:_0x501bee,basedir:_0xa60c85,Primary:_0x505dac,Fields:_0xc4112b,Comment:_0x514f99,moduleName:_0x240ff1,apporbasic:_0x4a506d}){const _0x1f1b34=a10_0x17df9f,_0x12c8ee=_0xa60c85+(_0x1f1b34(0x1fc)+_0x501bee);!fs[_0x1f1b34(0x22b)](_0x12c8ee)&&fs[_0x1f1b34(0x246)](_0x12c8ee,{'recursive':!![]}),await DTOCreate({'controllers':_0x44cacf,'tablestartUp':_0x4524b8,'tablestartUpShort':_0x501bee,'basedir':_0xa60c85,'Fields':_0xc4112b,'Comment':_0x514f99,'moduleName':_0x240ff1,'apporbasic':_0x4a506d}),await DTOUpdate({'controllers':_0x44cacf,'tablestartUp':_0x4524b8,'tablestartUpShort':_0x501bee,'basedir':_0xa60c85,'Fields':_0xc4112b,'Comment':_0x514f99,'moduleName':_0x240ff1,'apporbasic':_0x4a506d}),await DTOSearch({'controllers':_0x44cacf,'tablestartUp':_0x4524b8,'tablestartUpShort':_0x501bee,'basedir':_0xa60c85,'Fields':_0xc4112b,'Primary':_0x505dac,'Comment':_0x514f99,'moduleName':_0x240ff1,'apporbasic':_0x4a506d});}exports[a10_0x17df9f(0x200)]=default_1;async function DTOCreate({controllers:_0x18a63f,tablestartUp:_0x45d93f,tablestartUpShort:_0x4c6e9b,basedir:_0x381760,Fields:_0x1e44bb,Comment:_0x4b1cb1,moduleName:_0x4407a3,apporbasic:_0x489f87}){const _0x3f833c=a10_0x17df9f,_0x90af8d=_0x381760+(_0x3f833c(0x1fc)+_0x4c6e9b+_0x3f833c(0x220));if(!fs[_0x3f833c(0x22b)](_0x90af8d)){let _0x2d4b74='',_0x420234='',_0x1c2209=![];for(let _0x2a90cc in _0x1e44bb){let _0x1a3f02=_0x1e44bb[_0x2a90cc],_0x53865c=(0x0,helper_1[_0x3f833c(0x221)])(_0x1a3f02[_0x3f833c(0x227)]);if(_0x1a3f02[_0x3f833c(0x1fd)]=='displayorder'||_0x1a3f02[_0x3f833c(0x1fd)]=='created_at'||_0x1a3f02[_0x3f833c(0x1fd)]==_0x3f833c(0x203)||_0x1a3f02[_0x3f833c(0x1fd)]==_0x3f833c(0x212))continue;if([_0x3f833c(0x20e),'longtext',_0x3f833c(0x240)][_0x3f833c(0x211)](_0x53865c)!=-0x1)_0x2d4b74+='\x20\x20\x20\x20@Rule(\x27'+_0x1a3f02['Comment']+'\x27,\x20RuleType.string())\x0a',_0x2d4b74+='\x20\x20\x20\x20'+_0x1a3f02[_0x3f833c(0x1fd)]+_0x3f833c(0x1f2);else{if([_0x3f833c(0x207),'double',_0x3f833c(0x23a),_0x3f833c(0x231)][_0x3f833c(0x211)](_0x53865c)!=-0x1)_0x2d4b74+=_0x3f833c(0x22f)+_0x1a3f02[_0x3f833c(0x230)]+_0x3f833c(0x1fa)+(_0x1a3f02[_0x3f833c(0x25a)]!=_0x3f833c(0x1e7)?_0x3f833c(0x229):'')+')\x0a',_0x2d4b74+=_0x3f833c(0x222)+_0x1a3f02['Field']+(_0x1a3f02[_0x3f833c(0x25a)]!=_0x3f833c(0x1e7)?'?':'')+_0x3f833c(0x237);else{if(['tinyint'][_0x3f833c(0x211)](_0x53865c)!=-0x1)_0x1c2209=!![],_0x2d4b74+=_0x3f833c(0x22f)+_0x1a3f02[_0x3f833c(0x230)]+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0x45d93f+_0x3f833c(0x242)+_0x1a3f02[_0x3f833c(0x1fd)]+_0x3f833c(0x245)+(_0x1a3f02['Null']!=_0x3f833c(0x1e7)?_0x3f833c(0x229):'')+')\x0a',_0x2d4b74+='\x20\x20\x20\x20'+_0x1a3f02['Field']+(_0x1a3f02[_0x3f833c(0x25a)]!=_0x3f833c(0x1e7)?'?':'')+_0x3f833c(0x237);else{if(_0x53865c==_0x3f833c(0x259))_0x2d4b74+='\x20\x20\x20\x20@Rule(\x27'+_0x1a3f02['Comment']+'\x27,\x20RuleType.any())\x0a',_0x2d4b74+=_0x3f833c(0x222)+_0x1a3f02[_0x3f833c(0x1fd)]+(_0x1a3f02[_0x3f833c(0x25a)]!=_0x3f833c(0x1e7)?'?':'')+_0x3f833c(0x248);else{if(_0x53865c==_0x3f833c(0x24c)){let _0x28e563=(0x0,helper_1['getEnum'])(_0x1a3f02[_0x3f833c(0x227)]);_0x2d4b74+=_0x3f833c(0x22f)+_0x1a3f02[_0x3f833c(0x230)]+_0x3f833c(0x1ea)+_0x28e563[_0x3f833c(0x244)](_0x3f833c(0x24d))+'\x27)'+(_0x1a3f02[_0x3f833c(0x25a)]!=_0x3f833c(0x1e7)?_0x3f833c(0x229):'')+')\x0a',_0x2d4b74+=_0x3f833c(0x222)+_0x1a3f02[_0x3f833c(0x1fd)]+(_0x1a3f02[_0x3f833c(0x25a)]!=_0x3f833c(0x1e7)?'?':'')+_0x3f833c(0x233)+_0x28e563[_0x3f833c(0x244)](_0x3f833c(0x24b))+_0x3f833c(0x257);}else[_0x3f833c(0x241),_0x3f833c(0x254),_0x3f833c(0x1e9)][_0x3f833c(0x211)](_0x53865c)>-0x1?(_0x2d4b74+=_0x3f833c(0x22f)+_0x1a3f02[_0x3f833c(0x230)]+'\x27,\x20RuleType.date()'+(_0x1a3f02['Null']!=_0x3f833c(0x1e7)?'.required()':'')+')\x0a',_0x2d4b74+='\x20\x20\x20\x20'+_0x1a3f02[_0x3f833c(0x1fd)]+(_0x1a3f02[_0x3f833c(0x25a)]!='YES'?'?':'')+':\x20string;\x0a\x0a'):(_0x2d4b74+=_0x3f833c(0x22f)+_0x1a3f02['Comment']+_0x3f833c(0x21a)+(_0x1a3f02[_0x3f833c(0x25a)]!=_0x3f833c(0x1e7)?_0x3f833c(0x229):'')+')\x0a',_0x2d4b74+=_0x3f833c(0x222)+_0x1a3f02[_0x3f833c(0x1fd)]+(_0x1a3f02[_0x3f833c(0x25a)]!='YES'?'?':'')+_0x3f833c(0x236));}}}}}_0x2d4b74+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0x2d4b74+=_0x3f833c(0x24a);(_0x18a63f===null||_0x18a63f===void 0x0?void 0x0:_0x18a63f['find'](_0x2febe9=>typeof _0x2febe9!=_0x3f833c(0x1f6)))?_0x420234+=_0x3f833c(0x213):_0x420234+='import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a';_0x1c2209&&(_0x420234+=_0x3f833c(0x20a)+_0x45d93f+_0x3f833c(0x215)+(typeof _0x4407a3==_0x3f833c(0x1f4)?'@/apps/'+_0x4407a3:'@/'+_0x489f87)+_0x3f833c(0x239)+_0x4c6e9b+_0x3f833c(0x255));_0x420234+='\x0a',_0x420234+=_0x3f833c(0x202),_0x420234+=_0x3f833c(0x1ff)+_0x4b1cb1+'\x0a',_0x420234+=_0x3f833c(0x23d),_0x420234+='\x20*\x20**/\x0a',_0x420234+=_0x3f833c(0x1e8)+_0x45d93f+'DTOCreate\x20{\x0a\x0a',_0x420234+=_0x3f833c(0x243),_0x420234+=_0x3f833c(0x1f7);for(const _0x7c15c9 of _0x18a63f){typeof _0x7c15c9==_0x3f833c(0x1f4)&&(_0x420234+=_0x3f833c(0x1e8)+_0x7c15c9['substring'](0x0,0x1)[_0x3f833c(0x21c)]()+_0x7c15c9[_0x3f833c(0x214)](0x1)['toLowerCase']()+_0x45d93f+_0x3f833c(0x22a)+_0x45d93f+'DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x420234+='}\x0a\x0a');}_0x420234=_0x420234['replace'](_0x3f833c(0x243),_0x2d4b74),fs['writeFileSync'](_0x90af8d,_0x420234,_0x3f833c(0x219));}}async function DTOUpdate({controllers:_0x3e1813,tablestartUp:_0x402d9f,tablestartUpShort:_0x499ec7,basedir:_0x4124b0,Fields:_0x2a0f6d,Comment:_0xd42374,moduleName:_0xc31dfa,apporbasic:_0x20b086}){const _0xdf40=a10_0x17df9f,_0xc76101=_0x4124b0+(_0xdf40(0x1fc)+_0x499ec7+_0xdf40(0x23c));if(!fs[_0xdf40(0x22b)](_0xc76101)){let _0x4df9e0='',_0x22b4b2='',_0x1fec4d=![];for(let _0x26ecca in _0x2a0f6d){let _0x188d7e=_0x2a0f6d[_0x26ecca],_0x33e34d=(0x0,helper_1[_0xdf40(0x221)])(_0x188d7e[_0xdf40(0x227)]);if(_0x188d7e[_0xdf40(0x1fd)]==_0xdf40(0x225)||_0x188d7e[_0xdf40(0x1fd)]=='created_at'||_0x188d7e['Field']==_0xdf40(0x203)||_0x188d7e[_0xdf40(0x1fd)]==_0xdf40(0x212))continue;if([_0xdf40(0x20e),'longtext',_0xdf40(0x240)]['indexOf'](_0x33e34d)!=-0x1)_0x4df9e0+=_0xdf40(0x22f)+_0x188d7e[_0xdf40(0x230)]+_0xdf40(0x250),_0x4df9e0+=_0xdf40(0x222)+_0x188d7e[_0xdf40(0x1fd)]+_0xdf40(0x1f2);else{if([_0xdf40(0x207),_0xdf40(0x20f),'decimal',_0xdf40(0x231)][_0xdf40(0x211)](_0x33e34d)!=-0x1)_0x4df9e0+='\x20\x20\x20\x20@Rule(\x27'+_0x188d7e[_0xdf40(0x230)]+'\x27,\x20RuleType.number())\x0a',_0x4df9e0+=_0xdf40(0x222)+_0x188d7e[_0xdf40(0x1fd)]+_0xdf40(0x209);else{if(['tinyint'][_0xdf40(0x211)](_0x33e34d)!=-0x1)_0x1fec4d=!![],_0x4df9e0+='\x20\x20\x20\x20@Rule(\x27'+_0x188d7e[_0xdf40(0x230)]+_0xdf40(0x1ed)+_0x402d9f+_0xdf40(0x242)+_0x188d7e[_0xdf40(0x1fd)]+_0xdf40(0x249),_0x4df9e0+=_0xdf40(0x222)+_0x188d7e['Field']+_0xdf40(0x209);else{if(_0x33e34d==_0xdf40(0x259))_0x4df9e0+=_0xdf40(0x22f)+_0x188d7e['Comment']+_0xdf40(0x218),_0x4df9e0+=_0xdf40(0x222)+_0x188d7e[_0xdf40(0x1fd)]+_0xdf40(0x208);else{if(_0x33e34d==_0xdf40(0x24c)){let _0x46ae6f=(0x0,helper_1[_0xdf40(0x238)])(_0x188d7e[_0xdf40(0x227)]);_0x4df9e0+=_0xdf40(0x22f)+_0x188d7e[_0xdf40(0x230)]+_0xdf40(0x1ea)+_0x46ae6f[_0xdf40(0x244)](_0xdf40(0x24d))+_0xdf40(0x258),_0x4df9e0+=_0xdf40(0x222)+_0x188d7e[_0xdf40(0x1fd)]+_0xdf40(0x217)+_0x46ae6f[_0xdf40(0x244)](_0xdf40(0x24b))+_0xdf40(0x257);}else['date',_0xdf40(0x254),'timestamp'][_0xdf40(0x211)](_0x33e34d)>-0x1?(_0x4df9e0+='\x20\x20\x20\x20@Rule(\x27'+_0x188d7e[_0xdf40(0x230)]+_0xdf40(0x24f),_0x4df9e0+=_0xdf40(0x222)+_0x188d7e[_0xdf40(0x1fd)]+_0xdf40(0x1f2)):(_0x4df9e0+='\x20\x20\x20\x20@Rule(\x27'+_0x188d7e[_0xdf40(0x230)]+_0xdf40(0x250),_0x4df9e0+=_0xdf40(0x222)+_0x188d7e[_0xdf40(0x1fd)]+'?:\x20string;\x0a\x0a');}}}}}_0x4df9e0+=_0xdf40(0x1ec),_0x4df9e0+=_0xdf40(0x24a);(_0x3e1813===null||_0x3e1813===void 0x0?void 0x0:_0x3e1813[_0xdf40(0x21d)](_0xf673a4=>typeof _0xf673a4!='boolean'))?_0x22b4b2+=_0xdf40(0x213):_0x22b4b2+=_0xdf40(0x22c);_0x1fec4d&&(_0x22b4b2+=_0xdf40(0x20a)+_0x402d9f+_0xdf40(0x215)+(typeof _0xc31dfa==_0xdf40(0x1f4)?_0xdf40(0x1fb)+_0xc31dfa:'@/'+_0x20b086)+_0xdf40(0x239)+_0x499ec7+_0xdf40(0x255));_0x22b4b2+='\x0a',_0x22b4b2+=_0xdf40(0x202),_0x22b4b2+=_0xdf40(0x1ff)+_0xd42374+'\x0a',_0x22b4b2+=_0xdf40(0x216),_0x22b4b2+=_0xdf40(0x1f5),_0x22b4b2+=_0xdf40(0x1e8)+_0x402d9f+_0xdf40(0x253),_0x22b4b2+=_0xdf40(0x243),_0x22b4b2+='}\x0a\x0a';for(const _0x9b878b of _0x3e1813){typeof _0x9b878b=='string'&&(_0x22b4b2+='export\x20class\x20'+_0x9b878b[_0xdf40(0x214)](0x0,0x1)[_0xdf40(0x21c)]()+_0x9b878b['substring'](0x1)[_0xdf40(0x1f8)]()+_0x402d9f+'DTOUpdate\x20extends\x20OmitDto('+_0x402d9f+_0xdf40(0x234),_0x22b4b2+=_0xdf40(0x1f7));}_0x22b4b2=_0x22b4b2[_0xdf40(0x23e)](_0xdf40(0x243),_0x4df9e0),fs[_0xdf40(0x22e)](_0xc76101,_0x22b4b2,_0xdf40(0x219));}}async function DTOSearch({controllers:_0x4e3e33,tablestartUp:_0x99275b,tablestartUpShort:_0x5b613f,basedir:_0x1f4afa,Fields:_0x42d0ee,Primary:_0x2d1faa,Comment:_0x50d7c9,moduleName:_0x14464a,apporbasic:_0x11d855}){const _0x8c0f6a=a10_0x17df9f,_0x13415f=_0x1f4afa+(_0x8c0f6a(0x1fc)+_0x5b613f+_0x8c0f6a(0x223));if(!fs[_0x8c0f6a(0x22b)](_0x13415f)){let _0x256484='',_0xca913e='',_0x3cb24a=![];for(let _0x2e67d0 of[{[_0x2d1faa[_0x8c0f6a(0x1fd)]]:_0x2d1faa},_0x42d0ee]){for(let _0x144da0 in _0x2e67d0){let _0x4cb0c7=_0x2e67d0[_0x144da0],_0x5f4eb1=(0x0,helper_1[_0x8c0f6a(0x221)])(_0x4cb0c7[_0x8c0f6a(0x227)]);if(_0x4cb0c7[_0x8c0f6a(0x1fd)]==_0x8c0f6a(0x225)||_0x4cb0c7[_0x8c0f6a(0x1fd)]=='created_at'||_0x4cb0c7['Field']==_0x8c0f6a(0x203)||_0x4cb0c7['Field']==_0x8c0f6a(0x212))continue;if([_0x8c0f6a(0x20e),_0x8c0f6a(0x1f9),_0x8c0f6a(0x240)]['indexOf'](_0x5f4eb1)!=-0x1){}else{if([_0x8c0f6a(0x207),_0x8c0f6a(0x20f),_0x8c0f6a(0x23a),'number'][_0x8c0f6a(0x211)](_0x5f4eb1)!=-0x1)_0x256484+=_0x8c0f6a(0x22f)+_0x4cb0c7[_0x8c0f6a(0x230)]+_0x8c0f6a(0x20d),_0x256484+=_0x8c0f6a(0x222)+_0x4cb0c7['Field']+'?:\x20number;\x0a\x0a';else{if([_0x8c0f6a(0x23f)][_0x8c0f6a(0x211)](_0x5f4eb1)!=-0x1)_0x3cb24a=!![],_0x256484+=_0x8c0f6a(0x22f)+_0x4cb0c7[_0x8c0f6a(0x230)]+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0x99275b+'Enum,\x20\x27'+_0x4cb0c7[_0x8c0f6a(0x1fd)]+'\x27)))\x0a',_0x256484+=_0x8c0f6a(0x222)+_0x4cb0c7[_0x8c0f6a(0x1fd)]+_0x8c0f6a(0x209);else{if(_0x5f4eb1==_0x8c0f6a(0x259)){}else{if(_0x5f4eb1==_0x8c0f6a(0x24c)){let _0x3fdf49=(0x0,helper_1['getEnum'])(_0x4cb0c7['Type']);_0x256484+=_0x8c0f6a(0x22f)+_0x4cb0c7[_0x8c0f6a(0x230)]+_0x8c0f6a(0x1ea)+_0x3fdf49[_0x8c0f6a(0x244)]('\x27,\x20\x27')+_0x8c0f6a(0x258),_0x256484+='\x20\x20\x20\x20'+_0x4cb0c7[_0x8c0f6a(0x1fd)]+_0x8c0f6a(0x217)+_0x3fdf49['join'](_0x8c0f6a(0x24b))+_0x8c0f6a(0x257);}else[_0x8c0f6a(0x241),_0x8c0f6a(0x254),'timestamp']['indexOf'](_0x5f4eb1)>-0x1?(_0x256484+=_0x8c0f6a(0x22f)+_0x4cb0c7[_0x8c0f6a(0x230)]+_0x8c0f6a(0x250),_0x256484+=_0x8c0f6a(0x222)+_0x4cb0c7[_0x8c0f6a(0x1fd)]+_0x8c0f6a(0x1f2),_0x256484+=_0x8c0f6a(0x22f)+_0x4cb0c7[_0x8c0f6a(0x230)]+_0x8c0f6a(0x206),_0x256484+=_0x8c0f6a(0x222)+_0x4cb0c7[_0x8c0f6a(0x1fd)]+'_between?:\x20string[];\x0a\x0a',_0x256484+=_0x8c0f6a(0x22f)+_0x4cb0c7[_0x8c0f6a(0x230)]+_0x8c0f6a(0x205),_0x256484+=_0x8c0f6a(0x222)+_0x4cb0c7[_0x8c0f6a(0x1fd)]+_0x8c0f6a(0x1ee),_0x256484+=_0x8c0f6a(0x22f)+_0x4cb0c7['Comment']+'\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x256484+=_0x8c0f6a(0x222)+_0x4cb0c7[_0x8c0f6a(0x1fd)]+_0x8c0f6a(0x23b)):(_0x256484+=_0x8c0f6a(0x22f)+_0x4cb0c7['Comment']+_0x8c0f6a(0x250),_0x256484+='\x20\x20\x20\x20'+_0x4cb0c7[_0x8c0f6a(0x1fd)]+_0x8c0f6a(0x1f2));}}}}}}_0x256484+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0x256484+=_0x8c0f6a(0x24a),_0x256484+='\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a',_0x256484+=_0x8c0f6a(0x1f0),_0x256484+=_0x8c0f6a(0x228),_0x256484+=_0x8c0f6a(0x251),_0x256484+='\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x256484+=_0x8c0f6a(0x201),_0x256484+='\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a',_0x256484+=_0x8c0f6a(0x247),_0x256484+='\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a',_0x256484+=_0x8c0f6a(0x235),_0x256484+=_0x8c0f6a(0x21e),_0x256484+=_0x8c0f6a(0x256);(_0x4e3e33===null||_0x4e3e33===void 0x0?void 0x0:_0x4e3e33[_0x8c0f6a(0x21d)](_0x32a230=>typeof _0x32a230!=_0x8c0f6a(0x1f6)))?_0xca913e+=_0x8c0f6a(0x213):_0xca913e+=_0x8c0f6a(0x22c);_0x3cb24a&&(_0xca913e+=_0x8c0f6a(0x20a)+_0x99275b+_0x8c0f6a(0x215)+(typeof _0x14464a=='string'?_0x8c0f6a(0x1fb)+_0x14464a:'@/'+_0x11d855)+_0x8c0f6a(0x239)+_0x5b613f+'\x27;\x0a');_0xca913e+='\x0a',_0xca913e+='/**\x0a',_0xca913e+=_0x8c0f6a(0x1ff)+_0x50d7c9+'\x0a',_0xca913e+=_0x8c0f6a(0x226),_0xca913e+=_0x8c0f6a(0x1f5),_0xca913e+=_0x8c0f6a(0x1e8)+_0x99275b+_0x8c0f6a(0x1ef),_0xca913e+=_0x8c0f6a(0x1fe),_0xca913e+=_0x8c0f6a(0x1f7);for(const _0x331949 of _0x4e3e33){typeof _0x331949=='string'&&(_0xca913e+=_0x8c0f6a(0x1e8)+_0x331949[_0x8c0f6a(0x214)](0x0,0x1)[_0x8c0f6a(0x21c)]()+_0x331949[_0x8c0f6a(0x214)](0x1)[_0x8c0f6a(0x1f8)]()+_0x99275b+_0x8c0f6a(0x232)+_0x99275b+'DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0xca913e+=_0x8c0f6a(0x1f7));}_0xca913e=_0xca913e[_0x8c0f6a(0x23e)](_0x8c0f6a(0x1fe),_0x256484),fs['writeFileSync'](_0x13415f,_0xca913e,'utf-8');}}
|
package/dist/templateVue/Api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11_0x309a(_0x57a0d3,_0x3d2793){const _0x358139=a11_0x437e();return a11_0x309a=function(_0x929de,_0x55a7b0){_0x929de=_0x929de-0x169;let _0x437e06=_0x358139[_0x929de];return _0x437e06;},a11_0x309a(_0x57a0d3,_0x3d2793);}const a11_0x2120ab=a11_0x309a;(function(_0x11a21e,_0x471fa7){const _0x1af987=a11_0x309a,_0xc9672a=_0x11a21e();while(!![]){try{const _0x46da78=-parseInt(_0x1af987(0x180))/0x1*(parseInt(_0x1af987(0x190))/0x2)+parseInt(_0x1af987(0x171))/0x3+-parseInt(_0x1af987(0x177))/0x4*(parseInt(_0x1af987(0x193))/0x5)+-parseInt(_0x1af987(0x17f))/0x6+-parseInt(_0x1af987(0x184))/0x7*(parseInt(_0x1af987(0x187))/0x8)+-parseInt(_0x1af987(0x189))/0x9+parseInt(_0x1af987(0x16d))/0xa*(parseInt(_0x1af987(0x16e))/0xb);if(_0x46da78===_0x471fa7)break;else _0xc9672a['push'](_0xc9672a['shift']());}catch(_0x23f60){_0xc9672a['push'](_0xc9672a['shift']());}}}(a11_0x437e,0x9b1f6));const a11_0x55a7b0=(function(){let _0x66405e=!![];return function(_0x4f2467,_0x23726c){const _0x124492=_0x66405e?function(){const _0x2feb7c=a11_0x309a;if(_0x23726c){const _0x25e799=_0x23726c[_0x2feb7c(0x175)](_0x4f2467,arguments);return _0x23726c=null,_0x25e799;}}:function(){};return _0x66405e=![],_0x124492;};}()),a11_0x929de=a11_0x55a7b0(this,function(){const _0x5bc273=a11_0x309a;return a11_0x929de['toString']()['search'](_0x5bc273(0x197))[_0x5bc273(0x18a)]()['constructor'](a11_0x929de)[_0x5bc273(0x17e)](_0x5bc273(0x197));});a11_0x929de();'use strict';function a11_0x437e(){const _0x1f1652=['11vqLhUN','utf-8','existsSync','1998045eNEsXl','path','defineProperty','mkdirSync','apply','\x20\x20\x20\x20\x20\x20\x20\x20method:\x20\x27get\x27,\x0a','4VsdpYp','Field','@列表\x27,\x0a','@删除\x27,\x0a','@详情\x27,\x0a','\x20\x20\x20\x20detail:{\x0a','/list','search','4019100ZyCkIc','34FRiOOv','@添加\x27,\x0a','\x20\x20\x20\x20\x20\x20\x20\x20api:\x20\x27','@编辑\x27,\x0a','64610DGxzfp','/add','\x20\x20\x20\x20list:{\x0a','1024yQfRQN','__esModule','1935558EXvxkk','toString','\x20\x20\x20\x20},\x0a','.js','\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27','\x20\x20\x20\x20add:{\x0a','/vue','48086OZWOjL','string','/pages/apps/','1753775kpxqYX','/apis/','dirname','\x20\x20\x20\x20remove:{\x0a','(((.+)+)+)+$','\x20\x20\x20\x20\x20\x20\x20\x20method:\x20\x27post\x27,\x0a','/detail/:','export\x20const\x20','\x20\x20\x20\x20}\x0a','32039360xlrLZN'];a11_0x437e=function(){return _0x1f1652;};return a11_0x437e();}Object[a11_0x2120ab(0x173)](exports,a11_0x2120ab(0x188),{'value':!![]});const fs=require('fs'),path_1=require(a11_0x2120ab(0x172));async function default_1({tablestartUpShort:_0x2a36c2,tablestartUpShort2:_0x41da74,moduleName:_0x159bfd,controller:_0x14041a,Comment:_0x32afd4,apporbasic:_0x4d84a4,Primary:_0x34c353}){const _0x5393a7=a11_0x2120ab;let _0x23c9b7=process['cwd']()+_0x5393a7(0x18f)+(typeof _0x14041a==_0x5393a7(0x191)?'/'+_0x14041a:'');_0x159bfd?_0x23c9b7=_0x23c9b7+(_0x5393a7(0x192)+_0x159bfd+_0x5393a7(0x194)+_0x2a36c2+_0x5393a7(0x18c)):_0x23c9b7=_0x23c9b7+('/pages/'+_0x4d84a4+_0x5393a7(0x194)+_0x2a36c2+_0x5393a7(0x18c));if(!fs[_0x5393a7(0x170)](_0x23c9b7)){const _0x5c8691=''+(typeof _0x14041a==_0x5393a7(0x191)?_0x14041a+'/':'')+(_0x159bfd?_0x159bfd+'/':'')+_0x41da74+_0x5393a7(0x185),_0x41c036=''+(typeof _0x14041a=='string'?_0x14041a+'/':'')+(_0x159bfd?_0x159bfd+'/':'')+_0x41da74+_0x5393a7(0x17d),_0x605cc3=''+(typeof _0x14041a=='string'?_0x14041a+'/':'')+(_0x159bfd?_0x159bfd+'/':'')+_0x41da74+'/edit/:'+_0x34c353['Field'],_0x210931=''+(typeof _0x14041a==_0x5393a7(0x191)?_0x14041a+'/':'')+(_0x159bfd?_0x159bfd+'/':'')+_0x41da74+_0x5393a7(0x16a)+_0x34c353[_0x5393a7(0x178)],_0x1188ca=''+(typeof _0x14041a==_0x5393a7(0x191)?_0x14041a+'/':'')+(_0x159bfd?_0x159bfd+'/':'')+_0x41da74+'/remove';let _0x3e1188='\x0a\x0a';_0x3e1188+='//\x20'+_0x32afd4+'\x0a',_0x3e1188+=_0x5393a7(0x16b)+_0x2a36c2+'\x20=\x20{\x0a',_0x3e1188+=_0x5393a7(0x18e),_0x3e1188+=_0x5393a7(0x169),_0x3e1188+='\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27'+_0x32afd4+_0x5393a7(0x181),_0x3e1188+=_0x5393a7(0x182)+_0x5c8691+'\x27\x0a',_0x3e1188+=_0x5393a7(0x18b),_0x3e1188+='\x20\x20\x20\x20edit:{\x0a',_0x3e1188+=_0x5393a7(0x169),_0x3e1188+=_0x5393a7(0x18d)+_0x32afd4+_0x5393a7(0x183),_0x3e1188+=_0x5393a7(0x182)+_0x605cc3+'\x27\x0a',_0x3e1188+='\x20\x20\x20\x20},\x0a',_0x3e1188+=_0x5393a7(0x186),_0x3e1188+=_0x5393a7(0x176),_0x3e1188+='\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27'+_0x32afd4+_0x5393a7(0x179),_0x3e1188+='\x20\x20\x20\x20\x20\x20\x20\x20api:\x20\x27'+_0x41c036+'\x27\x0a',_0x3e1188+='\x20\x20\x20\x20},\x0a',_0x3e1188+=_0x5393a7(0x17c),_0x3e1188+='\x20\x20\x20\x20\x20\x20\x20\x20method:\x20\x27get\x27,\x0a',_0x3e1188+=_0x5393a7(0x18d)+_0x32afd4+_0x5393a7(0x17b),_0x3e1188+=_0x5393a7(0x182)+_0x210931+'\x27\x0a',_0x3e1188+=_0x5393a7(0x18b),_0x3e1188+=_0x5393a7(0x196),_0x3e1188+=_0x5393a7(0x169),_0x3e1188+=_0x5393a7(0x18d)+_0x32afd4+_0x5393a7(0x17a),_0x3e1188+='\x20\x20\x20\x20\x20\x20\x20\x20api:\x20\x27'+_0x1188ca+'\x27\x0a',_0x3e1188+=_0x5393a7(0x16c),_0x3e1188+='}\x0a',fs[_0x5393a7(0x174)]((0x0,path_1[_0x5393a7(0x195)])(_0x23c9b7),{'recursive':!![]}),fs['writeFileSync'](_0x23c9b7,_0x3e1188,_0x5393a7(0x16f));}}exports['default']=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12_0x100647=a12_0x54a2;(function(_0xbabac5,_0x16c7bb){const _0x4de361=a12_0x54a2,_0x2f2913=_0xbabac5();while(!![]){try{const _0x3a0319=parseInt(_0x4de361(0x9a))/0x1*(parseInt(_0x4de361(0x90))/0x2)+-parseInt(_0x4de361(0x93))/0x3*(-parseInt(_0x4de361(0x97))/0x4)+parseInt(_0x4de361(0x9c))/0x5+-parseInt(_0x4de361(0xa1))/0x6*(-parseInt(_0x4de361(0xb0))/0x7)+-parseInt(_0x4de361(0xae))/0x8+parseInt(_0x4de361(0x95))/0x9+-parseInt(_0x4de361(0xa8))/0xa;if(_0x3a0319===_0x16c7bb)break;else _0x2f2913['push'](_0x2f2913['shift']());}catch(_0x3ab2e2){_0x2f2913['push'](_0x2f2913['shift']());}}}(a12_0x4053,0x62842));const a12_0x3e3dee=(function(){let _0x4488ec=!![];return function(_0x25e82c,_0x448b45){const _0x9a4844=_0x4488ec?function(){const _0x2b40a9=a12_0x54a2;if(_0x448b45){const _0x5b5d3f=_0x448b45[_0x2b40a9(0xb6)](_0x25e82c,arguments);return _0x448b45=null,_0x5b5d3f;}}:function(){};return _0x4488ec=![],_0x9a4844;};}()),a12_0x272cf1=a12_0x3e3dee(this,function(){const _0x253285=a12_0x54a2;return a12_0x272cf1[_0x253285(0xa4)]()[_0x253285(0x92)]('(((.+)+)+)+$')[_0x253285(0xa4)]()['constructor'](a12_0x272cf1)['search']('(((.+)+)+)+$');});a12_0x272cf1();'use strict';Object[a12_0x100647(0xb2)](exports,a12_0x100647(0x9e),{'value':!![]});const fs=require('fs'),path_1=require('path');async function default_1({tablestartUpShort2:_0x3323dd,controller:_0x28a91c,moduleName:_0x1cf6d4,Comment:_0x35f098,apporbasic:_0x5c885f}){const _0x531821=a12_0x100647;let _0x5ec358=process[_0x531821(0x9d)]()+'/vue'+(typeof _0x28a91c==_0x531821(0x91)?'/'+_0x28a91c:'');_0x1cf6d4?_0x5ec358=_0x5ec358+(_0x531821(0x96)+_0x1cf6d4+_0x531821(0xb3)):_0x5ec358=_0x5ec358+(_0x531821(0x9b)+_0x5c885f+_0x531821(0xb3));await createLayout(_0x5ec358);const _0x3ded5c=fs[_0x531821(0x9f)](_0x5ec358,_0x531821(0xa0));fs[_0x531821(0xac)](_0x5ec358,_0x3ded5c[_0x531821(0xad)](_0x531821(0xa6),'{title:\x20\x22'+(_0x35f098+'\x22')[_0x531821(0xb5)](0x14)+_0x531821(0xb4)+(''+(typeof _0x1cf6d4==_0x531821(0x91)?'/apps-'+_0x1cf6d4+'/':'/'+_0x5c885f+'/')+_0x3323dd+'\x22')['padEnd'](0x14)+'},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here'));}function a12_0x54a2(_0x6c4d0,_0x1deba8){const _0x526d80=a12_0x4053();return a12_0x54a2=function(_0x272cf1,_0x3e3dee){_0x272cf1=_0x272cf1-0x8f;let _0x40538f=_0x526d80[_0x272cf1];return _0x40538f;},a12_0x54a2(_0x6c4d0,_0x1deba8);}exports['default']=default_1;async function createLayout(_0x276321){const _0x29a09f=a12_0x100647;if(!fs[_0x29a09f(0xaa)](_0x276321)){let _0x51a502=_0x29a09f(0xaf);_0x51a502+='\x20\x20\x20\x20<page-layout\x20title=\x22未设置\x22\x20:menus=\x22menus\x22>\x0a\x0a',_0x51a502+=_0x29a09f(0x99),_0x51a502+=_0x29a09f(0x8f),_0x51a502+=_0x29a09f(0xa7),_0x51a502+=_0x29a09f(0xa9),_0x51a502+=_0x29a09f(0x94),_0x51a502+=_0x29a09f(0xa2),_0x51a502+=_0x29a09f(0xab),_0x51a502+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here\x0a',_0x51a502+=_0x29a09f(0xa3),_0x51a502+=_0x29a09f(0xa5),_0x51a502+='\x20\x20\x20\x20},\x0a',_0x51a502+='}\x0a',_0x51a502+=_0x29a09f(0xb7),fs[_0x29a09f(0xb1)]((0x0,path_1[_0x29a09f(0x98)])(_0x276321),{'recursive':!![]}),fs[_0x29a09f(0xac)](_0x276321,_0x51a502,'utf-8');}}function a12_0x4053(){const _0x22c13b=['\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','//\x20add\x20menu\x20here','<script>\x0a','5595550DGsZWL','export\x20default\x20{\x0a','existsSync','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20menus:\x20[\x0a','writeFileSync','replace','5253680HydxGN','<template>\x0a','6370aRZwav','mkdirSync','defineProperty','/layout.vue',',\x20path:\x20\x22','padEnd','apply','</script>\x0a\x0a','</template>\x0a\x0a','6dRPRkT','string','search','4314jmoTft','\x20\x20\x20\x20data()\x20{\x0a','1210725DSiOzq','/pages/apps/','2104GPhoEF','dirname','\x20\x20\x20\x20</page-layout>\x0a','53407uNUWgT','/pages/','2593015HqtOzf','cwd','__esModule','readFileSync','utf-8','330WlpUDA'];a12_0x4053=function(){return _0x22c13b;};return a12_0x4053();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13_0x584b21=a13_0x4f24;(function(_0x1a759d,_0x5ee435){const _0xf7f7b7=a13_0x4f24,_0x51ff08=_0x1a759d();while(!![]){try{const _0x2760a1=parseInt(_0xf7f7b7(0x17b))/0x1+parseInt(_0xf7f7b7(0x1c5))/0x2+parseInt(_0xf7f7b7(0x200))/0x3*(-parseInt(_0xf7f7b7(0x1bc))/0x4)+-parseInt(_0xf7f7b7(0x1cd))/0x5*(-parseInt(_0xf7f7b7(0x18c))/0x6)+parseInt(_0xf7f7b7(0x15f))/0x7+parseInt(_0xf7f7b7(0x21c))/0x8+-parseInt(_0xf7f7b7(0x1b8))/0x9*(parseInt(_0xf7f7b7(0x203))/0xa);if(_0x2760a1===_0x5ee435)break;else _0x51ff08['push'](_0x51ff08['shift']());}catch(_0x2002d3){_0x51ff08['push'](_0x51ff08['shift']());}}}(a13_0x4af3,0xac37b));function a13_0x4af3(){const _0x4b201c=['结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','.remove.hasPrem()\x22\x20@click=\x22handlerRemove(scope.row)\x22\x20type=\x22primary\x22\x20text>\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\x20\x20\x20\x20</page>\x0a</template>\x0a<script>\x0aimport\x20search\x20from\x20\x22./components/search.vue\x22\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20components:\x20{\x20search\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\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\x20,\x20size,\x20sortable\x20=\x20{}){\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','</el-form-item>','<el-input-number\x20v-model=\x22formdata.','\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','thumbs','<el-select\x20v-model=\x22formdata.','substr','utf-8','<el-select-tags\x20v-model=\x22formdata.','3isjQBc','\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','9708410PEvcls','mediumtext','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','apps-','/pages/','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','<el-date-picker\x20v-model=\x22search.','$appsApi.','</a>','imgs','\x22\x20clearable/>','<el-date-picker\x20v-model=\x22formdata.','\x22\x20placeholder=\x22请输入或选择','</script>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20controls-position=\x22right\x22/>','.add.hasPrem()\x22\x20@click=\x22$router.push(`/','\x20\x20\x20\x20mounted(){\x0a','toString','datetime','\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20获取详情\x0a','\x22\x20align=\x27center\x27\x20show-overflow-tooltip>','path','displayorder','4012192zGhUnI','结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(','\x20\x20\x20\x20\x20\x20\x20\x20',');\x0a','\x22\x20/>','\x22\x20class=\x22block\x22>','3600254BgAUyi','getEnum','\x20}).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.success(res?.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(err\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})\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>','\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要保存的数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$refs?.form?.validate().then(item\x20=>\x20{\x0a','\x22\x20clearable>','export\x20default\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20this.getDetail(this.$route.query?.','</el-table-column>','</template>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a','</el-select>','Type','__esModule','.hasPrem()\x22>\x0a','AddRule\x20}\x20from\x20\x27@','AddRule,\x0a','dirname','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20/>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false,\x20this.$notify.success(res?.message\x20||\x20\x27操作成功\x27),\x20this.$router.back();\x0a','\x22\x20prop=\x22','<el-form-item\x20label=\x22','\x22\x20placeholder=\x22请选择','<a\x20:href=\x22scope.row.','<el-table-column\x20prop=','\x20\x20\x20\x20},\x0a','/add`)\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-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>','94381aGrBMt','.detail({\x20','tags','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22','writeFileSync','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a','created_at','import\x20{\x20','\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','_start\x22\x20placeholder=\x22选择','\x22\x20type=\x22textarea\x22\x20:rows=\x224\x22/>','\x22\x20align=\x27center\x27\x20sortable=\x22custom\x22\x20show-overflow-tooltip\x20/>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x22\x20:model=\x22formdata\x22\x20:rules=\x22formrule\x22\x20:disabled=\x22!','(((.+)+)+)+$','/template/','12cUMIZk','existsSync','<template>\x0a','string','<template\x20#default=\x22scope\x22>','\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>','<page-images\x20v-model=\x22formdata.','longtext','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a','/index.vue','/validators/','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a',':\x20item.','\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20保存\x0a','<el-option\x20label=\x22','<el-input-number\x20v-model=\x22search.','开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','\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.','<el-input\x20v-model=\x22formdata.','img','add','updated_at','constructor','/pages/apps/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:\x20false,\x0a','\x20\x20\x20\x20</page-form>\x0a','开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','mkdirSync','\x20\x20\x20\x20','.hasPrem()\x22\x20type=\x22primary\x22\x20@click=\x22handlerSave(formdata)\x22>保存</el-button>\x0a',')\x20{\x0a','text','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error(err\x20||\x20\x27网络请求错误\x27),\x20this.$router.back();\x0a','/list/components/search.vue','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false,\x20this.$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a','_ids','\x20\x20\x20\x20\x20\x20\x20\x20getDetail(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}else{\x0a','thumb','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true,\x20this.formdata\x20=\x20{}\x0a','\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>','.list(Object.assign({},\x20this.table.search,\x20sortable)).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,\x20this.table.data\x20=\x20res.data\x20||\x20[],\x20this.table.search\x20=\x20{\x20...this.table.search,\x20...res.extra.pageinfo,\x20_count:\x20res.extra.pagetotal\x20};\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(err\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\x20handlerRemove(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20item.','9wvwfOS','search','\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\x20width=\x22100\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\x20v-if=\x22','apps/','1571484rFzdtE','=${scope.row.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formdata:\x20{},\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a','<el-select\x20v-model=\x22search.','getProp','</template>','\x22\x20placeholder=\x22选择','\x22\x20:limit=\x221\x22\x20/>','1455528YCmEAP','\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a','.edit.hasPrem()\x22\x20@click=\x22$router.push(`/','\x22\x20api=\x22','enum','Field','\x22\x20value=\x22','\x20\x20\x20\x20methods:\x20{\x0a','577810KZPdjD','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20clearable/>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formrule:\x20','\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>','\x20\x20\x20\x20<page-form\x20ref=\x22form\x22\x20title=\x22','<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\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\x20v-if=\x22','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22/>','\x22\x20style=\x22width:\x2040px;\x20cursor:pointer\x22\x20/>','num','deleted_at','\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','timestamp','/edit\x27\x0a','Comment','default','Api.','<el-form-item\x20label=\x22排序\x22\x20prop=\x22displayorder\x22>','<img\x20:src=\x22scope.row.','number','\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a','\x20}).then(res=>{\x0a','endsWith','cwd','/vue','_id','\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a','\x22\x20placeholder=\x22请输入','<template>\x0a\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20handlerSave(){\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','_end\x22\x20placeholder=\x22选择','indexOf','<el-input\x20v-model=\x22search.','<script>\x0a','<page-editor\x20v-model=\x22formdata.','logo','\x20label=\x22','edit','<el-select-search\x20v-model=\x22search.','.remove({\x20'];a13_0x4af3=function(){return _0x4b201c;};return a13_0x4af3();}const a13_0x32017f=(function(){let _0x15258b=!![];return function(_0x4ef5d7,_0x310fc7){const _0xa7ebd8=_0x15258b?function(){if(_0x310fc7){const _0x4463f3=_0x310fc7['apply'](_0x4ef5d7,arguments);return _0x310fc7=null,_0x4463f3;}}:function(){};return _0x15258b=![],_0xa7ebd8;};}()),a13_0xe53545=a13_0x32017f(this,function(){const _0x47355b=a13_0x4f24;return a13_0xe53545[_0x47355b(0x216)]()[_0x47355b(0x1b9)](_0x47355b(0x18a))[_0x47355b(0x216)]()[_0x47355b(0x1a4)](a13_0xe53545)[_0x47355b(0x1b9)](_0x47355b(0x18a));});a13_0xe53545();'use strict';Object[a13_0x584b21(0x194)](exports,a13_0x584b21(0x16c),{'value':!![]});const fs=require('fs'),path_1=require(a13_0x584b21(0x21a)),helper_1=require('../helper');async function default_1({moduleName:_0x3d5431,controller:_0x2b4b80,tablestartUpShort:_0x24397c,tablestartUpShort2:_0x4a1842,Primary:_0xc584eb,Fields:_0x2cfeeb,apporbasic:_0x3b75d8,Comment:_0x4e95ec}){const _0x5533ab=a13_0x584b21;await createIndex({'moduleName':_0x3d5431,'controller':_0x2b4b80,'tablestartUpShort':_0x24397c,'tablestartUpShort2':_0x4a1842,'Primary':_0xc584eb,'Fields':_0x2cfeeb,'apporbasic':_0x3b75d8}),await createSearch({'moduleName':_0x3d5431,'controller':_0x2b4b80,'tablestartUpShort2':_0x4a1842,'Primary':_0xc584eb,'Fields':_0x2cfeeb,'apporbasic':_0x3b75d8}),await createAddOrEdit({'moduleName':_0x3d5431,'controller':_0x2b4b80,'tablestartUpShort':_0x24397c,'tablestartUpShort2':_0x4a1842,'Primary':_0xc584eb,'Fields':_0x2cfeeb,'apporbasic':_0x3b75d8,'Comment':_0x4e95ec},_0x5533ab(0x1a2)),await createAddOrEdit({'moduleName':_0x3d5431,'controller':_0x2b4b80,'tablestartUpShort':_0x24397c,'tablestartUpShort2':_0x4a1842,'Primary':_0xc584eb,'Fields':_0x2cfeeb,'apporbasic':_0x3b75d8,'Comment':_0x4e95ec},_0x5533ab(0x1f2));}function a13_0x4f24(_0x50427c,_0x536a47){const _0x303ffc=a13_0x4af3();return a13_0x4f24=function(_0xe53545,_0x32017f){_0xe53545=_0xe53545-0x15c;let _0x4af3b0=_0x303ffc[_0xe53545];return _0x4af3b0;},a13_0x4f24(_0x50427c,_0x536a47);}exports[a13_0x584b21(0x1db)]=default_1;async function createIndex({moduleName:_0x101623,controller:_0x2a040e,tablestartUpShort:_0x4dc3f5,tablestartUpShort2:_0x407867,Primary:_0xdf155b,Fields:_0xeafc3d,apporbasic:_0x4217cb}){const _0x4c8448=a13_0x584b21;let _0x7f9cd4=process['cwd']()+_0x4c8448(0x1e4)+(typeof _0x2a040e==_0x4c8448(0x18f)?'/'+_0x2a040e:'');_0x101623?_0x7f9cd4=_0x7f9cd4+(_0x4c8448(0x1a5)+_0x101623+_0x4c8448(0x18b)+_0x407867+'/list/index.vue'):_0x7f9cd4=_0x7f9cd4+(_0x4c8448(0x208)+_0x4217cb+'/template/'+_0x407867+'/list/index.vue');if(!fs[_0x4c8448(0x18d)](_0x7f9cd4)){const _0x56c1cf=(typeof _0x101623=='string'?_0x4c8448(0x20b)+_0x101623+'.':'$'+_0x4217cb+_0x4c8448(0x1dc))+(''+_0x4dc3f5);let _0x4d6e16='<el-table-column\x20prop='+('\x22'+_0xdf155b['Field']+'\x22')[_0x4c8448(0x206)](0x14)+('\x20label=\x22'+(_0xdf155b[_0x4c8448(0x1da)]||'编号')+'\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20/>');for(let _0x19d578 in _0xeafc3d){const _0x1b3c3c=_0xeafc3d[_0x19d578];if([_0x4c8448(0x181),'updated_at',_0x4c8448(0x1d6),_0x4c8448(0x21b)][_0x4c8448(0x1ec)](_0x19d578)!=-0x1)continue;if(_0x19d578[_0x4c8448(0x1fd)](-0x3)=='img'||_0x19d578[_0x4c8448(0x1fd)](-0x5)==_0x4c8448(0x1b4)||_0x19d578=='thumb'||_0x19d578[_0x4c8448(0x1fd)](-0x4)==_0x4c8448(0x1f0)||_0x19d578==_0x4c8448(0x1f0))_0x4d6e16+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4c8448(0x177)+('\x22'+_0x19d578+'\x22')[_0x4c8448(0x206)](0x14)+(_0x4c8448(0x1f1)+(_0x1b3c3c[_0x4c8448(0x1da)]||_0x1b3c3c[_0x4c8448(0x1ca)])+_0x4c8448(0x219)),_0x4d6e16+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4c8448(0x190),_0x4d6e16+='\x0a'+_0x4c8448(0x205)+_0x4c8448(0x17a),_0x4d6e16+='\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'+(_0x4c8448(0x176)+_0x19d578+_0x4c8448(0x1d0)),_0x4d6e16+='\x0a'+_0x4c8448(0x1d7)+(_0x4c8448(0x1de)+_0x19d578+_0x4c8448(0x1fa)),_0x4d6e16+='\x0a'+_0x4c8448(0x1ea)+_0x4c8448(0x20c),_0x4d6e16+='\x0a'+_0x4c8448(0x1ea)+'<template\x20#reference>',_0x4d6e16+='\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\x20\x20\x20\x20'+(_0x4c8448(0x1de)+_0x19d578+_0x4c8448(0x1d4)),_0x4d6e16+='\x0a'+_0x4c8448(0x1ea)+_0x4c8448(0x1c2),_0x4d6e16+='\x0a'+_0x4c8448(0x205)+'</el-popover>',_0x4d6e16+='\x0a'+_0x4c8448(0x201)+_0x4c8448(0x1c2),_0x4d6e16+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4c8448(0x167);else[_0x4c8448(0x1ad),'longtext'][_0x4c8448(0x1ec)]((0x0,helper_1[_0x4c8448(0x1c1)])(_0x1b3c3c['Type']))==-0x1&&(_0x4d6e16+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'<el-table-column\x20prop='+('\x22'+_0x19d578+'\x22')[_0x4c8448(0x206)](0x14)+(_0x4c8448(0x1f1)+(_0x1b3c3c[_0x4c8448(0x1da)]||_0x1b3c3c[_0x4c8448(0x1ca)])+_0x4c8448(0x186)));}fs[_0x4c8448(0x1a9)]((0x0,path_1[_0x4c8448(0x170)])(_0x7f9cd4),{'recursive':!![]}),fs['writeFileSync'](_0x7f9cd4,_0x4c8448(0x1d2)+_0x56c1cf+_0x4c8448(0x214)+(_0x101623?'apps-'+_0x101623+'/':_0x4217cb+'/')+_0x407867+_0x4c8448(0x179)+_0x4d6e16+_0x4c8448(0x1ba)+_0x56c1cf+_0x4c8448(0x1c7)+(_0x101623?_0x4c8448(0x207)+_0x101623+'/':_0x4217cb+'/')+_0x407867+'/edit?'+_0xdf155b['Field']+_0x4c8448(0x1bd)+_0xdf155b[_0x4c8448(0x1ca)]+'}`)\x22\x20type=\x22primary\x22\x20text>\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\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\x20v-if=\x22'+_0x56c1cf+_0x4c8448(0x1f6)+_0x56c1cf+_0x4c8448(0x1b7)+_0xdf155b['Field']+_0x4c8448(0x19f)+_0x56c1cf+_0x4c8448(0x1f4)+_0xdf155b['Field']+_0x4c8448(0x19a)+_0xdf155b[_0x4c8448(0x1ca)]+_0x4c8448(0x161),'utf-8');}}async function createSearch({moduleName:_0x1dfcf2,tablestartUpShort2:_0x5785ee,controller:_0x771268,Primary:_0x201db4,Fields:_0x432ff4,apporbasic:_0x30ff45}){const _0x10884e=a13_0x584b21;let _0x10d7e8=process['cwd']()+_0x10884e(0x1e4)+(typeof _0x771268==_0x10884e(0x18f)?'/'+_0x771268:'');_0x1dfcf2?_0x10d7e8=_0x10d7e8+(_0x10884e(0x1a5)+_0x1dfcf2+_0x10884e(0x18b)+_0x5785ee+_0x10884e(0x1af)):_0x10d7e8=_0x10d7e8+(_0x10884e(0x208)+_0x30ff45+'/template/'+_0x5785ee+'/list/components/search.vue');if(!fs[_0x10884e(0x18d)](_0x10d7e8)){let _0x26bd5c='';_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+(_0x10884e(0x174)+(_0x201db4[_0x10884e(0x1da)]||'编号')+'\x22>'),_0x26bd5c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x10884e(0x1ed)+_0x201db4[_0x10884e(0x1ca)]+_0x10884e(0x1e7)+(_0x201db4[_0x10884e(0x1da)]||'编号')+_0x10884e(0x20e)),_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+'</el-form-item>';for(let _0x2c0652 in _0x432ff4){const _0x119eab=_0x432ff4[_0x2c0652];if(['updated_at',_0x10884e(0x1d6),_0x10884e(0x21b)][_0x10884e(0x1ec)](_0x2c0652)!=-0x1)continue;if(_0x2c0652[_0x10884e(0x1fd)](-0x3)==_0x10884e(0x1d5))_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+('<el-form-item\x20label=\x22'+(_0x119eab[_0x10884e(0x1da)]||_0x119eab['Field'])+'\x22>'),_0x26bd5c+='\x0a'+_0x10884e(0x21f)+(_0x10884e(0x19d)+_0x2c0652+_0x10884e(0x1e7)+_0x119eab['Comment']+_0x10884e(0x1ce)),_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+_0x10884e(0x1f8)+'\x0a';else{if(_0x2c0652[_0x10884e(0x1e2)](_0x10884e(0x1e5))){let _0x4f87b8=''+(typeof _0x771268==_0x10884e(0x18f)?_0x771268+'/':'')+(_0x1dfcf2?_0x1dfcf2+'/':'')+_0x5785ee;_0x26bd5c+='\x0a'+_0x10884e(0x21f)+('<el-form-item\x20label=\x22'+(_0x119eab[_0x10884e(0x1da)]||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+_0x10884e(0x202)+(_0x10884e(0x1f3)+_0x2c0652+_0x10884e(0x1c8)+_0x4f87b8+_0x10884e(0x1b6)),_0x26bd5c+='\x0a'+_0x10884e(0x21f)+_0x10884e(0x1f8)+'\x0a';}else switch((0x0,helper_1[_0x10884e(0x1c1)])(_0x119eab[_0x10884e(0x16b)])){case'enum':_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+(_0x10884e(0x174)+(_0x119eab[_0x10884e(0x1da)]||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x10884e(0x1c0)+_0x2c0652+_0x10884e(0x175)+_0x119eab[_0x10884e(0x1da)]+_0x10884e(0x164));for(let _0x3d0cce of(0x0,helper_1['getEnum'])(_0x119eab[_0x10884e(0x16b)])){_0x26bd5c+='\x0a'+_0x10884e(0x202)+(_0x10884e(0x19c)+_0x3d0cce+_0x10884e(0x1cb)+_0x3d0cce+'\x22\x20/>');}_0x26bd5c+='\x0a'+_0x10884e(0x21f)+_0x10884e(0x16a),_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+_0x10884e(0x1f8)+'\x0a';break;case'date':_0x26bd5c+='\x0a'+'\x20\x20\x20\x20'+(_0x10884e(0x174)+(_0x119eab[_0x10884e(0x1da)]||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+_0x10884e(0x21f)+(_0x10884e(0x20a)+_0x2c0652+_0x10884e(0x184)+_0x119eab[_0x10884e(0x1da)]+_0x10884e(0x19e)),_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+'</el-form-item>'+'\x0a',_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+(_0x10884e(0x174)+(_0x119eab[_0x10884e(0x1da)]||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+_0x10884e(0x21f)+('<el-date-picker\x20v-model=\x22search.'+_0x2c0652+'_end\x22\x20placeholder=\x22选择'+_0x119eab[_0x10884e(0x1da)]+_0x10884e(0x21d)),_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+'</el-form-item>'+'\x0a';break;case _0x10884e(0x217):_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+(_0x10884e(0x174)+(_0x119eab['Comment']||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+_0x10884e(0x21f)+(_0x10884e(0x20a)+_0x2c0652+'_start\x22\x20placeholder=\x22选择'+_0x119eab[_0x10884e(0x1da)]+_0x10884e(0x1a8)),_0x26bd5c+='\x0a'+'\x20\x20\x20\x20'+_0x10884e(0x1f8)+'\x0a',_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+(_0x10884e(0x174)+(_0x119eab['Comment']||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+_0x10884e(0x21f)+(_0x10884e(0x20a)+_0x2c0652+_0x10884e(0x1eb)+_0x119eab[_0x10884e(0x1da)]+_0x10884e(0x1f5)),_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+_0x10884e(0x1f8)+'\x0a';break;case _0x10884e(0x1d8):_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+(_0x10884e(0x174)+(_0x119eab['Comment']||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+_0x10884e(0x21f)+(_0x10884e(0x20a)+_0x2c0652+_0x10884e(0x184)+_0x119eab[_0x10884e(0x1da)]+_0x10884e(0x1a8)),_0x26bd5c+='\x0a'+'\x20\x20\x20\x20'+'</el-form-item>'+'\x0a',_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+(_0x10884e(0x174)+(_0x119eab[_0x10884e(0x1da)]||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+_0x10884e(0x21f)+(_0x10884e(0x20a)+_0x2c0652+_0x10884e(0x1eb)+_0x119eab['Comment']+_0x10884e(0x1f5)),_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+_0x10884e(0x1f8)+'\x0a';break;case'string':_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+(_0x10884e(0x174)+(_0x119eab[_0x10884e(0x1da)]||_0x119eab[_0x10884e(0x1ca)])+'\x22>'),_0x26bd5c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-input\x20v-model=\x22search.'+_0x2c0652+_0x10884e(0x1e7)+_0x119eab['Comment']+_0x10884e(0x20e)),_0x26bd5c+='\x0a'+_0x10884e(0x1aa)+_0x10884e(0x1f8)+'\x0a';}}}fs['mkdirSync']((0x0,path_1[_0x10884e(0x170)])(_0x10d7e8),{'recursive':!![]}),fs[_0x10884e(0x17f)](_0x10d7e8,_0x10884e(0x1e8)+_0x26bd5c+_0x10884e(0x191),_0x10884e(0x1fe));}}async function createAddOrEdit({moduleName:_0x20b5f9,controller:_0x12b155,tablestartUpShort:_0x11638b,tablestartUpShort2:_0x4dace4,Primary:_0x32aded,Fields:_0x2b717d,apporbasic:_0x110f11,Comment:_0x24826b},_0x33482a=a13_0x584b21(0x1a2)){const _0xf9f1a9=a13_0x584b21;let _0x381107=process[_0xf9f1a9(0x1e3)]()+_0xf9f1a9(0x1e4)+(typeof _0x12b155==_0xf9f1a9(0x18f)?'/'+_0x12b155:'');_0x20b5f9?_0x381107=_0x381107+(_0xf9f1a9(0x1a5)+_0x20b5f9+'/template/'+_0x4dace4+'/'+_0x33482a+'/index.vue'):_0x381107=_0x381107+(_0xf9f1a9(0x208)+_0x110f11+_0xf9f1a9(0x18b)+_0x4dace4+'/'+_0x33482a+_0xf9f1a9(0x196));if(!fs[_0xf9f1a9(0x18d)](_0x381107)){const _0x1a1aca=(typeof _0x20b5f9==_0xf9f1a9(0x18f)?'$appsApi.'+_0x20b5f9+'.':'$'+_0x110f11+_0xf9f1a9(0x1dc))+(''+_0x11638b);let _0x2cecd1='';for(let _0x14ae2e in _0x2b717d){const _0xa347f2=_0x2b717d[_0x14ae2e];if([_0xf9f1a9(0x181),_0xf9f1a9(0x1a3),_0xf9f1a9(0x1d6),'displayorder'][_0xf9f1a9(0x1ec)](_0x14ae2e)!=-0x1)continue;if(_0x14ae2e['substr'](-0x4)==_0xf9f1a9(0x20d)||_0x14ae2e['substr'](-0x5)==_0xf9f1a9(0x1fb))_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+('<el-form-item\x20label=\x22'+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+_0xf9f1a9(0x15e)),_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xf9f1a9(0x192)+_0x14ae2e+'\x22\x20:limit=\x225\x22\x20/>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+_0xf9f1a9(0x1f8)+'\x0a';else{if(_0x14ae2e[_0xf9f1a9(0x1fd)](-0x3)==_0xf9f1a9(0x1a1)||_0x14ae2e[_0xf9f1a9(0x1fd)](-0x5)==_0xf9f1a9(0x1b4)||_0x14ae2e==_0xf9f1a9(0x1b4)||_0x14ae2e['substr'](-0x4)==_0xf9f1a9(0x1f0)||_0x14ae2e==_0xf9f1a9(0x1f0))_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0xa347f2['Comment']||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+_0xf9f1a9(0x15e)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x192)+_0x14ae2e+_0xf9f1a9(0x1c4)),_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';else{if(_0x14ae2e['substr'](-0x4)==_0xf9f1a9(0x17d))_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+'\x22\x20prop=\x22'+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1ff)+_0x14ae2e+_0xf9f1a9(0x210)+_0xa347f2['Comment']+'\x22\x20split=\x22-\x22\x20clearable/>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+_0xf9f1a9(0x1f8)+'\x0a';else{if(_0x14ae2e[_0xf9f1a9(0x1fd)](-0x3)=='num')_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1f9)+_0x14ae2e+_0xf9f1a9(0x1e7)+_0xa347f2[_0xf9f1a9(0x1da)]+_0xf9f1a9(0x171)),_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';else{if(_0x14ae2e[_0xf9f1a9(0x1fd)](-0x4)==_0xf9f1a9(0x1b1))_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1a0)+_0x14ae2e+_0xf9f1a9(0x1e7)+_0xa347f2[_0xf9f1a9(0x1da)]+_0xf9f1a9(0x20e)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+_0xf9f1a9(0x1f8)+'\x0a';else{if(_0x14ae2e[_0xf9f1a9(0x1fd)](-0x3)==_0xf9f1a9(0x1e5)){let _0x152b59=''+(typeof _0x12b155==_0xf9f1a9(0x18f)?_0x12b155+'/':'')+(_0x20b5f9?_0x20b5f9+'/':'')+_0x4dace4;_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+'\x22\x20prop=\x22'+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+('<el-select-search\x20v-model=\x22formdata.'+_0x14ae2e+_0xf9f1a9(0x1c8)+_0x152b59+_0xf9f1a9(0x1b6)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+'</el-form-item>'+'\x0a';}else switch((0x0,helper_1[_0xf9f1a9(0x1c1)])(_0xa347f2[_0xf9f1a9(0x16b)])){case _0xf9f1a9(0x1df):_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+'\x22\x20prop=\x22'+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1f9)+_0x14ae2e+'\x22\x20placeholder=\x22请输入'+_0xa347f2[_0xf9f1a9(0x1da)]+_0xf9f1a9(0x1d3)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+'</el-form-item>'+'\x0a';break;case _0xf9f1a9(0x1c9):_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2['Comment']||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1fc)+_0x14ae2e+_0xf9f1a9(0x175)+_0xa347f2[_0xf9f1a9(0x1da)]+'\x22\x20clearable>');for(let _0x2b7b5f of(0x0,helper_1[_0xf9f1a9(0x160)])(_0xa347f2['Type'])){_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-option\x20label=\x22'+_0x2b7b5f+'\x22\x20value=\x22'+_0x2b7b5f+_0xf9f1a9(0x15d));}_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+_0xf9f1a9(0x16a),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+_0xf9f1a9(0x1f8)+'\x0a';break;case _0xf9f1a9(0x1ad):_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+('<el-form-item\x20label=\x22'+(_0xa347f2['Comment']||_0xa347f2['Field'])+_0xf9f1a9(0x173)+_0x14ae2e+_0xf9f1a9(0x15e)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1a0)+_0x14ae2e+'\x22\x20\x20placeholder=\x22请输入'+_0xa347f2[_0xf9f1a9(0x1da)]+_0xf9f1a9(0x185)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+_0xf9f1a9(0x1f8)+'\x0a';break;case _0xf9f1a9(0x193):_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+_0xf9f1a9(0x15e)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1ef)+_0x14ae2e+'\x22\x20/>'),_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+_0xf9f1a9(0x1f8)+'\x0a';break;case _0xf9f1a9(0x204):_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2['Field'])+_0xf9f1a9(0x173)+_0x14ae2e+_0xf9f1a9(0x15e)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1ef)+_0x14ae2e+_0xf9f1a9(0x15d)),_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+_0xf9f1a9(0x1f8)+'\x0a';break;case'date':_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xf9f1a9(0x174)+(_0xa347f2['Comment']||_0xa347f2['Field'])+'\x22\x20prop=\x22'+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x20f)+_0x14ae2e+'\x22\x20placeholder=\x22选择'+_0xa347f2['Comment']+'\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+_0xf9f1a9(0x1f8)+'\x0a';break;case _0xf9f1a9(0x217):_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x20f)+_0x14ae2e+_0xf9f1a9(0x1c3)+_0xa347f2[_0xf9f1a9(0x1da)]+_0xf9f1a9(0x209)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+_0xf9f1a9(0x1f8)+'\x0a';break;case _0xf9f1a9(0x1d8):_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xf9f1a9(0x20f)+_0x14ae2e+'\x22\x20placeholder=\x22选择'+_0xa347f2[_0xf9f1a9(0x1da)]+_0xf9f1a9(0x209)),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+'</el-form-item>'+'\x0a';break;default:_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+(_0xf9f1a9(0x174)+(_0xa347f2[_0xf9f1a9(0x1da)]||_0xa347f2[_0xf9f1a9(0x1ca)])+_0xf9f1a9(0x173)+_0x14ae2e+'\x22>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x202)+(_0xf9f1a9(0x1a0)+_0x14ae2e+_0xf9f1a9(0x1e7)+_0xa347f2[_0xf9f1a9(0x1da)]+'\x22\x20clearable/>'),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+'</el-form-item>'+'\x0a';}}}}}}}_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+_0xf9f1a9(0x1dd),_0x2cecd1+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xf9f1a9(0x213),_0x2cecd1+='\x0a'+_0xf9f1a9(0x21f)+_0xf9f1a9(0x1f8)+'\x0a';let _0x1aedea=_0xf9f1a9(0x18e);_0x1aedea+=_0xf9f1a9(0x1d1)+(_0x33482a=='add'?'添加'+_0x24826b:'编辑'+_0x24826b)+_0xf9f1a9(0x189)+_0x1a1aca+'.'+(_0x33482a==_0xf9f1a9(0x1a2)?'add':_0xf9f1a9(0x1f2))+_0xf9f1a9(0x16d),_0x1aedea+='\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2cecd1+'\x0a',_0x1aedea+=_0xf9f1a9(0x1e0),_0x1aedea+=_0xf9f1a9(0x17e)+_0x1a1aca+'.'+(_0x33482a==_0xf9f1a9(0x1a2)?'add':_0xf9f1a9(0x1f2))+_0xf9f1a9(0x1ab),_0x1aedea+=_0xf9f1a9(0x1c6),_0x1aedea+=_0xf9f1a9(0x1a7),_0x1aedea+=_0xf9f1a9(0x168),_0x1aedea+=_0xf9f1a9(0x1ee);if(_0x33482a==_0xf9f1a9(0x1a2))_0x1aedea+=_0xf9f1a9(0x182)+_0x11638b+_0xf9f1a9(0x16e)+(_0x20b5f9?_0xf9f1a9(0x1bb)+_0x20b5f9:_0x110f11)+'/validators/'+_0x11638b+'/add\x27\x0a';else _0x33482a==_0xf9f1a9(0x1f2)&&(_0x1aedea+=_0xf9f1a9(0x182)+_0x11638b+'EditRule\x20}\x20from\x20\x27@'+(_0x20b5f9?'apps/'+_0x20b5f9:_0x110f11)+_0xf9f1a9(0x197)+_0x11638b+_0xf9f1a9(0x1d9));_0x1aedea+=_0xf9f1a9(0x165),_0x1aedea+='\x20\x20\x20\x20data(){\x0a',_0x1aedea+=_0xf9f1a9(0x195),_0x1aedea+=_0xf9f1a9(0x1a6),_0x1aedea+=_0xf9f1a9(0x1be);if(_0x33482a==_0xf9f1a9(0x1a2))_0x1aedea+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formrule:\x20'+_0x11638b+_0xf9f1a9(0x16f);else _0x33482a=='edit'&&(_0x1aedea+=_0xf9f1a9(0x1cf)+_0x11638b+'EditRule,\x0a');_0x1aedea+=_0xf9f1a9(0x198),_0x1aedea+='\x20\x20\x20\x20},\x0a',_0x33482a==_0xf9f1a9(0x1f2)&&(_0x1aedea+=_0xf9f1a9(0x215),_0x1aedea+=_0xf9f1a9(0x166)+_0x32aded[_0xf9f1a9(0x1ca)]+_0xf9f1a9(0x15c),_0x1aedea+=_0xf9f1a9(0x178)),_0x1aedea+=_0xf9f1a9(0x1cc),_0x1aedea+=_0xf9f1a9(0x1e6),_0x1aedea+=_0xf9f1a9(0x19b),_0x1aedea+=_0xf9f1a9(0x162),_0x1aedea+=_0xf9f1a9(0x1bf),_0x1aedea+=_0xf9f1a9(0x1e9),_0x1aedea+=_0xf9f1a9(0x163),_0x1aedea+=_0xf9f1a9(0x180),_0x1aedea+=_0xf9f1a9(0x187)+_0x1a1aca+'.'+(_0x33482a==_0xf9f1a9(0x1a2)?_0xf9f1a9(0x1a2):_0xf9f1a9(0x1f2))+'(item).then(res=>{\x0a',_0x1aedea+=_0xf9f1a9(0x172),_0x1aedea+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a',_0x1aedea+=_0xf9f1a9(0x1b0),_0x1aedea+=_0xf9f1a9(0x1f7),_0x1aedea+=_0xf9f1a9(0x199),_0x1aedea+=_0xf9f1a9(0x169),_0x33482a=='edit'&&(_0x1aedea+='\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a',_0x1aedea+=_0xf9f1a9(0x218),_0x1aedea+=_0xf9f1a9(0x1bf),_0x1aedea+=_0xf9f1a9(0x1b2)+_0x32aded[_0xf9f1a9(0x1ca)]+_0xf9f1a9(0x1ac),_0x1aedea+=_0xf9f1a9(0x21e)+_0x32aded[_0xf9f1a9(0x1ca)]+')\x20{\x0a',_0x1aedea+=_0xf9f1a9(0x1b5),_0x1aedea+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x1a1aca+_0xf9f1a9(0x17c)+_0x32aded[_0xf9f1a9(0x1ca)]+_0xf9f1a9(0x1e1),_0x1aedea+=_0xf9f1a9(0x183),_0x1aedea+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a',_0x1aedea+=_0xf9f1a9(0x1ae),_0x1aedea+=_0xf9f1a9(0x212),_0x1aedea+=_0xf9f1a9(0x1b3),_0x1aedea+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$router.back();\x0a',_0x1aedea+=_0xf9f1a9(0x188),_0x1aedea+=_0xf9f1a9(0x169)),_0x1aedea+=_0xf9f1a9(0x178),_0x1aedea+='}\x0a',_0x1aedea+=_0xf9f1a9(0x211),fs['mkdirSync']((0x0,path_1['dirname'])(_0x381107),{'recursive':!![]}),fs[_0xf9f1a9(0x17f)](_0x381107,_0x1aedea,_0xf9f1a9(0x1fe));}}
|
|
1
|
+
const a13_0x57acd6=a13_0x4f5e;(function(_0x3cef78,_0x4bbef5){const _0x3d185c=a13_0x4f5e,_0x2ed98e=_0x3cef78();while(!![]){try{const _0x3a3596=-parseInt(_0x3d185c(0x1e5))/0x1*(parseInt(_0x3d185c(0x203))/0x2)+-parseInt(_0x3d185c(0x246))/0x3*(-parseInt(_0x3d185c(0x1d2))/0x4)+-parseInt(_0x3d185c(0x241))/0x5+parseInt(_0x3d185c(0x227))/0x6*(parseInt(_0x3d185c(0x1d8))/0x7)+-parseInt(_0x3d185c(0x224))/0x8*(-parseInt(_0x3d185c(0x1be))/0x9)+-parseInt(_0x3d185c(0x1f0))/0xa+-parseInt(_0x3d185c(0x20b))/0xb*(-parseInt(_0x3d185c(0x23b))/0xc);if(_0x3a3596===_0x4bbef5)break;else _0x2ed98e['push'](_0x2ed98e['shift']());}catch(_0x32a04b){_0x2ed98e['push'](_0x2ed98e['shift']());}}}(a13_0x2e24,0x2d506));const a13_0x472cd6=(function(){let _0x52bb1f=!![];return function(_0x4248b6,_0x31cb80){const _0x42d51f=_0x52bb1f?function(){if(_0x31cb80){const _0x1616e4=_0x31cb80['apply'](_0x4248b6,arguments);return _0x31cb80=null,_0x1616e4;}}:function(){};return _0x52bb1f=![],_0x42d51f;};}()),a13_0x40abd4=a13_0x472cd6(this,function(){const _0xe676cd=a13_0x4f5e;return a13_0x40abd4[_0xe676cd(0x1c2)]()[_0xe676cd(0x1ba)](_0xe676cd(0x26c))[_0xe676cd(0x1c2)]()['constructor'](a13_0x40abd4)[_0xe676cd(0x1ba)](_0xe676cd(0x26c));});a13_0x40abd4();'use strict';Object[a13_0x57acd6(0x1b9)](exports,a13_0x57acd6(0x1e6),{'value':!![]});const fs=require('fs'),path_1=require(a13_0x57acd6(0x22e)),helper_1=require(a13_0x57acd6(0x1ef));async function default_1({moduleName:_0x44c18b,controller:_0x39920b,tablestartUpShort:_0x19e426,tablestartUpShort2:_0x136954,Primary:_0x3c2931,Fields:_0x51d447,apporbasic:_0x58d31d,Comment:_0x1227f1}){const _0x300b8c=a13_0x57acd6;await createIndex({'moduleName':_0x44c18b,'controller':_0x39920b,'tablestartUpShort':_0x19e426,'tablestartUpShort2':_0x136954,'Primary':_0x3c2931,'Fields':_0x51d447,'apporbasic':_0x58d31d}),await createSearch({'moduleName':_0x44c18b,'controller':_0x39920b,'tablestartUpShort2':_0x136954,'Primary':_0x3c2931,'Fields':_0x51d447,'apporbasic':_0x58d31d}),await createAddOrEdit({'moduleName':_0x44c18b,'controller':_0x39920b,'tablestartUpShort':_0x19e426,'tablestartUpShort2':_0x136954,'Primary':_0x3c2931,'Fields':_0x51d447,'apporbasic':_0x58d31d,'Comment':_0x1227f1},_0x300b8c(0x26b)),await createAddOrEdit({'moduleName':_0x44c18b,'controller':_0x39920b,'tablestartUpShort':_0x19e426,'tablestartUpShort2':_0x136954,'Primary':_0x3c2931,'Fields':_0x51d447,'apporbasic':_0x58d31d,'Comment':_0x1227f1},_0x300b8c(0x22d));}exports['default']=default_1;async function createIndex({moduleName:_0x55b4e2,controller:_0x2fc425,tablestartUpShort:_0x1e720b,tablestartUpShort2:_0x1f676b,Primary:_0x4b337c,Fields:_0x39f8c0,apporbasic:_0x936ae2}){const _0x56230b=a13_0x57acd6;let _0x43e99b=process[_0x56230b(0x1c0)]()+_0x56230b(0x1d5)+(typeof _0x2fc425==_0x56230b(0x249)?'/'+_0x2fc425:'');_0x55b4e2?_0x43e99b=_0x43e99b+(_0x56230b(0x1c3)+_0x55b4e2+_0x56230b(0x242)+_0x1f676b+_0x56230b(0x24b)):_0x43e99b=_0x43e99b+(_0x56230b(0x1ee)+_0x936ae2+'/template/'+_0x1f676b+_0x56230b(0x24b));if(!fs[_0x56230b(0x20c)](_0x43e99b)){const _0x530bc1=(typeof _0x55b4e2=='string'?_0x56230b(0x1e2)+_0x55b4e2+'.':'$'+_0x936ae2+_0x56230b(0x1e4))+(''+_0x1e720b);let _0x3ffede=_0x56230b(0x232)+('\x22'+_0x4b337c[_0x56230b(0x209)]+'\x22')['padEnd'](0x14)+(_0x56230b(0x1f9)+(_0x4b337c[_0x56230b(0x23c)]||'编号')+_0x56230b(0x1b7));for(let _0x22a027 in _0x39f8c0){const _0x1a572b=_0x39f8c0[_0x22a027];if([_0x56230b(0x256),'updated_at','deleted_at',_0x56230b(0x237)][_0x56230b(0x20e)](_0x22a027)!=-0x1)continue;if(_0x22a027[_0x56230b(0x23e)](-0x3)==_0x56230b(0x251)||_0x22a027[_0x56230b(0x23e)](-0x5)=='thumb'||_0x22a027==_0x56230b(0x247)||_0x22a027[_0x56230b(0x23e)](-0x4)==_0x56230b(0x230)||_0x22a027=='logo')_0x3ffede+='\x0a'+_0x56230b(0x217)+_0x56230b(0x232)+('\x22'+_0x22a027+'\x22')[_0x56230b(0x1b3)](0x14)+(_0x56230b(0x1f9)+(_0x1a572b[_0x56230b(0x23c)]||_0x1a572b[_0x56230b(0x209)])+_0x56230b(0x24e)),_0x3ffede+='\x0a'+_0x56230b(0x218)+_0x56230b(0x1f4),_0x3ffede+='\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'+_0x56230b(0x1bc),_0x3ffede+='\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'+(_0x56230b(0x238)+_0x22a027+'\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>'),_0x3ffede+='\x0a'+_0x56230b(0x1c6)+(_0x56230b(0x1bf)+_0x22a027+_0x56230b(0x268)),_0x3ffede+='\x0a'+_0x56230b(0x1cd)+_0x56230b(0x235),_0x3ffede+='\x0a'+_0x56230b(0x1cd)+_0x56230b(0x21e),_0x3ffede+='\x0a'+_0x56230b(0x1c6)+(_0x56230b(0x1bf)+_0x22a027+_0x56230b(0x265)),_0x3ffede+='\x0a'+_0x56230b(0x1cd)+_0x56230b(0x1e3),_0x3ffede+='\x0a'+_0x56230b(0x231)+'</el-popover>',_0x3ffede+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x56230b(0x1e3),_0x3ffede+='\x0a'+_0x56230b(0x217)+_0x56230b(0x1bb);else['text','longtext']['indexOf']((0x0,helper_1['getProp'])(_0x1a572b[_0x56230b(0x1d7)]))==-0x1&&(_0x3ffede+='\x0a'+_0x56230b(0x217)+'<el-table-column\x20prop='+('\x22'+_0x22a027+'\x22')[_0x56230b(0x1b3)](0x14)+(_0x56230b(0x1f9)+(_0x1a572b[_0x56230b(0x23c)]||_0x1a572b['Field'])+_0x56230b(0x24f)));}fs['mkdirSync']((0x0,path_1[_0x56230b(0x1fa)])(_0x43e99b),{'recursive':!![]}),fs[_0x56230b(0x207)](_0x43e99b,_0x56230b(0x261)+_0x530bc1+_0x56230b(0x1ff)+(_0x55b4e2?_0x56230b(0x1fd)+_0x55b4e2+'/':_0x936ae2+'/')+_0x1f676b+_0x56230b(0x22b)+_0x3ffede+'\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\x20width=\x22100\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\x20v-if=\x22'+_0x530bc1+_0x56230b(0x1f7)+(_0x55b4e2?_0x56230b(0x1fd)+_0x55b4e2+'/':_0x936ae2+'/')+_0x1f676b+_0x56230b(0x26a)+_0x4b337c['Field']+'=${scope.row.'+_0x4b337c[_0x56230b(0x209)]+_0x56230b(0x1e8)+_0x530bc1+_0x56230b(0x204)+_0x530bc1+_0x56230b(0x234)+_0x4b337c[_0x56230b(0x209)]+'\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.'+_0x530bc1+_0x56230b(0x215)+_0x4b337c['Field']+_0x56230b(0x212)+_0x4b337c[_0x56230b(0x209)]+_0x56230b(0x25a),_0x56230b(0x22f));}}async function createSearch({moduleName:_0xa24c9e,tablestartUpShort2:_0x3bb136,controller:_0x2e7570,Primary:_0x372248,Fields:_0x336406,apporbasic:_0x5cfef7}){const _0x1a93c1=a13_0x57acd6;let _0x372948=process[_0x1a93c1(0x1c0)]()+_0x1a93c1(0x1d5)+(typeof _0x2e7570==_0x1a93c1(0x249)?'/'+_0x2e7570:'');_0xa24c9e?_0x372948=_0x372948+('/pages/apps/'+_0xa24c9e+_0x1a93c1(0x242)+_0x3bb136+_0x1a93c1(0x239)):_0x372948=_0x372948+(_0x1a93c1(0x1ee)+_0x5cfef7+_0x1a93c1(0x242)+_0x3bb136+_0x1a93c1(0x239));if(!fs[_0x1a93c1(0x20c)](_0x372948)){let _0x2d62e8='';_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+(_0x1a93c1(0x264)+(_0x372248[_0x1a93c1(0x23c)]||'编号')+'\x22>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+(_0x1a93c1(0x1d3)+_0x372248[_0x1a93c1(0x209)]+_0x1a93c1(0x1eb)+(_0x372248['Comment']||'编号')+'\x22\x20clearable/>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+_0x1a93c1(0x205);for(let _0x47fd1f in _0x336406){const _0x11010c=_0x336406[_0x47fd1f];if([_0x1a93c1(0x1d4),_0x1a93c1(0x248),'displayorder'][_0x1a93c1(0x20e)](_0x47fd1f)!=-0x1)continue;if(_0x47fd1f[_0x1a93c1(0x23e)](-0x3)==_0x1a93c1(0x1b6))_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+(_0x1a93c1(0x264)+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c['Field'])+'\x22>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+('<el-input-number\x20v-model=\x22search.'+_0x47fd1f+'\x22\x20placeholder=\x22请输入'+_0x11010c[_0x1a93c1(0x23c)]+_0x1a93c1(0x220)),_0x2d62e8+='\x0a'+'\x20\x20\x20\x20'+_0x1a93c1(0x205)+'\x0a';else{if(_0x47fd1f['endsWith'](_0x1a93c1(0x202))){let _0x220da1=''+(typeof _0x2e7570==_0x1a93c1(0x249)?_0x2e7570+'/':'')+(_0xa24c9e?_0xa24c9e+'/':'')+_0x3bb136;_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+(_0x1a93c1(0x264)+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c[_0x1a93c1(0x209)])+'\x22>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1c5)+(_0x1a93c1(0x210)+_0x47fd1f+_0x1a93c1(0x201)+_0x220da1+_0x1a93c1(0x1c9)),_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+_0x1a93c1(0x205)+'\x0a';}else switch((0x0,helper_1[_0x1a93c1(0x1d0)])(_0x11010c[_0x1a93c1(0x1d7)])){case'enum':_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+(_0x1a93c1(0x264)+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c[_0x1a93c1(0x209)])+'\x22>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+(_0x1a93c1(0x1e9)+_0x47fd1f+_0x1a93c1(0x221)+_0x11010c[_0x1a93c1(0x23c)]+_0x1a93c1(0x244));for(let _0x847b1b of(0x0,helper_1[_0x1a93c1(0x245)])(_0x11010c[_0x1a93c1(0x1d7)])){_0x2d62e8+='\x0a'+_0x1a93c1(0x1c5)+(_0x1a93c1(0x225)+_0x847b1b+_0x1a93c1(0x1b2)+_0x847b1b+_0x1a93c1(0x243));}_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+_0x1a93c1(0x25d),_0x2d62e8+='\x0a'+'\x20\x20\x20\x20'+_0x1a93c1(0x205)+'\x0a';break;case'date':_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+(_0x1a93c1(0x264)+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c['Field'])+'\x22>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+(_0x1a93c1(0x1f8)+_0x47fd1f+_0x1a93c1(0x1cc)+_0x11010c[_0x1a93c1(0x23c)]+_0x1a93c1(0x260)),_0x2d62e8+='\x0a'+'\x20\x20\x20\x20'+_0x1a93c1(0x205)+'\x0a',_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+(_0x1a93c1(0x264)+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c[_0x1a93c1(0x209)])+'\x22>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+(_0x1a93c1(0x1f8)+_0x47fd1f+_0x1a93c1(0x1b1)+_0x11010c[_0x1a93c1(0x23c)]+_0x1a93c1(0x1fb)),_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+'</el-form-item>'+'\x0a';break;case'datetime':_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+('<el-form-item\x20label=\x22'+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c[_0x1a93c1(0x209)])+'\x22>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+(_0x1a93c1(0x1f8)+_0x47fd1f+_0x1a93c1(0x1cc)+_0x11010c[_0x1a93c1(0x23c)]+_0x1a93c1(0x223)),_0x2d62e8+='\x0a'+'\x20\x20\x20\x20'+_0x1a93c1(0x205)+'\x0a',_0x2d62e8+='\x0a'+'\x20\x20\x20\x20'+(_0x1a93c1(0x264)+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c[_0x1a93c1(0x209)])+'\x22>'),_0x2d62e8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1a93c1(0x1f8)+_0x47fd1f+'_end\x22\x20placeholder=\x22选择'+_0x11010c[_0x1a93c1(0x23c)]+_0x1a93c1(0x1da)),_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+_0x1a93c1(0x205)+'\x0a';break;case _0x1a93c1(0x262):_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+('<el-form-item\x20label=\x22'+(_0x11010c['Comment']||_0x11010c[_0x1a93c1(0x209)])+'\x22>'),_0x2d62e8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-date-picker\x20v-model=\x22search.'+_0x47fd1f+_0x1a93c1(0x1cc)+_0x11010c[_0x1a93c1(0x23c)]+_0x1a93c1(0x223)),_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+_0x1a93c1(0x205)+'\x0a',_0x2d62e8+='\x0a'+'\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c[_0x1a93c1(0x209)])+'\x22>'),_0x2d62e8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1a93c1(0x1f8)+_0x47fd1f+_0x1a93c1(0x1b1)+_0x11010c[_0x1a93c1(0x23c)]+_0x1a93c1(0x1da)),_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+_0x1a93c1(0x205)+'\x0a';break;case _0x1a93c1(0x249):_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+(_0x1a93c1(0x264)+(_0x11010c[_0x1a93c1(0x23c)]||_0x11010c['Field'])+'\x22>'),_0x2d62e8+='\x0a'+_0x1a93c1(0x1ec)+(_0x1a93c1(0x1d3)+_0x47fd1f+'\x22\x20placeholder=\x22请输入'+_0x11010c['Comment']+_0x1a93c1(0x253)),_0x2d62e8+='\x0a'+_0x1a93c1(0x1e1)+_0x1a93c1(0x205)+'\x0a';}}}fs[_0x1a93c1(0x222)]((0x0,path_1[_0x1a93c1(0x1fa)])(_0x372948),{'recursive':!![]}),fs[_0x1a93c1(0x207)](_0x372948,_0x1a93c1(0x25f)+_0x2d62e8+_0x1a93c1(0x266),'utf-8');}}function a13_0x4f5e(_0x5bf622,_0x397e2a){const _0x25e991=a13_0x2e24();return a13_0x4f5e=function(_0x40abd4,_0x472cd6){_0x40abd4=_0x40abd4-0x1b1;let _0x2e241a=_0x25e991[_0x40abd4];return _0x2e241a;},a13_0x4f5e(_0x5bf622,_0x397e2a);}function a13_0x2e24(){const _0x37970a=['\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','<el-select\x20v-model=\x22formdata.','datetime','<template\x20#reference>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20clearable/>','\x22\x20placeholder=\x22请选择','mkdirSync','开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','8264RlduhO','<el-option\x20label=\x22','.hasPrem()\x22>\x0a','1076640GVLzhE','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formrule:\x20','\x22\x20prop=\x22','\x22\x20:limit=\x225\x22\x20/>','/add`)\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','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$refs?.form?.validate().then(item\x20=>\x20{\x0a','edit','path','utf-8','logo','\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-table-column\x20prop=','<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20controls-position=\x22right\x22/>','.list(Object.assign({},\x20this.table.search,\x20sortable)).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,\x20this.table.data\x20=\x20res.data\x20||\x20[],\x20this.table.search\x20=\x20{\x20...this.table.search,\x20...res.extra.pageinfo,\x20_count:\x20res.extra.pagetotal\x20};\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(err\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\x20handlerRemove(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20item.','</a>','\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a','displayorder','<a\x20:href=\x22scope.row.','/list/components/search.vue','\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a','2345028yfcffm','Comment','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','substr','<el-date-picker\x20v-model=\x22formdata.','\x22\x20split=\x22-\x22\x20clearable/>','1852390TopcRz','/template/','\x22\x20/>','\x22\x20clearable>','getEnum','519705nYOjyG','thumb','deleted_at','string','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$router.back();\x0a','/list/index.vue','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a','\x22\x20class=\x22block\x22>','\x22\x20align=\x27center\x27\x20show-overflow-tooltip>','\x22\x20align=\x27center\x27\x20sortable=\x22custom\x22\x20show-overflow-tooltip\x20/>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','img','<page-editor\x20v-model=\x22formdata.','\x22\x20clearable/>','\x20}).then(res=>{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a','created_at','import\x20{\x20','apps/','AddRule\x20}\x20from\x20\x27@','\x20}).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.success(res?.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(err\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})\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>','imgs','export\x20default\x20{\x0a','</el-select>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formdata:\x20{},\x0a','<template>\x0a\x20\x20\x20\x20','开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','<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\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\x20v-if=\x22','timestamp','<el-select-tags\x20v-model=\x22formdata.','<el-form-item\x20label=\x22','\x22\x20style=\x22width:\x2040px;\x20cursor:pointer\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>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','/add\x27\x0a','/edit?','add','(((.+)+)+)+$','_end\x22\x20placeholder=\x22选择','\x22\x20value=\x22','padEnd','\x22\x20:model=\x22formdata\x22\x20:rules=\x22formrule\x22\x20:disabled=\x22!','<template>\x0a','num','\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20/>','.hasPrem()\x22\x20type=\x22primary\x22\x20@click=\x22handlerSave(formdata)\x22>保存</el-button>\x0a','defineProperty','search','</el-table-column>','<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>','\x22\x20:limit=\x221\x22\x20/>','1386bUgxMA','<img\x20:src=\x22scope.row.','cwd','\x20\x20\x20\x20data(){\x0a','toString','/pages/apps/','.detail({\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\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\x20this.loading\x20=\x20true,\x20this.formdata\x20=\x20{}\x0a','<el-form-item\x20label=\x22排序\x22\x20prop=\x22displayorder\x22>','\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>','\x22\x20type=\x22textarea\x22\x20:rows=\x224\x22/>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a','_start\x22\x20placeholder=\x22选择','\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','/edit\x27\x0a','\x20\x20\x20\x20mounted(){\x0a','getProp','\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a','4RpCcYE','<el-input\x20v-model=\x22search.','updated_at','/vue','tags','Type','7DbsPuY','(item).then(res=>{\x0a','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','</script>\x0a','\x20\x20\x20\x20<page-form\x20ref=\x22form\x22\x20title=\x22','date','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false,\x20this.$notify.success(res?.message\x20||\x20\x27操作成功\x27),\x20this.$router.back();\x0a','<el-input-number\x20v-model=\x22formdata.','\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','$appsApi.','</template>','Api.','1lzEnZe','__esModule','\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a','}`)\x22\x20type=\x22primary\x22\x20text>\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\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\x20v-if=\x22','<el-select\x20v-model=\x22search.','number','\x22\x20placeholder=\x22请输入','\x20\x20\x20\x20\x20\x20\x20\x20','/validators/','/pages/','../helper','1189010cTvTHV','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20/>','<el-input\x20v-model=\x22formdata.','\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a','<template\x20#default=\x22scope\x22>','\x22\x20placeholder=\x22选择','\x20\x20\x20\x20methods:\x20{\x0a','.edit.hasPrem()\x22\x20@click=\x22$router.push(`/','<el-date-picker\x20v-model=\x22search.','\x20label=\x22','dirname','结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','<page-images\x20v-model=\x22formdata.','apps-','AddRule,\x0a','.add.hasPrem()\x22\x20@click=\x22$router.push(`/','/index.vue','\x22\x20api=\x22','_id','64382xKnZCB','.remove.hasPrem()\x22\x20@click=\x22handlerRemove(scope.row)\x22\x20type=\x22primary\x22\x20text>\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\x20\x20\x20\x20</page>\x0a</template>\x0a<script>\x0aimport\x20search\x20from\x20\x22./components/search.vue\x22\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20components:\x20{\x20search\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\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\x20,\x20size,\x20sortable\x20=\x20{}){\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','</el-form-item>','\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20获取详情\x0a','writeFileSync','mediumtext','Field','<el-select-search\x20v-model=\x22formdata.','11uOTYct','existsSync','\x20\x20\x20\x20},\x0a','indexOf','\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要保存的数据\x0a','<el-select-search\x20v-model=\x22search.','thumbs',':\x20item.','EditRule\x20}\x20from\x20\x27@','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','.remove({\x20','\x20\x20\x20\x20</page-form>\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\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','enum'];a13_0x2e24=function(){return _0x37970a;};return a13_0x2e24();}async function createAddOrEdit({moduleName:_0x5380b7,controller:_0x49e2d7,tablestartUpShort:_0x5b9818,tablestartUpShort2:_0x24045a,Primary:_0x14f813,Fields:_0x3f2c0e,apporbasic:_0x4f118f,Comment:_0x46cdbb},_0x714c07=a13_0x57acd6(0x26b)){const _0x3aed16=a13_0x57acd6;let _0x4a2d63=process['cwd']()+_0x3aed16(0x1d5)+(typeof _0x49e2d7==_0x3aed16(0x249)?'/'+_0x49e2d7:'');_0x5380b7?_0x4a2d63=_0x4a2d63+(_0x3aed16(0x1c3)+_0x5380b7+_0x3aed16(0x242)+_0x24045a+'/'+_0x714c07+_0x3aed16(0x200)):_0x4a2d63=_0x4a2d63+(_0x3aed16(0x1ee)+_0x4f118f+'/template/'+_0x24045a+'/'+_0x714c07+'/index.vue');if(!fs[_0x3aed16(0x20c)](_0x4a2d63)){const _0x5bba69=(typeof _0x5380b7==_0x3aed16(0x249)?_0x3aed16(0x1e2)+_0x5380b7+'.':'$'+_0x4f118f+_0x3aed16(0x1e4))+(''+_0x5b9818);let _0x4d582e='';for(let _0x31e7e1 in _0x3f2c0e){const _0x9a59c6=_0x3f2c0e[_0x31e7e1];if([_0x3aed16(0x256),_0x3aed16(0x1d4),_0x3aed16(0x248),_0x3aed16(0x237)][_0x3aed16(0x20e)](_0x31e7e1)!=-0x1)continue;if(_0x31e7e1['substr'](-0x4)==_0x3aed16(0x25b)||_0x31e7e1[_0x3aed16(0x23e)](-0x5)==_0x3aed16(0x211))_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6[_0x3aed16(0x209)])+'\x22\x20prop=\x22'+_0x31e7e1+'\x22\x20class=\x22block\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x1fc)+_0x31e7e1+_0x3aed16(0x22a)),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';else{if(_0x31e7e1[_0x3aed16(0x23e)](-0x3)==_0x3aed16(0x251)||_0x31e7e1[_0x3aed16(0x23e)](-0x5)==_0x3aed16(0x247)||_0x31e7e1==_0x3aed16(0x247)||_0x31e7e1[_0x3aed16(0x23e)](-0x4)==_0x3aed16(0x230)||_0x31e7e1=='logo')_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6[_0x3aed16(0x209)])+_0x3aed16(0x229)+_0x31e7e1+_0x3aed16(0x24d)),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+('<page-images\x20v-model=\x22formdata.'+_0x31e7e1+_0x3aed16(0x1bd)),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+'</el-form-item>'+'\x0a';else{if(_0x31e7e1[_0x3aed16(0x23e)](-0x4)==_0x3aed16(0x1d6))_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+('<el-form-item\x20label=\x22'+(_0x9a59c6['Comment']||_0x9a59c6[_0x3aed16(0x209)])+_0x3aed16(0x229)+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x263)+_0x31e7e1+'\x22\x20placeholder=\x22请输入或选择'+_0x9a59c6[_0x3aed16(0x23c)]+_0x3aed16(0x240)),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+'</el-form-item>'+'\x0a';else{if(_0x31e7e1['substr'](-0x3)=='num')_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6[_0x3aed16(0x209)])+_0x3aed16(0x229)+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+('<el-input-number\x20v-model=\x22formdata.'+_0x31e7e1+_0x3aed16(0x1eb)+_0x9a59c6[_0x3aed16(0x23c)]+_0x3aed16(0x1f1)),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+'</el-form-item>'+'\x0a';else{if(_0x31e7e1[_0x3aed16(0x23e)](-0x4)=='_ids')_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6['Comment']||_0x9a59c6[_0x3aed16(0x209)])+_0x3aed16(0x229)+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x1f2)+_0x31e7e1+_0x3aed16(0x1eb)+_0x9a59c6['Comment']+'\x22\x20clearable/>'),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';else{if(_0x31e7e1[_0x3aed16(0x23e)](-0x3)==_0x3aed16(0x202)){let _0x3ad1ee=''+(typeof _0x49e2d7==_0x3aed16(0x249)?_0x49e2d7+'/':'')+(_0x5380b7?_0x5380b7+'/':'')+_0x24045a;_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6[_0x3aed16(0x209)])+'\x22\x20prop=\x22'+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x20a)+_0x31e7e1+_0x3aed16(0x201)+_0x3ad1ee+_0x3aed16(0x1c9)),_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3aed16(0x205)+'\x0a';}else switch((0x0,helper_1['getProp'])(_0x9a59c6['Type'])){case _0x3aed16(0x1ea):_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6['Field'])+_0x3aed16(0x229)+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3aed16(0x1df)+_0x31e7e1+'\x22\x20placeholder=\x22请输入'+_0x9a59c6[_0x3aed16(0x23c)]+'\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22/>'),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';break;case _0x3aed16(0x21a):_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3aed16(0x264)+(_0x9a59c6['Comment']||_0x9a59c6['Field'])+_0x3aed16(0x229)+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x21c)+_0x31e7e1+_0x3aed16(0x221)+_0x9a59c6[_0x3aed16(0x23c)]+_0x3aed16(0x244));for(let _0x25ebdb of(0x0,helper_1[_0x3aed16(0x245)])(_0x9a59c6[_0x3aed16(0x1d7)])){_0x4d582e+='\x0a'+_0x3aed16(0x217)+(_0x3aed16(0x225)+_0x25ebdb+_0x3aed16(0x1b2)+_0x25ebdb+_0x3aed16(0x243));}_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+'</el-select>',_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';break;case'text':_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+('<el-form-item\x20label=\x22'+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6['Field'])+_0x3aed16(0x229)+_0x31e7e1+_0x3aed16(0x24d)),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x1f2)+_0x31e7e1+'\x22\x20\x20placeholder=\x22请输入'+_0x9a59c6[_0x3aed16(0x23c)]+_0x3aed16(0x1ca)),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';break;case'longtext':_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6['Comment']||_0x9a59c6[_0x3aed16(0x209)])+'\x22\x20prop=\x22'+_0x31e7e1+'\x22\x20class=\x22block\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x252)+_0x31e7e1+_0x3aed16(0x243)),_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';break;case _0x3aed16(0x208):_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6['Field'])+_0x3aed16(0x229)+_0x31e7e1+_0x3aed16(0x24d)),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x252)+_0x31e7e1+_0x3aed16(0x243)),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';break;case _0x3aed16(0x1dd):_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6['Field'])+_0x3aed16(0x229)+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x23f)+_0x31e7e1+_0x3aed16(0x1f5)+_0x9a59c6[_0x3aed16(0x23c)]+'\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+'</el-form-item>'+'\x0a';break;case _0x3aed16(0x21d):_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6[_0x3aed16(0x209)])+_0x3aed16(0x229)+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+(_0x3aed16(0x23f)+_0x31e7e1+_0x3aed16(0x1f5)+_0x9a59c6[_0x3aed16(0x23c)]+'\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';break;case _0x3aed16(0x262):_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+(_0x3aed16(0x264)+(_0x9a59c6[_0x3aed16(0x23c)]||_0x9a59c6[_0x3aed16(0x209)])+'\x22\x20prop=\x22'+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3aed16(0x23f)+_0x31e7e1+_0x3aed16(0x1f5)+_0x9a59c6[_0x3aed16(0x23c)]+_0x3aed16(0x214)),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+'</el-form-item>'+'\x0a';break;default:_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3aed16(0x264)+(_0x9a59c6['Comment']||_0x9a59c6[_0x3aed16(0x209)])+'\x22\x20prop=\x22'+_0x31e7e1+'\x22>'),_0x4d582e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3aed16(0x1f2)+_0x31e7e1+'\x22\x20placeholder=\x22请输入'+_0x9a59c6['Comment']+'\x22\x20clearable/>'),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';}}}}}}}_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x1c8),_0x4d582e+='\x0a'+_0x3aed16(0x1c5)+_0x3aed16(0x233),_0x4d582e+='\x0a'+_0x3aed16(0x1ec)+_0x3aed16(0x205)+'\x0a';let _0x10ddbb=_0x3aed16(0x1b5);_0x10ddbb+=_0x3aed16(0x1dc)+(_0x714c07=='add'?'添加'+_0x46cdbb:'编辑'+_0x46cdbb)+_0x3aed16(0x1b4)+_0x5bba69+'.'+(_0x714c07==_0x3aed16(0x26b)?'add':_0x3aed16(0x22d))+_0x3aed16(0x226),_0x10ddbb+=_0x3aed16(0x1ec)+_0x4d582e+'\x0a',_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a',_0x10ddbb+=_0x3aed16(0x21f)+_0x5bba69+'.'+(_0x714c07=='add'?_0x3aed16(0x26b):_0x3aed16(0x22d))+_0x3aed16(0x1b8),_0x10ddbb+=_0x3aed16(0x1e7),_0x10ddbb+=_0x3aed16(0x216),_0x10ddbb+='</template>\x0a',_0x10ddbb+='<script>\x0a';if(_0x714c07=='add')_0x10ddbb+=_0x3aed16(0x257)+_0x5b9818+_0x3aed16(0x259)+(_0x5380b7?_0x3aed16(0x258)+_0x5380b7:_0x4f118f)+_0x3aed16(0x1ed)+_0x5b9818+_0x3aed16(0x269);else _0x714c07==_0x3aed16(0x22d)&&(_0x10ddbb+='import\x20{\x20'+_0x5b9818+_0x3aed16(0x213)+(_0x5380b7?_0x3aed16(0x258)+_0x5380b7:_0x4f118f)+_0x3aed16(0x1ed)+_0x5b9818+_0x3aed16(0x1ce));_0x10ddbb+=_0x3aed16(0x25c),_0x10ddbb+=_0x3aed16(0x1c1),_0x10ddbb+=_0x3aed16(0x1d1),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:\x20false,\x0a',_0x10ddbb+=_0x3aed16(0x25e);if(_0x714c07==_0x3aed16(0x26b))_0x10ddbb+=_0x3aed16(0x228)+_0x5b9818+_0x3aed16(0x1fe);else _0x714c07==_0x3aed16(0x22d)&&(_0x10ddbb+=_0x3aed16(0x228)+_0x5b9818+'EditRule,\x0a');_0x10ddbb+=_0x3aed16(0x21b),_0x10ddbb+='\x20\x20\x20\x20},\x0a',_0x714c07=='edit'&&(_0x10ddbb+=_0x3aed16(0x1cf),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20this.getDetail(this.$route.query?.'+_0x14f813['Field']+');\x0a',_0x10ddbb+=_0x3aed16(0x20d)),_0x10ddbb+=_0x3aed16(0x1f6),_0x10ddbb+=_0x3aed16(0x1f3),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20保存\x0a',_0x10ddbb+=_0x3aed16(0x20f),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a',_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20handlerSave(){\x0a',_0x10ddbb+=_0x3aed16(0x22c),_0x10ddbb+=_0x3aed16(0x255),_0x10ddbb+=_0x3aed16(0x250)+_0x5bba69+'.'+(_0x714c07=='add'?'add':_0x3aed16(0x22d))+_0x3aed16(0x1d9),_0x10ddbb+=_0x3aed16(0x1de),_0x10ddbb+=_0x3aed16(0x1cb),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false,\x20this.$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a',_0x10ddbb+=_0x3aed16(0x23d),_0x10ddbb+=_0x3aed16(0x219),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a',_0x714c07==_0x3aed16(0x22d)&&(_0x10ddbb+=_0x3aed16(0x1f3),_0x10ddbb+=_0x3aed16(0x206),_0x10ddbb+=_0x3aed16(0x23a),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20getDetail('+_0x14f813[_0x3aed16(0x209)]+')\x20{\x0a',_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20('+_0x14f813[_0x3aed16(0x209)]+')\x20{\x0a',_0x10ddbb+=_0x3aed16(0x1c7),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x5bba69+_0x3aed16(0x1c4)+_0x14f813['Field']+_0x3aed16(0x254),_0x10ddbb+=_0x3aed16(0x1e0),_0x10ddbb+=_0x3aed16(0x24c),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error(err\x20||\x20\x27网络请求错误\x27),\x20this.$router.back();\x0a',_0x10ddbb+=_0x3aed16(0x267),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}else{\x0a',_0x10ddbb+=_0x3aed16(0x24a),_0x10ddbb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x10ddbb+=_0x3aed16(0x236)),_0x10ddbb+=_0x3aed16(0x20d),_0x10ddbb+='}\x0a',_0x10ddbb+=_0x3aed16(0x1db),fs[_0x3aed16(0x222)]((0x0,path_1[_0x3aed16(0x1fa)])(_0x4a2d63),{'recursive':!![]}),fs[_0x3aed16(0x207)](_0x4a2d63,_0x10ddbb,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x28cbfa=a14_0x1894;function a14_0x1894(_0x2365d8,_0x250a98){const _0x2a7544=a14_0x3200();return a14_0x1894=function(_0x8bb67b,_0x21964e){_0x8bb67b=_0x8bb67b-0xf4;let _0x3200f1=_0x2a7544[_0x8bb67b];return _0x3200f1;},a14_0x1894(_0x2365d8,_0x250a98);}(function(_0x5da73b,_0x389768){const _0x3e593b=a14_0x1894,_0x58061a=_0x5da73b();while(!![]){try{const _0x4ad7b3=parseInt(_0x3e593b(0xfb))/0x1*(parseInt(_0x3e593b(0x115))/0x2)+parseInt(_0x3e593b(0x119))/0x3*(parseInt(_0x3e593b(0x10f))/0x4)+parseInt(_0x3e593b(0x107))/0x5+parseInt(_0x3e593b(0x11e))/0x6*(parseInt(_0x3e593b(0xfc))/0x7)+-parseInt(_0x3e593b(0x117))/0x8*(-parseInt(_0x3e593b(0x100))/0x9)+-parseInt(_0x3e593b(0x10d))/0xa*(parseInt(_0x3e593b(0x105))/0xb)+parseInt(_0x3e593b(0xf7))/0xc*(-parseInt(_0x3e593b(0x101))/0xd);if(_0x4ad7b3===_0x389768)break;else _0x58061a['push'](_0x58061a['shift']());}catch(_0x5571ea){_0x58061a['push'](_0x58061a['shift']());}}}(a14_0x3200,0x6df0a));function a14_0x3200(){const _0x1f767a=['constructor','dirname','476240WrmidP','/routes.js','140656SJtoag','\x20\x20\x20\x20component:\x20layout,\x0a','\x20\x20\x20\x20//\x20redirect:\x20\x22/','\x20\x20\x20\x20path:\x20\x22/','/add\x22','toString','6sQbKIa','/list/index.vue\x27),\x20meta:\x20{\x20name:\x20\x22','248JIaTJC','default','69ucbwGD','string',',\x20component:\x20()=>\x20import(\x27./template/','export\x20default\x20{\x0a','/edit\x22','12atxzkE','replace','/add/index.vue\x27),meta:\x20{\x20name:\x20\x22','添加\x22\x20}\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','defineProperty','{\x20path:\x20\x22','padEnd','6580272aEysfp','\x20\x20\x20\x20]\x0a','__esModule','/edit/index.vue\x27),meta:\x20{\x20name:\x20\x22','56606mVtbaL','2203117spAtxY','writeFileSync','mkdirSync','search','141048WtoGhL','52XkdNhy','cwd','import\x20layout\x20from\x20\x22./layout.vue\x22\x0a\x0a','apps-','22FerkUW','/pages/','3225510pzOaKR','编辑\x22\x20}\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','//\x20add\x20route\x20here','utf-8'];a14_0x3200=function(){return _0x1f767a;};return a14_0x3200();}const a14_0x21964e=(function(){let _0x350b41=!![];return function(_0xc54f34,_0x59e8e7){const _0x53eaee=_0x350b41?function(){if(_0x59e8e7){const _0x9bec=_0x59e8e7['apply'](_0xc54f34,arguments);return _0x59e8e7=null,_0x9bec;}}:function(){};return _0x350b41=![],_0x53eaee;};}()),a14_0x8bb67b=a14_0x21964e(this,function(){const _0x39fcf9=a14_0x1894;return a14_0x8bb67b[_0x39fcf9(0x114)]()['search']('(((.+)+)+)+$')['toString']()[_0x39fcf9(0x10b)](a14_0x8bb67b)[_0x39fcf9(0xff)]('(((.+)+)+)+$');});a14_0x8bb67b();'use strict';Object[a14_0x28cbfa(0xf4)](exports,a14_0x28cbfa(0xf9),{'value':!![]});const fs=require('fs'),path_1=require('path');async function default_1({tablestartUpShort2:_0x4f1ecf,moduleName:_0x1bd92e,controller:_0x6c38b4,Comment:_0x7d7181,apporbasic:_0x861210,Primary:_0x23ff73}){await createRoutes({'tablestartUpShort2':_0x4f1ecf,'moduleName':_0x1bd92e,'controller':_0x6c38b4,'Comment':_0x7d7181,'apporbasic':_0x861210,'Primary':_0x23ff73});}exports[a14_0x28cbfa(0x118)]=default_1;async function createRoutes({tablestartUpShort2:_0x439ad5,moduleName:_0x4d2b28,controller:_0x4d253c,Comment:_0x318ff8,apporbasic:_0x44e16e,Primary:_0x484638}){const _0x30d413=a14_0x28cbfa;let _0x4372ea=process[_0x30d413(0x102)]()+'/vue'+(typeof _0x4d253c==_0x30d413(0x11a)?'/'+_0x4d253c:'');_0x4d2b28?_0x4372ea=_0x4372ea+('/pages/apps/'+_0x4d2b28+_0x30d413(0x10e)):_0x4372ea=_0x4372ea+(_0x30d413(0x106)+_0x44e16e+'/routes.js');if(!fs['existsSync'](_0x4372ea)){let _0x32b99a=_0x30d413(0x103);_0x32b99a+=_0x30d413(0x11c),_0x32b99a+=_0x30d413(0x112)+(_0x4d2b28?_0x30d413(0x104)+_0x4d2b28+'/':_0x44e16e+'/')+'\x22,\x0a',_0x32b99a+=_0x30d413(0x111)+(_0x4d2b28?_0x30d413(0x104)+_0x4d2b28+'/':_0x44e16e+'/')+'\x22,\x0a',_0x32b99a+=_0x30d413(0x110),_0x32b99a+='\x20\x20\x20\x20children:[\x0a',_0x32b99a+='\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here\x0a',_0x32b99a+=_0x30d413(0xf8),_0x32b99a+='}\x0a',fs[_0x30d413(0xfe)]((0x0,path_1[_0x30d413(0x10c)])(_0x4372ea),{'recursive':!![]}),fs[_0x30d413(0xfd)](_0x4372ea,_0x32b99a,_0x30d413(0x10a));}const _0x3af0f5=fs['readFileSync'](_0x4372ea,_0x30d413(0x10a));fs[_0x30d413(0xfd)](_0x4372ea,_0x3af0f5[_0x30d413(0x11f)](_0x30d413(0x109),_0x30d413(0xf5)+(_0x439ad5+'\x22')[_0x30d413(0xf6)](0x14)+(',\x20component:\x20()=>\x20import(\x27./template/'+_0x439ad5+_0x30d413(0x116)+_0x318ff8+'\x22\x20}\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here'))[_0x30d413(0x11f)](_0x30d413(0x109),_0x30d413(0xf5)+(_0x439ad5+_0x30d413(0x113))[_0x30d413(0xf6)](0x14)+(_0x30d413(0x11b)+_0x439ad5+_0x30d413(0x120)+_0x318ff8+_0x30d413(0x121)))['replace'](_0x30d413(0x109),_0x30d413(0xf5)+(_0x439ad5+_0x30d413(0x11d))[_0x30d413(0xf6)](0x14)+(_0x30d413(0x11b)+_0x439ad5+_0x30d413(0xfa)+_0x318ff8+_0x30d413(0x108))));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x200433=a15_0x2ca8;(function(_0x2999a9,_0x8e5fe6){const _0x5c1243=a15_0x2ca8,_0x4d6228=_0x2999a9();while(!![]){try{const _0x3e94a7=-parseInt(_0x5c1243(0x204))/0x1*(parseInt(_0x5c1243(0x1d6))/0x2)+parseInt(_0x5c1243(0x1ea))/0x3+-parseInt(_0x5c1243(0x20f))/0x4*(parseInt(_0x5c1243(0x1fc))/0x5)+-parseInt(_0x5c1243(0x218))/0x6+-parseInt(_0x5c1243(0x1d3))/0x7*(-parseInt(_0x5c1243(0x209))/0x8)+-parseInt(_0x5c1243(0x1de))/0x9+parseInt(_0x5c1243(0x213))/0xa;if(_0x3e94a7===_0x8e5fe6)break;else _0x4d6228['push'](_0x4d6228['shift']());}catch(_0x37f28a){_0x4d6228['push'](_0x4d6228['shift']());}}}(a15_0x1048,0xd1f49));const a15_0xe80fd1=(function(){let _0x2d20e8=!![];return function(_0x1623cd,_0x1723b2){const _0x1f8de1=_0x2d20e8?function(){const _0x1760fc=a15_0x2ca8;if(_0x1723b2){const _0x53a34b=_0x1723b2[_0x1760fc(0x1f8)](_0x1623cd,arguments);return _0x1723b2=null,_0x53a34b;}}:function(){};return _0x2d20e8=![],_0x1f8de1;};}()),a15_0x20771f=a15_0xe80fd1(this,function(){const _0x249d7e=a15_0x2ca8;return a15_0x20771f[_0x249d7e(0x203)]()['search'](_0x249d7e(0x1e0))['toString']()[_0x249d7e(0x200)](a15_0x20771f)[_0x249d7e(0x1cf)](_0x249d7e(0x1e0));});a15_0x20771f();'use strict';Object[a15_0x200433(0x1d7)](exports,a15_0x200433(0x202),{'value':!![]});const fs=require('fs'),helper_1=require('../helper');async function default_1({tablestartUpShort:_0x3510f8,tablestartUpShort2:_0x53ba60,moduleName:_0x1e6271,controller:_0x2e73c3,Comment:_0x5bddc0,apporbasic:_0x525107,Primary:_0x36e3c7,Fields:_0x369aa3}){const _0x49e945=a15_0x200433;let _0x1cb7ac=process[_0x49e945(0x216)]()+'/vue'+(typeof _0x2e73c3==_0x49e945(0x1fa)?'/'+_0x2e73c3:'');_0x1e6271?_0x1cb7ac=_0x1cb7ac+('/pages/apps/'+_0x1e6271+_0x49e945(0x20c)+_0x3510f8):_0x1cb7ac=_0x1cb7ac+(_0x49e945(0x1d1)+_0x525107+'/validators/'+_0x3510f8),!fs[_0x49e945(0x214)](_0x1cb7ac)&&fs[_0x49e945(0x1e7)](_0x1cb7ac,{'recursive':!![]}),await CreateRule(_0x1cb7ac,{'tablestartUpShort':_0x3510f8,'Comment':_0x5bddc0,'Fields':_0x369aa3}),await updateRule(_0x1cb7ac,{'tablestartUpShort':_0x3510f8,'Comment':_0x5bddc0,'Fields':_0x369aa3});}exports['default']=default_1;function a15_0x2ca8(_0x47aef5,_0xb8b688){const _0x86b9f5=a15_0x1048();return a15_0x2ca8=function(_0x20771f,_0xe80fd1){_0x20771f=_0x20771f-0x1cd;let _0x104837=_0x86b9f5[_0x20771f];return _0x104837;},a15_0x2ca8(_0x47aef5,_0xb8b688);}async function CreateRule(_0x12b748,{tablestartUpShort:_0x4e8198,Comment:_0x551ea8,Fields:_0x5de86d}){const _0x3f99e0=a15_0x200433,_0x394327=_0x12b748+_0x3f99e0(0x1e4);if(!fs[_0x3f99e0(0x214)](_0x394327)){let _0x4cc89c='',_0x14c3a9='';for(let _0xf6aa21 in _0x5de86d){let _0x1d3e73=_0x5de86d[_0xf6aa21],_0x182cc3=(0x0,helper_1[_0x3f99e0(0x1e9)])(_0x1d3e73[_0x3f99e0(0x20b)]);if(_0x1d3e73[_0x3f99e0(0x1e1)]==_0x3f99e0(0x1ce)||_0x1d3e73[_0x3f99e0(0x1e1)]==_0x3f99e0(0x1ed)||_0x1d3e73['Field']==_0x3f99e0(0x201)||_0x1d3e73[_0x3f99e0(0x1e1)]=='deleted_at')continue;if([_0x3f99e0(0x1d2),'longtext',_0x3f99e0(0x1fd)][_0x3f99e0(0x210)](_0x182cc3)!=-0x1)_0x4cc89c+=_0x3f99e0(0x1e3)+_0x1d3e73[_0x3f99e0(0x1f7)]+'\x0a',_0x4cc89c+=_0x3f99e0(0x1da)+_0x1d3e73[_0x3f99e0(0x1e1)]+_0x3f99e0(0x208),_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)&&(_0x4cc89c+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1d3e73[_0x3f99e0(0x1f7)]+_0x3f99e0(0x1f0)+(_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)?_0x3f99e0(0x1cd):_0x3f99e0(0x207))+_0x3f99e0(0x1db)),_0x4cc89c+=_0x3f99e0(0x1f6);else{if([_0x3f99e0(0x1d5),_0x3f99e0(0x1f5),_0x3f99e0(0x1f2),'number']['indexOf'](_0x182cc3)!=-0x1)_0x4cc89c+=_0x3f99e0(0x1e3)+_0x1d3e73[_0x3f99e0(0x1f7)]+'\x0a',_0x4cc89c+='\x20\x20\x20\x20'+_0x1d3e73[_0x3f99e0(0x1e1)]+_0x3f99e0(0x208),_0x4cc89c+=_0x3f99e0(0x21a)+_0x1d3e73[_0x3f99e0(0x1f7)]+_0x3f99e0(0x1fb),_0x1d3e73['Null']!=_0x3f99e0(0x205)&&(_0x4cc89c+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1d3e73[_0x3f99e0(0x1f7)]+_0x3f99e0(0x1f0)+(_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)?_0x3f99e0(0x1cd):_0x3f99e0(0x207))+_0x3f99e0(0x1db)),_0x4cc89c+=_0x3f99e0(0x1f6);else{if(['tinyint'][_0x3f99e0(0x210)](_0x182cc3)!=-0x1)_0x4cc89c+=_0x3f99e0(0x1e3)+_0x1d3e73[_0x3f99e0(0x1f7)]+'\x0a',_0x4cc89c+=_0x3f99e0(0x1da)+_0x1d3e73[_0x3f99e0(0x1e1)]+_0x3f99e0(0x208),_0x4cc89c+=_0x3f99e0(0x21a)+_0x1d3e73[_0x3f99e0(0x1f7)]+_0x3f99e0(0x1fb),_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)&&(_0x4cc89c+=_0x3f99e0(0x219)+_0x1d3e73['Comment']+_0x3f99e0(0x1f0)+(_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)?_0x3f99e0(0x1cd):_0x3f99e0(0x207))+_0x3f99e0(0x1db)),_0x4cc89c+=_0x3f99e0(0x1f6);else{if(_0x182cc3=='json')_0x4cc89c+=_0x3f99e0(0x1e3)+_0x1d3e73[_0x3f99e0(0x1f7)]+'\x0a',_0x4cc89c+=_0x3f99e0(0x1da)+_0x1d3e73['Field']+_0x3f99e0(0x208),_0x1d3e73['Null']!=_0x3f99e0(0x205)&&(_0x4cc89c+=_0x3f99e0(0x219)+_0x1d3e73['Comment']+'不能为空`,\x20required:\x20'+(_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)?_0x3f99e0(0x1cd):'true')+_0x3f99e0(0x1db)),_0x4cc89c+='\x20\x20\x20\x20],\x0a\x0a';else{if(_0x182cc3=='enum'){let _0x118430=(0x0,helper_1[_0x3f99e0(0x1f4)])(_0x1d3e73[_0x3f99e0(0x20b)]);_0x4cc89c+=_0x3f99e0(0x1e3)+_0x1d3e73['Comment']+'\x0a',_0x4cc89c+=_0x3f99e0(0x1da)+_0x1d3e73[_0x3f99e0(0x1e1)]+_0x3f99e0(0x208),_0x4cc89c+=_0x3f99e0(0x21a)+_0x1d3e73[_0x3f99e0(0x1f7)]+'`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27'+_0x118430[_0x3f99e0(0x1f3)](_0x3f99e0(0x1f1))+_0x3f99e0(0x215),_0x1d3e73[_0x3f99e0(0x20d)]!='YES'&&(_0x4cc89c+=_0x3f99e0(0x219)+_0x1d3e73['Comment']+'不能为空`,\x20required:\x20'+(_0x1d3e73['Null']!=_0x3f99e0(0x205)?'false':_0x3f99e0(0x207))+_0x3f99e0(0x1db)),_0x4cc89c+=_0x3f99e0(0x1f6);}else[_0x3f99e0(0x1d4),_0x3f99e0(0x20a),_0x3f99e0(0x1d8)][_0x3f99e0(0x210)](_0x182cc3)>-0x1?(_0x4cc89c+='\x20\x20\x20\x20//\x20'+_0x1d3e73[_0x3f99e0(0x1f7)]+'\x0a',_0x4cc89c+=_0x3f99e0(0x1da)+_0x1d3e73[_0x3f99e0(0x1e1)]+_0x3f99e0(0x208),_0x4cc89c+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x1d3e73[_0x3f99e0(0x1f7)]+_0x3f99e0(0x1f9),_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)&&(_0x4cc89c+=_0x3f99e0(0x219)+_0x1d3e73[_0x3f99e0(0x1f7)]+'不能为空`,\x20required:\x20'+(_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)?'false':_0x3f99e0(0x207))+_0x3f99e0(0x1db)),_0x4cc89c+=_0x3f99e0(0x1f6)):(_0x4cc89c+=_0x3f99e0(0x1e3)+_0x1d3e73[_0x3f99e0(0x1f7)]+'\x0a',_0x4cc89c+=_0x3f99e0(0x1da)+_0x1d3e73[_0x3f99e0(0x1e1)]+':\x20[\x0a',_0x4cc89c+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x1d3e73[_0x3f99e0(0x1f7)]+_0x3f99e0(0x1e5),_0x1d3e73[_0x3f99e0(0x20d)]!=_0x3f99e0(0x205)&&(_0x4cc89c+=_0x3f99e0(0x219)+_0x1d3e73[_0x3f99e0(0x1f7)]+_0x3f99e0(0x1f0)+(_0x1d3e73[_0x3f99e0(0x20d)]!='YES'?_0x3f99e0(0x1cd):_0x3f99e0(0x207))+_0x3f99e0(0x1db)),_0x4cc89c+=_0x3f99e0(0x1f6));}}}}}_0x14c3a9+='\x0a',_0x14c3a9+=_0x3f99e0(0x1ff),_0x14c3a9+=_0x3f99e0(0x1ec)+_0x551ea8+'\x0a',_0x14c3a9+=_0x3f99e0(0x1d9),_0x14c3a9+=_0x3f99e0(0x1dc),_0x14c3a9+=_0x3f99e0(0x20e)+_0x4e8198+'AddRule\x20=\x20{\x0a',_0x14c3a9+=_0x3f99e0(0x1ee),_0x14c3a9+=_0x3f99e0(0x217),_0x14c3a9=_0x14c3a9[_0x3f99e0(0x1df)](_0x3f99e0(0x1ee),_0x4cc89c),fs[_0x3f99e0(0x1e2)](_0x394327,_0x14c3a9,_0x3f99e0(0x212));}}async function updateRule(_0x40e8de,{tablestartUpShort:_0x4d5b2a,Comment:_0x13e5bf,Fields:_0x209e55}){const _0x5ea7b4=a15_0x200433,_0x5c084b=_0x40e8de+_0x5ea7b4(0x1ef);if(!fs[_0x5ea7b4(0x214)](_0x5c084b)){let _0x5208a7='',_0x3907ce='';for(let _0x52b41e in _0x209e55){let _0x1fa33a=_0x209e55[_0x52b41e],_0x568890=(0x0,helper_1['getProp'])(_0x1fa33a[_0x5ea7b4(0x20b)]);if(_0x1fa33a[_0x5ea7b4(0x1e1)]=='displayorder'||_0x1fa33a['Field']==_0x5ea7b4(0x1ed)||_0x1fa33a[_0x5ea7b4(0x1e1)]==_0x5ea7b4(0x201)||_0x1fa33a['Field']==_0x5ea7b4(0x1eb))continue;if([_0x5ea7b4(0x1d2),_0x5ea7b4(0x206),_0x5ea7b4(0x1fd)][_0x5ea7b4(0x210)](_0x568890)!=-0x1)_0x5208a7+=_0x5ea7b4(0x1e3)+_0x1fa33a['Comment']+'\x0a',_0x5208a7+=_0x5ea7b4(0x1da)+_0x1fa33a['Field']+':\x20[\x0a',_0x1fa33a[_0x5ea7b4(0x20d)]!=_0x5ea7b4(0x205)&&(_0x5208a7+=_0x5ea7b4(0x219)+_0x1fa33a['Comment']+_0x5ea7b4(0x1f0)+(_0x1fa33a[_0x5ea7b4(0x20d)]!=_0x5ea7b4(0x205)?_0x5ea7b4(0x1cd):_0x5ea7b4(0x207))+_0x5ea7b4(0x1db)),_0x5208a7+=_0x5ea7b4(0x1f6);else{if(['float','double','decimal',_0x5ea7b4(0x211)][_0x5ea7b4(0x210)](_0x568890)!=-0x1)_0x5208a7+=_0x5ea7b4(0x1e3)+_0x1fa33a['Comment']+'\x0a',_0x5208a7+=_0x5ea7b4(0x1da)+_0x1fa33a[_0x5ea7b4(0x1e1)]+_0x5ea7b4(0x208),_0x5208a7+=_0x5ea7b4(0x21a)+_0x1fa33a[_0x5ea7b4(0x1f7)]+_0x5ea7b4(0x1fb),_0x1fa33a[_0x5ea7b4(0x20d)]!=_0x5ea7b4(0x205)&&(_0x5208a7+=_0x5ea7b4(0x219)+_0x1fa33a[_0x5ea7b4(0x1f7)]+'不能为空`,\x20required:\x20'+(_0x1fa33a['Null']!='YES'?_0x5ea7b4(0x1cd):'true')+_0x5ea7b4(0x1db)),_0x5208a7+='\x20\x20\x20\x20],\x0a\x0a';else{if([_0x5ea7b4(0x1dd)][_0x5ea7b4(0x210)](_0x568890)!=-0x1)_0x5208a7+=_0x5ea7b4(0x1e3)+_0x1fa33a[_0x5ea7b4(0x1f7)]+'\x0a',_0x5208a7+='\x20\x20\x20\x20'+_0x1fa33a['Field']+_0x5ea7b4(0x208),_0x5208a7+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x1fa33a[_0x5ea7b4(0x1f7)]+'`,\x20type:\x20\x22number\x22\x20},\x0a',_0x1fa33a['Null']!='YES'&&(_0x5208a7+=_0x5ea7b4(0x219)+_0x1fa33a[_0x5ea7b4(0x1f7)]+_0x5ea7b4(0x1f0)+(_0x1fa33a['Null']!=_0x5ea7b4(0x205)?_0x5ea7b4(0x1cd):'true')+_0x5ea7b4(0x1db)),_0x5208a7+=_0x5ea7b4(0x1f6);else{if(_0x568890==_0x5ea7b4(0x1fe))_0x5208a7+=_0x5ea7b4(0x1e3)+_0x1fa33a[_0x5ea7b4(0x1f7)]+'\x0a',_0x5208a7+=_0x5ea7b4(0x1da)+_0x1fa33a[_0x5ea7b4(0x1e1)]+_0x5ea7b4(0x208),_0x1fa33a[_0x5ea7b4(0x20d)]!=_0x5ea7b4(0x205)&&(_0x5208a7+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1fa33a[_0x5ea7b4(0x1f7)]+_0x5ea7b4(0x1f0)+(_0x1fa33a['Null']!=_0x5ea7b4(0x205)?'false':_0x5ea7b4(0x207))+_0x5ea7b4(0x1db)),_0x5208a7+=_0x5ea7b4(0x1f6);else{if(_0x568890==_0x5ea7b4(0x1e6)){let _0x5b3b23=(0x0,helper_1[_0x5ea7b4(0x1f4)])(_0x1fa33a[_0x5ea7b4(0x20b)]);_0x5208a7+='\x20\x20\x20\x20//\x20'+_0x1fa33a['Comment']+'\x0a',_0x5208a7+=_0x5ea7b4(0x1da)+_0x1fa33a[_0x5ea7b4(0x1e1)]+_0x5ea7b4(0x208),_0x5208a7+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x1fa33a[_0x5ea7b4(0x1f7)]+_0x5ea7b4(0x1d0)+_0x5b3b23['join'](_0x5ea7b4(0x1f1))+_0x5ea7b4(0x215),_0x1fa33a[_0x5ea7b4(0x20d)]!='YES'&&(_0x5208a7+=_0x5ea7b4(0x219)+_0x1fa33a[_0x5ea7b4(0x1f7)]+_0x5ea7b4(0x1f0)+(_0x1fa33a[_0x5ea7b4(0x20d)]!=_0x5ea7b4(0x205)?_0x5ea7b4(0x1cd):_0x5ea7b4(0x207))+'\x20},\x0a'),_0x5208a7+=_0x5ea7b4(0x1f6);}else['date',_0x5ea7b4(0x20a),_0x5ea7b4(0x1d8)]['indexOf'](_0x568890)>-0x1?(_0x5208a7+=_0x5ea7b4(0x1e3)+_0x1fa33a['Comment']+'\x0a',_0x5208a7+=_0x5ea7b4(0x1da)+_0x1fa33a[_0x5ea7b4(0x1e1)]+':\x20[\x0a',_0x5208a7+=_0x5ea7b4(0x21a)+_0x1fa33a[_0x5ea7b4(0x1f7)]+_0x5ea7b4(0x1f9),_0x1fa33a['Null']!=_0x5ea7b4(0x205)&&(_0x5208a7+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1fa33a[_0x5ea7b4(0x1f7)]+_0x5ea7b4(0x1f0)+(_0x1fa33a[_0x5ea7b4(0x20d)]!=_0x5ea7b4(0x205)?'false':'true')+_0x5ea7b4(0x1db)),_0x5208a7+=_0x5ea7b4(0x1f6)):(_0x5208a7+='\x20\x20\x20\x20//\x20'+_0x1fa33a[_0x5ea7b4(0x1f7)]+'\x0a',_0x5208a7+='\x20\x20\x20\x20'+_0x1fa33a[_0x5ea7b4(0x1e1)]+':\x20[\x0a',_0x5208a7+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x1fa33a['Comment']+_0x5ea7b4(0x1e5),_0x1fa33a[_0x5ea7b4(0x20d)]!=_0x5ea7b4(0x205)&&(_0x5208a7+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1fa33a['Comment']+'不能为空`,\x20required:\x20'+(_0x1fa33a[_0x5ea7b4(0x20d)]!='YES'?_0x5ea7b4(0x1cd):_0x5ea7b4(0x207))+'\x20},\x0a'),_0x5208a7+=_0x5ea7b4(0x1f6));}}}}}_0x3907ce+='\x0a',_0x3907ce+='/**\x0a',_0x3907ce+=_0x5ea7b4(0x1ec)+_0x13e5bf+'\x0a',_0x3907ce+='\x20*\x20数据更新验证\x0a',_0x3907ce+=_0x5ea7b4(0x1dc),_0x3907ce+=_0x5ea7b4(0x20e)+_0x4d5b2a+_0x5ea7b4(0x1e8),_0x3907ce+=_0x5ea7b4(0x1ee),_0x3907ce+=_0x5ea7b4(0x217),_0x3907ce=_0x3907ce['replace'](_0x5ea7b4(0x1ee),_0x5208a7),fs['writeFileSync'](_0x5c084b,_0x3907ce,_0x5ea7b4(0x212));}}function a15_0x1048(){const _0x573235=['apply','`,\x20type:\x20\x22date\x22\x20},\x0a','string','`,\x20type:\x20\x22number\x22\x20},\x0a','10YNXKRM','mediumtext','json','/**\x0a','constructor','updated_at','__esModule','toString','299913BqSCtX','YES','longtext','true',':\x20[\x0a','8gZbZmG','datetime','Type','/validators/','Null','export\x20const\x20','3342644mVWFTB','indexOf','number','utf-8','33607990EKcKDS','existsSync','\x27]\x20},\x0a','cwd','}\x0a\x0a','5980656OmTGhF','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的','false','displayorder','search','`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27','/pages/','text','4227587EnKhfD','date','float','2evlgca','defineProperty','timestamp','\x20*\x20数据添加验证\x0a','\x20\x20\x20\x20','\x20},\x0a','\x20*\x20**/\x0a','tinyint','4838634gjnKrx','replace','(((.+)+)+)+$','Field','writeFileSync','\x20\x20\x20\x20//\x20','/add.js','`,\x20type:\x20\x22string\x22\x20},\x0a','enum','mkdirSync','EditRule\x20=\x20{\x0a','getProp','1202622EQpNsz','deleted_at','\x20*\x20','created_at','%RuleColumn%','/edit.js','不能为空`,\x20required:\x20','\x27,\x20\x27','decimal','join','getEnum','double','\x20\x20\x20\x20],\x0a\x0a','Comment'];a15_0x1048=function(){return _0x573235;};return a15_0x1048();}
|
|
1
|
+
function a15_0x907d(){const _0x49005d=['不能为空`,\x20required:\x20','getProp','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`','/vue','\x20*\x20数据更新验证\x0a','mediumtext','/edit.js','`,\x20type:\x20\x22number\x22\x20},\x0a','`,\x20type:\x20\x22date\x22\x20},\x0a','longtext','\x20*\x20数据添加验证\x0a','7461PeyJBv','defineProperty','/validators/','2894003hnOzaL','/pages/','EditRule\x20=\x20{\x0a','__esModule','2HhZwZG','search','YES',':\x20[\x0a','296094aQxfEu','/add.js','constructor','Field','\x20*\x20**/\x0a','513235jSHSUd','\x20\x20\x20\x20//\x20','updated_at','Type','getEnum','3950quOMfg','\x20\x20\x20\x20],\x0a\x0a','existsSync','cwd','mkdirSync','\x27,\x20\x27','double','%RuleColumn%','}\x0a\x0a','/pages/apps/','datetime','text','displayorder','911528EzZzmn','`,\x20type:\x20\x22string\x22\x20},\x0a','\x20*\x20','decimal','string','apply','4RMYKQP','false','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的','indexOf','writeFileSync','enum','(((.+)+)+)+$','Null','196080fGHxmj','toString','number','float','true','timestamp','/**\x0a','\x20},\x0a','Comment','deleted_at','json','245113BWSzcC','tinyint','join','`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27','export\x20const\x20','\x20\x20\x20\x20'];a15_0x907d=function(){return _0x49005d;};return a15_0x907d();}const a15_0x49b97a=a15_0x4be6;(function(_0x11d2e0,_0x2487fa){const _0x4f5e44=a15_0x4be6,_0x157703=_0x11d2e0();while(!![]){try{const _0x24367b=parseInt(_0x4f5e44(0xd7))/0x1*(parseInt(_0x4f5e44(0xef))/0x2)+parseInt(_0x4f5e44(0xf3))/0x3+-parseInt(_0x4f5e44(0xc4))/0x4*(parseInt(_0x4f5e44(0xf8))/0x5)+-parseInt(_0x4f5e44(0xcc))/0x6+-parseInt(_0x4f5e44(0xeb))/0x7+parseInt(_0x4f5e44(0xbe))/0x8+-parseInt(_0x4f5e44(0xe8))/0x9*(-parseInt(_0x4f5e44(0xb1))/0xa);if(_0x24367b===_0x2487fa)break;else _0x157703['push'](_0x157703['shift']());}catch(_0x5ecc6c){_0x157703['push'](_0x157703['shift']());}}}(a15_0x907d,0x39ba3));const a15_0x2abd8c=(function(){let _0x1142b3=!![];return function(_0x26b375,_0x15e503){const _0x417609=_0x1142b3?function(){const _0x845dd2=a15_0x4be6;if(_0x15e503){const _0x1fa30d=_0x15e503[_0x845dd2(0xc3)](_0x26b375,arguments);return _0x15e503=null,_0x1fa30d;}}:function(){};return _0x1142b3=![],_0x417609;};}()),a15_0x540d21=a15_0x2abd8c(this,function(){const _0x429d80=a15_0x4be6;return a15_0x540d21[_0x429d80(0xcd)]()['search'](_0x429d80(0xca))[_0x429d80(0xcd)]()[_0x429d80(0xf5)](a15_0x540d21)[_0x429d80(0xf0)](_0x429d80(0xca));});a15_0x540d21();'use strict';Object[a15_0x49b97a(0xe9)](exports,a15_0x49b97a(0xee),{'value':!![]});function a15_0x4be6(_0x191b95,_0x2b9aaa){const _0x13f8b0=a15_0x907d();return a15_0x4be6=function(_0x540d21,_0x2abd8c){_0x540d21=_0x540d21-0xad;let _0x907dec=_0x13f8b0[_0x540d21];return _0x907dec;},a15_0x4be6(_0x191b95,_0x2b9aaa);}const fs=require('fs'),helper_1=require('../helper');async function default_1({tablestartUpShort:_0x3fc813,tablestartUpShort2:_0xfb50c0,moduleName:_0x5f3a00,controller:_0x34014f,Comment:_0x3c8a92,apporbasic:_0x397527,Primary:_0x211c12,Fields:_0x5590b2}){const _0x5092f1=a15_0x49b97a;let _0x4d6508=process[_0x5092f1(0xb4)]()+_0x5092f1(0xe0)+(typeof _0x34014f==_0x5092f1(0xc2)?'/'+_0x34014f:'');_0x5f3a00?_0x4d6508=_0x4d6508+(_0x5092f1(0xba)+_0x5f3a00+_0x5092f1(0xea)+_0x3fc813):_0x4d6508=_0x4d6508+(_0x5092f1(0xec)+_0x397527+_0x5092f1(0xea)+_0x3fc813),!fs[_0x5092f1(0xb3)](_0x4d6508)&&fs[_0x5092f1(0xb5)](_0x4d6508,{'recursive':!![]}),await CreateRule(_0x4d6508,{'tablestartUpShort':_0x3fc813,'Comment':_0x3c8a92,'Fields':_0x5590b2}),await updateRule(_0x4d6508,{'tablestartUpShort':_0x3fc813,'Comment':_0x3c8a92,'Fields':_0x5590b2});}exports['default']=default_1;async function CreateRule(_0x35b700,{tablestartUpShort:_0x1a96c9,Comment:_0x4b7fc7,Fields:_0x494893}){const _0x153965=a15_0x49b97a,_0x5b0e16=_0x35b700+_0x153965(0xf4);if(!fs['existsSync'](_0x5b0e16)){let _0x54cd44='',_0x3b04ae='';for(let _0x47b324 in _0x494893){let _0x1ca5b3=_0x494893[_0x47b324],_0x366bb4=(0x0,helper_1[_0x153965(0xde)])(_0x1ca5b3[_0x153965(0xaf)]);if(_0x1ca5b3[_0x153965(0xf6)]==_0x153965(0xbd)||_0x1ca5b3['Field']=='created_at'||_0x1ca5b3[_0x153965(0xf6)]==_0x153965(0xae)||_0x1ca5b3['Field']==_0x153965(0xd5))continue;if([_0x153965(0xbc),'longtext',_0x153965(0xe2)][_0x153965(0xc7)](_0x366bb4)!=-0x1)_0x54cd44+=_0x153965(0xad)+_0x1ca5b3['Comment']+'\x0a',_0x54cd44+='\x20\x20\x20\x20'+_0x1ca5b3[_0x153965(0xf6)]+':\x20[\x0a',_0x1ca5b3[_0x153965(0xcb)]!=_0x153965(0xf1)&&(_0x54cd44+=_0x153965(0xdf)+_0x1ca5b3[_0x153965(0xd4)]+_0x153965(0xdd)+(_0x1ca5b3['Null']!=_0x153965(0xf1)?_0x153965(0xc5):_0x153965(0xd0))+_0x153965(0xd3)),_0x54cd44+=_0x153965(0xb2);else{if([_0x153965(0xcf),_0x153965(0xb7),_0x153965(0xc1),_0x153965(0xce)][_0x153965(0xc7)](_0x366bb4)!=-0x1)_0x54cd44+=_0x153965(0xad)+_0x1ca5b3[_0x153965(0xd4)]+'\x0a',_0x54cd44+=_0x153965(0xdc)+_0x1ca5b3[_0x153965(0xf6)]+_0x153965(0xf2),_0x54cd44+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x1ca5b3['Comment']+_0x153965(0xe4),_0x1ca5b3[_0x153965(0xcb)]!=_0x153965(0xf1)&&(_0x54cd44+=_0x153965(0xdf)+_0x1ca5b3[_0x153965(0xd4)]+'不能为空`,\x20required:\x20'+(_0x1ca5b3[_0x153965(0xcb)]!=_0x153965(0xf1)?_0x153965(0xc5):_0x153965(0xd0))+_0x153965(0xd3)),_0x54cd44+=_0x153965(0xb2);else{if(['tinyint']['indexOf'](_0x366bb4)!=-0x1)_0x54cd44+=_0x153965(0xad)+_0x1ca5b3['Comment']+'\x0a',_0x54cd44+=_0x153965(0xdc)+_0x1ca5b3['Field']+_0x153965(0xf2),_0x54cd44+=_0x153965(0xc6)+_0x1ca5b3['Comment']+_0x153965(0xe4),_0x1ca5b3['Null']!=_0x153965(0xf1)&&(_0x54cd44+=_0x153965(0xdf)+_0x1ca5b3[_0x153965(0xd4)]+_0x153965(0xdd)+(_0x1ca5b3[_0x153965(0xcb)]!=_0x153965(0xf1)?_0x153965(0xc5):_0x153965(0xd0))+_0x153965(0xd3)),_0x54cd44+=_0x153965(0xb2);else{if(_0x366bb4==_0x153965(0xd6))_0x54cd44+=_0x153965(0xad)+_0x1ca5b3[_0x153965(0xd4)]+'\x0a',_0x54cd44+=_0x153965(0xdc)+_0x1ca5b3['Field']+_0x153965(0xf2),_0x1ca5b3['Null']!=_0x153965(0xf1)&&(_0x54cd44+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1ca5b3['Comment']+_0x153965(0xdd)+(_0x1ca5b3[_0x153965(0xcb)]!='YES'?_0x153965(0xc5):_0x153965(0xd0))+_0x153965(0xd3)),_0x54cd44+=_0x153965(0xb2);else{if(_0x366bb4==_0x153965(0xc9)){let _0x3880ac=(0x0,helper_1[_0x153965(0xb0)])(_0x1ca5b3['Type']);_0x54cd44+=_0x153965(0xad)+_0x1ca5b3[_0x153965(0xd4)]+'\x0a',_0x54cd44+=_0x153965(0xdc)+_0x1ca5b3[_0x153965(0xf6)]+':\x20[\x0a',_0x54cd44+=_0x153965(0xc6)+_0x1ca5b3[_0x153965(0xd4)]+_0x153965(0xda)+_0x3880ac[_0x153965(0xd9)](_0x153965(0xb6))+'\x27]\x20},\x0a',_0x1ca5b3[_0x153965(0xcb)]!=_0x153965(0xf1)&&(_0x54cd44+=_0x153965(0xdf)+_0x1ca5b3[_0x153965(0xd4)]+'不能为空`,\x20required:\x20'+(_0x1ca5b3['Null']!=_0x153965(0xf1)?'false':'true')+_0x153965(0xd3)),_0x54cd44+=_0x153965(0xb2);}else['date',_0x153965(0xbb),_0x153965(0xd1)][_0x153965(0xc7)](_0x366bb4)>-0x1?(_0x54cd44+='\x20\x20\x20\x20//\x20'+_0x1ca5b3[_0x153965(0xd4)]+'\x0a',_0x54cd44+=_0x153965(0xdc)+_0x1ca5b3[_0x153965(0xf6)]+_0x153965(0xf2),_0x54cd44+=_0x153965(0xc6)+_0x1ca5b3['Comment']+'`,\x20type:\x20\x22date\x22\x20},\x0a',_0x1ca5b3['Null']!=_0x153965(0xf1)&&(_0x54cd44+=_0x153965(0xdf)+_0x1ca5b3[_0x153965(0xd4)]+_0x153965(0xdd)+(_0x1ca5b3['Null']!=_0x153965(0xf1)?_0x153965(0xc5):_0x153965(0xd0))+_0x153965(0xd3)),_0x54cd44+=_0x153965(0xb2)):(_0x54cd44+=_0x153965(0xad)+_0x1ca5b3[_0x153965(0xd4)]+'\x0a',_0x54cd44+='\x20\x20\x20\x20'+_0x1ca5b3[_0x153965(0xf6)]+_0x153965(0xf2),_0x54cd44+=_0x153965(0xc6)+_0x1ca5b3[_0x153965(0xd4)]+_0x153965(0xbf),_0x1ca5b3[_0x153965(0xcb)]!=_0x153965(0xf1)&&(_0x54cd44+=_0x153965(0xdf)+_0x1ca5b3['Comment']+'不能为空`,\x20required:\x20'+(_0x1ca5b3[_0x153965(0xcb)]!=_0x153965(0xf1)?_0x153965(0xc5):_0x153965(0xd0))+_0x153965(0xd3)),_0x54cd44+=_0x153965(0xb2));}}}}}_0x3b04ae+='\x0a',_0x3b04ae+=_0x153965(0xd2),_0x3b04ae+=_0x153965(0xc0)+_0x4b7fc7+'\x0a',_0x3b04ae+=_0x153965(0xe7),_0x3b04ae+=_0x153965(0xf7),_0x3b04ae+=_0x153965(0xdb)+_0x1a96c9+'AddRule\x20=\x20{\x0a',_0x3b04ae+=_0x153965(0xb8),_0x3b04ae+=_0x153965(0xb9),_0x3b04ae=_0x3b04ae['replace'](_0x153965(0xb8),_0x54cd44),fs[_0x153965(0xc8)](_0x5b0e16,_0x3b04ae,'utf-8');}}async function updateRule(_0x382a30,{tablestartUpShort:_0x3887ae,Comment:_0xc8ded9,Fields:_0x3904c2}){const _0x5c70c5=a15_0x49b97a,_0x2cfc89=_0x382a30+_0x5c70c5(0xe3);if(!fs['existsSync'](_0x2cfc89)){let _0x14d317='',_0x2e0161='';for(let _0xa07658 in _0x3904c2){let _0x4f41ae=_0x3904c2[_0xa07658],_0x1da691=(0x0,helper_1['getProp'])(_0x4f41ae[_0x5c70c5(0xaf)]);if(_0x4f41ae[_0x5c70c5(0xf6)]==_0x5c70c5(0xbd)||_0x4f41ae['Field']=='created_at'||_0x4f41ae['Field']==_0x5c70c5(0xae)||_0x4f41ae[_0x5c70c5(0xf6)]==_0x5c70c5(0xd5))continue;if([_0x5c70c5(0xbc),_0x5c70c5(0xe6),'mediumtext']['indexOf'](_0x1da691)!=-0x1)_0x14d317+='\x20\x20\x20\x20//\x20'+_0x4f41ae['Comment']+'\x0a',_0x14d317+=_0x5c70c5(0xdc)+_0x4f41ae[_0x5c70c5(0xf6)]+':\x20[\x0a',_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)&&(_0x14d317+=_0x5c70c5(0xdf)+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xdd)+(_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)?_0x5c70c5(0xc5):_0x5c70c5(0xd0))+_0x5c70c5(0xd3)),_0x14d317+=_0x5c70c5(0xb2);else{if([_0x5c70c5(0xcf),_0x5c70c5(0xb7),_0x5c70c5(0xc1),_0x5c70c5(0xce)]['indexOf'](_0x1da691)!=-0x1)_0x14d317+=_0x5c70c5(0xad)+_0x4f41ae['Comment']+'\x0a',_0x14d317+=_0x5c70c5(0xdc)+_0x4f41ae[_0x5c70c5(0xf6)]+_0x5c70c5(0xf2),_0x14d317+=_0x5c70c5(0xc6)+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xe4),_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)&&(_0x14d317+=_0x5c70c5(0xdf)+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xdd)+(_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)?_0x5c70c5(0xc5):_0x5c70c5(0xd0))+_0x5c70c5(0xd3)),_0x14d317+=_0x5c70c5(0xb2);else{if([_0x5c70c5(0xd8)][_0x5c70c5(0xc7)](_0x1da691)!=-0x1)_0x14d317+=_0x5c70c5(0xad)+_0x4f41ae['Comment']+'\x0a',_0x14d317+=_0x5c70c5(0xdc)+_0x4f41ae[_0x5c70c5(0xf6)]+_0x5c70c5(0xf2),_0x14d317+=_0x5c70c5(0xc6)+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xe4),_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)&&(_0x14d317+=_0x5c70c5(0xdf)+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xdd)+(_0x4f41ae['Null']!=_0x5c70c5(0xf1)?_0x5c70c5(0xc5):_0x5c70c5(0xd0))+_0x5c70c5(0xd3)),_0x14d317+=_0x5c70c5(0xb2);else{if(_0x1da691==_0x5c70c5(0xd6))_0x14d317+='\x20\x20\x20\x20//\x20'+_0x4f41ae['Comment']+'\x0a',_0x14d317+='\x20\x20\x20\x20'+_0x4f41ae[_0x5c70c5(0xf6)]+_0x5c70c5(0xf2),_0x4f41ae[_0x5c70c5(0xcb)]!='YES'&&(_0x14d317+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xdd)+(_0x4f41ae[_0x5c70c5(0xcb)]!='YES'?_0x5c70c5(0xc5):_0x5c70c5(0xd0))+_0x5c70c5(0xd3)),_0x14d317+=_0x5c70c5(0xb2);else{if(_0x1da691==_0x5c70c5(0xc9)){let _0x44e53e=(0x0,helper_1[_0x5c70c5(0xb0)])(_0x4f41ae[_0x5c70c5(0xaf)]);_0x14d317+=_0x5c70c5(0xad)+_0x4f41ae[_0x5c70c5(0xd4)]+'\x0a',_0x14d317+=_0x5c70c5(0xdc)+_0x4f41ae[_0x5c70c5(0xf6)]+_0x5c70c5(0xf2),_0x14d317+=_0x5c70c5(0xc6)+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xda)+_0x44e53e['join'](_0x5c70c5(0xb6))+'\x27]\x20},\x0a',_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)&&(_0x14d317+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xdd)+(_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)?_0x5c70c5(0xc5):_0x5c70c5(0xd0))+'\x20},\x0a'),_0x14d317+=_0x5c70c5(0xb2);}else['date',_0x5c70c5(0xbb),'timestamp'][_0x5c70c5(0xc7)](_0x1da691)>-0x1?(_0x14d317+=_0x5c70c5(0xad)+_0x4f41ae[_0x5c70c5(0xd4)]+'\x0a',_0x14d317+='\x20\x20\x20\x20'+_0x4f41ae[_0x5c70c5(0xf6)]+_0x5c70c5(0xf2),_0x14d317+=_0x5c70c5(0xc6)+_0x4f41ae['Comment']+_0x5c70c5(0xe5),_0x4f41ae[_0x5c70c5(0xcb)]!='YES'&&(_0x14d317+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xdd)+(_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)?_0x5c70c5(0xc5):_0x5c70c5(0xd0))+_0x5c70c5(0xd3)),_0x14d317+=_0x5c70c5(0xb2)):(_0x14d317+='\x20\x20\x20\x20//\x20'+_0x4f41ae[_0x5c70c5(0xd4)]+'\x0a',_0x14d317+='\x20\x20\x20\x20'+_0x4f41ae[_0x5c70c5(0xf6)]+':\x20[\x0a',_0x14d317+=_0x5c70c5(0xc6)+_0x4f41ae[_0x5c70c5(0xd4)]+'`,\x20type:\x20\x22string\x22\x20},\x0a',_0x4f41ae[_0x5c70c5(0xcb)]!='YES'&&(_0x14d317+=_0x5c70c5(0xdf)+_0x4f41ae[_0x5c70c5(0xd4)]+_0x5c70c5(0xdd)+(_0x4f41ae[_0x5c70c5(0xcb)]!=_0x5c70c5(0xf1)?_0x5c70c5(0xc5):'true')+_0x5c70c5(0xd3)),_0x14d317+=_0x5c70c5(0xb2));}}}}}_0x2e0161+='\x0a',_0x2e0161+='/**\x0a',_0x2e0161+=_0x5c70c5(0xc0)+_0xc8ded9+'\x0a',_0x2e0161+=_0x5c70c5(0xe1),_0x2e0161+='\x20*\x20**/\x0a',_0x2e0161+='export\x20const\x20'+_0x3887ae+_0x5c70c5(0xed),_0x2e0161+=_0x5c70c5(0xb8),_0x2e0161+=_0x5c70c5(0xb9),_0x2e0161=_0x2e0161['replace'](_0x5c70c5(0xb8),_0x14d317),fs[_0x5c70c5(0xc8)](_0x2cfc89,_0x2e0161,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x2b4e97=a16_0x1468;(function(_0x1c80d7,_0x493f99){const _0x3eec13=a16_0x1468,_0x471f0b=_0x1c80d7();while(!![]){try{const _0x18b42d=-parseInt(_0x3eec13(0x98))/0x1+parseInt(_0x3eec13(0xb4))/0x2+parseInt(_0x3eec13(0xbe))/0x3*(-parseInt(_0x3eec13(0xb3))/0x4)+parseInt(_0x3eec13(0xa9))/0x5*(-parseInt(_0x3eec13(0x9e))/0x6)+-parseInt(_0x3eec13(0xc9))/0x7*(parseInt(_0x3eec13(0x9d))/0x8)+parseInt(_0x3eec13(0xa0))/0x9*(parseInt(_0x3eec13(0xae))/0xa)+parseInt(_0x3eec13(0x99))/0xb*(parseInt(_0x3eec13(0x9b))/0xc);if(_0x18b42d===_0x493f99)break;else _0x471f0b['push'](_0x471f0b['shift']());}catch(_0xd3d737){_0x471f0b['push'](_0x471f0b['shift']());}}}(a16_0x1c9b,0xb5e5c));const a16_0xf29712=(function(){let _0x372748=!![];return function(_0x3da12d,_0x225f62){const _0xe79f59=_0x372748?function(){if(_0x225f62){const _0x1bd358=_0x225f62['apply'](_0x3da12d,arguments);return _0x225f62=null,_0x1bd358;}}:function(){};return _0x372748=![],_0xe79f59;};}()),a16_0x783521=a16_0xf29712(this,function(){const _0x5bf632=a16_0x1468;return a16_0x783521[_0x5bf632(0xc4)]()[_0x5bf632(0xb8)](_0x5bf632(0xb5))[_0x5bf632(0xc4)]()['constructor'](a16_0x783521)[_0x5bf632(0xb8)](_0x5bf632(0xb5));});a16_0x783521();'use strict';function a16_0x1468(_0x1e3dd1,_0x2271db){const _0xbb3fd5=a16_0x1c9b();return a16_0x1468=function(_0x783521,_0xf29712){_0x783521=_0x783521-0x98;let _0x1c9b90=_0xbb3fd5[_0x783521];return _0x1c9b90;},a16_0x1468(_0x1e3dd1,_0x2271db);}Object[a16_0x2b4e97(0xc5)](exports,a16_0x2b4e97(0xac),{'value':!![]});const fs=require('fs'),path_1=require(a16_0x2b4e97(0xb1)),helper_1=require(a16_0x2b4e97(0xbc));async function default_1({tablestartUpShort:_0x2277f2,tablestartUpShort2:_0x5cdba2,moduleName:_0x2b2ab0,controller:_0x3a48ac,Comment:_0x2bee17,apporbasic:_0x3131b6,Primary:_0x1e81d5}){const _0x50a421=a16_0x2b4e97;let _0x59af3=process[_0x50a421(0xa6)]()+_0x50a421(0xa8)+(typeof _0x3a48ac==_0x50a421(0x9a)?'/'+_0x3a48ac:'');_0x2b2ab0?_0x59af3=_0x59af3+(_0x50a421(0xcd)+_0x2b2ab0+'/'+_0x2277f2+'.ts'):_0x59af3=_0x59af3+(_0x50a421(0xa1)+_0x3131b6+'/'+_0x2277f2+'.ts');if(!fs[_0x50a421(0xa2)](_0x59af3)){const _0x176f80=[_0x50a421(0xbb),'mediumtext',_0x50a421(0x9a)][_0x50a421(0xb0)]((0x0,helper_1['getProp'])(_0x1e81d5[_0x50a421(0xb9)]))==-0x1,_0x139c00=''+(typeof _0x3a48ac==_0x50a421(0x9a)?_0x3a48ac+'/':'')+(_0x2b2ab0?_0x2b2ab0+'/':'')+_0x5cdba2;let _0x2a3255=_0x50a421(0xab)+(_0x2b2ab0?'../../':_0x50a421(0xc7))+_0x50a421(0xa4);_0x2a3255+=_0x50a421(0x9f)+_0x2bee17+_0x50a421(0xc8),_0x2a3255+='export\x20function\x20'+_0x2277f2+'Detail('+_0x1e81d5[_0x50a421(0xbd)]+':\x20'+(_0x176f80?_0x50a421(0xc3):_0x50a421(0x9a))+')\x20{\x0a',_0x2a3255+='\x20\x20\x20\x20return\x20request(`GET`,\x20`'+_0x139c00+_0x50a421(0xbf)+_0x1e81d5[_0x50a421(0xbd)]+'}`)\x0a',_0x2a3255+=_0x50a421(0xb6),_0x2a3255+=_0x50a421(0x9f)+_0x2bee17+_0x50a421(0xc1),_0x2a3255+=_0x50a421(0xad)+_0x2277f2+_0x50a421(0x9c),_0x2a3255+=_0x50a421(0xaa)+_0x139c00+_0x50a421(0xba),_0x2a3255+=_0x50a421(0xb6),_0x2a3255+=_0x50a421(0x9f)+_0x2bee17+'@修改\x0a',_0x2a3255+=_0x50a421(0xad)+_0x2277f2+_0x50a421(0xcb)+_0x1e81d5[_0x50a421(0xbd)]+':\x20'+(_0x176f80?_0x50a421(0xc3):_0x50a421(0x9a))+_0x50a421(0xca),_0x2a3255+=_0x50a421(0xaa)+_0x139c00+_0x50a421(0xa5)+_0x1e81d5[_0x50a421(0xbd)]+'}`,\x20params)\x0a',_0x2a3255+=_0x50a421(0xb6),_0x2a3255+=_0x50a421(0x9f)+_0x2bee17+_0x50a421(0xcc),_0x2a3255+=_0x50a421(0xad)+_0x2277f2+_0x50a421(0xc2),_0x2a3255+='\x20\x20\x20\x20return\x20request(`GET`,\x20`'+_0x139c00+_0x50a421(0xc0),_0x2a3255+='}\x0a\x0a',_0x2a3255+='//\x20'+_0x2bee17+_0x50a421(0xb7),_0x2a3255+='export\x20function\x20'+_0x2277f2+'Remove(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a',_0x2a3255+=_0x50a421(0xaa)+_0x139c00+_0x50a421(0xc6),_0x2a3255+=_0x50a421(0xb6),fs[_0x50a421(0xb2)]((0x0,path_1[_0x50a421(0xaf)])(_0x59af3),{'recursive':!![]}),fs[_0x50a421(0xa7)](_0x59af3,_0x2a3255,'utf-8');}}function a16_0x1c9b(){const _0x586d42=['Field','24fMKAsT','/detail/${','/list`,\x20params)\x0a','@添加\x0a','List(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','number','toString','defineProperty','/remove`,\x20params)\x0a','../','@详情\x0a','518ctVfiw',',\x20params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','Edit(','@列表\x0a','/apis/apps/','883987vIWvkM','7392352oPHQyJ','string','36vPUcLX','Add(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','34288giBTUF','937416hkVCNd','//\x20','81PhHOQi','/apis/','existsSync','default','request\x27;\x0a\x0a','/edit/${','cwd','writeFileSync','/vue','45doJbYz','\x20\x20\x20\x20return\x20request(`POST`,\x20`','import\x20{\x20request\x20}\x20from\x20\x27','__esModule','export\x20function\x20','1223770SZZSsZ','dirname','indexOf','path','mkdirSync','400696wPXwsO','2072460STzWYB','(((.+)+)+)+$','}\x0a\x0a','@删除\x0a','search','Type','/add`,\x20params)\x0a','text','../helper'];a16_0x1c9b=function(){return _0x586d42;};return a16_0x1c9b();}exports[a16_0x2b4e97(0xa3)]=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x253f9b=a17_0x5d69;(function(_0x3cb6cc,_0x513b60){const _0x3913d8=a17_0x5d69,_0x5507d3=_0x3cb6cc();while(!![]){try{const _0x2866b3=-parseInt(_0x3913d8(0x7d))/0x1*(parseInt(_0x3913d8(0xa4))/0x2)+-parseInt(_0x3913d8(0x82))/0x3+-parseInt(_0x3913d8(0xa3))/0x4+parseInt(_0x3913d8(0x8b))/0x5+parseInt(_0x3913d8(0x8d))/0x6*(-parseInt(_0x3913d8(0x80))/0x7)+-parseInt(_0x3913d8(0x97))/0x8*(parseInt(_0x3913d8(0x8a))/0x9)+parseInt(_0x3913d8(0x9d))/0xa;if(_0x2866b3===_0x513b60)break;else _0x5507d3['push'](_0x5507d3['shift']());}catch(_0x3edd5a){_0x5507d3['push'](_0x5507d3['shift']());}}}(a17_0x59c4,0xb5d24));const a17_0x5180ff=(function(){let _0x22eda0=!![];return function(_0x39e6d7,_0x4d5534){const _0x5a54a5=_0x22eda0?function(){if(_0x4d5534){const _0x47f0c5=_0x4d5534['apply'](_0x39e6d7,arguments);return _0x4d5534=null,_0x47f0c5;}}:function(){};return _0x22eda0=![],_0x5a54a5;};}()),a17_0x1a2b8b=a17_0x5180ff(this,function(){const _0x4c480c=a17_0x5d69;return a17_0x1a2b8b[_0x4c480c(0x90)]()[_0x4c480c(0xa2)](_0x4c480c(0x98))[_0x4c480c(0x90)]()[_0x4c480c(0x86)](a17_0x1a2b8b)[_0x4c480c(0xa2)](_0x4c480c(0x98));});a17_0x1a2b8b();'use strict';Object[a17_0x253f9b(0x95)](exports,a17_0x253f9b(0x99),{'value':!![]});function a17_0x59c4(){const _0x5d1ad6=['padEnd','replace','356342CDYDih','</template>\x0a\x0a','2684076ZkDdUm','readFileSync','\x20\x20\x20\x20])\x0a','default','constructor','\x20\x20\x20\x20const\x20menus\x20=\x20ref([\x0a','{title:\x20\x22','indexOf','866493gKLLNy','6573905pvzirG','utf-8','150tWmYZv','mkdirSync','existsSync','toString','\x20\x20\x20\x20</page-layout>\x0a','\x20\x20\x20\x20<page-layout\x20title=\x22未设置\x22\x20navbar=\x22/apps-','dirname','//\x20add\x20menu\x20here','defineProperty','/apps-','48fZLdwk','(((.+)+)+)+$','__esModule',',\x20path:\x20\x22','/pages/apps/','cwd','44370390yzJnUR','string',',\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here','/layout.vue','/vue','search','5662832bAMEAK','64DhuQBO','/\x22\x20:menus=\x22menus\x22>\x0a\x0a','writeFileSync','26449WfloQZ'];a17_0x59c4=function(){return _0x5d1ad6;};return a17_0x59c4();}const fs=require('fs'),path_1=require('path');async function default_1({tablestartUpShort2:_0x155798,controller:_0x2eaf18,moduleName:_0x1cf156,Comment:_0x49439d,apporbasic:_0x38bc30}){const _0x356edf=a17_0x253f9b;let _0x4ac36f=process[_0x356edf(0x9c)]()+_0x356edf(0xa1)+(typeof _0x2eaf18=='string'?'/'+_0x2eaf18:'');_0x1cf156?_0x4ac36f=_0x4ac36f+(_0x356edf(0x9b)+_0x1cf156+_0x356edf(0xa0)):_0x4ac36f=_0x4ac36f+('/pages/'+_0x38bc30+_0x356edf(0xa0));await createLayout(_0x4ac36f,{'moduleName':_0x1cf156});const _0x40cd67=fs[_0x356edf(0x83)](_0x4ac36f,_0x356edf(0x8c)),_0x5d3fdc=_0x356edf(0x88)+(_0x49439d+'\x22')[_0x356edf(0x7e)](0x14)+_0x356edf(0x9a)+(''+(typeof _0x1cf156==_0x356edf(0x9e)?_0x356edf(0x96)+_0x1cf156+'/':'/'+_0x38bc30+'/')+_0x155798+'/list\x22')[_0x356edf(0x7e)](0x14)+'}';_0x40cd67[_0x356edf(0x89)](_0x5d3fdc)==-0x1&&fs['writeFileSync'](_0x4ac36f,_0x40cd67[_0x356edf(0x7f)](_0x356edf(0x94),_0x5d3fdc+_0x356edf(0x9f)));}function a17_0x5d69(_0x4ba581,_0x4002f3){const _0x4f91e4=a17_0x59c4();return a17_0x5d69=function(_0x1a2b8b,_0x5180ff){_0x1a2b8b=_0x1a2b8b-0x7b;let _0x59c48c=_0x4f91e4[_0x1a2b8b];return _0x59c48c;},a17_0x5d69(_0x4ba581,_0x4002f3);}exports[a17_0x253f9b(0x85)]=default_1;async function createLayout(_0x5be5e0,{moduleName:_0xb921ad}){const _0x399602=a17_0x253f9b;if(!fs[_0x399602(0x8f)](_0x5be5e0)){let _0x2035f4='<template>\x0a';_0x2035f4+=_0x399602(0x92)+_0xb921ad+_0x399602(0x7b),_0x2035f4+=_0x399602(0x91),_0x2035f4+=_0x399602(0x81),_0x2035f4+='<script\x20lang=\x22ts\x22\x20setup>\x0a',_0x2035f4+=_0x399602(0x87),_0x2035f4+='\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here\x0a',_0x2035f4+=_0x399602(0x84),_0x2035f4+='</script>\x0a\x0a',fs[_0x399602(0x8e)]((0x0,path_1[_0x399602(0x93)])(_0x5be5e0),{'recursive':!![]}),fs[_0x399602(0x7c)](_0x5be5e0,_0x2035f4,_0x399602(0x8c));}}
|