anncic-apihelper 3.7.18 → 3.7.20
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.d.ts +6 -6
- package/dist/configuration.js +1 -1
- package/dist/helper.d.ts +2 -2
- package/dist/helper.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/service/ApicreateService.d.ts +15 -15
- package/dist/service/ApicreateService.js +1 -1
- package/dist/templateFun/Action.d.ts +10 -10
- package/dist/templateFun/Action.js +1 -1
- package/dist/templateFun/Common.d.ts +7 -7
- package/dist/templateFun/Common.js +1 -1
- package/dist/templateFun/Entities.d.ts +11 -11
- package/dist/templateFun/Entities.js +1 -1
- package/dist/templateFun/Event.d.ts +7 -7
- package/dist/templateFun/Event.js +1 -1
- package/dist/templateFun/Handler.d.ts +9 -9
- package/dist/templateFun/Handler.js +1 -1
- package/dist/templateFun/Search.d.ts +7 -7
- package/dist/templateFun/Search.js +1 -1
- package/dist/templateFun/Validator.d.ts +11 -11
- package/dist/templateFun/Validator.js +1 -1
- package/dist/templateVue/Api.d.ts +9 -9
- package/dist/templateVue/Api.js +1 -1
- package/dist/templateVue/Layout.d.ts +7 -7
- package/dist/templateVue/Layout.js +1 -1
- package/dist/templateVue/LayoutVue.d.ts +10 -10
- package/dist/templateVue/LayoutVue.js +1 -1
- package/dist/templateVue/Router.d.ts +8 -8
- package/dist/templateVue/Router.js +1 -1
- package/dist/templateVue/Validator.d.ts +10 -10
- package/dist/templateVue/Validator.js +1 -1
- package/dist/templateVueV2/Api.d.ts +9 -9
- package/dist/templateVueV2/Api.js +1 -1
- package/dist/templateVueV2/Layout.d.ts +7 -7
- package/dist/templateVueV2/Layout.js +1 -1
- package/dist/templateVueV2/LayoutVue.d.ts +10 -10
- package/dist/templateVueV2/LayoutVue.js +1 -1
- package/dist/templateVueV2/Router.d.ts +8 -8
- package/dist/templateVueV2/Router.js +1 -1
- package/dist/templateVueV2/Validator.d.ts +8 -8
- package/dist/templateVueV2/Validator.js +1 -1
- package/dist/templateVueV3/Api.d.ts +9 -9
- package/dist/templateVueV3/Api.js +1 -1
- package/dist/templateVueV3/Layout.d.ts +8 -8
- package/dist/templateVueV3/Layout.js +1 -1
- package/dist/templateVueV3/LayoutVue.d.ts +11 -11
- package/dist/templateVueV3/LayoutVue.js +1 -1
- package/dist/templateVueV3/Router.d.ts +8 -8
- package/dist/templateVueV3/Router.js +1 -1
- package/dist/templateVueV3/Validator.d.ts +8 -8
- package/dist/templateVueV3/Validator.js +1 -1
- package/dist/types/index.d.ts +18 -18
- package/dist/types/index.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18_0x25be5a=a18_0x5e41;(function(_0x149a8a,_0x351a59){const _0x14abfc=a18_0x5e41,_0x5f46fe=_0x149a8a();while(!![]){try{const _0x353d68=-parseInt(_0x14abfc(0x1c4))/0x1*(parseInt(_0x14abfc(0x1b2))/0x2)+parseInt(_0x14abfc(0x250))/0x3*(parseInt(_0x14abfc(0x20c))/0x4)+parseInt(_0x14abfc(0x1eb))/0x5+-parseInt(_0x14abfc(0x208))/0x6+parseInt(_0x14abfc(0x1da))/0x7*(-parseInt(_0x14abfc(0x244))/0x8)+parseInt(_0x14abfc(0x1e5))/0x9*(-parseInt(_0x14abfc(0x218))/0xa)+parseInt(_0x14abfc(0x1d8))/0xb;if(_0x353d68===_0x351a59)break;else _0x5f46fe['push'](_0x5f46fe['shift']());}catch(_0x2698ea){_0x5f46fe['push'](_0x5f46fe['shift']());}}}(a18_0x1b89,0xb82bb));const a18_0x19b6c8=(function(){let _0xce7e4c=!![];return function(_0x41bb46,_0x48f867){const _0x12f540=_0xce7e4c?function(){if(_0x48f867){const _0x2b6aee=_0x48f867['apply'](_0x41bb46,arguments);return _0x48f867=null,_0x2b6aee;}}:function(){};return _0xce7e4c=![],_0x12f540;};}()),a18_0xaa75cd=a18_0x19b6c8(this,function(){const _0x80b2ac=a18_0x5e41;return a18_0xaa75cd[_0x80b2ac(0x1b4)]()[_0x80b2ac(0x1a5)](_0x80b2ac(0x1d2))[_0x80b2ac(0x1b4)]()[_0x80b2ac(0x1a6)](a18_0xaa75cd)[_0x80b2ac(0x1a5)](_0x80b2ac(0x1d2));});a18_0xaa75cd();'use strict';function a18_0x5e41(_0x2b07ce,_0x58f262){const _0x398cbf=a18_0x1b89();return a18_0x5e41=function(_0xaa75cd,_0x19b6c8){_0xaa75cd=_0xaa75cd-0x19c;let _0x1b8961=_0x398cbf[_0xaa75cd];return _0x1b8961;},a18_0x5e41(_0x2b07ce,_0x58f262);}Object[a18_0x25be5a(0x1e4)](exports,'__esModule',{'value':!![]}),exports[a18_0x25be5a(0x22a)]=default_1;function a18_0x1b89(){const _0x44e3e9=['tags','module=\x22','</template>','writeFileSync','AddRule\x20}\x20from\x20\x27../interface\x27;\x0a','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','utf-8','string','\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20formdata.value\x20=\x20res.data;\x0a','>=\x22>','\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','updated_at','existsSync','EditRule\x20}\x20from\x20\x27../interface\x27;\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','longtext','substr','<el-form-item\x20label=\x22排序\x22\x20prop=\x22displayorder\x22>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3571812Qfjauu','Field','<el-table-column\x20prop=','</script>\x0a','48jWIWZz','add','<=\x22>','//\x20获取详情\x0a','logo','</a>','\x22\x20\x20placeholder=\x22请输入','_end\x22\x20placeholder=\x22选择','thumb',':\x20item.',')\x20{\x0a','开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','10026230ETXEEg','Edit','apps/','/add`)\x22\x20@click=\x22$router.push(`add`)\x22\x20\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{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20','Add','<tinymce-editor\x20v-model=\x22formdata.','\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$hasPrem(`get@/','\x22\x20value=\x22','substring','\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','Detail(','\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','number','</template>\x0a','`)\x22\x20type=\x22primary\x22\x20@click=\x22handlerSave()\x22>保存</el-button>\x0a','//\x20保存数据\x0a','\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20/>','default','\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20/>','endsWith','enum','import\x20{\x20','<el-date-picker\x20v-model=\x22formdata.','edit/:','num','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','List,\x20','Comment','getProp','<attachment-image\x20v-model=\x22formdata.','created_at','deleted_at','\x22\x20placeholder=\x22请输入或选择','indexOf','padEnd','/pages/','<el-input\x20v-model=\x22props.search.','text','date','\x27;\x0a\x0a','\x22\x20type=\x22textarea\x22\x20:rows=\x224\x22/>','List(Object.assign(table.search\x20||\x20{},\x20sortable)).then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20table.data\x20=\x20res.data\x20||\x20[],\x20table.search\x20=\x20{\x20...table.search,\x20...res?.extra?.pageinfo\x20||\x20{},\x20_count:\x20res?.extra?.pagetotal\x20||\x200\x20};\x0a\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a\x20\x20\x20\x20});\x0a}\x0a\x0a/**\x0a\x20*\x20删除数据\x0a\x20*\x20**/\x0aconst\x20handlerRemove\x20=\x20(item:any)\x20=>\x20{\x0a\x20\x20\x20\x20loading.value\x20=\x20true,\x20$confirm(`确定删除数据吗?`,\x20\x27提示\x27,\x20{\x20confirmButtonText:\x20\x27确定\x27,\x20cancelButtonText:\x20\x27取消\x27,\x20type:\x20\x27warning\x27\x20}).then(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20','1912BIrUzn','<img\x20:src=\x22scope.row.','</el-table-column>','\x20\x20\x20\x20refForm.value?.validate().then((item:\x20any)\x20=>\x20{\x0a','../helper','\x22\x20/>','<el-date-picker\x20v-model=\x22props.search.','</el-form-item>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27),\x20router.back();\x0a','displayorder','item.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27操作成功\x27),\x20router.back();\x0a','96099hczduQ','\x22\x20class=\x22block\x22>','开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','<el-form-item\x20label=\x22','</el-select>','\x22\x20api=\x22','\x20}).then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27删除成功\x27),\x20LoadDatas();\x0a\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27删除失败\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20}).catch(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false;\x0a\x20\x20\x20\x20})\x0a}\x0a\x0a/**\x0a\x20*\x20修改字段状态\x0a\x20*\x20**/\x0a\x20const\x20handlerFieldChange\x20=\x20(item:\x20any,\x20field:string)=>{\x0a\x20\x20\x20\x20if\x20(item.','Edit(item.','\x20label=\x22','\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a','cwd','search','constructor','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20:model=\x22formdata\x22\x20:rules=\x22','\x22\x20prop=\x22','\x20\x20\x20\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a','<template\x20#default=\x22scope\x22>','_ids','\x22\x20placeholder=\x22请选择','\x22\x20clearable/>','<elplus-select-search\x20v-model=\x22props.search.','\x22\x20split=\x22-\x22\x20clearable/>','6KacpiR','edit','toString','\x22\x20align=\x27center\x27\x20sortable=\x22custom\x22\x20show-overflow-tooltip\x20/>','_id','\x22\x20placeholder=\x22请输入','timestamp','/list/components/search.vue','const\x20loading\x20=\x20ref(false),\x20router\x20=\x20useRouter(),\x20route\x20=\x20useRoute();\x0a\x0a','<el-input-number\x20v-model=\x22props.search.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mkdirSync','<el-option\x20label=\x22','thumbs','/vue','mediumtext','\x22\x20placeholder=\x22选择','Type','281786klABmc','/remove`)\x22\x20@click=\x22handlerRemove(scope.row)\x22\x20type=\x22danger\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</elplus-table>\x0a\x20\x20\x20\x20</page-main>\x0a</template>\x0a<script\x20lang=\x22ts\x22\x20setup>\x0aimport\x20search\x20from\x20\x27./components/search.vue\x27;\x0aimport\x20{\x20','_start\x22\x20placeholder=\x22选择','<elplus-select-tags\x20v-model=\x22formdata.','<template>\x0a','const\x20handlerSave\x20=\x20()=>{\x0a','dirname','Edit,\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a','path','const\x20getDetail\x20=\x20(','\x22\x20style=\x22cursor:pointer\x22/>','<script\x20lang=\x22ts\x22\x20setup>\x0a','\x20\x20\x20\x20<page-main>\x0a','(((.+)+)+)+$','\x20\x20\x20\x20}\x20else\x20{\x0a','<el-input\x20v-model=\x22formdata.','getEnum','getDetail(route?.query?.','\x27;\x0a\x0aconst\x20loading\x20=\x20ref(false),\x20table\x20=\x20reactive({\x0a\x20\x20\x20\x20data:\x20[],\x0a\x20\x20\x20\x20select:\x20[],\x0a\x20\x20\x20\x20search:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20_page:\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20_size:\x2020,\x0a\x20\x20\x20\x20\x20\x20\x20\x20_count:\x20200,\x0a\x20\x20\x20\x20}\x0a})\x0a\x0a\x0a/**\x0a\x20*\x20获取数据列表\x0a\x20*\x20@param\x20page\x20分页-当前页\x0a\x20*\x20@param\x20size\x20分页-每页数量\x0a\x20*\x20**/\x0aconst\x20LoadDatas\x20=\x20(page?:\x20number,\x20size?:\x20number,\x20sortable\x20=\x20{})\x20=>\x20{\x0a\x20\x20\x20\x20loading.value\x20=\x20true,\x20page\x20&&\x20(table.search._page\x20=\x20page),\x20size\x20&&\x20(table.search._size\x20=\x20size);\x0a\x20\x20\x20\x20','36401926XhECVy','<template\x20#reference>','16541fFrMfk','}`)\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\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/','<el-input-number\x20v-model=\x22formdata.','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','\x22\x20:limit=\x221\x22\x20','\x20\x20\x20\x20','<el-select\x20v-model=\x22formdata.','<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20controls-position=\x22right\x22/>','/pages/apps/','length','defineProperty','9EgsTov','\x0a</template>\x0a<script\x20lang=\x22ts\x22\x20setup>\x0aconst\x20props\x20=\x20defineProps({\x0a\x20\x20\x20\x20search:\x20{type:\x20Object\x20,default:\x20()=>{return\x20{}}},\x0a})\x0a</script>','\x20\x20\x20\x20\x20\x20\x20\x20<elplus-form\x20ref=\x22refForm\x22\x20title=\x22','tag','\x22\x20clearable>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','343705wVTQct','<a\x20:href=\x22scope.row.','datetime','Detail\x20}\x20from\x20\x27@/apis/','img','\x20\x20\x20\x20\x20\x20\x20\x20','/list/index.vue','/index.vue','<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>'];a18_0x1b89=function(){return _0x44e3e9;};return a18_0x1b89();}const fs=require('fs'),path_1=require(a18_0x25be5a(0x1cd)),helper_1=require(a18_0x25be5a(0x248));async function default_1({moduleName:_0x2c4bc0,controller:_0x2cd8a3,tablestartUpShort:_0xcf918b,tablestartUpShort2:_0x512de4,Primary:_0x58449e,Fields:_0x18c73c,apporbasic:_0x204fdd,Comment:_0xd7072a}){const _0x3f4341=a18_0x25be5a;await createIndex({'moduleName':_0x2c4bc0,'controller':_0x2cd8a3,'tablestartUpShort':_0xcf918b,'tablestartUpShort2':_0x512de4,'Primary':_0x58449e,'Fields':_0x18c73c,'apporbasic':_0x204fdd}),await createSearch({'moduleName':_0x2c4bc0,'controller':_0x2cd8a3,'tablestartUpShort2':_0x512de4,'Primary':_0x58449e,'Fields':_0x18c73c,'apporbasic':_0x204fdd}),await createAddOrEdit({'moduleName':_0x2c4bc0,'controller':_0x2cd8a3,'tablestartUpShort':_0xcf918b,'tablestartUpShort2':_0x512de4,'Primary':_0x58449e,'Fields':_0x18c73c,'apporbasic':_0x204fdd,'Comment':_0xd7072a},_0x3f4341(0x20d)),await createAddOrEdit({'moduleName':_0x2c4bc0,'controller':_0x2cd8a3,'tablestartUpShort':_0xcf918b,'tablestartUpShort2':_0x512de4,'Primary':_0x58449e,'Fields':_0x18c73c,'apporbasic':_0x204fdd,'Comment':_0xd7072a},_0x3f4341(0x1b3));}async function createIndex({moduleName:_0x274480,controller:_0x21ef13,tablestartUpShort:_0x584f4b,tablestartUpShort2:_0x41dfaf,Primary:_0x123b68,Fields:_0x19c14e,apporbasic:_0xa29a5}){const _0x7c160=a18_0x25be5a;let _0x313bcd=process[_0x7c160(0x1a4)]()+_0x7c160(0x1c0)+(typeof _0x21ef13=='string'?'/'+_0x21ef13:'');_0x274480?_0x313bcd=_0x313bcd+(_0x7c160(0x1e2)+_0x274480+'/'+_0x41dfaf+'/list/index.vue'):_0x313bcd=_0x313bcd+(_0x7c160(0x23d)+_0xa29a5+'/'+_0x41dfaf+_0x7c160(0x1f1));if(!fs[_0x7c160(0x201)](_0x313bcd)){let _0x55265f='<el-table-column\x20prop='+('\x22'+_0x123b68[_0x7c160(0x209)]+'\x22')['padEnd'](0x14)+(_0x7c160(0x1a2)+(_0x123b68[_0x7c160(0x235)]||'编号')+_0x7c160(0x229));for(let _0x1ec786 in _0x19c14e){const _0x4e03aa=_0x19c14e[_0x1ec786];if([_0x7c160(0x238),'updated_at',_0x7c160(0x239),_0x7c160(0x24d)][_0x7c160(0x23b)](_0x1ec786)!=-0x1)continue;if(_0x1ec786[_0x7c160(0x221)](_0x1ec786[_0x7c160(0x1e3)]-0x3)==_0x7c160(0x1ef)||_0x1ec786['substring'](_0x1ec786[_0x7c160(0x1e3)]-0x5)=='thumb'||_0x1ec786=='thumb'||_0x1ec786[_0x7c160(0x221)](_0x1ec786['length']-0x4)==_0x7c160(0x210)||_0x1ec786==_0x7c160(0x210))_0x55265f+='\x0a'+_0x7c160(0x1a7)+_0x7c160(0x20a)+('\x22'+_0x1ec786+'\x22')[_0x7c160(0x23c)](0x14)+(_0x7c160(0x1a2)+(_0x4e03aa['Comment']||_0x4e03aa[_0x7c160(0x209)])+'\x22\x20align=\x27center\x27\x20show-overflow-tooltip>'),_0x55265f+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x7c160(0x1ac),_0x55265f+='\x0a'+_0x7c160(0x233)+_0x7c160(0x1f3),_0x55265f+='\x0a'+_0x7c160(0x203)+(_0x7c160(0x1ec)+_0x1ec786+'\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>'),_0x55265f+='\x0a'+_0x7c160(0x1bc)+(_0x7c160(0x245)+_0x1ec786+_0x7c160(0x222)),_0x55265f+='\x0a'+_0x7c160(0x203)+_0x7c160(0x211),_0x55265f+='\x0a'+_0x7c160(0x203)+_0x7c160(0x1d9),_0x55265f+='\x0a'+_0x7c160(0x1bc)+('<el-avatar\x20:src=\x22scope.row.'+_0x1ec786+_0x7c160(0x1cf)),_0x55265f+='\x0a'+_0x7c160(0x203)+_0x7c160(0x1f6),_0x55265f+='\x0a'+_0x7c160(0x233)+'</el-popover>',_0x55265f+='\x0a'+_0x7c160(0x1ea)+'</template>',_0x55265f+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x7c160(0x246);else[_0x7c160(0x23f)][_0x7c160(0x23b)]((0x0,helper_1[_0x7c160(0x236)])(_0x4e03aa[_0x7c160(0x1c3)]))==-0x1&&(_0x55265f+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x7c160(0x20a)+('\x22'+_0x1ec786+'\x22')[_0x7c160(0x23c)](0x14)+(_0x7c160(0x1a2)+(_0x4e03aa[_0x7c160(0x235)]||_0x4e03aa[_0x7c160(0x209)])+_0x7c160(0x1b5)));}const _0x573106=''+(typeof _0x21ef13=='string'?_0x21ef13+'/':'')+(_0x274480?_0x274480+'/':'')+_0x41dfaf;fs[_0x7c160(0x1bd)]((0x0,path_1[_0x7c160(0x1ca)])(_0x313bcd),{'recursive':!![]}),fs[_0x7c160(0x1f7)](_0x313bcd,'<template>\x0a\x20\x20\x20\x20<page-main>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<elplus-table\x20:datas=\x22table.data\x22\x20:pageinfo=\x22table.search\x22\x20:loading=\x22loading\x22\x20@transform=\x22LoadDatas\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#search>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<search\x20v-model:search=\x22table.search\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`get@/'+_0x573106+_0x7c160(0x21b)+_0x55265f+_0x7c160(0x21f)+_0x573106+'/edit/:'+_0x123b68[_0x7c160(0x209)]+'`)\x22\x20@click=\x22$router.push(`edit?'+_0x123b68['Field']+'=${scope.row.'+_0x123b68[_0x7c160(0x209)]+_0x7c160(0x1db)+_0x573106+_0x7c160(0x1c5)+_0x584f4b+_0x7c160(0x234)+_0x584f4b+'Remove,\x20'+_0x584f4b+'Edit\x20}\x20from\x20\x27@/apis/'+(_0x274480?_0x7c160(0x21a)+_0x274480:''+_0xa29a5)+'/'+_0x584f4b+_0x7c160(0x1d7)+_0x584f4b+_0x7c160(0x243)+_0x584f4b+'Remove({\x20'+_0x123b68['Field']+_0x7c160(0x215)+_0x123b68[_0x7c160(0x209)]+_0x7c160(0x1a0)+_0x123b68[_0x7c160(0x209)]+_0x7c160(0x21c)+_0x584f4b+_0x7c160(0x1a1)+_0x123b68[_0x7c160(0x209)]+',\x20{\x20[field]:\x20item[field]\x20}).then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20typeof(res?.data)\x20!=\x20\x27undefined\x27\x20){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20item\x20=\x20res.data;\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\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27操作成功\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27操作失败\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a/**\x0a\x20*\x20加载数据\x0a\x20*\x20**/\x0aLoadDatas()\x0a\x0a</script>',_0x7c160(0x1fa));}}async function createSearch({moduleName:_0x5da383,tablestartUpShort2:_0x1acadb,controller:_0x57aefa,Primary:_0xf26dec,Fields:_0x503a3f,apporbasic:_0x2e9485}){const _0x200f7b=a18_0x25be5a;let _0x3b3784=process['cwd']()+'/vue'+(typeof _0x57aefa==_0x200f7b(0x1fb)?'/'+_0x57aefa:'');_0x5da383?_0x3b3784=_0x3b3784+(_0x200f7b(0x1e2)+_0x5da383+'/'+_0x1acadb+'/list/components/search.vue'):_0x3b3784=_0x3b3784+(_0x200f7b(0x23d)+_0x2e9485+'/'+_0x1acadb+_0x200f7b(0x1b9));if(!fs[_0x200f7b(0x201)](_0x3b3784)){let _0x317cad='';_0x317cad+='\x0a'+_0x200f7b(0x1df)+('<el-form-item\x20label=\x22'+(_0xf26dec[_0x200f7b(0x235)]||'编号')+'\x22>'),_0x317cad+='\x0a'+_0x200f7b(0x1f0)+(_0x200f7b(0x23e)+_0xf26dec[_0x200f7b(0x209)]+_0x200f7b(0x1b7)+(_0xf26dec['Comment']||'编号')+_0x200f7b(0x1af)),_0x317cad+='\x0a'+'\x20\x20\x20\x20'+'</el-form-item>';for(let _0x1fd71b in _0x503a3f){const _0x54c0d1=_0x503a3f[_0x1fd71b];if([_0x200f7b(0x200),'deleted_at',_0x200f7b(0x24d)]['indexOf'](_0x1fd71b)!=-0x1)continue;if(_0x1fd71b['substring'](_0x1fd71b[_0x200f7b(0x1e3)]-0x3)==_0x200f7b(0x1ef)||_0x1fd71b['substring'](_0x1fd71b[_0x200f7b(0x1e3)]-0x5)=='thumb'||_0x1fd71b==_0x200f7b(0x214)||_0x1fd71b['substring'](_0x1fd71b[_0x200f7b(0x1e3)]-0x4)==_0x200f7b(0x210)||_0x1fd71b=='logo')continue;if(_0x1fd71b['substring'](_0x1fd71b['length']-0x3)=='num')_0x317cad+='\x0a'+_0x200f7b(0x1df)+('<el-form-item\x20label=\x22'+(_0x54c0d1[_0x200f7b(0x235)]||_0x54c0d1[_0x200f7b(0x209)])+'\x22>'),_0x317cad+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x200f7b(0x1bb)+_0x1fd71b+_0x200f7b(0x1b7)+_0x54c0d1['Comment']+'\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20clearable/>'),_0x317cad+='\x0a'+_0x200f7b(0x1df)+'</el-form-item>'+'\x0a';else{if(_0x1fd71b[_0x200f7b(0x22d)](_0x200f7b(0x1b6))){let _0x1569b8=''+(typeof _0x57aefa==_0x200f7b(0x1fb)?_0x57aefa+'/':'')+(_0x5da383?_0x5da383+'/':'')+_0x1acadb;_0x317cad+='\x0a'+_0x200f7b(0x1f0)+(_0x200f7b(0x19d)+(_0x54c0d1[_0x200f7b(0x235)]||_0x54c0d1['Field'])+'\x22>'),_0x317cad+='\x0a'+_0x200f7b(0x207)+(_0x200f7b(0x1b0)+_0x1fd71b+'\x22\x20api=\x22'+_0x1569b8+_0x200f7b(0x22b)),_0x317cad+='\x0a'+_0x200f7b(0x1f0)+_0x200f7b(0x24b)+'\x0a';}else switch((0x0,helper_1[_0x200f7b(0x236)])(_0x54c0d1['Type'])){case _0x200f7b(0x22e):_0x317cad+='\x0a'+_0x200f7b(0x1df)+(_0x200f7b(0x19d)+(_0x54c0d1[_0x200f7b(0x235)]||_0x54c0d1['Field'])+'\x22>'),_0x317cad+='\x0a'+_0x200f7b(0x1f0)+('<el-select\x20v-model=\x22props.search.'+_0x1fd71b+'\x22\x20placeholder=\x22请选择'+_0x54c0d1[_0x200f7b(0x235)]+'\x22\x20clearable>');for(let _0xaecefc of(0x0,helper_1[_0x200f7b(0x1d5)])(_0x54c0d1[_0x200f7b(0x1c3)])){_0x317cad+='\x0a'+_0x200f7b(0x207)+('<el-option\x20label=\x22'+_0xaecefc+_0x200f7b(0x220)+_0xaecefc+_0x200f7b(0x249));}_0x317cad+='\x0a'+_0x200f7b(0x1f0)+_0x200f7b(0x19e),_0x317cad+='\x0a'+'\x20\x20\x20\x20'+_0x200f7b(0x24b)+'\x0a';break;case _0x200f7b(0x240):_0x317cad+='\x0a'+'\x20\x20\x20\x20'+(_0x200f7b(0x19d)+(_0x54c0d1['Comment']||_0x54c0d1[_0x200f7b(0x209)])+_0x200f7b(0x1fe)),_0x317cad+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x200f7b(0x24a)+_0x1fd71b+'_start\x22\x20placeholder=\x22选择'+_0x54c0d1['Comment']+_0x200f7b(0x217)),_0x317cad+='\x0a'+_0x200f7b(0x1df)+_0x200f7b(0x24b)+'\x0a',_0x317cad+='\x0a'+_0x200f7b(0x1df)+(_0x200f7b(0x19d)+(_0x54c0d1[_0x200f7b(0x235)]||_0x54c0d1['Field'])+_0x200f7b(0x20e)),_0x317cad+='\x0a'+_0x200f7b(0x1f0)+('<el-date-picker\x20v-model=\x22props.search.'+_0x1fd71b+_0x200f7b(0x213)+_0x54c0d1[_0x200f7b(0x235)]+'结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x317cad+='\x0a'+_0x200f7b(0x1df)+'</el-form-item>'+'\x0a';break;case'datetime':_0x317cad+='\x0a'+'\x20\x20\x20\x20'+(_0x200f7b(0x19d)+(_0x54c0d1[_0x200f7b(0x235)]||_0x54c0d1[_0x200f7b(0x209)])+_0x200f7b(0x1fe)),_0x317cad+='\x0a'+_0x200f7b(0x1f0)+(_0x200f7b(0x24a)+_0x1fd71b+'_start\x22\x20placeholder=\x22选择'+_0x54c0d1['Comment']+_0x200f7b(0x19c)),_0x317cad+='\x0a'+'\x20\x20\x20\x20'+'</el-form-item>'+'\x0a',_0x317cad+='\x0a'+_0x200f7b(0x1df)+(_0x200f7b(0x19d)+(_0x54c0d1[_0x200f7b(0x235)]||_0x54c0d1[_0x200f7b(0x209)])+_0x200f7b(0x20e)),_0x317cad+='\x0a'+_0x200f7b(0x1f0)+(_0x200f7b(0x24a)+_0x1fd71b+_0x200f7b(0x213)+_0x54c0d1[_0x200f7b(0x235)]+_0x200f7b(0x1f9)),_0x317cad+='\x0a'+_0x200f7b(0x1df)+'</el-form-item>'+'\x0a';break;case _0x200f7b(0x1b8):_0x317cad+='\x0a'+'\x20\x20\x20\x20'+(_0x200f7b(0x19d)+(_0x54c0d1['Comment']||_0x54c0d1[_0x200f7b(0x209)])+'>=\x22>'),_0x317cad+='\x0a'+_0x200f7b(0x1f0)+('<el-date-picker\x20v-model=\x22props.search.'+_0x1fd71b+_0x200f7b(0x1c6)+_0x54c0d1[_0x200f7b(0x235)]+_0x200f7b(0x19c)),_0x317cad+='\x0a'+'\x20\x20\x20\x20'+'</el-form-item>'+'\x0a',_0x317cad+='\x0a'+_0x200f7b(0x1df)+(_0x200f7b(0x19d)+(_0x54c0d1[_0x200f7b(0x235)]||_0x54c0d1[_0x200f7b(0x209)])+'<=\x22>'),_0x317cad+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x200f7b(0x24a)+_0x1fd71b+'_end\x22\x20placeholder=\x22选择'+_0x54c0d1[_0x200f7b(0x235)]+_0x200f7b(0x1f9)),_0x317cad+='\x0a'+'\x20\x20\x20\x20'+_0x200f7b(0x24b)+'\x0a';break;case _0x200f7b(0x1fb):_0x317cad+='\x0a'+_0x200f7b(0x1df)+(_0x200f7b(0x19d)+(_0x54c0d1[_0x200f7b(0x235)]||_0x54c0d1[_0x200f7b(0x209)])+'\x22>'),_0x317cad+='\x0a'+_0x200f7b(0x1f0)+(_0x200f7b(0x23e)+_0x1fd71b+_0x200f7b(0x1b7)+_0x54c0d1['Comment']+_0x200f7b(0x1af)),_0x317cad+='\x0a'+'\x20\x20\x20\x20'+_0x200f7b(0x24b)+'\x0a';}}}fs[_0x200f7b(0x1bd)]((0x0,path_1[_0x200f7b(0x1ca)])(_0x3b3784),{'recursive':!![]}),fs[_0x200f7b(0x1f7)](_0x3b3784,'<template>\x0a\x20\x20\x20\x20'+_0x317cad+_0x200f7b(0x1e6),_0x200f7b(0x1fa));}}async function createAddOrEdit({moduleName:_0x2fcbbd,controller:_0x4ef588,tablestartUpShort:_0x441e76,tablestartUpShort2:_0x559981,Primary:_0x2b5316,Fields:_0x24233f,apporbasic:_0x4c2fdb,Comment:_0x38540a},_0x270e79=a18_0x25be5a(0x20d)){const _0x5094b1=a18_0x25be5a;let _0x55e99a=process[_0x5094b1(0x1a4)]()+_0x5094b1(0x1c0)+(typeof _0x4ef588=='string'?'/'+_0x4ef588:'');_0x2fcbbd?_0x55e99a=_0x55e99a+(_0x5094b1(0x1e2)+_0x2fcbbd+'/'+_0x559981+'/'+_0x270e79+_0x5094b1(0x1f2)):_0x55e99a=_0x55e99a+(_0x5094b1(0x23d)+_0x4c2fdb+'/'+_0x559981+'/'+_0x270e79+'/index.vue');if(!fs[_0x5094b1(0x201)](_0x55e99a)){const _0xd7a13d=[_0x5094b1(0x23f),_0x5094b1(0x1c1),_0x5094b1(0x1fb)][_0x5094b1(0x23b)]((0x0,helper_1['getProp'])(_0x2b5316[_0x5094b1(0x1c3)]))==-0x1,_0x28899b=''+(typeof _0x4ef588==_0x5094b1(0x1fb)?_0x4ef588+'/':'')+(_0x2fcbbd?_0x2fcbbd+'/':'')+_0x559981;let _0x14803e='';for(let _0x2ad045 in _0x24233f){const _0x8e3aa8=_0x24233f[_0x2ad045];if(['created_at',_0x5094b1(0x200),_0x5094b1(0x239),_0x5094b1(0x24d)][_0x5094b1(0x23b)](_0x2ad045)!=-0x1)continue;if(_0x2ad045['substring'](_0x2ad045['length']-0x4)=='imgs'||_0x2ad045[_0x5094b1(0x221)](_0x2ad045[_0x5094b1(0x1e3)]-0x6)==_0x5094b1(0x1bf))_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8['Comment']||_0x8e3aa8['Field'])+_0x5094b1(0x1a9)+_0x2ad045+_0x5094b1(0x251)),_0x14803e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5094b1(0x237)+_0x2ad045+'\x22\x20:limit=\x225\x22\x20'+(_0x2fcbbd?'module=\x22'+_0x2fcbbd+'\x22':'')+'\x20/>'),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';else{if(_0x2ad045[_0x5094b1(0x221)](_0x2ad045[_0x5094b1(0x1e3)]-0x3)==_0x5094b1(0x1ef)||_0x2ad045[_0x5094b1(0x221)](_0x2ad045[_0x5094b1(0x1e3)]-0x5)==_0x5094b1(0x214)||_0x2ad045==_0x5094b1(0x214)||_0x2ad045[_0x5094b1(0x221)](_0x2ad045[_0x5094b1(0x1e3)]-0x4)=='logo'||_0x2ad045==_0x5094b1(0x210))_0x14803e+='\x0a'+_0x5094b1(0x207)+('<el-form-item\x20label=\x22'+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8['Field'])+_0x5094b1(0x1a9)+_0x2ad045+'\x22\x20class=\x22block\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+(_0x5094b1(0x237)+_0x2ad045+_0x5094b1(0x1de)+(_0x2fcbbd?'module=\x22'+_0x2fcbbd+'\x22':'')+'/>'),_0x14803e+='\x0a'+_0x5094b1(0x207)+'</el-form-item>'+'\x0a';else{if(_0x2ad045[_0x5094b1(0x221)](_0x2ad045[_0x5094b1(0x1e3)]-0x4)==_0x5094b1(0x1f4)||_0x2ad045[_0x5094b1(0x221)](_0x2ad045[_0x5094b1(0x1e3)]-0x3)==_0x5094b1(0x1e8))_0x14803e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+'\x22\x20prop=\x22'+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+(_0x5094b1(0x1c7)+_0x2ad045+_0x5094b1(0x23a)+_0x8e3aa8[_0x5094b1(0x235)]+_0x5094b1(0x1b1)),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';else{if(_0x2ad045[_0x5094b1(0x205)](-0x3)==_0x5094b1(0x232))_0x14803e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+_0x5094b1(0x1a9)+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+(_0x5094b1(0x1dc)+_0x2ad045+_0x5094b1(0x1b7)+_0x8e3aa8[_0x5094b1(0x235)]+_0x5094b1(0x22c)),_0x14803e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';else{if(_0x2ad045[_0x5094b1(0x205)](-0x4)==_0x5094b1(0x1ad))_0x14803e+='\x0a'+_0x5094b1(0x207)+('<el-form-item\x20label=\x22'+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+_0x5094b1(0x1a9)+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+(_0x5094b1(0x1d4)+_0x2ad045+_0x5094b1(0x1b7)+_0x8e3aa8['Comment']+_0x5094b1(0x1af)),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';else{if(_0x2ad045[_0x5094b1(0x205)](-0x3)==_0x5094b1(0x1b6)){let _0x4e146d=''+(typeof _0x4ef588=='string'?_0x4ef588+'/':'')+(_0x2fcbbd?_0x2fcbbd+'/':'')+_0x559981;_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+_0x5094b1(0x1a9)+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+('<elplus-select-search\x20v-model=\x22formdata.'+_0x2ad045+_0x5094b1(0x19f)+_0x4e146d+'\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>'),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';}else switch((0x0,helper_1[_0x5094b1(0x236)])(_0x8e3aa8[_0x5094b1(0x1c3)])){case _0x5094b1(0x225):_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8['Field'])+'\x22\x20prop=\x22'+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+(_0x5094b1(0x1dc)+_0x2ad045+_0x5094b1(0x1b7)+_0x8e3aa8[_0x5094b1(0x235)]+_0x5094b1(0x22c)),_0x14803e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5094b1(0x24b)+'\x0a';break;case _0x5094b1(0x22e):_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+_0x5094b1(0x1a9)+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+(_0x5094b1(0x1e0)+_0x2ad045+_0x5094b1(0x1ae)+_0x8e3aa8[_0x5094b1(0x235)]+_0x5094b1(0x1e9));for(let _0x4758e0 of(0x0,helper_1[_0x5094b1(0x1d5)])(_0x8e3aa8[_0x5094b1(0x1c3)])){_0x14803e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5094b1(0x1be)+_0x4758e0+_0x5094b1(0x220)+_0x4758e0+_0x5094b1(0x249));}_0x14803e+='\x0a'+_0x5094b1(0x1a7)+'</el-select>',_0x14803e+='\x0a'+_0x5094b1(0x207)+'</el-form-item>'+'\x0a';break;case _0x5094b1(0x23f):_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+_0x5094b1(0x1a9)+_0x2ad045+_0x5094b1(0x251)),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+('<el-input\x20v-model=\x22formdata.'+_0x2ad045+_0x5094b1(0x212)+_0x8e3aa8[_0x5094b1(0x235)]+_0x5094b1(0x242)),_0x14803e+='\x0a'+_0x5094b1(0x207)+'</el-form-item>'+'\x0a';break;case _0x5094b1(0x204):_0x14803e+='\x0a'+_0x5094b1(0x207)+('<el-form-item\x20label=\x22'+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+'\x22\x20prop=\x22'+_0x2ad045+_0x5094b1(0x251)),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+('<tinymce-editor\x20v-model=\x22formdata.'+_0x2ad045+'\x22\x20'+(_0x2fcbbd?_0x5094b1(0x1f5)+_0x2fcbbd+'\x22':'')+'/>'),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';break;case _0x5094b1(0x1c1):_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+_0x5094b1(0x1a9)+_0x2ad045+_0x5094b1(0x251)),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+(_0x5094b1(0x21e)+_0x2ad045+'\x22\x20'+(_0x2fcbbd?_0x5094b1(0x1f5)+_0x2fcbbd+'\x22':'')+'/>'),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';break;case _0x5094b1(0x240):_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+_0x5094b1(0x1a9)+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+('<el-date-picker\x20v-model=\x22formdata.'+_0x2ad045+_0x5094b1(0x1c2)+_0x8e3aa8[_0x5094b1(0x235)]+_0x5094b1(0x224)),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';break;case _0x5094b1(0x1ed):_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8['Field'])+'\x22\x20prop=\x22'+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+(_0x5094b1(0x230)+_0x2ad045+'\x22\x20placeholder=\x22选择'+_0x8e3aa8[_0x5094b1(0x235)]+_0x5094b1(0x1dd)),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';break;case _0x5094b1(0x1b8):_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8['Field'])+_0x5094b1(0x1a9)+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+('<el-date-picker\x20v-model=\x22formdata.'+_0x2ad045+_0x5094b1(0x1c2)+_0x8e3aa8[_0x5094b1(0x235)]+_0x5094b1(0x1dd)),_0x14803e+='\x0a'+_0x5094b1(0x207)+'</el-form-item>'+'\x0a';break;default:_0x14803e+='\x0a'+_0x5094b1(0x207)+(_0x5094b1(0x19d)+(_0x8e3aa8[_0x5094b1(0x235)]||_0x8e3aa8[_0x5094b1(0x209)])+_0x5094b1(0x1a9)+_0x2ad045+'\x22>'),_0x14803e+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5094b1(0x1d4)+_0x2ad045+_0x5094b1(0x1b7)+_0x8e3aa8['Comment']+_0x5094b1(0x1af)),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';}}}}}}}_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x206),_0x14803e+='\x0a'+_0x5094b1(0x1a7)+_0x5094b1(0x1e1),_0x14803e+='\x0a'+_0x5094b1(0x207)+_0x5094b1(0x24b)+'\x0a';let _0x49cac4=_0x5094b1(0x1c8);_0x49cac4+=_0x5094b1(0x1d1),_0x49cac4+=_0x5094b1(0x1e7)+(_0x270e79==_0x5094b1(0x20d)?'添加'+_0x38540a:'编辑'+_0x38540a)+_0x5094b1(0x1a8)+_0x441e76+(_0x270e79==_0x5094b1(0x20d)?_0x5094b1(0x21d):_0x5094b1(0x219))+'Rule\x22\x20:loading=\x22loading\x22\x20:disabled=\x22!$hasPrem(`post@/'+_0x28899b+'/'+(_0x270e79=='add'?_0x5094b1(0x20d):_0x5094b1(0x231)+_0x2b5316[_0x5094b1(0x209)])+'`)\x22>\x0a',_0x49cac4+=_0x5094b1(0x207)+_0x14803e+'\x0a\x0a',_0x49cac4+=_0x5094b1(0x1cc),_0x49cac4+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/'+_0x28899b+'/'+(_0x270e79==_0x5094b1(0x20d)?_0x5094b1(0x20d):_0x5094b1(0x231)+_0x2b5316[_0x5094b1(0x209)])+_0x5094b1(0x227),_0x49cac4+=_0x5094b1(0x1ab),_0x49cac4+='\x20\x20\x20\x20\x20\x20\x20\x20</elplus-form>\x0a',_0x49cac4+='\x20\x20\x20\x20</page-main>\x0a',_0x49cac4+=_0x5094b1(0x226),_0x49cac4+=_0x5094b1(0x1d0);if(_0x270e79=='add')_0x49cac4+=_0x5094b1(0x22f)+_0x441e76+_0x5094b1(0x1f8),_0x49cac4+='import\x20{\x20'+_0x441e76+'Add\x20}\x20from\x20\x27@/apis/'+(_0x2fcbbd?_0x5094b1(0x21a)+_0x2fcbbd:''+_0x4c2fdb)+'/'+_0x441e76+_0x5094b1(0x241);else _0x270e79==_0x5094b1(0x1b3)&&(_0x49cac4+=_0x5094b1(0x22f)+_0x441e76+_0x5094b1(0x202),_0x49cac4+='import\x20{\x20'+_0x441e76+_0x5094b1(0x1cb)+_0x441e76+_0x5094b1(0x1ee)+(_0x2fcbbd?_0x5094b1(0x21a)+_0x2fcbbd:''+_0x4c2fdb)+'/'+_0x441e76+_0x5094b1(0x241));_0x49cac4+='const\x20refForm\x20=\x20ref(),\x20formdata\x20=\x20ref<any>({});\x0a';if(_0x270e79==_0x5094b1(0x20d))_0x49cac4+='const\x20loading\x20=\x20ref(false),\x20router\x20=\x20useRouter();\x0a\x0a';else _0x270e79==_0x5094b1(0x1b3)&&(_0x49cac4+=_0x5094b1(0x1ba));_0x49cac4+=_0x5094b1(0x228),_0x49cac4+=_0x5094b1(0x1c9),_0x49cac4+=_0x5094b1(0x247),_0x49cac4+='\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20'+_0x441e76+(_0x270e79==_0x5094b1(0x20d)?_0x5094b1(0x21d):_0x5094b1(0x219))+'('+(_0x270e79=='edit'?_0x5094b1(0x24e)+_0x2b5316[_0x5094b1(0x209)]+',\x20':'')+'item).then(res=>{\x0a',_0x49cac4+=_0x5094b1(0x24f),_0x49cac4+='\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a',_0x49cac4+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a',_0x49cac4+=_0x5094b1(0x1ff),_0x49cac4+=_0x5094b1(0x1aa),_0x49cac4+='}\x0a\x0a',_0x270e79==_0x5094b1(0x1b3)&&(_0x49cac4+=_0x5094b1(0x20f),_0x49cac4+=_0x5094b1(0x1ce)+_0x2b5316['Field']+':\x20'+(_0xd7a13d?_0x5094b1(0x225):'string')+')\x20=>\x20{\x0a',_0x49cac4+='\x20\x20\x20\x20if\x20('+_0x2b5316[_0x5094b1(0x209)]+_0x5094b1(0x216),_0x49cac4+='\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20formdata.value\x20=\x20{};\x0a',_0x49cac4+=_0x5094b1(0x1f0)+_0x441e76+_0x5094b1(0x223)+_0x2b5316[_0x5094b1(0x209)]+').then(res\x20=>\x20{\x0a',_0x49cac4+=_0x5094b1(0x1fd),_0x49cac4+=_0x5094b1(0x1a3),_0x49cac4+=_0x5094b1(0x24c),_0x49cac4+=_0x5094b1(0x1ff),_0x49cac4+=_0x5094b1(0x1d3),_0x49cac4+='\x20\x20\x20\x20\x20\x20\x20\x20router.back();\x0a',_0x49cac4+=_0x5094b1(0x1fc),_0x49cac4+='}\x0a\x0a\x0a',_0x49cac4+=_0x5094b1(0x1d6)+_0x2b5316['Field']+'\x20as\x20unknown\x20as\x20'+(_0xd7a13d?'number':'string')+')\x0a'),_0x49cac4+=_0x5094b1(0x20b),fs[_0x5094b1(0x1bd)]((0x0,path_1['dirname'])(_0x55e99a),{'recursive':!![]}),fs[_0x5094b1(0x1f7)](_0x55e99a,_0x49cac4,_0x5094b1(0x1fa));}}
|
|
1
|
+
const a18_0x2b70f0=a18_0x3e6a;(function(_0x2b9cd0,_0x5aa163){const _0x556734=a18_0x3e6a,_0x39f4bf=_0x2b9cd0();while(!![]){try{const _0x477fe3=-parseInt(_0x556734(0xfb))/0x1*(-parseInt(_0x556734(0x12a))/0x2)+-parseInt(_0x556734(0x142))/0x3*(parseInt(_0x556734(0x11b))/0x4)+-parseInt(_0x556734(0x108))/0x5+parseInt(_0x556734(0x147))/0x6+parseInt(_0x556734(0x13c))/0x7+parseInt(_0x556734(0xa4))/0x8*(parseInt(_0x556734(0xd8))/0x9)+-parseInt(_0x556734(0x144))/0xa*(parseInt(_0x556734(0xcd))/0xb);if(_0x477fe3===_0x5aa163)break;else _0x39f4bf['push'](_0x39f4bf['shift']());}catch(_0xdacb40){_0x39f4bf['push'](_0x39f4bf['shift']());}}}(a18_0x5197,0x30dc0));const a18_0x58a163=(function(){let _0x5e7776=!![];return function(_0x142733,_0x33789b){const _0x3c3cfa=_0x5e7776?function(){const _0x1309a5=a18_0x3e6a;if(_0x33789b){const _0x3e6b55=_0x33789b[_0x1309a5(0x139)](_0x142733,arguments);return _0x33789b=null,_0x3e6b55;}}:function(){};return _0x5e7776=![],_0x3c3cfa;};}()),a18_0x1af6b=a18_0x58a163(this,function(){const _0x583009=a18_0x3e6a;return a18_0x1af6b[_0x583009(0xd7)]()['search'](_0x583009(0xae))[_0x583009(0xd7)]()['constructor'](a18_0x1af6b)['search'](_0x583009(0xae));});a18_0x1af6b();function a18_0x5197(){const _0x4e79aa=['<el-select\x20v-model=\x22formdata.','\x20\x20\x20\x20refForm.value?.validate().then((item:\x20any)\x20=>\x20{\x0a','\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>','num','\x20label=\x22','\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20','6402UzkTAZ','<el-input\x20v-model=\x22formdata.','substr','List(Object.assign(table.search\x20||\x20{},\x20sortable)).then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20table.data\x20=\x20res.data\x20||\x20[],\x20table.search\x20=\x20{\x20...table.search,\x20...res?.extra?.pageinfo\x20||\x20{},\x20_count:\x20res?.extra?.pagetotal\x20||\x200\x20};\x0a\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a\x20\x20\x20\x20});\x0a}\x0a\x0a/**\x0a\x20*\x20删除数据\x0a\x20*\x20**/\x0aconst\x20handlerRemove\x20=\x20(item:any)\x20=>\x20{\x0a\x20\x20\x20\x20loading.value\x20=\x20true,\x20$confirm(`确定删除数据吗?`,\x20\x27提示\x27,\x20{\x20confirmButtonText:\x20\x27确定\x27,\x20cancelButtonText:\x20\x27取消\x27,\x20type:\x20\x27warning\x27\x20}).then(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20','displayorder','_end\x22\x20placeholder=\x22选择','length','text','logo','<template\x20#reference>','toString','89199wlLNdk','deleted_at','defineProperty','tag','date','\x22\x20placeholder=\x22请选择','utf-8','<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>','<attachment-image\x20v-model=\x22formdata.','endsWith','mkdirSync','\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','\x20\x20\x20\x20</page-main>\x0a','EditRule\x20}\x20from\x20\x27../interface\x27;\x0a','<el-select\x20v-model=\x22props.search.','</a>','\x22\x20class=\x22block\x22>','</el-popover>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20clearable>','开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','path','\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a','add','<el-input-number\x20v-model=\x22props.search.','Detail\x20}\x20from\x20\x27@/apis/','\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','\x22\x20align=\x27center\x27\x20show-overflow-tooltip>','}\x0a\x0a\x0a','<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20controls-position=\x22right\x22/>','\x22\x20/>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20formdata.value\x20=\x20res.data;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a','const\x20getDetail\x20=\x20(','const\x20loading\x20=\x20ref(false),\x20router\x20=\x20useRouter();\x0a\x0a','1LStUtI','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','</template>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Detail(','List,\x20','\x22\x20:limit=\x225\x22\x20','<a\x20:href=\x22scope.row.','\x22\x20api=\x22','enum',')\x20=>\x20{\x0a','<el-input-number\x20v-model=\x22formdata.','getEnum','1298345BNrBbz','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a','/list/components/search.vue','<template>\x0a\x20\x20\x20\x20<page-main>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<elplus-table\x20:datas=\x22table.data\x22\x20:pageinfo=\x22table.search\x22\x20:loading=\x22loading\x22\x20@transform=\x22LoadDatas\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#search>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<search\x20v-model:search=\x22table.search\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`get@/','updated_at','Rule\x22\x20:loading=\x22loading\x22\x20:disabled=\x22!$hasPrem(`post@/','</template>\x0a','Edit\x20}\x20from\x20\x27@/apis/','/remove`)\x22\x20@click=\x22handlerRemove(scope.row)\x22\x20type=\x22danger\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</elplus-table>\x0a\x20\x20\x20\x20</page-main>\x0a</template>\x0a<script\x20lang=\x22ts\x22\x20setup>\x0aimport\x20search\x20from\x20\x27./components/search.vue\x27;\x0aimport\x20{\x20','\x22\x20style=\x22cursor:pointer\x22/>','\x22\x20placeholder=\x22选择','`)\x22>\x0a','Comment','<elplus-select-search\x20v-model=\x22formdata.','/add`)\x22\x20@click=\x22$router.push(`add`)\x22\x20\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获取详情\x0a','\x27;\x0a\x0a','124YeEBqX','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/','<template\x20#default=\x22scope\x22>','AddRule\x20}\x20from\x20\x27../interface\x27;\x0a','dirname','_id','\x20\x20\x20\x20\x20\x20\x20\x20<elplus-form\x20ref=\x22refForm\x22\x20title=\x22','\x20\x20\x20\x20})\x0a','imgs','\x0a</template>\x0a<script\x20lang=\x22ts\x22\x20setup>\x0aconst\x20props\x20=\x20defineProps({\x0a\x20\x20\x20\x20search:\x20{type:\x20Object\x20,default:\x20()=>{return\x20{}}},\x0a})\x0a</script>','\x20as\x20unknown\x20as\x20','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20clearable/>','<el-form-item\x20label=\x22','<template>\x0a\x20\x20\x20\x20','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','318878WEdnYA','item).then(res=>{\x0a','img',').then(res\x20=>\x20{\x0a','/index.vue','\x20\x20\x20\x20\x20\x20\x20\x20</elplus-form>\x0a','number','<el-input\x20v-model=\x22props.search.','getProp','module=\x22','/pages/apps/','<el-date-picker\x20v-model=\x22props.search.','Remove,\x20','\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>','apps/','apply','<tinymce-editor\x20v-model=\x22formdata.','<el-table-column\x20prop=','2225734HXDwil','<el-date-picker\x20v-model=\x22formdata.','\x22\x20prop=\x22','\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','\x20/>','substring','27831FyeQOg','\x22\x20:model=\x22formdata\x22\x20:rules=\x22','3720lQZvyz',':\x20item.','edit/:','1908000hBlrEN','\x22\x20value=\x22','<el-form-item\x20label=\x22排序\x22\x20prop=\x22displayorder\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','Field','/vue','import\x20{\x20','\x22\x20placeholder=\x22请输入','</el-select>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','indexOf','\x22\x20:limit=\x221\x22\x20','existsSync','<=\x22>','const\x20refForm\x20=\x20ref(),\x20formdata\x20=\x20ref<any>({});\x0a','datetime',',\x20{\x20[field]:\x20item[field]\x20}).then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20typeof(res?.data)\x20!=\x20\x27undefined\x27\x20){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20item\x20=\x20res.data;\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\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27操作成功\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27操作失败\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a/**\x0a\x20*\x20加载数据\x0a\x20*\x20**/\x0aLoadDatas()\x0a\x0a</script>','timestamp','>=\x22>','136FIroSO','thumb','\x20\x20\x20\x20\x20\x20\x20\x20','created_at','\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20/>','_ids','cwd','string','`)\x22\x20type=\x22primary\x22\x20@click=\x22handlerSave()\x22>保存</el-button>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20router.back();\x0a','(((.+)+)+)+$','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','Edit,\x20','\x22\x20clearable/>','const\x20handlerSave\x20=\x20()=>{\x0a','\x22\x20align=\x27center\x27\x20sortable=\x22custom\x22\x20show-overflow-tooltip\x20/>','Add\x20}\x20from\x20\x27@/apis/','\x20\x20\x20\x20','</el-form-item>','Type','edit',')\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20','<el-option\x20label=\x22','/pages/','writeFileSync','<template>\x0a','\x22\x20split=\x22-\x22\x20clearable/>','Add','_start\x22\x20placeholder=\x22选择','\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20<page-main>\x0a','getDetail(route?.query?.','padEnd','tags','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27操作成功\x27),\x20router.back();\x0a'];a18_0x5197=function(){return _0x4e79aa;};return a18_0x5197();}'use strict';Object[a18_0x2b70f0(0xda)](exports,'__esModule',{'value':!![]});const fs=require('fs'),path_1=require(a18_0x2b70f0(0xed)),helper_1=require('../helper');async function default_1({moduleName:_0x4a21fa,controller:_0x4425b5,tablestartUpShort:_0x1dd194,tablestartUpShort2:_0x4843ca,Primary:_0xcbf6e8,Fields:_0x2b46ab,apporbasic:_0x2c4cb2,Comment:_0x1f8b9c}){const _0x13bed6=a18_0x2b70f0;await createIndex({'moduleName':_0x4a21fa,'controller':_0x4425b5,'tablestartUpShort':_0x1dd194,'tablestartUpShort2':_0x4843ca,'Primary':_0xcbf6e8,'Fields':_0x2b46ab,'apporbasic':_0x2c4cb2}),await createSearch({'moduleName':_0x4a21fa,'controller':_0x4425b5,'tablestartUpShort2':_0x4843ca,'Primary':_0xcbf6e8,'Fields':_0x2b46ab,'apporbasic':_0x2c4cb2}),await createAddOrEdit({'moduleName':_0x4a21fa,'controller':_0x4425b5,'tablestartUpShort':_0x1dd194,'tablestartUpShort2':_0x4843ca,'Primary':_0xcbf6e8,'Fields':_0x2b46ab,'apporbasic':_0x2c4cb2,'Comment':_0x1f8b9c},_0x13bed6(0xef)),await createAddOrEdit({'moduleName':_0x4a21fa,'controller':_0x4425b5,'tablestartUpShort':_0x1dd194,'tablestartUpShort2':_0x4843ca,'Primary':_0xcbf6e8,'Fields':_0x2b46ab,'apporbasic':_0x2c4cb2,'Comment':_0x1f8b9c},_0x13bed6(0xb8));}exports['default']=default_1;async function createIndex({moduleName:_0x2dd8cd,controller:_0x2dd216,tablestartUpShort:_0x59ca1f,tablestartUpShort2:_0x10894e,Primary:_0xf2a055,Fields:_0x3c57e5,apporbasic:_0x2bda13}){const _0x322a8b=a18_0x2b70f0;let _0x31f0d2=process[_0x322a8b(0xaa)]()+_0x322a8b(0x96)+(typeof _0x2dd216==_0x322a8b(0xab)?'/'+_0x2dd216:'');_0x2dd8cd?_0x31f0d2=_0x31f0d2+(_0x322a8b(0x134)+_0x2dd8cd+'/'+_0x10894e+'/list/index.vue'):_0x31f0d2=_0x31f0d2+(_0x322a8b(0xbb)+_0x2bda13+'/'+_0x10894e+'/list/index.vue');if(!fs[_0x322a8b(0x9d)](_0x31f0d2)){let _0x532204=_0x322a8b(0x13b)+('\x22'+_0xf2a055[_0x322a8b(0x14b)]+'\x22')[_0x322a8b(0xc4)](0x14)+(_0x322a8b(0xcb)+(_0xf2a055[_0x322a8b(0x116)]||'编号')+_0x322a8b(0xa8));for(let _0x396156 in _0x3c57e5){const _0x809e6f=_0x3c57e5[_0x396156];if([_0x322a8b(0xa7),'updated_at',_0x322a8b(0xd9),'displayorder'][_0x322a8b(0x9b)](_0x396156)!=-0x1)continue;if(_0x396156[_0x322a8b(0x141)](_0x396156[_0x322a8b(0xd3)]-0x3)==_0x322a8b(0x12c)||_0x396156[_0x322a8b(0x141)](_0x396156[_0x322a8b(0xd3)]-0x5)==_0x322a8b(0xa5)||_0x396156=='thumb'||_0x396156[_0x322a8b(0x141)](_0x396156[_0x322a8b(0xd3)]-0x4)=='logo'||_0x396156==_0x322a8b(0xd5))_0x532204+='\x0a'+_0x322a8b(0x9a)+_0x322a8b(0x13b)+('\x22'+_0x396156+'\x22')[_0x322a8b(0xc4)](0x14)+(_0x322a8b(0xcb)+(_0x809e6f['Comment']||_0x809e6f[_0x322a8b(0x14b)])+_0x322a8b(0xf3)),_0x532204+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x322a8b(0x11d),_0x532204+='\x0a'+_0x322a8b(0xea)+_0x322a8b(0xdf),_0x532204+='\x0a'+_0x322a8b(0x14a)+(_0x322a8b(0x102)+_0x396156+_0x322a8b(0xc9)),_0x532204+='\x0a'+_0x322a8b(0x10a)+('<img\x20:src=\x22scope.row.'+_0x396156+_0x322a8b(0xf2)),_0x532204+='\x0a'+_0x322a8b(0x14a)+_0x322a8b(0xe7),_0x532204+='\x0a'+_0x322a8b(0x14a)+_0x322a8b(0xd6),_0x532204+='\x0a'+_0x322a8b(0x10a)+('<el-avatar\x20:src=\x22scope.row.'+_0x396156+_0x322a8b(0x113)),_0x532204+='\x0a'+_0x322a8b(0x14a)+_0x322a8b(0xfd),_0x532204+='\x0a'+_0x322a8b(0xea)+_0x322a8b(0xe9),_0x532204+='\x0a'+_0x322a8b(0xfc)+_0x322a8b(0xfd),_0x532204+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-table-column>';else[_0x322a8b(0xd4)][_0x322a8b(0x9b)]((0x0,helper_1[_0x322a8b(0x132)])(_0x809e6f['Type']))==-0x1&&(_0x532204+='\x0a'+_0x322a8b(0x9a)+_0x322a8b(0x13b)+('\x22'+_0x396156+'\x22')[_0x322a8b(0xc4)](0x14)+('\x20label=\x22'+(_0x809e6f[_0x322a8b(0x116)]||_0x809e6f[_0x322a8b(0x14b)])+_0x322a8b(0xb3)));}const _0x1a0eaa=''+(typeof _0x2dd216==_0x322a8b(0xab)?_0x2dd216+'/':'')+(_0x2dd8cd?_0x2dd8cd+'/':'')+_0x10894e;fs['mkdirSync']((0x0,path_1['dirname'])(_0x31f0d2),{'recursive':!![]}),fs[_0x322a8b(0xbc)](_0x31f0d2,_0x322a8b(0x10d)+_0x1a0eaa+_0x322a8b(0x118)+_0x532204+'\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$hasPrem(`get@/'+_0x1a0eaa+'/edit/:'+_0xf2a055[_0x322a8b(0x14b)]+'`)\x22\x20@click=\x22$router.push(`edit?'+_0xf2a055[_0x322a8b(0x14b)]+'=${scope.row.'+_0xf2a055['Field']+'}`)\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\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/'+_0x1a0eaa+_0x322a8b(0x112)+_0x59ca1f+_0x322a8b(0x100)+_0x59ca1f+_0x322a8b(0x136)+_0x59ca1f+_0x322a8b(0x111)+(_0x2dd8cd?'apps/'+_0x2dd8cd:''+_0x2bda13)+'/'+_0x59ca1f+'\x27;\x0a\x0aconst\x20loading\x20=\x20ref(false),\x20table\x20=\x20reactive({\x0a\x20\x20\x20\x20data:\x20[],\x0a\x20\x20\x20\x20select:\x20[],\x0a\x20\x20\x20\x20search:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20_page:\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20_size:\x2020,\x0a\x20\x20\x20\x20\x20\x20\x20\x20_count:\x20200,\x0a\x20\x20\x20\x20}\x0a})\x0a\x0a\x0a/**\x0a\x20*\x20获取数据列表\x0a\x20*\x20@param\x20page\x20分页-当前页\x0a\x20*\x20@param\x20size\x20分页-每页数量\x0a\x20*\x20**/\x0aconst\x20LoadDatas\x20=\x20(page?:\x20number,\x20size?:\x20number,\x20sortable\x20=\x20{})\x20=>\x20{\x0a\x20\x20\x20\x20loading.value\x20=\x20true,\x20page\x20&&\x20(table.search._page\x20=\x20page),\x20size\x20&&\x20(table.search._size\x20=\x20size);\x0a\x20\x20\x20\x20'+_0x59ca1f+_0x322a8b(0xd0)+_0x59ca1f+'Remove({\x20'+_0xf2a055[_0x322a8b(0x14b)]+_0x322a8b(0x145)+_0xf2a055['Field']+'\x20}).then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27删除成功\x27),\x20LoadDatas();\x0a\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27删除失败\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20}).catch(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false;\x0a\x20\x20\x20\x20})\x0a}\x0a\x0a/**\x0a\x20*\x20修改字段状态\x0a\x20*\x20**/\x0a\x20const\x20handlerFieldChange\x20=\x20(item:\x20any,\x20field:string)=>{\x0a\x20\x20\x20\x20if\x20(item.'+_0xf2a055['Field']+_0x322a8b(0xb9)+_0x59ca1f+'Edit(item.'+_0xf2a055[_0x322a8b(0x14b)]+_0x322a8b(0xa1),_0x322a8b(0xde));}}async function createSearch({moduleName:_0x442861,tablestartUpShort2:_0x45d1d1,controller:_0x4ee5fd,Primary:_0x5e62f4,Fields:_0xf2ee0c,apporbasic:_0x33890e}){const _0x378551=a18_0x2b70f0;let _0x5f432d=process[_0x378551(0xaa)]()+_0x378551(0x96)+(typeof _0x4ee5fd==_0x378551(0xab)?'/'+_0x4ee5fd:'');_0x442861?_0x5f432d=_0x5f432d+('/pages/apps/'+_0x442861+'/'+_0x45d1d1+'/list/components/search.vue'):_0x5f432d=_0x5f432d+(_0x378551(0xbb)+_0x33890e+'/'+_0x45d1d1+_0x378551(0x10c));if(!fs[_0x378551(0x9d)](_0x5f432d)){let _0x4dd8b6='';_0x4dd8b6+='\x0a'+_0x378551(0xb5)+(_0x378551(0x127)+(_0x5e62f4['Comment']||'编号')+'\x22>'),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+(_0x378551(0x131)+_0x5e62f4[_0x378551(0x14b)]+'\x22\x20placeholder=\x22请输入'+(_0x5e62f4[_0x378551(0x116)]||'编号')+_0x378551(0xb1)),_0x4dd8b6+='\x0a'+_0x378551(0xb5)+_0x378551(0xb6);for(let _0x182898 in _0xf2ee0c){const _0x5b4680=_0xf2ee0c[_0x182898];if([_0x378551(0x10e),_0x378551(0xd9),_0x378551(0xd1)]['indexOf'](_0x182898)!=-0x1)continue;if(_0x182898[_0x378551(0x141)](_0x182898['length']-0x3)==_0x378551(0x12c)||_0x182898[_0x378551(0x141)](_0x182898[_0x378551(0xd3)]-0x5)=='thumb'||_0x182898==_0x378551(0xa5)||_0x182898[_0x378551(0x141)](_0x182898[_0x378551(0xd3)]-0x4)==_0x378551(0xd5)||_0x182898==_0x378551(0xd5))continue;if(_0x182898[_0x378551(0x141)](_0x182898['length']-0x3)==_0x378551(0xca))_0x4dd8b6+='\x0a'+_0x378551(0xb5)+(_0x378551(0x127)+(_0x5b4680[_0x378551(0x116)]||_0x5b4680[_0x378551(0x14b)])+'\x22>'),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+(_0x378551(0xf0)+_0x182898+'\x22\x20placeholder=\x22请输入'+_0x5b4680['Comment']+_0x378551(0x126)),_0x4dd8b6+='\x0a'+_0x378551(0xb5)+_0x378551(0xb6)+'\x0a';else{if(_0x182898[_0x378551(0xe1)](_0x378551(0x120))){let _0x5d100b=''+(typeof _0x4ee5fd=='string'?_0x4ee5fd+'/':'')+(_0x442861?_0x442861+'/':'')+_0x45d1d1;_0x4dd8b6+='\x0a'+_0x378551(0xa6)+('<el-form-item\x20label=\x22'+(_0x5b4680[_0x378551(0x116)]||_0x5b4680['Field'])+'\x22>'),_0x4dd8b6+='\x0a'+_0x378551(0xfe)+('<elplus-select-search\x20v-model=\x22props.search.'+_0x182898+_0x378551(0x103)+_0x5d100b+_0x378551(0x137)),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+_0x378551(0xb6)+'\x0a';}else switch((0x0,helper_1['getProp'])(_0x5b4680['Type'])){case _0x378551(0x104):_0x4dd8b6+='\x0a'+_0x378551(0xb5)+(_0x378551(0x127)+(_0x5b4680[_0x378551(0x116)]||_0x5b4680['Field'])+'\x22>'),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+(_0x378551(0xe6)+_0x182898+_0x378551(0xdd)+_0x5b4680[_0x378551(0x116)]+_0x378551(0xeb));for(let _0x434163 of(0x0,helper_1[_0x378551(0x107)])(_0x5b4680['Type'])){_0x4dd8b6+='\x0a'+_0x378551(0xfe)+('<el-option\x20label=\x22'+_0x434163+'\x22\x20value=\x22'+_0x434163+_0x378551(0xf6));}_0x4dd8b6+='\x0a'+_0x378551(0xa6)+'</el-select>',_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20'+_0x378551(0xb6)+'\x0a';break;case _0x378551(0xdc):_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20'+(_0x378551(0x127)+(_0x5b4680[_0x378551(0x116)]||_0x5b4680[_0x378551(0x14b)])+_0x378551(0xa3)),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+(_0x378551(0x135)+_0x182898+_0x378551(0xc0)+_0x5b4680['Comment']+'开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20'+_0x378551(0xb6)+'\x0a',_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20'+(_0x378551(0x127)+(_0x5b4680[_0x378551(0x116)]||_0x5b4680[_0x378551(0x14b)])+_0x378551(0x9e)),_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-date-picker\x20v-model=\x22props.search.'+_0x182898+_0x378551(0xd2)+_0x5b4680[_0x378551(0x116)]+'结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x4dd8b6+='\x0a'+_0x378551(0xb5)+'</el-form-item>'+'\x0a';break;case _0x378551(0xa0):_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20'+(_0x378551(0x127)+(_0x5b4680[_0x378551(0x116)]||_0x5b4680[_0x378551(0x14b)])+_0x378551(0xa3)),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+(_0x378551(0x135)+_0x182898+'_start\x22\x20placeholder=\x22选择'+_0x5b4680[_0x378551(0x116)]+_0x378551(0xec)),_0x4dd8b6+='\x0a'+_0x378551(0xb5)+'</el-form-item>'+'\x0a',_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20'+(_0x378551(0x127)+(_0x5b4680[_0x378551(0x116)]||_0x5b4680[_0x378551(0x14b)])+_0x378551(0x9e)),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+(_0x378551(0x135)+_0x182898+_0x378551(0xd2)+_0x5b4680[_0x378551(0x116)]+_0x378551(0x129)),_0x4dd8b6+='\x0a'+_0x378551(0xb5)+_0x378551(0xb6)+'\x0a';break;case _0x378551(0xa2):_0x4dd8b6+='\x0a'+_0x378551(0xb5)+(_0x378551(0x127)+(_0x5b4680[_0x378551(0x116)]||_0x5b4680[_0x378551(0x14b)])+_0x378551(0xa3)),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+('<el-date-picker\x20v-model=\x22props.search.'+_0x182898+_0x378551(0xc0)+_0x5b4680['Comment']+'开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20'+_0x378551(0xb6)+'\x0a',_0x4dd8b6+='\x0a'+_0x378551(0xb5)+('<el-form-item\x20label=\x22'+(_0x5b4680[_0x378551(0x116)]||_0x5b4680['Field'])+_0x378551(0x9e)),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+(_0x378551(0x135)+_0x182898+_0x378551(0xd2)+_0x5b4680['Comment']+_0x378551(0x129)),_0x4dd8b6+='\x0a'+_0x378551(0xb5)+_0x378551(0xb6)+'\x0a';break;case _0x378551(0xab):_0x4dd8b6+='\x0a'+'\x20\x20\x20\x20'+(_0x378551(0x127)+(_0x5b4680[_0x378551(0x116)]||_0x5b4680['Field'])+'\x22>'),_0x4dd8b6+='\x0a'+_0x378551(0xa6)+(_0x378551(0x131)+_0x182898+_0x378551(0x98)+_0x5b4680['Comment']+_0x378551(0xb1)),_0x4dd8b6+='\x0a'+_0x378551(0xb5)+_0x378551(0xb6)+'\x0a';}}}fs[_0x378551(0xe2)]((0x0,path_1[_0x378551(0x11f)])(_0x5f432d),{'recursive':!![]}),fs[_0x378551(0xbc)](_0x5f432d,_0x378551(0x128)+_0x4dd8b6+_0x378551(0x124),'utf-8');}}function a18_0x3e6a(_0x1de11b,_0x19cb2f){const _0x4f2300=a18_0x5197();return a18_0x3e6a=function(_0x1af6b,_0x58a163){_0x1af6b=_0x1af6b-0x96;let _0x51978c=_0x4f2300[_0x1af6b];return _0x51978c;},a18_0x3e6a(_0x1de11b,_0x19cb2f);}async function createAddOrEdit({moduleName:_0x2fc524,controller:_0x555d73,tablestartUpShort:_0x250d20,tablestartUpShort2:_0x1ba0fb,Primary:_0x1eddd9,Fields:_0x431442,apporbasic:_0x325ac1,Comment:_0xf454dd},_0x517e6a=a18_0x2b70f0(0xef)){const _0x56b111=a18_0x2b70f0;let _0x2f3c46=process[_0x56b111(0xaa)]()+'/vue'+(typeof _0x555d73==_0x56b111(0xab)?'/'+_0x555d73:'');_0x2fc524?_0x2f3c46=_0x2f3c46+(_0x56b111(0x134)+_0x2fc524+'/'+_0x1ba0fb+'/'+_0x517e6a+_0x56b111(0x12e)):_0x2f3c46=_0x2f3c46+('/pages/'+_0x325ac1+'/'+_0x1ba0fb+'/'+_0x517e6a+_0x56b111(0x12e));if(!fs[_0x56b111(0x9d)](_0x2f3c46)){const _0x373080=[_0x56b111(0xd4),'mediumtext',_0x56b111(0xab)][_0x56b111(0x9b)]((0x0,helper_1[_0x56b111(0x132)])(_0x1eddd9[_0x56b111(0xb7)]))==-0x1,_0xdf730f=''+(typeof _0x555d73==_0x56b111(0xab)?_0x555d73+'/':'')+(_0x2fc524?_0x2fc524+'/':'')+_0x1ba0fb;let _0x5a84a7='';for(let _0x454eb4 in _0x431442){const _0x10cabb=_0x431442[_0x454eb4];if([_0x56b111(0xa7),'updated_at','deleted_at',_0x56b111(0xd1)][_0x56b111(0x9b)](_0x454eb4)!=-0x1)continue;if(_0x454eb4['substring'](_0x454eb4[_0x56b111(0xd3)]-0x4)==_0x56b111(0x123)||_0x454eb4[_0x56b111(0x141)](_0x454eb4[_0x56b111(0xd3)]-0x6)=='thumbs')_0x5a84a7+='\x0a'+_0x56b111(0xfe)+(_0x56b111(0x127)+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+'\x22\x20class=\x22block\x22>'),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+(_0x56b111(0xe0)+_0x454eb4+_0x56b111(0x101)+(_0x2fc524?_0x56b111(0x133)+_0x2fc524+'\x22':'')+_0x56b111(0x140)),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';else{if(_0x454eb4[_0x56b111(0x141)](_0x454eb4[_0x56b111(0xd3)]-0x3)=='img'||_0x454eb4[_0x56b111(0x141)](_0x454eb4['length']-0x5)==_0x56b111(0xa5)||_0x454eb4==_0x56b111(0xa5)||_0x454eb4[_0x56b111(0x141)](_0x454eb4[_0x56b111(0xd3)]-0x4)==_0x56b111(0xd5)||_0x454eb4=='logo')_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+_0x56b111(0xe8)),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56b111(0xe0)+_0x454eb4+_0x56b111(0x9c)+(_0x2fc524?'module=\x22'+_0x2fc524+'\x22':'')+'/>'),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';else{if(_0x454eb4[_0x56b111(0x141)](_0x454eb4[_0x56b111(0xd3)]-0x4)==_0x56b111(0xc5)||_0x454eb4[_0x56b111(0x141)](_0x454eb4[_0x56b111(0xd3)]-0x3)==_0x56b111(0xdb))_0x5a84a7+='\x0a'+_0x56b111(0xfe)+(_0x56b111(0x127)+(_0x10cabb['Comment']||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+('<elplus-select-tags\x20v-model=\x22formdata.'+_0x454eb4+'\x22\x20placeholder=\x22请输入或选择'+_0x10cabb[_0x56b111(0x116)]+_0x56b111(0xbe)),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';else{if(_0x454eb4[_0x56b111(0xcf)](-0x3)==_0x56b111(0xca))_0x5a84a7+='\x0a'+_0x56b111(0xfe)+(_0x56b111(0x127)+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56b111(0x106)+_0x454eb4+_0x56b111(0x98)+_0x10cabb[_0x56b111(0x116)]+_0x56b111(0x109)),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';else{if(_0x454eb4[_0x56b111(0xcf)](-0x4)==_0x56b111(0xa9))_0x5a84a7+='\x0a'+_0x56b111(0xfe)+('<el-form-item\x20label=\x22'+(_0x10cabb['Comment']||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56b111(0xce)+_0x454eb4+_0x56b111(0x98)+_0x10cabb['Comment']+_0x56b111(0xb1)),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+'</el-form-item>'+'\x0a';else{if(_0x454eb4[_0x56b111(0xcf)](-0x3)==_0x56b111(0x120)){let _0x3c1438=''+(typeof _0x555d73=='string'?_0x555d73+'/':'')+(_0x2fc524?_0x2fc524+'/':'')+_0x1ba0fb;_0x5a84a7+='\x0a'+_0x56b111(0xfe)+('<el-form-item\x20label=\x22'+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56b111(0x117)+_0x454eb4+_0x56b111(0x103)+_0x3c1438+_0x56b111(0x137)),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';}else switch((0x0,helper_1[_0x56b111(0x132)])(_0x10cabb[_0x56b111(0xb7)])){case'number':_0x5a84a7+='\x0a'+_0x56b111(0xfe)+('<el-form-item\x20label=\x22'+(_0x10cabb['Comment']||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+('<el-input-number\x20v-model=\x22formdata.'+_0x454eb4+_0x56b111(0x98)+_0x10cabb[_0x56b111(0x116)]+_0x56b111(0x109)),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';break;case _0x56b111(0x104):_0x5a84a7+='\x0a'+_0x56b111(0xfe)+(_0x56b111(0x127)+(_0x10cabb['Comment']||_0x10cabb[_0x56b111(0x14b)])+'\x22\x20prop=\x22'+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+(_0x56b111(0xc7)+_0x454eb4+_0x56b111(0xdd)+_0x10cabb[_0x56b111(0x116)]+_0x56b111(0xeb));for(let _0x1f2b54 of(0x0,helper_1['getEnum'])(_0x10cabb[_0x56b111(0xb7)])){_0x5a84a7+='\x0a'+_0x56b111(0xfc)+(_0x56b111(0xba)+_0x1f2b54+_0x56b111(0x148)+_0x1f2b54+_0x56b111(0xf6));}_0x5a84a7+='\x0a'+_0x56b111(0x9a)+_0x56b111(0x99),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x56b111(0xb6)+'\x0a';break;case _0x56b111(0xd4):_0x5a84a7+='\x0a'+_0x56b111(0xfe)+(_0x56b111(0x127)+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb['Field'])+_0x56b111(0x13e)+_0x454eb4+_0x56b111(0xe8)),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+(_0x56b111(0xce)+_0x454eb4+'\x22\x20\x20placeholder=\x22请输入'+_0x10cabb[_0x56b111(0x116)]+'\x22\x20type=\x22textarea\x22\x20:rows=\x224\x22/>'),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';break;case'longtext':_0x5a84a7+='\x0a'+_0x56b111(0xfe)+('<el-form-item\x20label=\x22'+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+_0x56b111(0xe8)),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+(_0x56b111(0x13a)+_0x454eb4+'\x22\x20'+(_0x2fc524?_0x56b111(0x133)+_0x2fc524+'\x22':'')+'/>'),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';break;case'mediumtext':_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56b111(0x127)+(_0x10cabb['Comment']||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+_0x56b111(0xe8)),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+('<tinymce-editor\x20v-model=\x22formdata.'+_0x454eb4+'\x22\x20'+(_0x2fc524?_0x56b111(0x133)+_0x2fc524+'\x22':'')+'/>'),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';break;case _0x56b111(0xdc):_0x5a84a7+='\x0a'+_0x56b111(0xfe)+(_0x56b111(0x127)+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb['Field'])+_0x56b111(0x13e)+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+(_0x56b111(0x13d)+_0x454eb4+_0x56b111(0x114)+_0x10cabb[_0x56b111(0x116)]+_0x56b111(0xe3)),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x56b111(0xb6)+'\x0a';break;case _0x56b111(0xa0):_0x5a84a7+='\x0a'+_0x56b111(0xfe)+(_0x56b111(0x127)+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb[_0x56b111(0x14b)])+_0x56b111(0x13e)+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+(_0x56b111(0x13d)+_0x454eb4+_0x56b111(0x114)+_0x10cabb[_0x56b111(0x116)]+_0x56b111(0xaf)),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';break;case _0x56b111(0xa2):_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56b111(0x127)+(_0x10cabb['Comment']||_0x10cabb['Field'])+_0x56b111(0x13e)+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+(_0x56b111(0x13d)+_0x454eb4+_0x56b111(0x114)+_0x10cabb[_0x56b111(0x116)]+'\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';break;default:_0x5a84a7+='\x0a'+_0x56b111(0xfe)+('<el-form-item\x20label=\x22'+(_0x10cabb[_0x56b111(0x116)]||_0x10cabb[_0x56b111(0x14b)])+'\x22\x20prop=\x22'+_0x454eb4+'\x22>'),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56b111(0xce)+_0x454eb4+'\x22\x20placeholder=\x22请输入'+_0x10cabb[_0x56b111(0x116)]+_0x56b111(0xb1)),_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0xb6)+'\x0a';}}}}}}}_0x5a84a7+='\x0a'+_0x56b111(0xfe)+_0x56b111(0x149),_0x5a84a7+='\x0a'+_0x56b111(0x9a)+_0x56b111(0xf5),_0x5a84a7+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x56b111(0xb6)+'\x0a';let _0x4a574d=_0x56b111(0xbd);_0x4a574d+=_0x56b111(0xc2),_0x4a574d+=_0x56b111(0x121)+(_0x517e6a==_0x56b111(0xef)?'添加'+_0xf454dd:'编辑'+_0xf454dd)+_0x56b111(0x143)+_0x250d20+(_0x517e6a=='add'?_0x56b111(0xbf):'Edit')+_0x56b111(0x10f)+_0xdf730f+'/'+(_0x517e6a==_0x56b111(0xef)?_0x56b111(0xef):_0x56b111(0x146)+_0x1eddd9['Field'])+_0x56b111(0x115),_0x4a574d+=_0x56b111(0xfe)+_0x5a84a7+'\x0a\x0a',_0x4a574d+=_0x56b111(0x10b),_0x4a574d+=_0x56b111(0x11c)+_0xdf730f+'/'+(_0x517e6a==_0x56b111(0xef)?'add':_0x56b111(0x146)+_0x1eddd9[_0x56b111(0x14b)])+_0x56b111(0xac),_0x4a574d+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a',_0x4a574d+=_0x56b111(0x12f),_0x4a574d+=_0x56b111(0xe4),_0x4a574d+=_0x56b111(0x110),_0x4a574d+='<script\x20lang=\x22ts\x22\x20setup>\x0a';if(_0x517e6a==_0x56b111(0xef))_0x4a574d+=_0x56b111(0x97)+_0x250d20+_0x56b111(0x11e),_0x4a574d+=_0x56b111(0x97)+_0x250d20+_0x56b111(0xb4)+(_0x2fc524?_0x56b111(0x138)+_0x2fc524:''+_0x325ac1)+'/'+_0x250d20+_0x56b111(0x11a);else _0x517e6a==_0x56b111(0xb8)&&(_0x4a574d+=_0x56b111(0x97)+_0x250d20+_0x56b111(0xe5),_0x4a574d+=_0x56b111(0x97)+_0x250d20+_0x56b111(0xb0)+_0x250d20+_0x56b111(0xf1)+(_0x2fc524?'apps/'+_0x2fc524:''+_0x325ac1)+'/'+_0x250d20+'\x27;\x0a\x0a');_0x4a574d+=_0x56b111(0x9f);if(_0x517e6a==_0x56b111(0xef))_0x4a574d+=_0x56b111(0xfa);else _0x517e6a=='edit'&&(_0x4a574d+='const\x20loading\x20=\x20ref(false),\x20router\x20=\x20useRouter(),\x20route\x20=\x20useRoute();\x0a\x0a');_0x4a574d+='//\x20保存数据\x0a',_0x4a574d+=_0x56b111(0xb2),_0x4a574d+=_0x56b111(0xc8),_0x4a574d+=_0x56b111(0xcc)+_0x250d20+(_0x517e6a==_0x56b111(0xef)?'Add':'Edit')+'('+(_0x517e6a==_0x56b111(0xb8)?'item.'+_0x1eddd9[_0x56b111(0x14b)]+',\x20':'')+_0x56b111(0x12b),_0x4a574d+=_0x56b111(0xc6),_0x4a574d+=_0x56b111(0xee),_0x4a574d+=_0x56b111(0xf8),_0x4a574d+=_0x56b111(0x13f),_0x4a574d+=_0x56b111(0x122),_0x4a574d+='}\x0a\x0a',_0x517e6a=='edit'&&(_0x4a574d+=_0x56b111(0x119),_0x4a574d+=_0x56b111(0xf9)+_0x1eddd9[_0x56b111(0x14b)]+':\x20'+(_0x373080?_0x56b111(0x130):_0x56b111(0xab))+_0x56b111(0x105),_0x4a574d+='\x20\x20\x20\x20if\x20('+_0x1eddd9['Field']+')\x20{\x0a',_0x4a574d+='\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20formdata.value\x20=\x20{};\x0a',_0x4a574d+=_0x56b111(0xa6)+_0x250d20+_0x56b111(0xff)+_0x1eddd9[_0x56b111(0x14b)]+_0x56b111(0x12d),_0x4a574d+=_0x56b111(0xf7),_0x4a574d+='\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a',_0x4a574d+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27),\x20router.back();\x0a',_0x4a574d+=_0x56b111(0x13f),_0x4a574d+='\x20\x20\x20\x20}\x20else\x20{\x0a',_0x4a574d+=_0x56b111(0xad),_0x4a574d+=_0x56b111(0xc1),_0x4a574d+=_0x56b111(0xf4),_0x4a574d+=_0x56b111(0xc3)+_0x1eddd9[_0x56b111(0x14b)]+_0x56b111(0x125)+(_0x373080?_0x56b111(0x130):_0x56b111(0xab))+')\x0a'),_0x4a574d+='</script>\x0a',fs['mkdirSync']((0x0,path_1[_0x56b111(0x11f)])(_0x2f3c46),{'recursive':!![]}),fs[_0x56b111(0xbc)](_0x2f3c46,_0x4a574d,_0x56b111(0xde));}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ({ tablestartUpShort2, moduleName, controller, Comment, apporbasic, Primary }: {
|
|
2
|
-
tablestartUpShort2: any;
|
|
3
|
-
moduleName: any;
|
|
4
|
-
controller: any;
|
|
5
|
-
Comment: any;
|
|
6
|
-
apporbasic: any;
|
|
7
|
-
Primary: any;
|
|
8
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUpShort2, moduleName, controller, Comment, apporbasic, Primary }: {
|
|
2
|
+
tablestartUpShort2: any;
|
|
3
|
+
moduleName: any;
|
|
4
|
+
controller: any;
|
|
5
|
+
Comment: any;
|
|
6
|
+
apporbasic: any;
|
|
7
|
+
Primary: any;
|
|
8
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0xa9f2cf=a19_0x2d06;(function(_0xb28bb1,_0x340f39){const _0x181732=a19_0x2d06,_0x2759c0=_0xb28bb1();while(!![]){try{const _0x310b40=-parseInt(_0x181732(0x1e5))/0x1*(parseInt(_0x181732(0x1f1))/0x2)+parseInt(_0x181732(0x1d5))/0x3*(-parseInt(_0x181732(0x1e6))/0x4)+-parseInt(_0x181732(0x1f0))/0x5+-parseInt(_0x181732(0x1bf))/0x6+-parseInt(_0x181732(0x1ed))/0x7+-parseInt(_0x181732(0x1da))/0x8+parseInt(_0x181732(0x1ea))/0x9*(parseInt(_0x181732(0x1de))/0xa);if(_0x310b40===_0x340f39)break;else _0x2759c0['push'](_0x2759c0['shift']());}catch(_0x4f62ac){_0x2759c0['push'](_0x2759c0['shift']());}}}(a19_0x4511,0x7ebd6));const a19_0x578015=(function(){let _0x309594=!![];return function(_0x588055,_0x45ece0){const _0x35f7df=_0x309594?function(){if(_0x45ece0){const _0x2aa7e7=_0x45ece0['apply'](_0x588055,arguments);return _0x45ece0=null,_0x2aa7e7;}}:function(){};return _0x309594=![],_0x35f7df;};}()),a19_0xe14f96=a19_0x578015(this,function(){const _0x562109=a19_0x2d06;return a19_0xe14f96[_0x562109(0x1c4)]()['search'](_0x562109(0x1d1))[_0x562109(0x1c4)]()[_0x562109(0x1be)](a19_0xe14f96)['search'](_0x562109(0x1d1));});a19_0xe14f96();'use strict';function a19_0x2d06(_0x5b99c7,_0x473663){const _0x3c1012=a19_0x4511();return a19_0x2d06=function(_0xe14f96,_0x578015){_0xe14f96=_0xe14f96-0x1be;let _0x451142=_0x3c1012[_0xe14f96];return _0x451142;},a19_0x2d06(_0x5b99c7,_0x473663);}Object['defineProperty'](exports,a19_0xa9f2cf(0x1c6),{'value':!![]});const fs=require('fs'),path_1=require('path');async function default_1({tablestartUpShort2:_0x3df725,moduleName:_0xd20e2,controller:_0x23081b,Comment:_0x512144,apporbasic:_0x586e93,Primary:_0x2821ba}){await createRoutes({'tablestartUpShort2':_0x3df725,'moduleName':_0xd20e2,'controller':_0x23081b,'Comment':_0x512144,'apporbasic':_0x586e93,'Primary':_0x2821ba});}exports[a19_0xa9f2cf(0x1e3)]=default_1;function a19_0x4511(){const _0x492cb7=['添加\x22\x20}\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','432440PWHQiR','/list/index.vue\x27),\x20meta:\x20{\x20name:\x20\x22','pages/','export\x20default\x20{\x0a','23886990tRWawB','/router/modules/apps/','existsSync','\x20\x20\x20\x20path:\x20\x22/','mkdirSync','default','/vue','41tucYNa','885208VOByCW','utf-8','/router/modules/','indexOf','9DfozyC','/add\x22','\x22\x20}\x20}','1094709DeCHFh','readFileSync','//\x20add\x20route\x20here','3528720rqqlAB','31866HYrHJq','constructor','472992iCAYdn','padEnd',',\x20component:\x20()=>\x20import(\x27','.ts','apps-','toString','{\x20path:\x20\x22','__esModule','/edit\x22','string','\x20\x20\x20\x20//\x20redirect:\x20\x22/','/layout.vue`),\x0a','编辑\x22\x20}\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','../../','\x20\x20\x20\x20children:[\x0a','apps/','\x22,\x0a','../../../','(((.+)+)+)+$','/list\x22','\x20\x20\x20\x20component:\x20()\x20=>\x20import(`',',\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','3ZNqUrh','cwd','/edit/index.vue\x27),\x20meta:\x20{\x20name:\x20\x22','\x20\x20\x20\x20]\x0a'];a19_0x4511=function(){return _0x492cb7;};return a19_0x4511();}async function createRoutes({tablestartUpShort2:_0x570b4e,moduleName:_0x4ba2f5,controller:_0x45815e,Comment:_0x488a2a,apporbasic:_0x47fdc8,Primary:_0x43c88a}){const _0x22e173=a19_0xa9f2cf;let _0x5e49db=process[_0x22e173(0x1d6)]()+_0x22e173(0x1e4)+(typeof _0x45815e==_0x22e173(0x1c8)?'/'+_0x45815e:'');_0x4ba2f5?_0x5e49db=_0x5e49db+(_0x22e173(0x1df)+_0x4ba2f5+_0x22e173(0x1c2)):_0x5e49db=_0x5e49db+(_0x22e173(0x1e8)+_0x47fdc8+_0x22e173(0x1c2));if(!fs[_0x22e173(0x1e0)](_0x5e49db)){let _0x3d9358='';_0x3d9358+=_0x22e173(0x1dd),_0x3d9358+=_0x22e173(0x1e1)+(_0x4ba2f5?_0x22e173(0x1c3)+_0x4ba2f5+'/':_0x47fdc8+'/')+_0x22e173(0x1cf),_0x3d9358+=_0x22e173(0x1c9)+(_0x4ba2f5?'apps-'+_0x4ba2f5+'/':_0x47fdc8+'/')+_0x22e173(0x1cf),_0x3d9358+=_0x22e173(0x1d3)+(_0x4ba2f5?'../../../':_0x22e173(0x1cc))+_0x22e173(0x1dc)+(_0x4ba2f5?_0x22e173(0x1ce)+_0x4ba2f5:''+_0x47fdc8)+_0x22e173(0x1ca),_0x3d9358+=_0x22e173(0x1cd),_0x3d9358+='\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here\x0a',_0x3d9358+=_0x22e173(0x1d8),_0x3d9358+='}\x0a',fs[_0x22e173(0x1e2)]((0x0,path_1['dirname'])(_0x5e49db),{'recursive':!![]}),fs['writeFileSync'](_0x5e49db,_0x3d9358,_0x22e173(0x1e7));}const _0x2fdb6b=fs[_0x22e173(0x1ee)](_0x5e49db,'utf-8'),_0x3312e5=_0x22e173(0x1c5)+(_0x570b4e+_0x22e173(0x1d2))[_0x22e173(0x1c0)](0x14)+(_0x22e173(0x1c1)+(_0x4ba2f5?_0x22e173(0x1d0):_0x22e173(0x1cc))+_0x22e173(0x1dc)+(_0x4ba2f5?_0x22e173(0x1ce)+_0x4ba2f5:''+_0x47fdc8)+'/'+_0x570b4e+_0x22e173(0x1db)+_0x488a2a+_0x22e173(0x1ec));_0x2fdb6b[_0x22e173(0x1e9)](_0x3312e5)==-0x1&&fs['writeFileSync'](_0x5e49db,_0x2fdb6b['replace'](_0x22e173(0x1ef),_0x3312e5+_0x22e173(0x1d4))['replace'](_0x22e173(0x1ef),_0x22e173(0x1c5)+(_0x570b4e+_0x22e173(0x1eb))[_0x22e173(0x1c0)](0x14)+(_0x22e173(0x1c1)+(_0x4ba2f5?_0x22e173(0x1d0):_0x22e173(0x1cc))+_0x22e173(0x1dc)+(_0x4ba2f5?'apps/'+_0x4ba2f5:''+_0x47fdc8)+'/'+_0x570b4e+'/add/index.vue\x27),\x20meta:\x20{\x20name:\x20\x22'+_0x488a2a+_0x22e173(0x1d9)))['replace'](_0x22e173(0x1ef),'{\x20path:\x20\x22'+(_0x570b4e+_0x22e173(0x1c7))[_0x22e173(0x1c0)](0x14)+(_0x22e173(0x1c1)+(_0x4ba2f5?_0x22e173(0x1d0):'../../')+_0x22e173(0x1dc)+(_0x4ba2f5?_0x22e173(0x1ce)+_0x4ba2f5:''+_0x47fdc8)+'/'+_0x570b4e+_0x22e173(0x1d7)+_0x488a2a+_0x22e173(0x1cb))));}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ({ tablestartUpShort, tablestartUpShort2, moduleName, controller, apporbasic, Fields }: {
|
|
2
|
-
tablestartUpShort: any;
|
|
3
|
-
tablestartUpShort2: any;
|
|
4
|
-
moduleName: any;
|
|
5
|
-
controller: any;
|
|
6
|
-
apporbasic: any;
|
|
7
|
-
Fields: any;
|
|
8
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUpShort, tablestartUpShort2, moduleName, controller, apporbasic, Fields }: {
|
|
2
|
+
tablestartUpShort: any;
|
|
3
|
+
tablestartUpShort2: any;
|
|
4
|
+
moduleName: any;
|
|
5
|
+
controller: any;
|
|
6
|
+
apporbasic: any;
|
|
7
|
+
Fields: any;
|
|
8
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a20_0x28a6(){const _0x57c94b=['displayorder','55ekVVxi','false','replace','apply','\x0a/**\x0a\x20*\x20数据添加验证\x0a\x20*\x20**/\x0aexport\x20const\x20','true','\x20\x20\x20\x20],\x0a\x0a','created_at',':\x20[\x0a','decimal','writeFileSync','462828cRcUrV','float','AddRule\x20=\x20{\x0a%AddRuleColumn%\x0a}\x0a\x0a/**\x0a\x20*\x20数据修改验证\x0a\x20*\x20**/\x0aexport\x20const\x20','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的','30GHamJI','toString','Null','enum','1561413ZcynvT','%AddRuleColumn%','getEnum','`,\x20type:\x20\x22date\x22\x20},\x0a','indexOf','deleted_at','number','Type','\x20\x20\x20\x20','\x20},\x0a','1000112IRnrQl','1vmaykM','timestamp','`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27','/pages/','mediumtext','/vue','defineProperty','string','\x20\x20\x20\x20//\x20','dirname','date','existsSync','/interface.ts','json','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`','Field','YES','33738NnTXeT','\x27,\x20\x27','search','default','1232170DIpYkr','updated_at','Comment','487374pdOaDn','text','9jBnKyw','4BqTRBd','datetime','`,\x20type:\x20\x22string\x22\x20},\x0a','/pages/apps/','utf-8','3712cTHKHU','\x27]\x20},\x0a','(((.+)+)+)+$','getProp','__esModule','`,\x20type:\x20\x22number\x22\x20},\x0a','path','longtext','不能为空`,\x20required:\x20','join','double'];a20_0x28a6=function(){return _0x57c94b;};return a20_0x28a6();}const a20_0x288200=a20_0x396f;(function(_0x2df1f8,_0x2f7d16){const _0x420e8e=a20_0x396f,_0xf0f51c=_0x2df1f8();while(!![]){try{const _0x3d6afa=-parseInt(_0x420e8e(0x17b))/0x1*(parseInt(_0x420e8e(0x19b))/0x2)+parseInt(_0x420e8e(0x193))/0x3*(parseInt(_0x420e8e(0x196))/0x4)+-parseInt(_0x420e8e(0x16c))/0x5*(-parseInt(_0x420e8e(0x18c))/0x6)+parseInt(_0x420e8e(0x170))/0x7+-parseInt(_0x420e8e(0x17a))/0x8+-parseInt(_0x420e8e(0x195))/0x9*(-parseInt(_0x420e8e(0x190))/0xa)+-parseInt(_0x420e8e(0x1a7))/0xb*(parseInt(_0x420e8e(0x168))/0xc);if(_0x3d6afa===_0x2f7d16)break;else _0xf0f51c['push'](_0xf0f51c['shift']());}catch(_0x25b489){_0xf0f51c['push'](_0xf0f51c['shift']());}}}(a20_0x28a6,0x36625));const a20_0x3f2698=(function(){let _0x2092d8=!![];return function(_0x104858,_0x30244e){const _0x544140=_0x2092d8?function(){const _0x4bded6=a20_0x396f;if(_0x30244e){const _0x86830=_0x30244e[_0x4bded6(0x1aa)](_0x104858,arguments);return _0x30244e=null,_0x86830;}}:function(){};return _0x2092d8=![],_0x544140;};}()),a20_0x38bac3=a20_0x3f2698(this,function(){const _0x326b78=a20_0x396f;return a20_0x38bac3['toString']()[_0x326b78(0x18e)](_0x326b78(0x19d))[_0x326b78(0x16d)]()['constructor'](a20_0x38bac3)[_0x326b78(0x18e)](_0x326b78(0x19d));});a20_0x38bac3();'use strict';Object[a20_0x288200(0x181)](exports,a20_0x288200(0x19f),{'value':!![]}),exports[a20_0x288200(0x18f)]=default_1;const fs=require('fs'),path=require(a20_0x288200(0x1a1)),helper_1=require('../helper');function a20_0x396f(_0x2c6860,_0x1831f9){const _0x26824a=a20_0x28a6();return a20_0x396f=function(_0x38bac3,_0x3f2698){_0x38bac3=_0x38bac3-0x168;let _0x28a6e9=_0x26824a[_0x38bac3];return _0x28a6e9;},a20_0x396f(_0x2c6860,_0x1831f9);}async function default_1({tablestartUpShort:_0x435e01,tablestartUpShort2:_0x5df8e8,moduleName:_0x820592,controller:_0x1146e9,apporbasic:_0x4b14c3,Fields:_0x54b700}){const _0x457067=a20_0x288200;let _0x288a7d=process['cwd']()+_0x457067(0x180)+(typeof _0x1146e9==_0x457067(0x182)?'/'+_0x1146e9:'');_0x820592?_0x288a7d=_0x288a7d+(_0x457067(0x199)+_0x820592+'/'+_0x5df8e8+'/interface.ts'):_0x288a7d=_0x288a7d+(_0x457067(0x17e)+_0x4b14c3+'/'+_0x5df8e8+_0x457067(0x187));const _0x45c25e=_0x457067(0x1ab)+_0x435e01+_0x457067(0x16a)+_0x435e01+'EditRule\x20=\x20{\x0a%EditRuleColumn%\x0a}',_0x23d766=await createAddRuleColumn({'Fields':_0x54b700}),_0xb3fdb1=await createEditRuleColumn({'Fields':_0x54b700});!fs[_0x457067(0x186)](path[_0x457067(0x184)](_0x288a7d))&&fs['mkdirSync'](path[_0x457067(0x184)](_0x288a7d),{'recursive':!![]}),fs[_0x457067(0x1b1)](_0x288a7d,_0x45c25e[_0x457067(0x1a9)](_0x457067(0x171),_0x23d766)[_0x457067(0x1a9)]('%EditRuleColumn%',_0xb3fdb1),_0x457067(0x19a));}async function createAddRuleColumn({Fields:_0x2e6c3f}){const _0x4cd3b9=a20_0x288200;let _0x46b848='';for(let _0x19a502 in _0x2e6c3f){let _0x2521e1=_0x2e6c3f[_0x19a502],_0xec6d8c=(0x0,helper_1[_0x4cd3b9(0x19e)])(_0x2521e1['Type']);if(_0x2521e1[_0x4cd3b9(0x18a)]==_0x4cd3b9(0x1a6)||_0x2521e1[_0x4cd3b9(0x18a)]==_0x4cd3b9(0x1ae)||_0x2521e1['Field']==_0x4cd3b9(0x191)||_0x2521e1[_0x4cd3b9(0x18a)]==_0x4cd3b9(0x175))continue;if(['text',_0x4cd3b9(0x1a2),_0x4cd3b9(0x17f)][_0x4cd3b9(0x174)](_0xec6d8c)!=-0x1)_0x46b848+=_0x4cd3b9(0x183)+_0x2521e1[_0x4cd3b9(0x192)]+'\x0a',_0x46b848+=_0x4cd3b9(0x178)+_0x2521e1[_0x4cd3b9(0x18a)]+':\x20[\x0a',_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)&&(_0x46b848+=_0x4cd3b9(0x189)+_0x2521e1['Comment']+_0x4cd3b9(0x1a3)+(_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)?_0x4cd3b9(0x1a8):_0x4cd3b9(0x1ac))+_0x4cd3b9(0x179)),_0x46b848+='\x20\x20\x20\x20],\x0a\x0a';else{if(['float','double',_0x4cd3b9(0x1b0),_0x4cd3b9(0x176)]['indexOf'](_0xec6d8c)!=-0x1)_0x46b848+=_0x4cd3b9(0x183)+_0x2521e1[_0x4cd3b9(0x192)]+'\x0a',_0x46b848+='\x20\x20\x20\x20'+_0x2521e1['Field']+_0x4cd3b9(0x1af),_0x46b848+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x2521e1[_0x4cd3b9(0x192)]+_0x4cd3b9(0x1a0),_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)&&(_0x46b848+=_0x4cd3b9(0x189)+_0x2521e1[_0x4cd3b9(0x192)]+_0x4cd3b9(0x1a3)+(_0x2521e1[_0x4cd3b9(0x16e)]!='YES'?'false':'true')+_0x4cd3b9(0x179)),_0x46b848+=_0x4cd3b9(0x1ad);else{if(['tinyint']['indexOf'](_0xec6d8c)!=-0x1)_0x46b848+='\x20\x20\x20\x20//\x20'+_0x2521e1['Comment']+'\x0a',_0x46b848+=_0x4cd3b9(0x178)+_0x2521e1['Field']+':\x20[\x0a',_0x46b848+=_0x4cd3b9(0x16b)+_0x2521e1[_0x4cd3b9(0x192)]+_0x4cd3b9(0x1a0),_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)&&(_0x46b848+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x2521e1['Comment']+_0x4cd3b9(0x1a3)+(_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)?_0x4cd3b9(0x1a8):_0x4cd3b9(0x1ac))+_0x4cd3b9(0x179)),_0x46b848+=_0x4cd3b9(0x1ad);else{if(_0xec6d8c==_0x4cd3b9(0x188))_0x46b848+='\x20\x20\x20\x20//\x20'+_0x2521e1[_0x4cd3b9(0x192)]+'\x0a',_0x46b848+=_0x4cd3b9(0x178)+_0x2521e1[_0x4cd3b9(0x18a)]+':\x20[\x0a',_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)&&(_0x46b848+=_0x4cd3b9(0x189)+_0x2521e1['Comment']+_0x4cd3b9(0x1a3)+(_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)?_0x4cd3b9(0x1a8):_0x4cd3b9(0x1ac))+_0x4cd3b9(0x179)),_0x46b848+=_0x4cd3b9(0x1ad);else{if(_0xec6d8c==_0x4cd3b9(0x16f)){let _0x4abf66=(0x0,helper_1[_0x4cd3b9(0x172)])(_0x2521e1['Type']);_0x46b848+=_0x4cd3b9(0x183)+_0x2521e1[_0x4cd3b9(0x192)]+'\x0a',_0x46b848+=_0x4cd3b9(0x178)+_0x2521e1['Field']+_0x4cd3b9(0x1af),_0x46b848+=_0x4cd3b9(0x16b)+_0x2521e1[_0x4cd3b9(0x192)]+_0x4cd3b9(0x17d)+_0x4abf66[_0x4cd3b9(0x1a4)]('\x27,\x20\x27')+_0x4cd3b9(0x19c),_0x2521e1['Null']!='YES'&&(_0x46b848+=_0x4cd3b9(0x189)+_0x2521e1[_0x4cd3b9(0x192)]+_0x4cd3b9(0x1a3)+(_0x2521e1['Null']!='YES'?'false':_0x4cd3b9(0x1ac))+_0x4cd3b9(0x179)),_0x46b848+='\x20\x20\x20\x20],\x0a\x0a';}else[_0x4cd3b9(0x185),_0x4cd3b9(0x197),_0x4cd3b9(0x17c)][_0x4cd3b9(0x174)](_0xec6d8c)>-0x1?(_0x46b848+='\x20\x20\x20\x20//\x20'+_0x2521e1[_0x4cd3b9(0x192)]+'\x0a',_0x46b848+='\x20\x20\x20\x20'+_0x2521e1[_0x4cd3b9(0x18a)]+':\x20[\x0a',_0x46b848+=_0x4cd3b9(0x16b)+_0x2521e1['Comment']+_0x4cd3b9(0x173),_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)&&(_0x46b848+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x2521e1[_0x4cd3b9(0x192)]+_0x4cd3b9(0x1a3)+(_0x2521e1['Null']!=_0x4cd3b9(0x18b)?'false':_0x4cd3b9(0x1ac))+_0x4cd3b9(0x179)),_0x46b848+=_0x4cd3b9(0x1ad)):(_0x46b848+=_0x4cd3b9(0x183)+_0x2521e1[_0x4cd3b9(0x192)]+'\x0a',_0x46b848+='\x20\x20\x20\x20'+_0x2521e1['Field']+_0x4cd3b9(0x1af),_0x46b848+=_0x4cd3b9(0x16b)+_0x2521e1['Comment']+_0x4cd3b9(0x198),_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)&&(_0x46b848+=_0x4cd3b9(0x189)+_0x2521e1[_0x4cd3b9(0x192)]+'不能为空`,\x20required:\x20'+(_0x2521e1[_0x4cd3b9(0x16e)]!=_0x4cd3b9(0x18b)?_0x4cd3b9(0x1a8):_0x4cd3b9(0x1ac))+_0x4cd3b9(0x179)),_0x46b848+='\x20\x20\x20\x20],\x0a\x0a');}}}}}return _0x46b848;}async function createEditRuleColumn({Fields:_0x2c989f}){const _0xf52521=a20_0x288200;let _0x2d8ec5='';for(let _0x200b12 in _0x2c989f){let _0x572af3=_0x2c989f[_0x200b12],_0x569f01=(0x0,helper_1[_0xf52521(0x19e)])(_0x572af3[_0xf52521(0x177)]);if(_0x572af3[_0xf52521(0x18a)]=='displayorder'||_0x572af3['Field']==_0xf52521(0x1ae)||_0x572af3[_0xf52521(0x18a)]=='updated_at'||_0x572af3[_0xf52521(0x18a)]==_0xf52521(0x175))continue;if([_0xf52521(0x194),_0xf52521(0x1a2),_0xf52521(0x17f)][_0xf52521(0x174)](_0x569f01)!=-0x1)_0x2d8ec5+=_0xf52521(0x183)+_0x572af3[_0xf52521(0x192)]+'\x0a',_0x2d8ec5+=_0xf52521(0x178)+_0x572af3[_0xf52521(0x18a)]+_0xf52521(0x1af),_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)&&(_0x2d8ec5+=_0xf52521(0x189)+_0x572af3['Comment']+_0xf52521(0x1a3)+(_0x572af3['Null']!=_0xf52521(0x18b)?_0xf52521(0x1a8):_0xf52521(0x1ac))+_0xf52521(0x179)),_0x2d8ec5+=_0xf52521(0x1ad);else{if([_0xf52521(0x169),_0xf52521(0x1a5),_0xf52521(0x1b0),_0xf52521(0x176)][_0xf52521(0x174)](_0x569f01)!=-0x1)_0x2d8ec5+=_0xf52521(0x183)+_0x572af3[_0xf52521(0x192)]+'\x0a',_0x2d8ec5+='\x20\x20\x20\x20'+_0x572af3['Field']+_0xf52521(0x1af),_0x2d8ec5+=_0xf52521(0x16b)+_0x572af3[_0xf52521(0x192)]+'`,\x20type:\x20\x22number\x22\x20},\x0a',_0x572af3['Null']!=_0xf52521(0x18b)&&(_0x2d8ec5+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x572af3[_0xf52521(0x192)]+_0xf52521(0x1a3)+(_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)?_0xf52521(0x1a8):_0xf52521(0x1ac))+_0xf52521(0x179)),_0x2d8ec5+='\x20\x20\x20\x20],\x0a\x0a';else{if(['tinyint']['indexOf'](_0x569f01)!=-0x1)_0x2d8ec5+='\x20\x20\x20\x20//\x20'+_0x572af3[_0xf52521(0x192)]+'\x0a',_0x2d8ec5+=_0xf52521(0x178)+_0x572af3[_0xf52521(0x18a)]+_0xf52521(0x1af),_0x2d8ec5+=_0xf52521(0x16b)+_0x572af3[_0xf52521(0x192)]+_0xf52521(0x1a0),_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)&&(_0x2d8ec5+=_0xf52521(0x189)+_0x572af3[_0xf52521(0x192)]+_0xf52521(0x1a3)+(_0x572af3['Null']!=_0xf52521(0x18b)?_0xf52521(0x1a8):_0xf52521(0x1ac))+_0xf52521(0x179)),_0x2d8ec5+=_0xf52521(0x1ad);else{if(_0x569f01==_0xf52521(0x188))_0x2d8ec5+=_0xf52521(0x183)+_0x572af3['Comment']+'\x0a',_0x2d8ec5+='\x20\x20\x20\x20'+_0x572af3['Field']+':\x20[\x0a',_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)&&(_0x2d8ec5+=_0xf52521(0x189)+_0x572af3[_0xf52521(0x192)]+_0xf52521(0x1a3)+(_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)?_0xf52521(0x1a8):_0xf52521(0x1ac))+'\x20},\x0a'),_0x2d8ec5+='\x20\x20\x20\x20],\x0a\x0a';else{if(_0x569f01==_0xf52521(0x16f)){let _0x2b4838=(0x0,helper_1[_0xf52521(0x172)])(_0x572af3[_0xf52521(0x177)]);_0x2d8ec5+=_0xf52521(0x183)+_0x572af3[_0xf52521(0x192)]+'\x0a',_0x2d8ec5+=_0xf52521(0x178)+_0x572af3[_0xf52521(0x18a)]+_0xf52521(0x1af),_0x2d8ec5+=_0xf52521(0x16b)+_0x572af3[_0xf52521(0x192)]+_0xf52521(0x17d)+_0x2b4838[_0xf52521(0x1a4)](_0xf52521(0x18d))+_0xf52521(0x19c),_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)&&(_0x2d8ec5+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x572af3['Comment']+'不能为空`,\x20required:\x20'+(_0x572af3['Null']!=_0xf52521(0x18b)?_0xf52521(0x1a8):'true')+_0xf52521(0x179)),_0x2d8ec5+=_0xf52521(0x1ad);}else['date','datetime',_0xf52521(0x17c)][_0xf52521(0x174)](_0x569f01)>-0x1?(_0x2d8ec5+=_0xf52521(0x183)+_0x572af3['Comment']+'\x0a',_0x2d8ec5+=_0xf52521(0x178)+_0x572af3['Field']+_0xf52521(0x1af),_0x2d8ec5+=_0xf52521(0x16b)+_0x572af3['Comment']+_0xf52521(0x173),_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)&&(_0x2d8ec5+=_0xf52521(0x189)+_0x572af3['Comment']+_0xf52521(0x1a3)+(_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)?'false':'true')+_0xf52521(0x179)),_0x2d8ec5+=_0xf52521(0x1ad)):(_0x2d8ec5+='\x20\x20\x20\x20//\x20'+_0x572af3[_0xf52521(0x192)]+'\x0a',_0x2d8ec5+=_0xf52521(0x178)+_0x572af3[_0xf52521(0x18a)]+':\x20[\x0a',_0x2d8ec5+=_0xf52521(0x16b)+_0x572af3[_0xf52521(0x192)]+_0xf52521(0x198),_0x572af3[_0xf52521(0x16e)]!=_0xf52521(0x18b)&&(_0x2d8ec5+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x572af3[_0xf52521(0x192)]+_0xf52521(0x1a3)+(_0x572af3['Null']!=_0xf52521(0x18b)?_0xf52521(0x1a8):_0xf52521(0x1ac))+_0xf52521(0x179)),_0x2d8ec5+=_0xf52521(0x1ad));}}}}}return _0x2d8ec5;}
|
|
1
|
+
const a20_0x55b6b4=a20_0x1201;(function(_0x18ffee,_0x3d9116){const _0x4f68c8=a20_0x1201,_0x14589b=_0x18ffee();while(!![]){try{const _0x32bee4=-parseInt(_0x4f68c8(0x97))/0x1+parseInt(_0x4f68c8(0xc1))/0x2*(parseInt(_0x4f68c8(0xb6))/0x3)+parseInt(_0x4f68c8(0xb4))/0x4*(-parseInt(_0x4f68c8(0xb0))/0x5)+-parseInt(_0x4f68c8(0x8f))/0x6*(-parseInt(_0x4f68c8(0xc8))/0x7)+-parseInt(_0x4f68c8(0xc5))/0x8+-parseInt(_0x4f68c8(0x96))/0x9*(-parseInt(_0x4f68c8(0xae))/0xa)+parseInt(_0x4f68c8(0xc6))/0xb;if(_0x32bee4===_0x3d9116)break;else _0x14589b['push'](_0x14589b['shift']());}catch(_0x2ed5ff){_0x14589b['push'](_0x14589b['shift']());}}}(a20_0x3edc,0x4a9f0));const a20_0x1b68b7=(function(){let _0x376b49=!![];return function(_0x11fd2,_0x2cc702){const _0x4cc020=_0x376b49?function(){if(_0x2cc702){const _0x265038=_0x2cc702['apply'](_0x11fd2,arguments);return _0x2cc702=null,_0x265038;}}:function(){};return _0x376b49=![],_0x4cc020;};}()),a20_0x504883=a20_0x1b68b7(this,function(){const _0x503856=a20_0x1201;return a20_0x504883[_0x503856(0xab)]()[_0x503856(0xa4)]('(((.+)+)+)+$')[_0x503856(0xab)]()[_0x503856(0xc2)](a20_0x504883)[_0x503856(0xa4)]('(((.+)+)+)+$');});a20_0x504883();'use strict';Object[a20_0x55b6b4(0x8a)](exports,a20_0x55b6b4(0x94),{'value':!![]});const fs=require('fs'),path=require(a20_0x55b6b4(0xd3)),helper_1=require('../helper');async function default_1({tablestartUpShort:_0x509288,tablestartUpShort2:_0x4066e0,moduleName:_0x2f60c8,controller:_0x3e7159,apporbasic:_0x32a93a,Fields:_0x2429bb}){const _0x155b11=a20_0x55b6b4;let _0x502674=process[_0x155b11(0xb8)]()+'/vue'+(typeof _0x3e7159==_0x155b11(0xcb)?'/'+_0x3e7159:'');_0x2f60c8?_0x502674=_0x502674+('/pages/apps/'+_0x2f60c8+'/'+_0x4066e0+_0x155b11(0x90)):_0x502674=_0x502674+(_0x155b11(0xaa)+_0x32a93a+'/'+_0x4066e0+_0x155b11(0x90));const _0x1b4581=_0x155b11(0xa9)+_0x509288+_0x155b11(0xc9)+_0x509288+_0x155b11(0x9d),_0x2e780b=await createAddRuleColumn({'Fields':_0x2429bb}),_0x5d140b=await createEditRuleColumn({'Fields':_0x2429bb});!fs[_0x155b11(0xbf)](path[_0x155b11(0xb1)](_0x502674))&&fs[_0x155b11(0xb3)](path[_0x155b11(0xb1)](_0x502674),{'recursive':!![]}),fs[_0x155b11(0xba)](_0x502674,_0x1b4581[_0x155b11(0xa8)](_0x155b11(0x9a),_0x2e780b)[_0x155b11(0xa8)](_0x155b11(0xbe),_0x5d140b),_0x155b11(0xac));}function a20_0x3edc(){const _0x3aa226=['3830552qWEQkS','12182544TQgxtI','Field','294YnAmds','AddRule\x20=\x20{\x0a%AddRuleColumn%\x0a}\x0a\x0a/**\x0a\x20*\x20数据修改验证\x0a\x20*\x20**/\x0aexport\x20const\x20','text','string','\x20},\x0a','double','longtext','number','displayorder','json','\x27]\x20},\x0a','path','defineProperty','datetime','mediumtext','join','\x27,\x20\x27','9198uyOfIi','/interface.ts','Type','YES','indexOf','__esModule','Null','2925kxXVBL','377384ktoOLp','getProp','enum','%AddRuleColumn%','date','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的','EditRule\x20=\x20{\x0a%EditRuleColumn%\x0a}','deleted_at','false','Comment','tinyint','default','\x20\x20\x20\x20],\x0a\x0a','search','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`','float','`,\x20type:\x20\x22date\x22\x20},\x0a','replace','\x0a/**\x0a\x20*\x20数据添加验证\x0a\x20*\x20**/\x0aexport\x20const\x20','/pages/','toString','utf-8','updated_at','5470hTiBWi','\x20\x20\x20\x20','2510SsIhIa','dirname',':\x20[\x0a','mkdirSync','2804VOMZpr','created_at','5724bpnoUp','不能为空`,\x20required:\x20','cwd','timestamp','writeFileSync','\x20\x20\x20\x20//\x20','`,\x20type:\x20\x22number\x22\x20},\x0a','getEnum','%EditRuleColumn%','existsSync','decimal','172GMzLZd','constructor','true','`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27'];a20_0x3edc=function(){return _0x3aa226;};return a20_0x3edc();}exports[a20_0x55b6b4(0xa2)]=default_1;async function createAddRuleColumn({Fields:_0x19a91b}){const _0x17ff38=a20_0x55b6b4;let _0x1127dd='';for(let _0x24a8f3 in _0x19a91b){let _0x3db66b=_0x19a91b[_0x24a8f3],_0x570c56=(0x0,helper_1[_0x17ff38(0x98)])(_0x3db66b[_0x17ff38(0x91)]);if(_0x3db66b[_0x17ff38(0xc7)]==_0x17ff38(0xd0)||_0x3db66b[_0x17ff38(0xc7)]==_0x17ff38(0xb5)||_0x3db66b[_0x17ff38(0xc7)]==_0x17ff38(0xad)||_0x3db66b[_0x17ff38(0xc7)]==_0x17ff38(0x9e))continue;if([_0x17ff38(0xca),'longtext',_0x17ff38(0x8c)][_0x17ff38(0x93)](_0x570c56)!=-0x1)_0x1127dd+=_0x17ff38(0xbb)+_0x3db66b[_0x17ff38(0xa0)]+'\x0a',_0x1127dd+=_0x17ff38(0xaf)+_0x3db66b[_0x17ff38(0xc7)]+_0x17ff38(0xb2),_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)&&(_0x1127dd+=_0x17ff38(0xa5)+_0x3db66b['Comment']+_0x17ff38(0xb7)+(_0x3db66b[_0x17ff38(0x95)]!='YES'?'false':_0x17ff38(0xc3))+_0x17ff38(0xcc)),_0x1127dd+=_0x17ff38(0xa3);else{if([_0x17ff38(0xa6),'double',_0x17ff38(0xc0),_0x17ff38(0xcf)][_0x17ff38(0x93)](_0x570c56)!=-0x1)_0x1127dd+=_0x17ff38(0xbb)+_0x3db66b[_0x17ff38(0xa0)]+'\x0a',_0x1127dd+='\x20\x20\x20\x20'+_0x3db66b[_0x17ff38(0xc7)]+':\x20[\x0a',_0x1127dd+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x3db66b[_0x17ff38(0xa0)]+_0x17ff38(0xbc),_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)&&(_0x1127dd+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x3db66b[_0x17ff38(0xa0)]+_0x17ff38(0xb7)+(_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)?_0x17ff38(0x9f):_0x17ff38(0xc3))+_0x17ff38(0xcc)),_0x1127dd+='\x20\x20\x20\x20],\x0a\x0a';else{if(['tinyint']['indexOf'](_0x570c56)!=-0x1)_0x1127dd+=_0x17ff38(0xbb)+_0x3db66b[_0x17ff38(0xa0)]+'\x0a',_0x1127dd+='\x20\x20\x20\x20'+_0x3db66b['Field']+':\x20[\x0a',_0x1127dd+=_0x17ff38(0x9c)+_0x3db66b[_0x17ff38(0xa0)]+_0x17ff38(0xbc),_0x3db66b['Null']!=_0x17ff38(0x92)&&(_0x1127dd+=_0x17ff38(0xa5)+_0x3db66b['Comment']+'不能为空`,\x20required:\x20'+(_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)?_0x17ff38(0x9f):_0x17ff38(0xc3))+'\x20},\x0a'),_0x1127dd+='\x20\x20\x20\x20],\x0a\x0a';else{if(_0x570c56==_0x17ff38(0xd1))_0x1127dd+=_0x17ff38(0xbb)+_0x3db66b[_0x17ff38(0xa0)]+'\x0a',_0x1127dd+='\x20\x20\x20\x20'+_0x3db66b[_0x17ff38(0xc7)]+_0x17ff38(0xb2),_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)&&(_0x1127dd+=_0x17ff38(0xa5)+_0x3db66b[_0x17ff38(0xa0)]+_0x17ff38(0xb7)+(_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)?_0x17ff38(0x9f):'true')+_0x17ff38(0xcc)),_0x1127dd+='\x20\x20\x20\x20],\x0a\x0a';else{if(_0x570c56==_0x17ff38(0x99)){let _0x20ad07=(0x0,helper_1[_0x17ff38(0xbd)])(_0x3db66b[_0x17ff38(0x91)]);_0x1127dd+=_0x17ff38(0xbb)+_0x3db66b[_0x17ff38(0xa0)]+'\x0a',_0x1127dd+='\x20\x20\x20\x20'+_0x3db66b[_0x17ff38(0xc7)]+_0x17ff38(0xb2),_0x1127dd+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x3db66b[_0x17ff38(0xa0)]+_0x17ff38(0xc4)+_0x20ad07[_0x17ff38(0x8d)]('\x27,\x20\x27')+'\x27]\x20},\x0a',_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)&&(_0x1127dd+=_0x17ff38(0xa5)+_0x3db66b[_0x17ff38(0xa0)]+_0x17ff38(0xb7)+(_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)?_0x17ff38(0x9f):'true')+'\x20},\x0a'),_0x1127dd+=_0x17ff38(0xa3);}else['date',_0x17ff38(0x8b),_0x17ff38(0xb9)]['indexOf'](_0x570c56)>-0x1?(_0x1127dd+=_0x17ff38(0xbb)+_0x3db66b[_0x17ff38(0xa0)]+'\x0a',_0x1127dd+=_0x17ff38(0xaf)+_0x3db66b['Field']+_0x17ff38(0xb2),_0x1127dd+=_0x17ff38(0x9c)+_0x3db66b[_0x17ff38(0xa0)]+_0x17ff38(0xa7),_0x3db66b['Null']!=_0x17ff38(0x92)&&(_0x1127dd+=_0x17ff38(0xa5)+_0x3db66b['Comment']+_0x17ff38(0xb7)+(_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)?_0x17ff38(0x9f):_0x17ff38(0xc3))+_0x17ff38(0xcc)),_0x1127dd+=_0x17ff38(0xa3)):(_0x1127dd+=_0x17ff38(0xbb)+_0x3db66b[_0x17ff38(0xa0)]+'\x0a',_0x1127dd+=_0x17ff38(0xaf)+_0x3db66b[_0x17ff38(0xc7)]+_0x17ff38(0xb2),_0x1127dd+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x3db66b['Comment']+'`,\x20type:\x20\x22string\x22\x20},\x0a',_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)&&(_0x1127dd+=_0x17ff38(0xa5)+_0x3db66b['Comment']+_0x17ff38(0xb7)+(_0x3db66b[_0x17ff38(0x95)]!=_0x17ff38(0x92)?_0x17ff38(0x9f):'true')+'\x20},\x0a'),_0x1127dd+=_0x17ff38(0xa3));}}}}}return _0x1127dd;}function a20_0x1201(_0x161bcc,_0x195b8c){const _0x2b6c5e=a20_0x3edc();return a20_0x1201=function(_0x504883,_0x1b68b7){_0x504883=_0x504883-0x8a;let _0x3edc87=_0x2b6c5e[_0x504883];return _0x3edc87;},a20_0x1201(_0x161bcc,_0x195b8c);}async function createEditRuleColumn({Fields:_0x4e8e19}){const _0x568f3f=a20_0x55b6b4;let _0x3836ec='';for(let _0x5caf4f in _0x4e8e19){let _0x338835=_0x4e8e19[_0x5caf4f],_0x5ae6cb=(0x0,helper_1[_0x568f3f(0x98)])(_0x338835[_0x568f3f(0x91)]);if(_0x338835[_0x568f3f(0xc7)]==_0x568f3f(0xd0)||_0x338835[_0x568f3f(0xc7)]==_0x568f3f(0xb5)||_0x338835[_0x568f3f(0xc7)]=='updated_at'||_0x338835['Field']=='deleted_at')continue;if(['text',_0x568f3f(0xce),_0x568f3f(0x8c)][_0x568f3f(0x93)](_0x5ae6cb)!=-0x1)_0x3836ec+=_0x568f3f(0xbb)+_0x338835[_0x568f3f(0xa0)]+'\x0a',_0x3836ec+='\x20\x20\x20\x20'+_0x338835[_0x568f3f(0xc7)]+':\x20[\x0a',_0x338835[_0x568f3f(0x95)]!=_0x568f3f(0x92)&&(_0x3836ec+=_0x568f3f(0xa5)+_0x338835[_0x568f3f(0xa0)]+_0x568f3f(0xb7)+(_0x338835[_0x568f3f(0x95)]!=_0x568f3f(0x92)?'false':_0x568f3f(0xc3))+'\x20},\x0a'),_0x3836ec+='\x20\x20\x20\x20],\x0a\x0a';else{if(['float',_0x568f3f(0xcd),_0x568f3f(0xc0),_0x568f3f(0xcf)][_0x568f3f(0x93)](_0x5ae6cb)!=-0x1)_0x3836ec+='\x20\x20\x20\x20//\x20'+_0x338835[_0x568f3f(0xa0)]+'\x0a',_0x3836ec+=_0x568f3f(0xaf)+_0x338835[_0x568f3f(0xc7)]+':\x20[\x0a',_0x3836ec+=_0x568f3f(0x9c)+_0x338835[_0x568f3f(0xa0)]+_0x568f3f(0xbc),_0x338835[_0x568f3f(0x95)]!='YES'&&(_0x3836ec+=_0x568f3f(0xa5)+_0x338835['Comment']+_0x568f3f(0xb7)+(_0x338835[_0x568f3f(0x95)]!='YES'?_0x568f3f(0x9f):'true')+_0x568f3f(0xcc)),_0x3836ec+=_0x568f3f(0xa3);else{if([_0x568f3f(0xa1)][_0x568f3f(0x93)](_0x5ae6cb)!=-0x1)_0x3836ec+=_0x568f3f(0xbb)+_0x338835[_0x568f3f(0xa0)]+'\x0a',_0x3836ec+='\x20\x20\x20\x20'+_0x338835['Field']+_0x568f3f(0xb2),_0x3836ec+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x338835[_0x568f3f(0xa0)]+_0x568f3f(0xbc),_0x338835['Null']!=_0x568f3f(0x92)&&(_0x3836ec+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x338835[_0x568f3f(0xa0)]+_0x568f3f(0xb7)+(_0x338835[_0x568f3f(0x95)]!=_0x568f3f(0x92)?_0x568f3f(0x9f):_0x568f3f(0xc3))+_0x568f3f(0xcc)),_0x3836ec+=_0x568f3f(0xa3);else{if(_0x5ae6cb==_0x568f3f(0xd1))_0x3836ec+='\x20\x20\x20\x20//\x20'+_0x338835[_0x568f3f(0xa0)]+'\x0a',_0x3836ec+=_0x568f3f(0xaf)+_0x338835[_0x568f3f(0xc7)]+':\x20[\x0a',_0x338835[_0x568f3f(0x95)]!=_0x568f3f(0x92)&&(_0x3836ec+=_0x568f3f(0xa5)+_0x338835[_0x568f3f(0xa0)]+'不能为空`,\x20required:\x20'+(_0x338835[_0x568f3f(0x95)]!=_0x568f3f(0x92)?_0x568f3f(0x9f):_0x568f3f(0xc3))+_0x568f3f(0xcc)),_0x3836ec+=_0x568f3f(0xa3);else{if(_0x5ae6cb==_0x568f3f(0x99)){let _0x1f1d79=(0x0,helper_1[_0x568f3f(0xbd)])(_0x338835['Type']);_0x3836ec+=_0x568f3f(0xbb)+_0x338835['Comment']+'\x0a',_0x3836ec+=_0x568f3f(0xaf)+_0x338835[_0x568f3f(0xc7)]+_0x568f3f(0xb2),_0x3836ec+=_0x568f3f(0x9c)+_0x338835[_0x568f3f(0xa0)]+'`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27'+_0x1f1d79['join'](_0x568f3f(0x8e))+_0x568f3f(0xd2),_0x338835['Null']!=_0x568f3f(0x92)&&(_0x3836ec+=_0x568f3f(0xa5)+_0x338835[_0x568f3f(0xa0)]+_0x568f3f(0xb7)+(_0x338835[_0x568f3f(0x95)]!=_0x568f3f(0x92)?'false':'true')+_0x568f3f(0xcc)),_0x3836ec+='\x20\x20\x20\x20],\x0a\x0a';}else[_0x568f3f(0x9b),_0x568f3f(0x8b),_0x568f3f(0xb9)][_0x568f3f(0x93)](_0x5ae6cb)>-0x1?(_0x3836ec+=_0x568f3f(0xbb)+_0x338835[_0x568f3f(0xa0)]+'\x0a',_0x3836ec+=_0x568f3f(0xaf)+_0x338835[_0x568f3f(0xc7)]+':\x20[\x0a',_0x3836ec+=_0x568f3f(0x9c)+_0x338835[_0x568f3f(0xa0)]+_0x568f3f(0xa7),_0x338835[_0x568f3f(0x95)]!='YES'&&(_0x3836ec+=_0x568f3f(0xa5)+_0x338835['Comment']+'不能为空`,\x20required:\x20'+(_0x338835['Null']!=_0x568f3f(0x92)?_0x568f3f(0x9f):_0x568f3f(0xc3))+_0x568f3f(0xcc)),_0x3836ec+='\x20\x20\x20\x20],\x0a\x0a'):(_0x3836ec+='\x20\x20\x20\x20//\x20'+_0x338835[_0x568f3f(0xa0)]+'\x0a',_0x3836ec+='\x20\x20\x20\x20'+_0x338835[_0x568f3f(0xc7)]+_0x568f3f(0xb2),_0x3836ec+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x338835[_0x568f3f(0xa0)]+'`,\x20type:\x20\x22string\x22\x20},\x0a',_0x338835[_0x568f3f(0x95)]!=_0x568f3f(0x92)&&(_0x3836ec+=_0x568f3f(0xa5)+_0x338835[_0x568f3f(0xa0)]+_0x568f3f(0xb7)+(_0x338835['Null']!='YES'?'false':_0x568f3f(0xc3))+_0x568f3f(0xcc)),_0x3836ec+=_0x568f3f(0xa3));}}}}}return _0x3836ec;}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default function ({ tablestartUpShort, tablestartUpShort2, moduleName, controller, Comment, apporbasic, Primary }: {
|
|
2
|
-
tablestartUpShort: any;
|
|
3
|
-
tablestartUpShort2: any;
|
|
4
|
-
moduleName: any;
|
|
5
|
-
controller: any;
|
|
6
|
-
Comment: any;
|
|
7
|
-
apporbasic: any;
|
|
8
|
-
Primary: any;
|
|
9
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUpShort, tablestartUpShort2, moduleName, controller, Comment, apporbasic, Primary }: {
|
|
2
|
+
tablestartUpShort: any;
|
|
3
|
+
tablestartUpShort2: any;
|
|
4
|
+
moduleName: any;
|
|
5
|
+
controller: any;
|
|
6
|
+
Comment: any;
|
|
7
|
+
apporbasic: any;
|
|
8
|
+
Primary: any;
|
|
9
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21_0x57db17=a21_0x1c36;(function(_0x16bca2,_0x1ea4ec){const _0x27d4e8=a21_0x1c36,_0x2434aa=_0x16bca2();while(!![]){try{const _0x18a231=-parseInt(_0x27d4e8(0x136))/0x1+parseInt(_0x27d4e8(0x140))/0x2+-parseInt(_0x27d4e8(0x148))/0x3+parseInt(_0x27d4e8(0x121))/0x4+parseInt(_0x27d4e8(0x12b))/0x5*(-parseInt(_0x27d4e8(0x13f))/0x6)+-parseInt(_0x27d4e8(0x12f))/0x7+parseInt(_0x27d4e8(0x137))/0x8;if(_0x18a231===_0x1ea4ec)break;else _0x2434aa['push'](_0x2434aa['shift']());}catch(_0x274b61){_0x2434aa['push'](_0x2434aa['shift']());}}}(a21_0x108a,0x63367));function a21_0x1c36(_0x3af16e,_0x485819){const _0x1dbfd1=a21_0x108a();return a21_0x1c36=function(_0x567e7e,_0x19e1f6){_0x567e7e=_0x567e7e-0x11c;let _0x108aa4=_0x1dbfd1[_0x567e7e];return _0x108aa4;},a21_0x1c36(_0x3af16e,_0x485819);}const a21_0x19e1f6=(function(){let _0x19402d=!![];return function(_0x324225,_0xee1c68){const _0x4e3ea8=_0x19402d?function(){const _0x164847=a21_0x1c36;if(_0xee1c68){const _0x27a813=_0xee1c68[_0x164847(0x14f)](_0x324225,arguments);return _0xee1c68=null,_0x27a813;}}:function(){};return _0x19402d=![],_0x4e3ea8;};}()),a21_0x567e7e=a21_0x19e1f6(this,function(){const _0x1c269a=a21_0x1c36;return a21_0x567e7e['toString']()[_0x1c269a(0x143)](_0x1c269a(0x11c))[_0x1c269a(0x126)]()[_0x1c269a(0x133)](a21_0x567e7e)[_0x1c269a(0x143)](_0x1c269a(0x11c));});a21_0x567e7e();'use strict';Object[a21_0x57db17(0x146)](exports,a21_0x57db17(0x13b),{'value':!![]});const fs=require('fs'),path_1=require('path'),helper_1=require(a21_0x57db17(0x142));function a21_0x108a(){const _0x28416b=['1154400TeFIyj','../','writeFileSync','/apis/apps/','\x20\x20\x20\x20return\x20request(`GET`,\x20`','toString','cwd','string','import\x20{\x20request\x20}\x20from\x20\x27','}`,\x20params)\x0a','5euucrh','Field','@修改\x0a','export\x20function\x20','4610242vjKwSW','mkdirSync','/remove`,\x20params)\x0a','text','constructor','.ts','/edit/${','299502lpqoFz','16354360YTuarS','dirname','List(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','Edit(','__esModule','\x20\x20\x20\x20return\x20request(`POST`,\x20`','/add`,\x20params)\x0a','@添加\x0a','4872138fJWAtD','280590ndHfiW','@列表\x0a','../helper','search','}\x0a\x0a','Detail(','defineProperty','Type','890052uXcPyt','mediumtext','//\x20','/apis/','}`)\x0a','@删除\x0a','/detail/${','apply','/vue','(((.+)+)+)+$','getProp','Add(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','utf-8','/list`,\x20params)\x0a'];a21_0x108a=function(){return _0x28416b;};return a21_0x108a();}async function default_1({tablestartUpShort:_0x30516b,tablestartUpShort2:_0x1c0c62,moduleName:_0x4621b6,controller:_0x332178,Comment:_0x4528f4,apporbasic:_0x54b227,Primary:_0x2f1833}){const _0x84b0ab=a21_0x57db17;let _0x403623=process[_0x84b0ab(0x127)]()+_0x84b0ab(0x150)+(typeof _0x332178==_0x84b0ab(0x128)?'/'+_0x332178:'');_0x4621b6?_0x403623=_0x403623+(_0x84b0ab(0x124)+_0x4621b6+'/'+_0x30516b+'.ts'):_0x403623=_0x403623+(_0x84b0ab(0x14b)+_0x54b227+'/'+_0x30516b+_0x84b0ab(0x134));if(!fs['existsSync'](_0x403623)){const _0x2bf82b=[_0x84b0ab(0x132),_0x84b0ab(0x149),_0x84b0ab(0x128)]['indexOf']((0x0,helper_1[_0x84b0ab(0x11d)])(_0x2f1833[_0x84b0ab(0x147)]))==-0x1,_0x58b443=''+(typeof _0x332178=='string'?_0x332178+'/':'')+(_0x4621b6?_0x4621b6+'/':'')+_0x1c0c62;let _0x4ad822=_0x84b0ab(0x129)+(_0x4621b6?'../../':_0x84b0ab(0x122))+'request\x27;\x0a\x0a';_0x4ad822+='//\x20'+_0x4528f4+'@详情\x0a',_0x4ad822+='export\x20function\x20'+_0x30516b+_0x84b0ab(0x145)+_0x2f1833[_0x84b0ab(0x12c)]+':\x20'+(_0x2bf82b?'number':_0x84b0ab(0x128))+')\x20{\x0a',_0x4ad822+=_0x84b0ab(0x125)+_0x58b443+_0x84b0ab(0x14e)+_0x2f1833[_0x84b0ab(0x12c)]+_0x84b0ab(0x14c),_0x4ad822+=_0x84b0ab(0x144),_0x4ad822+=_0x84b0ab(0x14a)+_0x4528f4+_0x84b0ab(0x13e),_0x4ad822+=_0x84b0ab(0x12e)+_0x30516b+_0x84b0ab(0x11e),_0x4ad822+=_0x84b0ab(0x13c)+_0x58b443+_0x84b0ab(0x13d),_0x4ad822+=_0x84b0ab(0x144),_0x4ad822+=_0x84b0ab(0x14a)+_0x4528f4+_0x84b0ab(0x12d),_0x4ad822+='export\x20function\x20'+_0x30516b+_0x84b0ab(0x13a)+_0x2f1833['Field']+':\x20'+(_0x2bf82b?'number':'string')+',\x20params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a',_0x4ad822+=_0x84b0ab(0x13c)+_0x58b443+_0x84b0ab(0x135)+_0x2f1833['Field']+_0x84b0ab(0x12a),_0x4ad822+=_0x84b0ab(0x144),_0x4ad822+=_0x84b0ab(0x14a)+_0x4528f4+_0x84b0ab(0x141),_0x4ad822+=_0x84b0ab(0x12e)+_0x30516b+_0x84b0ab(0x139),_0x4ad822+=_0x84b0ab(0x125)+_0x58b443+_0x84b0ab(0x120),_0x4ad822+='}\x0a\x0a',_0x4ad822+=_0x84b0ab(0x14a)+_0x4528f4+_0x84b0ab(0x14d),_0x4ad822+='export\x20function\x20'+_0x30516b+'Remove(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a',_0x4ad822+='\x20\x20\x20\x20return\x20request(`POST`,\x20`'+_0x58b443+_0x84b0ab(0x131),_0x4ad822+=_0x84b0ab(0x144),fs[_0x84b0ab(0x130)]((0x0,path_1[_0x84b0ab(0x138)])(_0x403623),{'recursive':!![]}),fs[_0x84b0ab(0x123)](_0x403623,_0x4ad822,_0x84b0ab(0x11f));}}exports['default']=default_1;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ({ tablestartUpShort2, controller, moduleName, Comment, apporbasic, vuedialog }: {
|
|
2
|
-
tablestartUpShort2: any;
|
|
3
|
-
controller: any;
|
|
4
|
-
moduleName: any;
|
|
5
|
-
Comment: any;
|
|
6
|
-
apporbasic: any;
|
|
7
|
-
vuedialog: any;
|
|
8
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUpShort2, controller, moduleName, Comment, apporbasic, vuedialog }: {
|
|
2
|
+
tablestartUpShort2: any;
|
|
3
|
+
controller: any;
|
|
4
|
+
moduleName: any;
|
|
5
|
+
Comment: any;
|
|
6
|
+
apporbasic: any;
|
|
7
|
+
vuedialog: any;
|
|
8
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x2f849e=a22_0x1849;(function(_0xd5861a,_0x4a2331){const _0x3e4e4b=a22_0x1849,_0x4b00f0=_0xd5861a();while(!![]){try{const _0x5284e5=-parseInt(_0x3e4e4b(0x14f))/0x1*(parseInt(_0x3e4e4b(0x16d))/0x2)+-parseInt(_0x3e4e4b(0x175))/0x3*(-parseInt(_0x3e4e4b(0x14c))/0x4)+-parseInt(_0x3e4e4b(0x15c))/0x5+-parseInt(_0x3e4e4b(0x16b))/0x6*(-parseInt(_0x3e4e4b(0x156))/0x7)+-parseInt(_0x3e4e4b(0x14a))/0x8+parseInt(_0x3e4e4b(0x153))/0x9*(parseInt(_0x3e4e4b(0x160))/0xa)+-parseInt(_0x3e4e4b(0x179))/0xb*(-parseInt(_0x3e4e4b(0x151))/0xc);if(_0x5284e5===_0x4a2331)break;else _0x4b00f0['push'](_0x4b00f0['shift']());}catch(_0x15b0bb){_0x4b00f0['push'](_0x4b00f0['shift']());}}}(a22_0x1a40,0x3d09f));const a22_0x357e4a=(function(){let _0x1ae009=!![];return function(_0xeeef16,_0x12626a){const _0xb5c41=_0x1ae009?function(){const _0x2230ae=a22_0x1849;if(_0x12626a){const _0x40c5ca=_0x12626a[_0x2230ae(0x164)](_0xeeef16,arguments);return _0x12626a=null,_0x40c5ca;}}:function(){};return _0x1ae009=![],_0xb5c41;};}()),a22_0x30a44d=a22_0x357e4a(this,function(){const _0x324452=a22_0x1849;return a22_0x30a44d[_0x324452(0x172)]()['search']('(((.+)+)+)+$')[_0x324452(0x172)]()['constructor'](a22_0x30a44d)[_0x324452(0x176)](_0x324452(0x152));});a22_0x30a44d();'use strict';Object[a22_0x2f849e(0x177)](exports,a22_0x2f849e(0x161),{'value':!![]});const fs=require('fs'),path_1=require('path');function a22_0x1a40(){const _0x5166e9=['<script\x20lang=\x22ts\x22\x20setup>\x0a','2877292IAJlvu','3483560qxjZnA','/pages/','4vqPcXB','/\x22\x20:menus=\x22menus\x22>\x0a\x0a','\x20\x20\x20\x20])\x0a','17470JSuOmU','\x20\x20\x20\x20const\x20menus\x20=\x20ref([\x0a','24shfYwC','(((.+)+)+)+$','9bCbFqw','string','default','7rOvkCm','//\x20add\x20menu\x20here','</template>\x0a\x0a','cwd','replace','/list','1895945TRBTjp','/apps-','existsSync','/pages/apps/','2400850kAKQMq','__esModule','{title:\x20\x22','readFileSync','apply',',\x20path:\x20\x22','mkdirSync','indexOf','padEnd','utf-8','\x20\x20\x20\x20</page-layout>\x0a','1350114UicYaC','<template>\x0a','34KSMNDQ','writeFileSync','/layout.vue',',\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here','</script>\x0a\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here\x0a','\x20\x20\x20\x20<page-layout\x20title=\x22未设置\x22\x20navbar=\x22/apps-','1120173KbGWeF','search','defineProperty'];a22_0x1a40=function(){return _0x5166e9;};return a22_0x1a40();}async function default_1({tablestartUpShort2:_0x489986,controller:_0x5b15d3,moduleName:_0x322501,Comment:_0x2a3257,apporbasic:_0x29d087,vuedialog:_0x4c1d0c}){const _0x522466=a22_0x2f849e;let _0xfe83a5=process[_0x522466(0x159)]()+'/vue'+(typeof _0x5b15d3==_0x522466(0x154)?'/'+_0x5b15d3:'');_0x322501?_0xfe83a5=_0xfe83a5+(_0x522466(0x15f)+_0x322501+_0x522466(0x16f)):_0xfe83a5=_0xfe83a5+(_0x522466(0x14b)+_0x29d087+_0x522466(0x16f));await createLayout(_0xfe83a5,{'moduleName':_0x322501});const _0x58fe8c=fs[_0x522466(0x163)](_0xfe83a5,_0x522466(0x169)),_0x4f3240=_0x522466(0x162)+(_0x2a3257+'\x22')[_0x522466(0x168)](0x14)+_0x522466(0x165)+(''+(typeof _0x322501==_0x522466(0x154)?_0x522466(0x15d)+_0x322501+'/':'/'+_0x29d087+'/')+_0x489986+(!_0x4c1d0c?_0x522466(0x15b):'')+'\x22')[_0x522466(0x168)](0x14)+'}';_0x58fe8c[_0x522466(0x167)](_0x4f3240)==-0x1&&fs[_0x522466(0x16e)](_0xfe83a5,_0x58fe8c[_0x522466(0x15a)](_0x522466(0x157),_0x4f3240+_0x522466(0x170)));}function a22_0x1849(_0x260b74,_0x2fe5e9){const _0x1dbfb4=a22_0x1a40();return a22_0x1849=function(_0x30a44d,_0x357e4a){_0x30a44d=_0x30a44d-0x14a;let _0x1a4003=_0x1dbfb4[_0x30a44d];return _0x1a4003;},a22_0x1849(_0x260b74,_0x2fe5e9);}exports[a22_0x2f849e(0x155)]=default_1;async function createLayout(_0x5d0833,{moduleName:_0x41c2eb}){const _0x38f9fa=a22_0x2f849e;if(!fs[_0x38f9fa(0x15e)](_0x5d0833)){let _0x182456=_0x38f9fa(0x16c);_0x182456+=_0x38f9fa(0x174)+_0x41c2eb+_0x38f9fa(0x14d),_0x182456+=_0x38f9fa(0x16a),_0x182456+=_0x38f9fa(0x158),_0x182456+=_0x38f9fa(0x178),_0x182456+=_0x38f9fa(0x150),_0x182456+=_0x38f9fa(0x173),_0x182456+=_0x38f9fa(0x14e),_0x182456+=_0x38f9fa(0x171),fs[_0x38f9fa(0x166)]((0x0,path_1['dirname'])(_0x5d0833),{'recursive':!![]}),fs[_0x38f9fa(0x16e)](_0x5d0833,_0x182456,_0x38f9fa(0x169));}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export default function ({ moduleName, controller, tablestartUpShort, tablestartUpShort2, Primary, Fields, apporbasic, Comment, vuedialog }: {
|
|
2
|
-
moduleName: any;
|
|
3
|
-
controller: any;
|
|
4
|
-
tablestartUpShort: any;
|
|
5
|
-
tablestartUpShort2: any;
|
|
6
|
-
Primary: any;
|
|
7
|
-
Fields: any;
|
|
8
|
-
apporbasic: any;
|
|
9
|
-
Comment: any;
|
|
10
|
-
vuedialog: any;
|
|
11
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ moduleName, controller, tablestartUpShort, tablestartUpShort2, Primary, Fields, apporbasic, Comment, vuedialog }: {
|
|
2
|
+
moduleName: any;
|
|
3
|
+
controller: any;
|
|
4
|
+
tablestartUpShort: any;
|
|
5
|
+
tablestartUpShort2: any;
|
|
6
|
+
Primary: any;
|
|
7
|
+
Fields: any;
|
|
8
|
+
apporbasic: any;
|
|
9
|
+
Comment: any;
|
|
10
|
+
vuedialog: any;
|
|
11
|
+
}): Promise<void>;
|