cc1-admin-front 0.0.1 → 0.0.2
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/cc1-admin-front.css +1 -1
- package/dist/cc1-admin-front.js +44 -45
- package/dist/cc1-admin-front.umd.cjs +1 -1
- package/dist/{index-O3L87IEQ.js → index-CRagZR_l.js} +9 -6
- package/dist/{index-tQ4ZyO21.js → index-Dd54sn7c.js} +8 -5
- package/dist/{index--6fokZC8.js → index-DxQTvIMJ.js} +8 -5
- package/dist/{index-Dkl3LwVN.js → index-WKWmXVBK.js} +1 -1
- package/package.json +12 -2
package/dist/cc1-admin-front.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*{margin:0;padding:0;border:0;outline:0;background-color:transparent;vertical-align:baseline;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.ani{transition:all .3s ease}.column,.flex,.row{display:flex;flex-wrap:wrap}.column.inline,.flex.inline,.row.inline{display:inline-flex}.column{flex-direction:column}.wrap{flex-wrap:wrap}.no-wrap{flex-wrap:nowrap}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.flex-center,.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.flex-center,.items-center{align-items:center}.content-start{align-content:flex-start}.content-end{align-content:flex-end}.content-center{align-content:center}.content-stretch{align-content:stretch}.content-between{align-content:space-between}.content-around{align-content:space-around}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-baseline{align-self:baseline}.self-stretch{align-self:stretch}.flex>.col,.flex>.col-0,.flex>.col-1,.flex>.col-2,.flex>.col-3,.flex>.col-4,.flex>.col-5,.flex>.col-6,.flex>.col-7,.flex>.col-8,.flex>.col-9,.flex>.col-10,.flex>.col-11,.flex>.col-12,.flex>.col-auto,.flex>.col-grow,.flex>.col-shrink,.flex>.col-xs,.flex>.col-xs-0,.flex>.col-xs-1,.flex>.col-xs-2,.flex>.col-xs-3,.flex>.col-xs-4,.flex>.col-xs-5,.flex>.col-xs-6,.flex>.col-xs-7,.flex>.col-xs-8,.flex>.col-xs-9,.flex>.col-xs-10,.flex>.col-xs-11,.flex>.col-xs-12,.flex>.col-xs-auto,.flex>.col-xs-grow,.flex>.col-xs-shrink,.row>.col,.row>.col-0,.row>.col-1,.row>.col-2,.row>.col-3,.row>.col-4,.row>.col-5,.row>.col-6,.row>.col-7,.row>.col-8,.row>.col-9,.row>.col-10,.row>.col-11,.row>.col-12,.row>.col-auto,.row>.col-grow,.row>.col-shrink,.row>.col-xs,.row>.col-xs-0,.row>.col-xs-1,.row>.col-xs-2,.row>.col-xs-3,.row>.col-xs-4,.row>.col-xs-5,.row>.col-xs-6,.row>.col-xs-7,.row>.col-xs-8,.row>.col-xs-9,.row>.col-xs-10,.row>.col-xs-11,.row>.col-xs-12,.row>.col-xs-auto,.row>.col-xs-grow,.row>.col-xs-shrink{width:auto;min-width:0;max-width:100%}.column>.col,.column>.col-0,.column>.col-1,.column>.col-2,.column>.col-3,.column>.col-4,.column>.col-5,.column>.col-6,.column>.col-7,.column>.col-8,.column>.col-9,.column>.col-10,.column>.col-11,.column>.col-12,.column>.col-auto,.column>.col-grow,.column>.col-shrink,.column>.col-xs,.column>.col-xs-0,.column>.col-xs-1,.column>.col-xs-2,.column>.col-xs-3,.column>.col-xs-4,.column>.col-xs-5,.column>.col-xs-6,.column>.col-xs-7,.column>.col-xs-8,.column>.col-xs-9,.column>.col-xs-10,.column>.col-xs-11,.column>.col-xs-12,.column>.col-xs-auto,.column>.col-xs-grow,.column>.col-xs-shrink,.flex>.col,.flex>.col-0,.flex>.col-1,.flex>.col-2,.flex>.col-3,.flex>.col-4,.flex>.col-5,.flex>.col-6,.flex>.col-7,.flex>.col-8,.flex>.col-9,.flex>.col-10,.flex>.col-11,.flex>.col-12,.flex>.col-auto,.flex>.col-grow,.flex>.col-shrink,.flex>.col-xs,.flex>.col-xs-0,.flex>.col-xs-1,.flex>.col-xs-2,.flex>.col-xs-3,.flex>.col-xs-4,.flex>.col-xs-5,.flex>.col-xs-6,.flex>.col-xs-7,.flex>.col-xs-8,.flex>.col-xs-9,.flex>.col-xs-10,.flex>.col-xs-11,.flex>.col-xs-12,.flex>.col-xs-auto,.flex>.col-xs-grow,.flex>.col-xs-shrink{height:auto;min-height:0;max-height:100%}.col,.col-xs{flex:10000 1 0%}.col-0,.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-auto,.col-xs-0,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-auto{flex:0 0 auto}.col-grow,.col-xs-grow{flex:1 0 auto}.col-shrink,.col-xs-shrink{flex:0 1 auto}.row>.col-0,.row>.col-xs-0{height:auto;width:0%}.column>.col-0,.column>.col-xs-0{height:0%;width:auto}.row>.col-1,.row>.col-xs-1{height:auto;width:8.3333%}.column>.col-1,.column>.col-xs-1{height:8.3333%;width:auto}.row>.col-2,.row>.col-xs-2{height:auto;width:16.6667%}.column>.col-2,.column>.col-xs-2{height:16.6667%;width:auto}.row>.col-3,.row>.col-xs-3{height:auto;width:25%}.column>.col-3,.column>.col-xs-3{height:25%;width:auto}.row>.col-4,.row>.col-xs-4{height:auto;width:33.3333%}.column>.col-4,.column>.col-xs-4{height:33.3333%;width:auto}.row>.col-5,.row>.col-xs-5{height:auto;width:41.6667%}.column>.col-5,.column>.col-xs-5{height:41.6667%;width:auto}.row>.col-6,.row>.col-xs-6{height:auto;width:50%}.column>.col-6,.column>.col-xs-6{height:50%;width:auto}.row>.col-7,.row>.col-xs-7{height:auto;width:58.3333%}.column>.col-7,.column>.col-xs-7{height:58.3333%;width:auto}.row>.col-8,.row>.col-xs-8{height:auto;width:66.6667%}.column>.col-8,.column>.col-xs-8{height:66.6667%;width:auto}.row>.col-9,.row>.col-xs-9{height:auto;width:75%}.column>.col-9,.column>.col-xs-9{height:75%;width:auto}.row>.col-10,.row>.col-xs-10{height:auto;width:83.3333%}.column>.col-10,.column>.col-xs-10{height:83.3333%;width:auto}.row>.col-11,.row>.col-xs-11{height:auto;width:91.6667%}.column>.col-11,.column>.col-xs-11{height:91.6667%;width:auto}.row>.col-12,.row>.col-xs-12{height:auto;width:100%}.column>.col-12,.column>.col-xs-12{height:100%;width:auto}.row>.col-all{height:auto;flex:0 0 100%}.relative{position:relative}.absolute{position:absolute}.fit,.fit-height{height:100%!important}.fit,.fit-width{width:100%!important}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ellipsis-2-lines,.ellipsis-3-lines{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.ellipsis-2-lines{-webkit-line-clamp:2}.ellipsis-3-lines{-webkit-line-clamp:3}.block{display:block!important}.inline-block{display:inline-block!important}.text-uppercase{text-transform:uppercase}.text-lowercase{text-transform:lowercase}.text-capitalize{text-transform:capitalize}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-justify{text-align:justify;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.text-italic{font-style:italic}.text-bold{font-weight:700}.text-no-wrap{white-space:nowrap}.margin-auto{margin:0 atuo}.float-left{float:left}.float-right{float:right}.rotate-45{transform:rotate(45deg)}.rotate-90{transform:rotate(90deg)}.rotate-180{transform:rotate(180deg)}.rotate-270{transform:rotate(270deg)}.rotate-360{transform:rotate(360deg)}.cursor-pointer{cursor:pointer!important}.scroll{overflow:auto}.scroll,.scroll-x,.scroll-y{-webkit-overflow-scrolling:touch;will-change:scroll-position}.scroll-x{overflow-x:auto}.scroll-y{overflow-y:auto}::-webkit-scrollbar{width:6px}::-webkit-scrollbar:horizontal{height:6px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background-color:#0003;border-radius:10px;transition:all .2s ease-in-out}::-webkit-scrollbar-thumb:hover{cursor:pointer;background-color:#0000004d}body .el-menu-item{color:#000}body .sidebar .el-menu-item{color:var(--el-menu-text-color)}body .el-menu-item.is-active{color:var(--el-menu-active-color)}body .el-select__tags{overflow-y:auto;max-height:38px}@media(max-width:980px){body .el-dialog{width:96vw!important}}body .el-message-box{width:min-content;max-width:90vw!important}body .el-loading-mask{z-index:9000!important}body .el-image-viewer__wrapper{z-index:9001!important}body .el-image-viewer__img{max-height:60vh!important}@media(max-width:650px){body .el-pagination{display:flex;flex-wrap:wrap;gap:10px;max-width:100%}body .el-pagination>:nth-child(1),body .el-pagination>:nth-child(2){flex-direction:column;width:100%}body .el-pagination>:nth-last-child(1){width:100%;text-align:center;display:flex;justify-content:center}body .el-pagination>.is-first{margin:0!important;width:100vw;text-align:center}body .el-pagination>.el-pagination__sizes{margin:0!important;width:100vw;text-align:center}}*{font-size:100%;font-family:fangsong}html,body,#app{height:100%;margin:0;padding:0;overflow:hidden}.mt-20{margin-top:20px}.mb-20{margin-bottom:20px}.curd-form-grid{display:grid;width:100%;box-sizing:border-box;gap:0;grid-auto-rows:minmax(0,auto)}.curd-form-grid .curd-form-grid-cell{min-width:0;min-height:0;box-sizing:border-box;align-self:stretch}.curd-form-grid .curd-form-cell-inner{width:100%}.curd-form-grid .curd-form-grid-cell.is-row-span .curd-form-cell-inner{display:flex;flex:1;align-self:stretch;align-items:stretch;min-height:100%}.curd-form-grid .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field{flex:1;width:100%;min-height:100%;height:100%;display:flex;align-items:stretch;margin-bottom:0;box-sizing:border-box}.curd-form-grid .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__label{height:100%!important;min-height:100%;align-self:stretch;display:inline-flex;align-items:center;justify-content:flex-end}.curd-form-grid .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__content{flex:1;display:flex;align-items:center;align-self:stretch;min-width:0}.curd-form-grid .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__content .form-item-content{width:100%}.curd-form-grid .el-form-item{margin-bottom:0}.curd-form-grid .el-form-item__error{position:relative;margin-top:-6px;top:unset}@media(max-width:650px){.curd-form-grid{grid-template-columns:1fr!important}.curd-form-grid .curd-form-grid-cell{grid-column:1 / -1!important;grid-row:auto!important}}.curd-form-grid.stripe{border:1px solid #eee;overflow:hidden}.curd-form-grid.stripe .curd-form-grid-cell{display:flex;flex-direction:column;border-bottom:1px solid #eee}.curd-form-grid.stripe .curd-form-grid-cell.is-last-row{border-bottom:none}.curd-form-grid.stripe .curd-form-grid-cell.has-col-border{border-left:1px solid #eee}.curd-form-grid.stripe .curd-form-grid-cell.stripe-band-odd{background-color:#f5f7fa}.curd-form-grid.stripe .curd-form-cell-inner{width:100%;display:flex;align-items:center;align-self:center}.curd-form-grid.stripe .curd-form-grid-cell:not(.is-row-span) .curd-form-cell-inner{flex:0 0 auto}.curd-form-grid.stripe .el-form-item{width:100%;flex:0 0 auto;align-items:stretch;padding:5px 10px;box-sizing:border-box;margin-bottom:0}.curd-form-grid.stripe .el-form-item .el-form-item__content{display:flex;align-items:center;min-width:0;flex:1}.curd-form-grid.stripe .el-form-item__label{position:relative;padding:0 20px 0 0;display:inline-flex;align-items:center;align-self:stretch;box-sizing:border-box}.curd-form-grid.stripe .el-form-item__label:after{content:"";position:absolute;top:0;bottom:0;right:10px;width:1px;background-color:#eee}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .curd-form-cell-inner{flex:1;width:100%;display:flex;align-self:stretch;align-items:stretch;min-height:100%}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field{flex:1;width:100%;min-height:100%;height:100%;display:flex;align-items:stretch;padding:5px 10px;margin-bottom:0;box-sizing:border-box}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__label{height:100%!important;min-height:100%;line-height:normal;margin:0;padding:0 20px 0 0;align-self:stretch;display:inline-flex;align-items:center;justify-content:flex-end;box-sizing:border-box}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__label:after{top:0;bottom:0}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__content{flex:1;display:flex;align-items:center;align-self:stretch;min-width:0;padding:0;box-sizing:border-box}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__content .form-item-content{width:100%}@media(max-width:650px){.curd-form-grid.stripe .curd-form-grid-cell.has-col-border{border-left:none;border-top:1px solid #eee}}.cc1-form-box{min-height:200px}.cc1-form-box.no-min-height,.cc1-form-box.no-min-height .form-box{min-height:unset}.cc1-form-box .form-box{min-height:200px}.cc1-form-box .el-table th.el-table__cell{word-break:break-word;color:#000000d9;background-color:#fafafa}.cc1-form-box .cc1-form-drag-column .cell{display:flex;justify-content:center}.cc1-form-box .cc1-form-drag-column .table-sortable-tooltip{cursor:pointer;width:16px;height:16px;display:inline-block}.cc1-form-box .cc1-form-drag-handle{display:inline-flex;align-items:center;justify-content:center;min-width:20px;color:#909399;cursor:grab;user-select:none;letter-spacing:1px}.cc1-form-box .cc1-form-drag-handle:active{cursor:grabbing}.cc1-form-box .curd-search .el-form-item{margin-bottom:10px}.cc1-form-box .curd-search .el-form--inline .el-form-item{margin-right:10px}.cc1-form-box .curd-search .el-select{width:192px}.cc1-form-box .curd-search .el-radio{margin-right:8px}@media(max-width:800px){.cc1-form-box .table-bottom-pagination .el-pagination{width:100%!important;display:flex;gap:10px;flex-wrap:wrap}.cc1-form-box .table-bottom-pagination .el-pagination span:nth-child(1),.cc1-form-box .table-bottom-pagination .el-pagination span:nth-child(2){width:calc(50% - 13px)}}.cc1-form-box .mt-10{margin-top:10px}.cc1-form-box .mb-10{margin-bottom:10px}.cc1-form-box .refresh-btn{border-radius:50%;padding:6px;border:1px solid #dcdfe6;background-color:#fff;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#909399;cursor:pointer}.cc1-form-box .refresh-btn:hover{background-color:#f5f7fa}.cc1-form-box .refresh-btn.default{width:16px;height:16px;padding:6px;font-size:14px}.cc1-form-box .refresh-btn.small{width:14px;height:14px;padding:4px;font-size:12px}.cc1-form-box .refresh-btn.large{width:20px;height:20px;padding:6px;font-size:14px}.cc1-form-box .table-text-click{color:var(--table-text-click-color);cursor:pointer}.cc1-form-box .table-text-click:hover{text-decoration:underline}.cc1-form-box .table-edit-form{width:100%}.cc1-form-box .table-edit-form .table-edit-form-item{width:100%;margin-bottom:0}.cc1-form-box .table-edit-form .table-edit-form-item .el-form-item__content{width:100%;line-height:normal}.cc1-form-box .table-edit-form .table-edit-form-item .el-form-item__error{position:relative;top:unset;left:0;line-height:1.2;padding-top:4px}.cc1-form-box .dialog-footer .el-button+.el-button{margin-left:10px}.cc1-form-box .form-tip-text{color:#909399;font-size:12px;line-height:12px;padding:5px 0 0}.cc1-form-box .table-header-required{color:#f56c6c;display:inline-block;font-weight:700;line-height:1;margin-right:6px}.cc1-form-box .table-header-tooltip{cursor:pointer;width:16px;height:16px;display:inline-block;margin-right:5px}.cc1-form-box .table-header-plus{cursor:pointer;width:16px;height:16px;display:inline-block;margin-left:5px}.cc1-form-box .table-edit-form-item .el-form-item__error{max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:root,:host{--w-e-textarea-bg-color: #fff;--w-e-textarea-color: #333;--w-e-textarea-border-color: #ccc;--w-e-textarea-slight-border-color: #e8e8e8;--w-e-textarea-slight-color: #d4d4d4;--w-e-textarea-slight-bg-color: #f5f2f0;--w-e-textarea-selected-border-color: #B4D5FF;--w-e-textarea-handler-bg-color: #4290f7;--w-e-toolbar-color: #595959;--w-e-toolbar-bg-color: #fff;--w-e-toolbar-active-color: #333;--w-e-toolbar-active-bg-color: #f1f1f1;--w-e-toolbar-disabled-color: #999;--w-e-toolbar-border-color: #e8e8e8;--w-e-modal-button-bg-color: #fafafa;--w-e-modal-button-border-color: #d9d9d9}.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:"";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:"tnum";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{display:flex!important;flex-direction:column!important;height:100%!important;inset:0!important;margin:0!important;padding:0!important;position:fixed;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover,.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}.nfsystem[data-v-29641492]{width:1100px;margin:0 auto;text-align:center;padding-top:140px}.nfsystem img[data-v-29641492]{text-align:center;width:500px;border:0;vertical-align:middle}.nftitle h2[data-v-29641492]{color:#fff;font-size:36px;letter-spacing:4px;text-align:center;line-height:120px}.nftitle h4[data-v-29641492]{color:#fff;font-size:18px;line-height:38px;text-align:center}.header[data-v-7d929cc4]{overflow:hidden;position:relative;box-sizing:border-box;width:100%;height:70px;font-size:22px;color:#fff;background-color:#324157}.header[data-v-7d929cc4] *{user-select:none}.collapse-btn[data-v-7d929cc4]{float:left;padding:0 21px;cursor:pointer;height:70px;line-height:70px;display:flex;align-items:center}.header .logo[data-v-7d929cc4]{width:250px;line-height:70px}.header-right[data-v-7d929cc4]{padding-right:10px}.header-user-con[data-v-7d929cc4]{display:flex;height:70px;align-items:center}.btn-fullscreen[data-v-7d929cc4]{transform:rotate(45deg);margin-right:5px;font-size:24px}.btn-bell[data-v-7d929cc4],.btn-fullscreen[data-v-7d929cc4]{position:relative;width:30px;height:30px;text-align:center;border-radius:15px;cursor:pointer}.btn-bell-badge[data-v-7d929cc4]{position:absolute;right:0;top:-2px;width:8px;height:8px;border-radius:4px;background:#f56c6c;color:#fff}.btn-bell .el-icon-bell[data-v-7d929cc4]{color:#fff}.user-name[data-v-7d929cc4]{margin-left:10px}.user-avator[data-v-7d929cc4]{margin-left:20px}.user-avator img[data-v-7d929cc4]{display:block;width:40px;height:40px;border-radius:50%}.el-dropdown-link[data-v-7d929cc4]{color:#fff;cursor:pointer}.el-dropdown-menu__item[data-v-7d929cc4]{text-align:center}.sidebar[data-v-ac094262] *{user-select:none}@media(max-width:900px){.sidebar[data-v-ac094262]{position:absolute;z-index:2006;width:100vw}.sidebar-el-menu[data-v-ac094262]:not(.el-menu--collapse){width:100vw!important}.sidebar-show[data-v-ac094262]{opacity:1;height:100%}.sidebar-hideen[data-v-ac094262]{display:none;opacity:0}}.sidebar-el-menu[data-v-ac094262]:not(.el-menu--collapse){width:250px}.sidebar>ul[data-v-ac094262]{height:100%}.sidebar .el-menu[data-v-ac094262]{border-right:solid 0px var(--el-menu-border-color)}.sidebar .el-menu-item[data-v-ac094262]{background:#324157}.sidebar .el-menu-item[data-v-ac094262]:hover{background:#283446}.sidebar[data-v-ac094262] .el-sub-menu__title{background:#324157}.sidebar[data-v-ac094262] .el-sub-menu__title:hover{background:#283446}.vicon[data-v-ac094262]{margin-right:10px;transform:translateY(-1px)}.content[data-v-7d2c2356]{width:100%;height:100%;transition:all .3s ease-in-out;position:relative}.content>div[data-v-7d2c2356]{position:absolute;width:100%;height:100%;padding:15px 20px;background:#fff;overflow-y:auto;overflow-x:hidden}.view[data-v-7d2c2356]{width:100%;min-height:100%;display:flex;flex-direction:column;justify-content:space-between}[data-v-7d2c2356] .slide-fade-enter-active,[data-v-7d2c2356] .slide-fade-leave-active{transition:all .3s ease}[data-v-7d2c2356] .slide-fade-enter-from{transform:translate(30px);opacity:0}[data-v-7d2c2356] .slide-fade-leave-to{transform:translate(-30px);opacity:0}.login-wrap[data-v-9b624341]{position:relative;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}.ms-title[data-v-9b624341]{width:100%;line-height:50px;text-align:center;font-size:20px;color:#fff;border-bottom:1px solid #ddd}.ms-login[data-v-9b624341]{position:absolute;left:50%;top:50%;width:350px;transition:all .3s;margin:-130px 0 0 -175px;border-radius:5px;background:#0003;overflow:hidden;box-shadow:0 0 10px #fff}.ms-login[data-v-9b624341]:hover{background:#0006;box-shadow:0 0 20px #fff}.ms-content[data-v-9b624341]{padding:30px}.login-btn[data-v-9b624341]{text-align:center}.login-btn button[data-v-9b624341]{width:100%;height:36px;margin-bottom:10px;cursor:pointer}.login-tips[data-v-9b624341]{font-size:12px;line-height:30px;color:#fff}.input-phone[data-v-9b624341] .el-input__wrapper{border-radius:4px 0 0 4px}.login-icp[data-v-9b624341]{position:fixed;bottom:10px;text-align:center;width:100vw;font-size:12px;line-height:20px;color:#fff;padding:0 10px}.login-icp>div[data-v-9b624341]{display:inline-block;padding:0 10px}.iconlist[data-v-b9c727d4]{padding:0 5px;margin:5px 0;gap:5px;cursor:pointer;height:60px;width:90px;font-size:12px}.iconlist[data-v-b9c727d4]:hover{background:#f2f6fc}.iconlist[data-v-888f75ee]{display:inline-flex;padding:0 5px;margin:5px 0;cursor:pointer}.iconlist[data-v-888f75ee]:hover{background:#f2f6fc}[class^=colorinput][data-v-888f75ee]{margin:0 10px;background-color:#fff0;border:1px solid #ffffff00}.el-row[data-v-28a63a57]{margin-bottom:20px}.grid-content[data-v-28a63a57]{display:flex;align-items:center;height:100px}.grid-cont-right[data-v-28a63a57]{flex:1;text-align:center;font-size:14px;color:#999}.grid-num[data-v-28a63a57]{font-size:30px;font-weight:700}.grid-con-icon[data-v-28a63a57]{font-size:50px;width:100px;height:100px;text-align:center;line-height:100px;color:#fff}.grid-con-1 .grid-con-icon[data-v-28a63a57]{background:#2d8cf0}.grid-con-1 .grid-num[data-v-28a63a57]{color:#2d8cf0}.grid-con-2 .grid-con-icon[data-v-28a63a57]{background:#64d572}.grid-con-2 .grid-num[data-v-28a63a57]{color:#2d8cf0}.grid-con-3 .grid-con-icon[data-v-28a63a57]{background:#f25e43}.grid-con-3 .grid-num[data-v-28a63a57]{color:#f25e43}.user-info[data-v-28a63a57]{display:flex;align-items:center;padding-bottom:20px;border-bottom:2px solid #ccc;margin-bottom:20px}.user-avator[data-v-28a63a57]{width:80px;height:80px;border-radius:50%}.user-info-cont[data-v-28a63a57]{padding-left:50px;flex:1;font-size:14px;color:#999}.user-info-cont div[data-v-28a63a57]:first-child{font-size:20px;line-height:28px;color:#222}.user-info-list[data-v-28a63a57]{font-size:14px;color:#999;line-height:25px}.mgb20[data-v-28a63a57]{margin-bottom:20px}.todo-item[data-v-28a63a57]{font-size:14px}.todo-item-del[data-v-28a63a57]{text-decoration:line-through;color:#999}
|
|
1
|
+
*{margin:0;padding:0;border:0;outline:0;background-color:transparent;vertical-align:baseline;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.ani{transition:all .3s ease}.column,.flex,.row{display:flex;flex-wrap:wrap}.column.inline,.flex.inline,.row.inline{display:inline-flex}.column{flex-direction:column}.wrap{flex-wrap:wrap}.no-wrap{flex-wrap:nowrap}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.flex-center,.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.flex-center,.items-center{align-items:center}.content-start{align-content:flex-start}.content-end{align-content:flex-end}.content-center{align-content:center}.content-stretch{align-content:stretch}.content-between{align-content:space-between}.content-around{align-content:space-around}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-baseline{align-self:baseline}.self-stretch{align-self:stretch}.flex>.col,.flex>.col-0,.flex>.col-1,.flex>.col-2,.flex>.col-3,.flex>.col-4,.flex>.col-5,.flex>.col-6,.flex>.col-7,.flex>.col-8,.flex>.col-9,.flex>.col-10,.flex>.col-11,.flex>.col-12,.flex>.col-auto,.flex>.col-grow,.flex>.col-shrink,.flex>.col-xs,.flex>.col-xs-0,.flex>.col-xs-1,.flex>.col-xs-2,.flex>.col-xs-3,.flex>.col-xs-4,.flex>.col-xs-5,.flex>.col-xs-6,.flex>.col-xs-7,.flex>.col-xs-8,.flex>.col-xs-9,.flex>.col-xs-10,.flex>.col-xs-11,.flex>.col-xs-12,.flex>.col-xs-auto,.flex>.col-xs-grow,.flex>.col-xs-shrink,.row>.col,.row>.col-0,.row>.col-1,.row>.col-2,.row>.col-3,.row>.col-4,.row>.col-5,.row>.col-6,.row>.col-7,.row>.col-8,.row>.col-9,.row>.col-10,.row>.col-11,.row>.col-12,.row>.col-auto,.row>.col-grow,.row>.col-shrink,.row>.col-xs,.row>.col-xs-0,.row>.col-xs-1,.row>.col-xs-2,.row>.col-xs-3,.row>.col-xs-4,.row>.col-xs-5,.row>.col-xs-6,.row>.col-xs-7,.row>.col-xs-8,.row>.col-xs-9,.row>.col-xs-10,.row>.col-xs-11,.row>.col-xs-12,.row>.col-xs-auto,.row>.col-xs-grow,.row>.col-xs-shrink{width:auto;min-width:0;max-width:100%}.column>.col,.column>.col-0,.column>.col-1,.column>.col-2,.column>.col-3,.column>.col-4,.column>.col-5,.column>.col-6,.column>.col-7,.column>.col-8,.column>.col-9,.column>.col-10,.column>.col-11,.column>.col-12,.column>.col-auto,.column>.col-grow,.column>.col-shrink,.column>.col-xs,.column>.col-xs-0,.column>.col-xs-1,.column>.col-xs-2,.column>.col-xs-3,.column>.col-xs-4,.column>.col-xs-5,.column>.col-xs-6,.column>.col-xs-7,.column>.col-xs-8,.column>.col-xs-9,.column>.col-xs-10,.column>.col-xs-11,.column>.col-xs-12,.column>.col-xs-auto,.column>.col-xs-grow,.column>.col-xs-shrink,.flex>.col,.flex>.col-0,.flex>.col-1,.flex>.col-2,.flex>.col-3,.flex>.col-4,.flex>.col-5,.flex>.col-6,.flex>.col-7,.flex>.col-8,.flex>.col-9,.flex>.col-10,.flex>.col-11,.flex>.col-12,.flex>.col-auto,.flex>.col-grow,.flex>.col-shrink,.flex>.col-xs,.flex>.col-xs-0,.flex>.col-xs-1,.flex>.col-xs-2,.flex>.col-xs-3,.flex>.col-xs-4,.flex>.col-xs-5,.flex>.col-xs-6,.flex>.col-xs-7,.flex>.col-xs-8,.flex>.col-xs-9,.flex>.col-xs-10,.flex>.col-xs-11,.flex>.col-xs-12,.flex>.col-xs-auto,.flex>.col-xs-grow,.flex>.col-xs-shrink{height:auto;min-height:0;max-height:100%}.col,.col-xs{flex:10000 1 0%}.col-0,.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-auto,.col-xs-0,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-auto{flex:0 0 auto}.col-grow,.col-xs-grow{flex:1 0 auto}.col-shrink,.col-xs-shrink{flex:0 1 auto}.row>.col-0,.row>.col-xs-0{height:auto;width:0%}.column>.col-0,.column>.col-xs-0{height:0%;width:auto}.row>.col-1,.row>.col-xs-1{height:auto;width:8.3333%}.column>.col-1,.column>.col-xs-1{height:8.3333%;width:auto}.row>.col-2,.row>.col-xs-2{height:auto;width:16.6667%}.column>.col-2,.column>.col-xs-2{height:16.6667%;width:auto}.row>.col-3,.row>.col-xs-3{height:auto;width:25%}.column>.col-3,.column>.col-xs-3{height:25%;width:auto}.row>.col-4,.row>.col-xs-4{height:auto;width:33.3333%}.column>.col-4,.column>.col-xs-4{height:33.3333%;width:auto}.row>.col-5,.row>.col-xs-5{height:auto;width:41.6667%}.column>.col-5,.column>.col-xs-5{height:41.6667%;width:auto}.row>.col-6,.row>.col-xs-6{height:auto;width:50%}.column>.col-6,.column>.col-xs-6{height:50%;width:auto}.row>.col-7,.row>.col-xs-7{height:auto;width:58.3333%}.column>.col-7,.column>.col-xs-7{height:58.3333%;width:auto}.row>.col-8,.row>.col-xs-8{height:auto;width:66.6667%}.column>.col-8,.column>.col-xs-8{height:66.6667%;width:auto}.row>.col-9,.row>.col-xs-9{height:auto;width:75%}.column>.col-9,.column>.col-xs-9{height:75%;width:auto}.row>.col-10,.row>.col-xs-10{height:auto;width:83.3333%}.column>.col-10,.column>.col-xs-10{height:83.3333%;width:auto}.row>.col-11,.row>.col-xs-11{height:auto;width:91.6667%}.column>.col-11,.column>.col-xs-11{height:91.6667%;width:auto}.row>.col-12,.row>.col-xs-12{height:auto;width:100%}.column>.col-12,.column>.col-xs-12{height:100%;width:auto}.row>.col-all{height:auto;flex:0 0 100%}.relative{position:relative}.absolute{position:absolute}.fit,.fit-height{height:100%!important}.fit,.fit-width{width:100%!important}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ellipsis-2-lines,.ellipsis-3-lines{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.ellipsis-2-lines{-webkit-line-clamp:2}.ellipsis-3-lines{-webkit-line-clamp:3}.block{display:block!important}.inline-block{display:inline-block!important}.text-uppercase{text-transform:uppercase}.text-lowercase{text-transform:lowercase}.text-capitalize{text-transform:capitalize}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-justify{text-align:justify;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.text-italic{font-style:italic}.text-bold{font-weight:700}.text-no-wrap{white-space:nowrap}.margin-auto{margin:0 atuo}.float-left{float:left}.float-right{float:right}.rotate-45{transform:rotate(45deg)}.rotate-90{transform:rotate(90deg)}.rotate-180{transform:rotate(180deg)}.rotate-270{transform:rotate(270deg)}.rotate-360{transform:rotate(360deg)}.cursor-pointer{cursor:pointer!important}.scroll{overflow:auto}.scroll,.scroll-x,.scroll-y{-webkit-overflow-scrolling:touch;will-change:scroll-position}.scroll-x{overflow-x:auto}.scroll-y{overflow-y:auto}::-webkit-scrollbar{width:6px}::-webkit-scrollbar:horizontal{height:6px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background-color:#0003;border-radius:10px;transition:all .2s ease-in-out}::-webkit-scrollbar-thumb:hover{cursor:pointer;background-color:#0000004d}body .el-menu-item{color:#000}body .sidebar .el-menu-item{color:var(--el-menu-text-color)}body .el-menu-item.is-active{color:var(--el-menu-active-color)}body .el-select__tags{overflow-y:auto;max-height:38px}@media(max-width:980px){body .el-dialog{width:96vw!important}}body .el-message-box{width:min-content;max-width:90vw!important}body .el-loading-mask{z-index:9000!important}body .el-image-viewer__wrapper{z-index:9001!important}body .el-image-viewer__img{max-height:60vh!important}@media(max-width:650px){body .el-pagination{display:flex;flex-wrap:wrap;gap:10px;max-width:100%}body .el-pagination>:nth-child(1),body .el-pagination>:nth-child(2){flex-direction:column;width:100%}body .el-pagination>:nth-last-child(1){width:100%;text-align:center;display:flex;justify-content:center}body .el-pagination>.is-first{margin:0!important;width:100vw;text-align:center}body .el-pagination>.el-pagination__sizes{margin:0!important;width:100vw;text-align:center}}*{font-size:100%;font-family:fangsong}html,body,#app{height:100%;margin:0;padding:0;overflow:hidden}.mt-20{margin-top:20px}.mb-20{margin-bottom:20px}.curd-form-grid{display:grid;width:100%;box-sizing:border-box;gap:0;grid-auto-rows:minmax(0,auto)}.curd-form-grid .curd-form-grid-cell{min-width:0;min-height:0;box-sizing:border-box;align-self:stretch}.curd-form-grid .curd-form-cell-inner{width:100%}.curd-form-grid .curd-form-grid-cell.is-row-span .curd-form-cell-inner{display:flex;flex:1;align-self:stretch;align-items:stretch;min-height:100%}.curd-form-grid .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field{flex:1;width:100%;min-height:100%;height:100%;display:flex;align-items:stretch;margin-bottom:0;box-sizing:border-box}.curd-form-grid .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__label{height:100%!important;min-height:100%;align-self:stretch;display:inline-flex;align-items:center;justify-content:flex-end}.curd-form-grid .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__content{flex:1;display:flex;align-items:center;align-self:stretch;min-width:0}.curd-form-grid .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__content .form-item-content{width:100%}.curd-form-grid .el-form-item{margin-bottom:0}.curd-form-grid .el-form-item__error{position:relative;margin-top:-6px;top:unset}@media(max-width:650px){.curd-form-grid{grid-template-columns:1fr!important}.curd-form-grid .curd-form-grid-cell{grid-column:1 / -1!important;grid-row:auto!important}}.curd-form-grid.stripe{border:1px solid #eee;overflow:hidden}.curd-form-grid.stripe .curd-form-grid-cell{display:flex;flex-direction:column;border-bottom:1px solid #eee}.curd-form-grid.stripe .curd-form-grid-cell.is-last-row{border-bottom:none}.curd-form-grid.stripe .curd-form-grid-cell.has-col-border{border-left:1px solid #eee}.curd-form-grid.stripe .curd-form-grid-cell.stripe-band-odd{background-color:#f5f7fa}.curd-form-grid.stripe .curd-form-cell-inner{width:100%;display:flex;align-items:center;align-self:center}.curd-form-grid.stripe .curd-form-grid-cell:not(.is-row-span) .curd-form-cell-inner{flex:0 0 auto}.curd-form-grid.stripe .el-form-item{width:100%;flex:0 0 auto;align-items:stretch;padding:5px 10px;box-sizing:border-box;margin-bottom:0}.curd-form-grid.stripe .el-form-item .el-form-item__content{display:flex;align-items:center;min-width:0;flex:1}.curd-form-grid.stripe .el-form-item__label{position:relative;padding:0 20px 0 0;display:inline-flex;align-items:center;align-self:stretch;box-sizing:border-box}.curd-form-grid.stripe .el-form-item__label:after{content:"";position:absolute;top:0;bottom:0;right:10px;width:1px;background-color:#eee}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .curd-form-cell-inner{flex:1;width:100%;display:flex;align-self:stretch;align-items:stretch;min-height:100%}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field{flex:1;width:100%;min-height:100%;height:100%;display:flex;align-items:stretch;padding:5px 10px;margin-bottom:0;box-sizing:border-box}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__label{height:100%!important;min-height:100%;line-height:normal;margin:0;padding:0 20px 0 0;align-self:stretch;display:inline-flex;align-items:center;justify-content:flex-end;box-sizing:border-box}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__label:after{top:0;bottom:0}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__content{flex:1;display:flex;align-items:center;align-self:stretch;min-width:0;padding:0;box-sizing:border-box}.curd-form-grid.stripe .curd-form-grid-cell.is-row-span .el-form-item.is-row-span-field .el-form-item__content .form-item-content{width:100%}@media(max-width:650px){.curd-form-grid.stripe .curd-form-grid-cell.has-col-border{border-left:none;border-top:1px solid #eee}}.cc1-form-box{min-height:200px}.cc1-form-box.no-min-height,.cc1-form-box.no-min-height .form-box{min-height:unset}.cc1-form-box .form-box{min-height:200px}.cc1-form-box .el-table th.el-table__cell{word-break:break-word;color:#000000d9;background-color:#fafafa}.cc1-form-box .cc1-form-drag-column .cell{display:flex;justify-content:center}.cc1-form-box .cc1-form-drag-column .table-sortable-tooltip{cursor:pointer;width:16px;height:16px;display:inline-block}.cc1-form-box .cc1-form-drag-handle{display:inline-flex;align-items:center;justify-content:center;min-width:20px;color:#909399;cursor:grab;user-select:none;letter-spacing:1px}.cc1-form-box .cc1-form-drag-handle:active{cursor:grabbing}.cc1-form-box .curd-search .el-form-item{margin-bottom:10px}.cc1-form-box .curd-search .el-form--inline .el-form-item{margin-right:10px}.cc1-form-box .curd-search .el-select{width:192px}.cc1-form-box .curd-search .el-radio{margin-right:8px}@media(max-width:800px){.cc1-form-box .table-bottom-pagination .el-pagination{width:100%!important;display:flex;gap:10px;flex-wrap:wrap}.cc1-form-box .table-bottom-pagination .el-pagination span:nth-child(1),.cc1-form-box .table-bottom-pagination .el-pagination span:nth-child(2){width:calc(50% - 13px)}}.cc1-form-box .mt-10{margin-top:10px}.cc1-form-box .mb-10{margin-bottom:10px}.cc1-form-box .refresh-btn{border-radius:50%;padding:6px;border:1px solid #dcdfe6;background-color:#fff;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#909399;cursor:pointer}.cc1-form-box .refresh-btn:hover{background-color:#f5f7fa}.cc1-form-box .refresh-btn.default{width:26px;height:26px;padding:6px;font-size:14px}.cc1-form-box .refresh-btn.small{width:24px;height:24px;padding:4px;font-size:12px}.cc1-form-box .refresh-btn.large{width:30px;height:30px;padding:6px;font-size:14px}.cc1-form-box .table-text-click{color:var(--table-text-click-color);cursor:pointer}.cc1-form-box .table-text-click:hover{text-decoration:underline}.cc1-form-box .table-edit-form{width:100%}.cc1-form-box .table-edit-form .table-edit-form-item{width:100%;margin-bottom:0}.cc1-form-box .table-edit-form .table-edit-form-item .el-form-item__content{width:100%;line-height:normal}.cc1-form-box .table-edit-form .table-edit-form-item .el-form-item__error{position:relative;top:unset;left:0;line-height:1.2;padding-top:4px}.cc1-form-box .dialog-footer .el-button+.el-button{margin-left:10px}.cc1-form-box .form-tip-text{color:#909399;font-size:12px;line-height:12px;padding:5px 0 0}.cc1-form-box .table-header-required{color:#f56c6c;display:inline-block;font-weight:700;line-height:1;margin-right:6px}.cc1-form-box .table-header-tooltip{cursor:pointer;width:16px;height:16px;display:inline-block;margin-right:5px}.cc1-form-box .table-header-plus{cursor:pointer;width:16px;height:16px;display:inline-block;margin-left:5px}.cc1-form-box .table-edit-form-item .el-form-item__error{max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.nfsystem[data-v-29641492]{width:1100px;margin:0 auto;text-align:center;padding-top:140px}.nfsystem img[data-v-29641492]{text-align:center;width:500px;border:0;vertical-align:middle}.nftitle h2[data-v-29641492]{color:#fff;font-size:36px;letter-spacing:4px;text-align:center;line-height:120px}.nftitle h4[data-v-29641492]{color:#fff;font-size:18px;line-height:38px;text-align:center}.header[data-v-7d929cc4]{overflow:hidden;position:relative;box-sizing:border-box;width:100%;height:70px;font-size:22px;color:#fff;background-color:#324157}.header[data-v-7d929cc4] *{user-select:none}.collapse-btn[data-v-7d929cc4]{float:left;padding:0 21px;cursor:pointer;height:70px;line-height:70px;display:flex;align-items:center}.header .logo[data-v-7d929cc4]{width:250px;line-height:70px}.header-right[data-v-7d929cc4]{padding-right:10px}.header-user-con[data-v-7d929cc4]{display:flex;height:70px;align-items:center}.btn-fullscreen[data-v-7d929cc4]{transform:rotate(45deg);margin-right:5px;font-size:24px}.btn-bell[data-v-7d929cc4],.btn-fullscreen[data-v-7d929cc4]{position:relative;width:30px;height:30px;text-align:center;border-radius:15px;cursor:pointer}.btn-bell-badge[data-v-7d929cc4]{position:absolute;right:0;top:-2px;width:8px;height:8px;border-radius:4px;background:#f56c6c;color:#fff}.btn-bell .el-icon-bell[data-v-7d929cc4]{color:#fff}.user-name[data-v-7d929cc4]{margin-left:10px}.user-avator[data-v-7d929cc4]{margin-left:20px}.user-avator img[data-v-7d929cc4]{display:block;width:40px;height:40px;border-radius:50%}.el-dropdown-link[data-v-7d929cc4]{color:#fff;cursor:pointer}.el-dropdown-menu__item[data-v-7d929cc4]{text-align:center}.sidebar[data-v-ac094262] *{user-select:none}@media(max-width:900px){.sidebar[data-v-ac094262]{position:absolute;z-index:2006;width:100vw}.sidebar-el-menu[data-v-ac094262]:not(.el-menu--collapse){width:100vw!important}.sidebar-show[data-v-ac094262]{opacity:1;height:100%}.sidebar-hideen[data-v-ac094262]{display:none;opacity:0}}.sidebar-el-menu[data-v-ac094262]:not(.el-menu--collapse){width:250px}.sidebar>ul[data-v-ac094262]{height:100%}.sidebar .el-menu[data-v-ac094262]{border-right:solid 0px var(--el-menu-border-color)}.sidebar .el-menu-item[data-v-ac094262]{background:#324157}.sidebar .el-menu-item[data-v-ac094262]:hover{background:#283446}.sidebar[data-v-ac094262] .el-sub-menu__title{background:#324157}.sidebar[data-v-ac094262] .el-sub-menu__title:hover{background:#283446}.vicon[data-v-ac094262]{margin-right:10px;transform:translateY(-1px)}.content[data-v-7d2c2356]{width:100%;height:100%;transition:all .3s ease-in-out;position:relative}.content>div[data-v-7d2c2356]{position:absolute;width:100%;height:100%;padding:15px 20px;background:#fff;overflow-y:auto;overflow-x:hidden}.view[data-v-7d2c2356]{width:100%;min-height:100%;display:flex;flex-direction:column;justify-content:space-between}[data-v-7d2c2356] .slide-fade-enter-active,[data-v-7d2c2356] .slide-fade-leave-active{transition:all .3s ease}[data-v-7d2c2356] .slide-fade-enter-from{transform:translate(30px);opacity:0}[data-v-7d2c2356] .slide-fade-leave-to{transform:translate(-30px);opacity:0}.login-wrap[data-v-9b624341]{position:relative;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}.ms-title[data-v-9b624341]{width:100%;line-height:50px;text-align:center;font-size:20px;color:#fff;border-bottom:1px solid #ddd}.ms-login[data-v-9b624341]{position:absolute;left:50%;top:50%;width:350px;transition:all .3s;margin:-130px 0 0 -175px;border-radius:5px;background:#0003;overflow:hidden;box-shadow:0 0 10px #fff}.ms-login[data-v-9b624341]:hover{background:#0006;box-shadow:0 0 20px #fff}.ms-content[data-v-9b624341]{padding:30px}.login-btn[data-v-9b624341]{text-align:center}.login-btn button[data-v-9b624341]{width:100%;height:36px;margin-bottom:10px;cursor:pointer}.login-tips[data-v-9b624341]{font-size:12px;line-height:30px;color:#fff}.input-phone[data-v-9b624341] .el-input__wrapper{border-radius:4px 0 0 4px}.login-icp[data-v-9b624341]{position:fixed;bottom:10px;text-align:center;width:100vw;font-size:12px;line-height:20px;color:#fff;padding:0 10px}.login-icp>div[data-v-9b624341]{display:inline-block;padding:0 10px}.iconlist[data-v-b9c727d4]{padding:0 5px;margin:5px 0;gap:5px;cursor:pointer;height:60px;width:90px;font-size:12px}.iconlist[data-v-b9c727d4]:hover{background:#f2f6fc}.iconlist[data-v-acda5d9c]{display:inline-flex;padding:0 5px;margin:5px 0;cursor:pointer}.iconlist[data-v-acda5d9c]:hover{background:#f2f6fc}[class^=colorinput][data-v-acda5d9c]{margin:0 10px;background-color:#fff0;border:1px solid #ffffff00}.el-row[data-v-28a63a57]{margin-bottom:20px}.grid-content[data-v-28a63a57]{display:flex;align-items:center;height:100px}.grid-cont-right[data-v-28a63a57]{flex:1;text-align:center;font-size:14px;color:#999}.grid-num[data-v-28a63a57]{font-size:30px;font-weight:700}.grid-con-icon[data-v-28a63a57]{font-size:50px;width:100px;height:100px;text-align:center;line-height:100px;color:#fff}.grid-con-1 .grid-con-icon[data-v-28a63a57]{background:#2d8cf0}.grid-con-1 .grid-num[data-v-28a63a57]{color:#2d8cf0}.grid-con-2 .grid-con-icon[data-v-28a63a57]{background:#64d572}.grid-con-2 .grid-num[data-v-28a63a57]{color:#2d8cf0}.grid-con-3 .grid-con-icon[data-v-28a63a57]{background:#f25e43}.grid-con-3 .grid-num[data-v-28a63a57]{color:#f25e43}.user-info[data-v-28a63a57]{display:flex;align-items:center;padding-bottom:20px;border-bottom:2px solid #ccc;margin-bottom:20px}.user-avator[data-v-28a63a57]{width:80px;height:80px;border-radius:50%}.user-info-cont[data-v-28a63a57]{padding-left:50px;flex:1;font-size:14px;color:#999}.user-info-cont div[data-v-28a63a57]:first-child{font-size:20px;line-height:28px;color:#222}.user-info-list[data-v-28a63a57]{font-size:14px;color:#999;line-height:25px}.mgb20[data-v-28a63a57]{margin-bottom:20px}.todo-item[data-v-28a63a57]{font-size:14px}.todo-item-del[data-v-28a63a57]{text-decoration:line-through;color:#999}
|
package/dist/cc1-admin-front.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./cc1-admin-front.css";
|
|
2
|
-
import { reactive as y, defineComponent as V, nextTick as N, resolveComponent as
|
|
3
|
-
import K, { TSys as
|
|
2
|
+
import { reactive as y, defineComponent as V, nextTick as N, resolveComponent as x, openBlock as E, createBlock as T, withCtx as M, createVNode as _, unref as C, createCommentVNode as B, defineAsyncComponent as U, shallowRef as P, ref as W, watch as z, onBeforeUnmount as H, createElementBlock as J, createApp as F } from "vue";
|
|
3
|
+
import K, { TSys as m, TForm as q, TFormConfig as Y } from "cc1-form";
|
|
4
4
|
import { Scope as S, CRouter as Z } from "cc1-vue3";
|
|
5
5
|
import G from "cc1-ui";
|
|
6
6
|
import { createRouter as Q, createWebHashHistory as X } from "vue-router";
|
|
@@ -146,7 +146,7 @@ class Vt {
|
|
|
146
146
|
return http.post("/log/error/delete", t);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
class
|
|
149
|
+
class $t {
|
|
150
150
|
static list(t) {
|
|
151
151
|
return http.post("/schedule/job/list", t);
|
|
152
152
|
}
|
|
@@ -166,7 +166,7 @@ class jt {
|
|
|
166
166
|
return http.post("/schedule/job/changeStatus", t);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
class
|
|
169
|
+
class jt {
|
|
170
170
|
static list(t) {
|
|
171
171
|
return http.post("/sms/config/list", t);
|
|
172
172
|
}
|
|
@@ -183,7 +183,7 @@ class $t {
|
|
|
183
183
|
return http.post("/sms/config/send", t);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
class
|
|
186
|
+
class $ {
|
|
187
187
|
static time(t) {
|
|
188
188
|
return http.post("/app/time", t);
|
|
189
189
|
}
|
|
@@ -265,7 +265,7 @@ const tt = b.ERouter, et = b.EDialog, d = y({
|
|
|
265
265
|
},
|
|
266
266
|
hasApi: (e) => d.loginInfo.roleInfo.apiList.includes(e)
|
|
267
267
|
});
|
|
268
|
-
class
|
|
268
|
+
class L {
|
|
269
269
|
static baseUrl = "";
|
|
270
270
|
static init() {
|
|
271
271
|
const t = (o, r, ...a) => {
|
|
@@ -274,10 +274,10 @@ class x {
|
|
|
274
274
|
});
|
|
275
275
|
}, s = (o, r, a) => {
|
|
276
276
|
let l = a?.data?.code || o, p = a?.data.message;
|
|
277
|
-
r.data.toast ? r.data.toast(l, a, r) :
|
|
277
|
+
r.data.toast ? r.data.toast(l, a, r) : m.fail(u.i18n.t(`code.${l}`, { msg: p || "请求异常" }) || u.i18n.t("code.OtherException")), t(r.data, ["final", "fail", "complete"], o == 200, r, a), l == 401 && (d.clearInfo(), r.data.toLogin?.() !== !1 && m.router.replace("/login"));
|
|
278
278
|
};
|
|
279
279
|
http.setConfig({
|
|
280
|
-
base:
|
|
280
|
+
base: L.baseUrl,
|
|
281
281
|
before(o) {
|
|
282
282
|
o.param.headers = o.param.headers || {}, Object.keys(o.data).forEach((a) => {
|
|
283
283
|
(o.data[a] === void 0 || o.data[a] === null) && delete o.data[a];
|
|
@@ -321,10 +321,10 @@ class u {
|
|
|
321
321
|
},
|
|
322
322
|
staticDir: "/static_admin"
|
|
323
323
|
};
|
|
324
|
-
this.config = ObjectUtil.deepMerge(s, t), this.env = this.config.env, this.i18n = this.config.i18n, this.staticDir = this.config.staticDir, this.elementLocale = this.config.elementLocale,
|
|
324
|
+
this.config = ObjectUtil.deepMerge(s, t), this.env = this.config.env, this.i18n = this.config.i18n, this.staticDir = this.config.staticDir, this.elementLocale = this.config.elementLocale, L.baseUrl = this.env.API;
|
|
325
325
|
}
|
|
326
326
|
static getBaseUrl(t) {
|
|
327
|
-
return t =
|
|
327
|
+
return t = L.baseUrl.replace("/api", "/") + t, t = t.replace(/(?<!:)\/{2,}/g, "/"), t;
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
const R = (e) => {
|
|
@@ -364,11 +364,11 @@ const R = (e) => {
|
|
|
364
364
|
c.menuListSource = JSONUtil.cp(e);
|
|
365
365
|
try {
|
|
366
366
|
if (StrUtil.isNull(e) || (e = e), StrUtil.isNull(e))
|
|
367
|
-
return
|
|
367
|
+
return m.router.push("/login"), [];
|
|
368
368
|
let t = R(e);
|
|
369
369
|
return c.setMenuList(t, e), JSONUtil.cp(c.menuList);
|
|
370
370
|
} catch {
|
|
371
|
-
|
|
371
|
+
m.router.push("/login");
|
|
372
372
|
}
|
|
373
373
|
return JSONUtil.cp(c.menuList);
|
|
374
374
|
},
|
|
@@ -379,9 +379,9 @@ const R = (e) => {
|
|
|
379
379
|
getApiList: async () => {
|
|
380
380
|
let e = Cookie.get("apiList");
|
|
381
381
|
try {
|
|
382
|
-
return StrUtil.isNull(e) || (e = e), StrUtil.isNull(e) ? (
|
|
382
|
+
return StrUtil.isNull(e) || (e = e), StrUtil.isNull(e) ? (m.router.push("/login"), []) : (c.setApiList(e), c.apiList);
|
|
383
383
|
} catch {
|
|
384
|
-
|
|
384
|
+
m.router.push("/login");
|
|
385
385
|
}
|
|
386
386
|
return c.apiList;
|
|
387
387
|
},
|
|
@@ -391,10 +391,10 @@ const R = (e) => {
|
|
|
391
391
|
t.type = "file", t.accept = e.accept || "image/*", t.multiple = e.multiple || !1, t.onchange = async (s) => {
|
|
392
392
|
const o = s.target.files[0];
|
|
393
393
|
if (o) {
|
|
394
|
-
const r = await
|
|
394
|
+
const r = await $.upload({
|
|
395
395
|
file: o
|
|
396
396
|
});
|
|
397
|
-
e.callback(r.data), e.toast,
|
|
397
|
+
e.callback(r.data), e.toast, m.success("上传成功");
|
|
398
398
|
} else
|
|
399
399
|
e.callback("");
|
|
400
400
|
}, t.click();
|
|
@@ -422,7 +422,7 @@ const R = (e) => {
|
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
424
|
return CEvent.on(tt.reload, t.reload), (s, o) => {
|
|
425
|
-
const r =
|
|
425
|
+
const r = x("x-route-event"), a = x("router-view"), l = x("el-image-viewer"), p = x("el-config-provider");
|
|
426
426
|
return E(), T(p, {
|
|
427
427
|
locale: t.locale
|
|
428
428
|
}, {
|
|
@@ -519,14 +519,14 @@ const R = (e) => {
|
|
|
519
519
|
n.setDate(1);
|
|
520
520
|
const g = o(0, n);
|
|
521
521
|
n.setMonth(n.getMonth() + 1), n.setDate(1), n.setDate(n.getDate() - 1);
|
|
522
|
-
const
|
|
522
|
+
const h = o(0, n), D = {
|
|
523
523
|
label: u.i18n.t("dateOptions.ThisMonth"),
|
|
524
|
-
value: [g[0],
|
|
524
|
+
value: [g[0], h[1]],
|
|
525
525
|
key: "thisMonth"
|
|
526
526
|
};
|
|
527
527
|
return t.push(D), t;
|
|
528
528
|
}
|
|
529
|
-
}),
|
|
529
|
+
}), j = y({
|
|
530
530
|
/**
|
|
531
531
|
* 获取校验对象-默认使用对数字进行只保留数字、正数、小数后两位保留修正操作
|
|
532
532
|
*
|
|
@@ -559,7 +559,7 @@ const R = (e) => {
|
|
|
559
559
|
*/
|
|
560
560
|
getVf: (e, t, s) => {
|
|
561
561
|
const o = {};
|
|
562
|
-
s === void 0 && (s =
|
|
562
|
+
s === void 0 && (s = j.inputVal);
|
|
563
563
|
for (const r in t)
|
|
564
564
|
o[r] = (a) => {
|
|
565
565
|
e[r] = null, s({
|
|
@@ -640,8 +640,8 @@ const R = (e) => {
|
|
|
640
640
|
};
|
|
641
641
|
if (t.length) {
|
|
642
642
|
s && t.length > s && (t = t.substring(0, s));
|
|
643
|
-
const i = [], f = [], w = (n, g,
|
|
644
|
-
n === g ? Array.isArray(e[n]) ?
|
|
643
|
+
const i = [], f = [], w = (n, g, h) => {
|
|
644
|
+
n === g ? Array.isArray(e[n]) ? h.push(...e[n]) : h.push(e[n]) : h.push(p[n.substring(3)]);
|
|
645
645
|
};
|
|
646
646
|
Object.keys(e).forEach((n) => {
|
|
647
647
|
n.startsWith("get") ? w(n, "getCustom", i) : n.startsWith("del") ? w(n, "delCustom", f) : p[n] && (t = p[n](t));
|
|
@@ -680,7 +680,7 @@ const nt = (e) => {
|
|
|
680
680
|
},
|
|
681
681
|
emits: ["update:modelValue"],
|
|
682
682
|
setup(e, { emit: t }) {
|
|
683
|
-
const s = U(() =>
|
|
683
|
+
const s = U(() => m.loadModule("editor").then((n) => n.Editor)), o = U(() => m.loadModule("editor").then((n) => n.Toolbar)), r = e, a = t, l = P(), p = W(r.modelValue);
|
|
684
684
|
z(p, (n) => {
|
|
685
685
|
a("update:modelValue", n);
|
|
686
686
|
});
|
|
@@ -691,10 +691,10 @@ const nt = (e) => {
|
|
|
691
691
|
MENU_CONF: {
|
|
692
692
|
uploadImage: {
|
|
693
693
|
async customUpload(n, g) {
|
|
694
|
-
const
|
|
694
|
+
const h = await $.upload({
|
|
695
695
|
file: n
|
|
696
696
|
});
|
|
697
|
-
|
|
697
|
+
h.data = u.getBaseUrl(h.data), g(h.data, "", h.data), a("update:modelValue", p.value);
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
}
|
|
@@ -716,7 +716,7 @@ const nt = (e) => {
|
|
|
716
716
|
_(C(s), {
|
|
717
717
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
718
718
|
modelValue: p.value,
|
|
719
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
719
|
+
"onUpdate:modelValue": g[0] || (g[0] = (h) => p.value = h),
|
|
720
720
|
defaultConfig: f,
|
|
721
721
|
mode: "default",
|
|
722
722
|
onOnCreated: w
|
|
@@ -792,12 +792,7 @@ const nt = (e) => {
|
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
796
|
-
xlsx: () => import("xlsx"),
|
|
797
|
-
//@ts-ignore
|
|
798
|
-
sortablejs: () => import("sortablejs"),
|
|
799
|
-
editor: () => (Promise.resolve({ }), import("@wangeditor/editor-for-vue"))
|
|
800
|
-
}, e.use(K, {
|
|
795
|
+
}), e.use(K, {
|
|
801
796
|
customComponent: {
|
|
802
797
|
xEditor: ut
|
|
803
798
|
}
|
|
@@ -814,10 +809,10 @@ const nt = (e) => {
|
|
|
814
809
|
"/src/views/error/index.vue": () => import("./index-BTuR22Wh.js"),
|
|
815
810
|
"/src/views/layout/index.vue": () => import("./index-Bk_LJXIb.js"),
|
|
816
811
|
"/src/views/login/index.vue": () => import("./index-D47lvu37.js"),
|
|
817
|
-
"/src/views/pages/auth/api/index.vue": () => import("./index
|
|
818
|
-
"/src/views/pages/auth/menu/index.vue": () => import("./index-
|
|
819
|
-
"/src/views/pages/auth/role/index.vue": () => import("./index-
|
|
820
|
-
"/src/views/pages/auth/user/index.vue": () => import("./index-
|
|
812
|
+
"/src/views/pages/auth/api/index.vue": () => import("./index-DxQTvIMJ.js"),
|
|
813
|
+
"/src/views/pages/auth/menu/index.vue": () => import("./index-Dd54sn7c.js"),
|
|
814
|
+
"/src/views/pages/auth/role/index.vue": () => import("./index-CRagZR_l.js"),
|
|
815
|
+
"/src/views/pages/auth/user/index.vue": () => import("./index-WKWmXVBK.js"),
|
|
821
816
|
"/src/views/pages/db/index.vue": () => import("./index-DFNCjb_F.js"),
|
|
822
817
|
"/src/views/pages/email/config/index.vue": () => import("./index-CJ5aGrl0.js"),
|
|
823
818
|
"/src/views/pages/home/index.vue": () => import("./index-D8U8yEvx.js"),
|
|
@@ -829,7 +824,7 @@ const nt = (e) => {
|
|
|
829
824
|
"/src/views/pages/system/tenant/index.vue": () => import("./index-uPQ6O40Q.js")
|
|
830
825
|
});
|
|
831
826
|
if (!u.config.routes) {
|
|
832
|
-
|
|
827
|
+
m.fail("router.routes is required");
|
|
833
828
|
return;
|
|
834
829
|
}
|
|
835
830
|
Object.keys(u.config.routes).forEach((i) => {
|
|
@@ -868,16 +863,20 @@ const nt = (e) => {
|
|
|
868
863
|
{
|
|
869
864
|
path: "/",
|
|
870
865
|
redirect: "/home"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
path: "/:matchOthers(.*)*",
|
|
869
|
+
redirect: "/error"
|
|
871
870
|
}
|
|
872
871
|
]
|
|
873
872
|
});
|
|
874
|
-
return
|
|
873
|
+
return m.router = p, m.routes = l.array, p;
|
|
875
874
|
};
|
|
876
875
|
v.store = {
|
|
877
876
|
ssys: c,
|
|
878
877
|
suser: d,
|
|
879
878
|
sutil: v,
|
|
880
|
-
svf:
|
|
879
|
+
svf: j,
|
|
881
880
|
scurd: I
|
|
882
881
|
};
|
|
883
882
|
const gt = () => {
|
|
@@ -897,7 +896,7 @@ class Ct {
|
|
|
897
896
|
* 初始化
|
|
898
897
|
*/
|
|
899
898
|
static async init(t) {
|
|
900
|
-
t.use(mt), t.use(u.i18n), await u.i18n.setLang(), wt(),
|
|
899
|
+
t.use(mt), t.use(u.i18n), await u.i18n.setLang(), wt(), L.init();
|
|
901
900
|
const s = ft();
|
|
902
901
|
t.use(s), s.isReady().then(async () => {
|
|
903
902
|
t.mount("#app");
|
|
@@ -910,7 +909,7 @@ const O = F(st), Mt = async (e) => {
|
|
|
910
909
|
O.use(t), Ct.init(O);
|
|
911
910
|
};
|
|
912
911
|
export {
|
|
913
|
-
|
|
912
|
+
$ as ApiApp,
|
|
914
913
|
At as ApiAuthApi,
|
|
915
914
|
Ot as ApiAuthMenu,
|
|
916
915
|
_t as ApiAuthPhone,
|
|
@@ -920,9 +919,9 @@ export {
|
|
|
920
919
|
St as ApiCron,
|
|
921
920
|
Rt as ApiEmailConfig,
|
|
922
921
|
Vt as ApiErrorLog,
|
|
923
|
-
|
|
922
|
+
$t as ApiJob,
|
|
924
923
|
Ut as ApiLoginLog,
|
|
925
|
-
|
|
924
|
+
jt as ApiSmsConfig,
|
|
926
925
|
Dt as ApiSystemConfig,
|
|
927
926
|
Nt as ApiSystemTenant,
|
|
928
927
|
et as EDialog,
|
|
@@ -933,5 +932,5 @@ export {
|
|
|
933
932
|
c as ssys,
|
|
934
933
|
d as suser,
|
|
935
934
|
v as sutil,
|
|
936
|
-
|
|
935
|
+
j as svf
|
|
937
936
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("cc1-vue3"),require("cc1-ui"),require("cc1-form"),require("vue-router"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","cc1-vue3","cc1-ui","cc1-form","vue-router","element-plus"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.nestAuthAdmin={},h.Vue,h.cc1Vue3,h.toolsVueUI,h.cc1Form,h.VueRouter,h.ElementPlus))})(this,(function(h,e,$,se,u,R,ie){"use strict";class B{static all(t){return http.post("/auth/api/all",t)}static list(t){return http.post("/auth/api/list",t)}static create(t){return http.post("/auth/api/create",t)}static update(t){return http.post("/auth/api/update",t)}static delete(t){return http.post("/auth/api/delete",t)}}class I{static list(t){return http.post("/auth/menu/list",t)}static create(t){return http.post("/auth/menu/create",t)}static update(t){return http.post("/auth/menu/update",t)}static delete(t){return http.post("/auth/menu/delete",t)}}class re{static sendCode(t){return http.post("/auth/phone/sendCode",{phone:t})}}class A{static list(t){return http.post("/auth/role/list",t)}static roleList(t){return http.post("/auth/role/roleList",t)}static create(t){return http.post("/auth/role/create",t)}static update(t){return http.post("/auth/role/update",t)}static delete(t){return http.post("/auth/role/delete",t)}}class j{static list(t){return http.post("/auth/user/list",t)}static create(t){return http.post("/auth/user/create",t)}static update(t){return http.post("/auth/user/update",t)}static delete(t){return http.post("/auth/user/delete",t)}static login(t){return http.post("/auth/user/login",t)}}class F{static send(t){return http.post("/captcha/send",t)}static verify(t){return http.post("/captcha/verify",t)}}class W{static list(t){return http.post("/auth/loginLog/list",t)}static delete(t){return http.post("/auth/loginLog/delete",t)}}class ce{static list(t){return http.post({url:"cron/list",method:"post"},{...t})}static save(t){return http.post({url:"cron/save",method:"post"},t)}static remove(t){return http.post({url:"cron/remove",method:"post"},{id:t})}}class q{static list(t){return http.post("/email/config/list",t)}static create(t){return http.post("/email/config/create",t)}static update(t){return http.post("/email/config/update",t)}static delete(t){return http.post("/email/config/delete",t)}}class H{static list(t){return http.post("/log/error/list",t)}static delete(t){return http.post("/log/error/delete",t)}}class K{static list(t){return http.post("/schedule/job/list",t)}static create(t){return http.post("/schedule/job/create",t)}static update(t){return http.post("/schedule/job/update",t)}static delete(t){return http.post("/schedule/job/delete",t)}static execute(t){return http.post("/schedule/job/execute",t)}static changeStatus(t){return http.post("/schedule/job/changeStatus",t)}}class P{static list(t){return http.post("/sms/config/list",t)}static create(t){return http.post("/sms/config/create",t)}static update(t){return http.post("/sms/config/update",t)}static delete(t){return http.post("/sms/config/delete",t)}static send(t){return http.post("/sms/config/send",t)}}class U{static time(t){return http.post("/app/time",t)}static upload(t){return http.post({url:"/app/upload",headers:{"Content-Type":"multipart/form-data"}},t)}}class J{static list(t){return http.post("/system/config/list",t)}static create(t){return http.post("/system/config/create",t)}static update(t){return http.post("/system/config/update",t)}static delete(t){return http.post("/system/config/delete",t)}}class Y{static list(t){return http.post("/tenant/list",t)}static create(t){return http.post("/tenant/create",t)}static update(t){return http.post("/tenant/update",t)}static delete(t){return http.post("/tenant/delete",t)}}const S={ERouter:{change:"",reload:""},EDialog:{Insert:"",Update:"",Remove:""}};Object.keys(S).forEach(a=>{const t=S[a];Object.keys(t).forEach(n=>{a=="EDialog"?S[a][n]=n:S[a][n]=`${a}_${n}`})});const M=S.ERouter,G=S.EDialog,x=e.reactive({load:()=>{x.loginInfo=Cookie.get("loginInfo")||{},x.userInfo=x.loginInfo.userInfo||{},x.token=Cookie.get("token")},loginInfo:{},userInfo:{},token:null,setUserInfo:a=>{x.loginInfo=a,x.userInfo=a.userInfo,x.token=a.token,Cookie.set("loginInfo",a),Cookie.set("token",a.token)},clearInfo:()=>{x.token=null,x.userInfo={},f.setMenuList([],[]),f.setApiList([])},hasApi:a=>x.loginInfo.roleInfo.apiList.includes(a)});class E{static baseUrl="";static init(){const t=(l,o,...s)=>{o.forEach(i=>{l[i]&&l[i](...s)})},n=(l,o,s)=>{let i=s?.data?.code||l,c=s?.data.message;o.data.toast?o.data.toast(i,s,o):u.TSys.fail(g.i18n.t(`code.${i}`,{msg:c||"请求异常"})||g.i18n.t("code.OtherException")),t(o.data,["final","fail","complete"],l==200,o,s),i==401&&(x.clearInfo(),o.data.toLogin?.()!==!1&&u.TSys.router.replace("/login"))};http.setConfig({base:E.baseUrl,before(l){l.param.headers=l.param.headers||{},Object.keys(l.data).forEach(s=>{(l.data[s]===void 0||l.data[s]===null)&&delete l.data[s]});const o=x.token||"";o&&(l.param.headers.Token=o)},after(l,o){const{code:s}=l.data;if(s!=200)throw n(s,o,l),new Error(s);t(o.data,["final","success","complete"],l.data,o,l)},error:n})}}class g{static env;static i18n;static elementLocale;static staticDir;static config;static setConfig(t){const n={website:{recordNumber:"ICP备000000000号-1",author:"Copyright © 2022-2025 Design By Veigar"},staticDir:"/static_admin"};this.config=ObjectUtil.deepMerge(n,t),this.env=this.config.env,this.i18n=this.config.i18n,this.staticDir=this.config.staticDir,this.elementLocale=this.config.elementLocale,E.baseUrl=this.env.API}static getBaseUrl(t){return t=E.baseUrl.replace("/api","/")+t,t=t.replace(/(?<!:)\/{2,}/g,"/"),t}}const Z=a=>{const t=JSONUtil.cp(a),n=l=>t.filter(s=>{let i=s.parentId;return s.parentId.includes(",")&&(i=s.parentId.split(",").pop()),i===l}).map(s=>({...s,children:n(s._id)})).sort((s,i)=>s.sort-i.sort);return n("0")},f=e.reactive({getTableTree:Z,auth:{list:["/api/system/list","/api/system/detail"],isPass:a=>f.auth.list.includes(a)},load:()=>{f.menuListSource=JSONUtil.cp(Cookie.get("menuList"))},layout:{collapse:!1},menuListSource:[],menuList:[],setMenuList:(a,t)=>{f.menuList=a,f.menuListSource=JSONUtil.cp(t),Cookie.set("menuList",t)},getMenuList:async()=>{let a=Cookie.get("menuList");f.menuListSource=JSONUtil.cp(a);try{if(StrUtil.isNull(a)||(a=a),StrUtil.isNull(a))return u.TSys.router.push("/login"),[];let t=Z(a);return f.setMenuList(t,a),JSONUtil.cp(f.menuList)}catch{u.TSys.router.push("/login")}return JSONUtil.cp(f.menuList)},apiList:[],setApiList:a=>{f.apiList=a,Cookie.set("apiList",f.apiList)},getApiList:async()=>{let a=Cookie.get("apiList");try{return StrUtil.isNull(a)||(a=a),StrUtil.isNull(a)?(u.TSys.router.push("/login"),[]):(f.setApiList(a),f.apiList)}catch{u.TSys.router.push("/login")}return f.apiList},upload:{handler:a=>{const t=document.createElement("input");t.type="file",t.accept=a.accept||"image/*",t.multiple=a.multiple||!1,t.onchange=async n=>{const l=n.target.files[0];if(l){const o=await U.upload({file:l});a.callback(o.data),a.toast,u.TSys.success("上传成功")}else a.callback("")},t.click()}},preview:{show:!1,srcList:[],index:0,open:(a,t=0)=>{f.preview.index=t,f.preview.srcList=a.map(n=>g.getBaseUrl(n)),f.preview.show=!0}}}),pe=e.defineComponent({name:"App",__name:"App",setup(a){const t=e.reactive({locale:g.elementLocale,show:!0,reload:()=>{t.show=!1,e.nextTick(()=>{t.show=!0})}});return CEvent.on(M.reload,t.reload),(n,l)=>{const o=e.resolveComponent("x-route-event"),s=e.resolveComponent("router-view"),i=e.resolveComponent("el-image-viewer"),c=e.resolveComponent("el-config-provider");return e.openBlock(),e.createBlock(c,{locale:t.locale},{default:e.withCtx(()=>[e.createVNode(o),e.createVNode(s),e.unref(f).preview.show?(e.openBlock(),e.createBlock(i,{key:0,"url-list":e.unref(f).preview.srcList,"initial-index":e.unref(f).preview.index,onClose:l[0]||(l[0]=r=>e.unref(f).preview.show=!1)},null,8,["url-list","initial-index"])):e.createCommentVNode("",!0)]),_:1},8,["locale"])}}}),C=e.reactive({findOptions:(a,t)=>{const n=a.column.find(o=>o.key===t),l=o=>o.replace(/-([a-z])/g,(s,i)=>i.toUpperCase());if(n)return n.options[l(n.type)]},setOptionsData:(a,t,n)=>{const l=C.findOptions(a,t);l&&(l.data=n)},form:{openBefore:{parentId:(a,t,n,l)=>{a?t.type===G.Insert?(t.form.parentId=a._id,t.form.sort=a.children.length+1):t.form.parentId=a.parentId.substring(a.parentId.lastIndexOf(",")+1):(t.form.parentId="0",t.form.sort=n.length+1),C.setOptionsData(l,"parentId",[{_id:"0",title:"根",children:n}])}}}}),V=e.reactive({baseUrl:"",reset:()=>{},store:{},getStore(a){return V.store[a]},getDateOptions:(a=!0)=>{const t=[];a&&t.push({label:g.i18n.t("dateOptions.AllDates"),value:null,key:"all"}),t.push({label:g.i18n.t("dateOptions.Today"),value:TimeUtil.somedayse(),key:"today"}),t.push({label:g.i18n.t("dateOptions.Yesterday"),value:TimeUtil.somedayse(-1),key:"yesterday"});const n=new Date,l=TimeUtil.somedayse,o=n.getDay(),s=l(1-o)[0],i=l(7-o)[1],c={label:g.i18n.t("dateOptions.ThisWeek"),value:[s,i],key:"thisWeek"};t.push(c);const r=l(1-o-7)[0],d=l(7-o-7)[1],_={label:g.i18n.t("dateOptions.LastWeek"),value:[r,d],key:"lastWeek"};t.push(_);const p=new Date;p.setDate(1);const y=l(0,p);p.setMonth(p.getMonth()+1),p.setDate(1),p.setDate(p.getDate()-1);const m=l(0,p),w={label:g.i18n.t("dateOptions.ThisMonth"),value:[y[0],m[1]],key:"thisMonth"};return t.push(w),t}}),z=e.reactive({getVf:(a,t,n)=>{const l={};n===void 0&&(n=z.inputVal);for(const o in t)l[o]=s=>{a[o]=null,n({val:s.target.value,after:i=>{a[o]=i},...t[o]})};return l},inputVal:a=>{let{val:t,length:n,trim:l=!0,fixed:o=2,min:s=0,max:i=1e9}=a;l&&(t=t.replace(/\s+|\s+$/g,""));const c={int:r=>(r=r.replace(/[^\d]/g,""),r=Number(r)||0,r=s&&r<s?s:r,r=i&&r>i?i:r,r),float:r=>(r=r.replace(/^0(\d)/,"$1").replace(/^\./,"0").replace(/[^\d.]/g,"").replace(/^(\d*\.?\d*).*$/,"$1").replace(new RegExp(`^(\\d+)\\.(\\d{${o}}).*`),"$1.$2"),r),hanzi:r=>(r=r.replace(/[^\u4e00-\u9fa5]/g,""),r),Num:"0-9",En:"a-zA-Z",Hanzi:"一-龥"};if(t.length){n&&t.length>n&&(t=t.substring(0,n));const r=[],d=[],_=(p,y,m)=>{p===y?Array.isArray(a[p])?m.push(...a[p]):m.push(a[p]):m.push(c[p.substring(3)])};Object.keys(a).forEach(p=>{p.startsWith("get")?_(p,"getCustom",r):p.startsWith("del")?_(p,"delCustom",d):c[p]&&(t=c[p](t))}),r.length&&(t=t.replace(new RegExp(`[^${r.join("")}]`,"g"),"")),d.length&&(t=t.replace(new RegExp(`[${d.join("")}]`,"g"),""))}return a.after(t),t}}),de={install:a=>{const t=Cookie.clear.bind(Cookie);Cookie.clear=async(n,l)=>{n=n||{},n.excludeList=n.excludeList||[],n.excludeList.push("apiurl"),await t(n,l)}}},me={install:a=>{$.Scope.CEventBean=CEventBean,$.Scope.TimerBean=TimerBean}};let L={},D={};const ue={install:a=>{a.use(se),L=Cookie.get("iconObj")||{},D=Cookie.get("siconObj")||{},VConf.vicon.fun.getRes=async t=>L[t],VConf.vicon.fun.setRes=(t,n)=>{L[t]=n,Cookie.set("iconObj",L)},VConf.vsicon.url=g.staticDir+"/vicon/svg",VConf.vsicon.lib="",VConf.vsicon.fun.getRes=async t=>D[t],VConf.vsicon.fun.setRes=(t,n)=>{D[t]=n,Cookie.set("siconObj",D)}}},fe={style:{border:"1px solid #ccc"}},he=e.defineComponent({__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(a,{emit:t}){const n=e.defineAsyncComponent(()=>u.TSys.loadModule("editor").then(p=>p.Editor)),l=e.defineAsyncComponent(()=>u.TSys.loadModule("editor").then(p=>p.Toolbar)),o=a,s=t,i=e.shallowRef(),c=e.ref(o.modelValue);e.watch(c,p=>{s("update:modelValue",p)});const r={excludeKeys:["group-video"]},d={placeholder:"请输入内容...",MENU_CONF:{uploadImage:{async customUpload(p,y){const m=await U.upload({file:p});m.data=g.getBaseUrl(m.data),y(m.data,"",m.data),s("update:modelValue",c.value)}}}};e.onBeforeUnmount(()=>{const p=i.value;p?.destroy()});const _=p=>{i.value=p};return(p,y)=>(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.unref(l),{style:{"border-bottom":"1px solid #ccc"},editor:i.value,defaultConfig:r,mode:"default"},null,8,["editor"]),e.createVNode(e.unref(n),{style:{height:"500px","overflow-y":"hidden"},modelValue:c.value,"onUpdate:modelValue":y[0]||(y[0]=m=>c.value=m),defaultConfig:d,mode:"default",onOnCreated:_},null,8,["modelValue"])]))}}),_e={install:a=>{const t={activeValue:1,inactiveValue:0,activeText:"启用",inactiveText:"禁用",inlinePrompt:!0,tableConfig:{loadList:!1}};u.TForm.error.callback=(n,l)=>"必填",u.TFormConfig.setConfig({dialog:{delete:{content:'确定要执行删除操作吗,删除后<span style="color: red;">无法进行恢复</span>'}},size:{table:"default",form:"default",search:"default"},pagination:{size:20,pageSizes:[20,50,100,500],layout:"total, sizes, prev, pager, next, jumper"},table:{index:!0},tools:{export:{dropdown:!1}},columnConfig:{options:{switch:t,datetime:{startPlaceholder:"开始时间",endPlaceholder:"结束时间"},baseupload:{table:{showOverflowTooltip:!1}},basegroup:{dataApiConfig:{once:!0,init:!1,update:!0}},formAdd:{switch:t},formUpdate:{switch:t},search:{datetime:{startPlaceholder:"开始时间",endPlaceholder:"结束时间"}}}}}),u.TSys.moduleObj={xlsx:()=>import("xlsx"),sortablejs:()=>import("sortablejs"),editor:()=>(Promise.resolve().then(()=>Ve),import("@wangeditor/editor-for-vue"))},a.use(u,{customComponent:{xEditor:he}})}},ye={install:a=>{a.use(de),a.use(me),a.use(ue),a.use(_e)}},be=()=>{const a=r=>r.replace(/\/index$/,"");let t=Object.assign({"/src/views/error/index.vue":()=>Promise.resolve().then(()=>Be),"/src/views/layout/index.vue":()=>Promise.resolve().then(()=>He),"/src/views/login/index.vue":()=>Promise.resolve().then(()=>et),"/src/views/pages/auth/api/index.vue":()=>Promise.resolve().then(()=>tt),"/src/views/pages/auth/menu/index.vue":()=>Promise.resolve().then(()=>xt),"/src/views/pages/auth/role/index.vue":()=>Promise.resolve().then(()=>kt),"/src/views/pages/auth/user/index.vue":()=>Promise.resolve().then(()=>Ct),"/src/views/pages/db/index.vue":()=>Promise.resolve().then(()=>Nt),"/src/views/pages/email/config/index.vue":()=>Promise.resolve().then(()=>Tt),"/src/views/pages/home/index.vue":()=>Promise.resolve().then(()=>Lt),"/src/views/pages/log/error/index.vue":()=>Promise.resolve().then(()=>Dt),"/src/views/pages/log/loginlog/index.vue":()=>Promise.resolve().then(()=>Ot),"/src/views/pages/schedule/job/index.vue":()=>Promise.resolve().then(()=>It),"/src/views/pages/sms/config/index.vue":()=>Promise.resolve().then(()=>At),"/src/views/pages/system/config/index.vue":()=>Promise.resolve().then(()=>jt),"/src/views/pages/system/tenant/index.vue":()=>Promise.resolve().then(()=>Pt)});if(!g.config.routes){u.TSys.fail("router.routes is required");return}Object.keys(g.config.routes).forEach(r=>{t[r]=g.config.routes[r]});const n={},l=["light","dark"],o="light",s="dark";Object.keys(t).forEach(r=>{l.forEach(d=>{o!=d&&(new RegExp(`^/src/views/${d}`).test(r)||(n[r]=t[r]),new RegExp(`^/src/views/${s}`).test(r)&&t[r])})});const i=$.CRouter.init({modules:n,children:[{path:"/layout",component:"/layout",childrenReg:["^/pages"]}],setInfoHook(r){r.meta={title:r.path}},mapKeyPathHook(r){return a(r)},pathHook(r){return a(r).replace(/^\/pages/,"")}}),c=R.createRouter({history:R.createWebHashHistory(),routes:[...i.array,{path:"/",redirect:"/home"}]});return u.TSys.router=c,u.TSys.routes=i.array,c};V.store={ssys:f,suser:x,sutil:V,svf:z,scurd:C};const ge=()=>{Object.keys(V.store).forEach(a=>{a!=="sutil"&&V.store[a].reset?.()})},we=()=>{Object.keys(V.store).forEach(a=>{a!=="sutil"&&V.store[a].load?.()})},xe=async()=>{we()};V.reset=ge;class ke{static async init(t){t.use(ye),t.use(g.i18n),await g.i18n.setLang(),xe(),E.init();const n=be();t.use(n),n.isReady().then(async()=>{t.mount("#app")})}}const O=e.createApp(pe),Ce=async a=>{g.setConfig(a),await g.config.install?.(O),O.use(window.ElementPlus);const t=await Promise.resolve().then(()=>zt);O.use(t),ke.init(O)},Ve=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ne={style:{background:"#7395ff",width:"100vw",height:"100vh"}},Te={class:"nfsystem"},Se=["src"],Ee={class:"nftitle"},$e=e.defineComponent({__name:"index",setup(a){const t=()=>{u.TSys.router.push("/")};return(n,l)=>{const o=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Ne,[e.createElementVNode("div",Te,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/404.png"},null,8,Se),e.createElementVNode("div",Ee,[l[2]||(l[2]=e.createElementVNode("h2",null,"页面走丢了...",-1)),l[3]||(l[3]=e.createElementVNode("h4",null,"远方的朋友你好!非常抱歉,您所请求的页面不存在!",-1)),l[4]||(l[4]=e.createElementVNode("h4",null,"请仔细检查您输入的网址是否正确。",-1)),e.createVNode(o,{type:"warning",onClick:l[0]||(l[0]=s=>t()),style:{width:"220px"}},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("返回主页",-1)])),_:1,__:[1]})])])])}}}),T=(a,t)=>{const n=a.__vccOpts||a;for(const[l,o]of t)n[l]=o;return n},Be=Object.freeze(Object.defineProperty({__proto__:null,default:T($e,[["__scopeId","data-v-29641492"]])},Symbol.toStringTag,{value:"Module"})),Le={class:"header row no-wrap"},De={class:"header-right"},Oe={class:"header-user-con"},Ie={class:"el-dropdown-link row items-center"},Ae={class:"user-avator"},je=["src"],Pe=T(e.defineComponent({__name:"Header",setup(a){const t=e.reactive({layout:f.layout,message:2}),n=()=>{t.layout.collapse=!t.layout.collapse};e.onMounted(()=>{document.body.clientWidth<1500&&n()});const l=o=>{o=="loginout"&&u.TSys.router.push("/login")};return(o,s)=>{const i=e.resolveComponent("v-icon"),c=e.resolveComponent("el-dropdown-item"),r=e.resolveComponent("el-dropdown-menu"),d=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("div",{class:"collapse-btn",onClick:n},[e.createVNode(i,{name:"menu",size:"32",color:["#34B0E5"],style:e.normalizeStyle([{transition:"all 0.3s"},{transform:`rotateZ(${t.layout.collapse?90:0}deg)`}])},null,8,["style"])]),s[2]||(s[2]=e.createElementVNode("i",{class:"el-icon-lx-redpacket_fill",style:{"font-size":"30px",color:"#ff5900"}},null,-1)),s[3]||(s[3]=e.createElementVNode("div",{class:"logo col"},"后台管理",-1)),e.createElementVNode("div",De,[e.createElementVNode("div",Oe,[e.createVNode(d,{class:"user-name",trigger:"click",onCommand:l},{dropdown:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(c,{command:"user"},{default:e.withCtx(()=>s[0]||(s[0]=[e.createTextVNode("个人中心",-1)])),_:1,__:[0]}),e.createVNode(c,{divided:"",command:"loginout"},{default:e.withCtx(()=>s[1]||(s[1]=[e.createTextVNode("退出登录",-1)])),_:1,__:[1]})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",Ie,[e.createTextVNode(e.toDisplayString(e.unref(x).userInfo.nickname)+" ",1),e.createElementVNode("div",Ae,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/head.jpg"},null,8,je)])])]),_:1})])])])}}}),[["__scopeId","data-v-7d929cc4"]]),Ue={class:"flex items-center vicon"},Me={class:"flex items-center vicon"},ze=T(e.defineComponent({__name:"Sidebar",setup(a){const t=e.reactive({layout:f.layout,menu:[]}),n=async()=>{let s=await f.getMenuList();const i=c=>c.filter(r=>(r.type===0&&(r.url="/"+StrUtil.getId()),StrUtil.isNull(r.children)||(r.children=i(r.children)),r.show));s=i(s),t.menu=s};e.onMounted(()=>{n()});const l=e.computed(()=>u.TSys.router.currentRoute.value.path),o=s=>{l.value!==s&&window.innerWidth<900&&Timer.once(()=>{t.layout.collapse=!t.layout.collapse},300)};return(s,i)=>{const c=e.resolveComponent("v-icon"),r=e.resolveComponent("el-menu-item"),d=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu"),p=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sidebar",[t.layout.collapse?"sidebar-hideen":"sidebar-show"]])},[e.createVNode(p,{height:"100%",style:{"background-color":"#324157"}},{default:e.withCtx(()=>[e.createVNode(_,{class:"sidebar-el-menu","default-active":l.value,collapse:t.layout.collapse,"text-color":"#bfcbd9","active-text-color":"#20a0ff","unique-opened":"",router:"",onSelect:o},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menu,y=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y.children&&y.children?.length>0?(e.openBlock(),e.createBlock(d,{index:y.url,key:y.url},{title:e.withCtx(()=>[e.createElementVNode("div",Ue,[e.createVNode(c,{lib:y.iconLib,name:y.iconName,size:"24",color:["#1890ff"]},null,8,["lib","name"])]),e.createElementVNode("span",null,e.toDisplayString(y.title),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.children,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.children&&m.children?.length>0?(e.openBlock(),e.createBlock(d,{key:0,index:m.url},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.title),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.children,(w,k)=>(e.openBlock(),e.createBlock(r,{key:k,index:w.url},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.title),1)]),_:2},1032,["index"]))),128))]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(r,{key:1,index:m.url},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.title),1)]),_:2},1032,["index"]))],64))),256))]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(r,{index:y.url,key:y.url},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(y.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Me,[e.createVNode(c,{lib:y.iconLib,name:y.iconName,size:"24",color:["#1890ff"]},null,8,["lib","name"])])]),_:2},1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse"])]),_:1})],2)}}}),[["__scopeId","data-v-ac094262"]]),Re={style:{display:"flex",height:"calc(100% - 70px)"}},Fe={class:"content"},We={class:"view"},qe={class:"row flex-center",style:{gap:"10px","font-size":"12px"}},He=Object.freeze(Object.defineProperty({__proto__:null,default:T(e.defineComponent({__name:"index",setup(a){const t=e.reactive({keepAlive:["/auth/role","/auth/api"]});return(n,l)=>{const o=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Pe),e.createElementVNode("div",Re,[e.createVNode(ze),e.createElementVNode("div",Fe,[e.createElementVNode("div",null,[e.createElementVNode("div",We,[e.createVNode(o,null,{default:e.withCtx(({Component:s})=>[e.createVNode(e.Transition,{name:"slide-fade",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.KeepAlive,{include:t.keepAlive},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s),{key:n.$route.fullPath}))],1032,["include"]))]),_:2},1024)]),_:1}),e.createElementVNode("div",qe,[e.createElementVNode("div",null,e.toDisplayString(e.unref(g).config.website.author),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(g).config.website.recordNumber),1)])])])])])],64)}}}),[["__scopeId","data-v-7d2c2356"]])},Symbol.toStringTag,{value:"Module"})),Ke=["id"],Je=e.defineComponent({__name:"index",setup(a){const t=StrUtil.getId(),n=e.reactive({boxid:"canvas_snow-"+t,itemid:"canvas_sakura-"+t});let l;const o=()=>{const s=document.getElementById(n.boxid);if(s){const i=s.getBoundingClientRect();innerHeight=i.height,innerWidth=i.width;let c=document.getElementById(n.itemid);c.width=innerWidth,c.height=innerHeight}};return e.onMounted(()=>{const s=document.getElementById(n.boxid).getBoundingClientRect();let i=s.height,c=s.width,r=new Image;r.src=g.staticDir+"/bg/yh.png";let d=function(m,w,k,b,N){this.x=m,this.y=w,this.s=k,this.r=b,this.fn=N};d.prototype.draw=function(m){m.save(),m.translate(this.x,this.y),m.rotate(this.r),m.drawImage(r,0,0,40*this.s,40*this.s),m.restore()},d.prototype.update=function(){this.x=this.fn.x(this.x,this.y),this.y=this.fn.y(this.y,this.y),this.r=this.fn.r(this.r),(this.x>c||this.x<0||this.y>i||this.y<0)&&(this.r=p("fnr"),Math.random()>.4?(this.x=p("x"),this.y=0,this.s=p("s"),this.r=p("r")):(this.x=c,this.y=p("y"),this.s=p("s"),this.r=p("r")))};let _=function(){this.list=[]};_.prototype.push=function(m){this.list.push(m)},_.prototype.update=function(){for(let m=0,w=this.list.length;m<w;m++)this.list[m].update()},_.prototype.draw=function(m){for(let w=0,k=this.list.length;w<k;w++)this.list[w].draw(m)},_.prototype.get=function(m){return this.list[m]},_.prototype.size=function(){return this.list.length};function p(m){let w,k;switch(m){case"x":w=Math.random()*c;break;case"y":w=Math.random()*i;break;case"s":w=Math.random();break;case"r":w=Math.random()*6;break;case"fnx":k=-.5+Math.random()*1,w=function(b,N){return b+.5*k-1.7};break;case"fny":k=1.5+Math.random()*.7,w=function(b,N){return N+k};break;case"fnr":k=Math.random()*.03,w=function(b){return b+k};break}return w}function y(){let m=document.createElement("canvas"),w;m.height=i,m.width=c,m.setAttribute("style","position: absolute;left: 0;top: 0;pointer-events: none;object-fit:cover;"),m.setAttribute("id",n.itemid),document.getElementById(n.boxid).appendChild(m),w=m.getContext("2d");let k=new _;for(let b=0;b<50;b++){let N,v,ee,te,oe,ne,le,ae;v=p("x"),ee=p("y"),oe=p("r"),te=p("s"),ne=p("fnx"),le=p("fny"),ae=p("fnr"),N=new d(v,ee,te,oe,{x:ne,y:le,r:ae}),N.draw(w),k.push(N)}l=function(){w.clearRect(0,0,m.width,m.height),k.update(),k.draw(w),requestAnimationFrame(l)},requestAnimationFrame(l)}r.onload=function(){y()},window.addEventListener("resize",o)}),e.onUnmounted(()=>{window.removeEventListener("resize",o),window.cancelAnimationFrame(l);let s=document.getElementById(n.itemid);s?.parentNode?.removeChild(s)}),(s,i)=>(e.openBlock(),e.createElementBlock("div",{id:n.boxid},null,8,Ke))}}),Ye={class:"absolute fit"},Ge={class:"login-icp"},Ze={class:"ms-login"},Xe={class:"row no-wrap",style:{width:"100%"}},Qe={class:"row no-wrap",style:{width:"100%"}},ve={class:"login-btn"},et=Object.freeze(Object.defineProperty({__proto__:null,default:T(e.defineComponent({__name:"index",setup(a){const t=e.reactive({param:{isPhone:!1,login_name:"",login_password:"",phone:"",code:""},textCode:{loading:!1,text:"发送验证码",status:!1},rules:{login_name:[{required:!0,message:"请输入用户名",trigger:"blur"}],login_password:[{required:!0,message:"请输入密码",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},loading:!1,text:"登录"});x.clearInfo();const n=e.ref(),l=()=>{n.value.validate(async c=>{if(c){let r=t.param.isPhone?{phone:t.param.phone,code:t.param.code}:{account:t.param.login_name,password:t.param.login_password};t.loading=!0,t.text="加载中";const d=await j.login({...r,final(p,y,m){t.loading=!1,t.text="登录"}});x.setUserInfo(d.data);let _=f.getTableTree(d.data.roleInfo.menuList);f.setMenuList(_,d.data.roleInfo.menuList),f.setApiList(d.data.roleInfo.apiList),u.TSys.router.push("/")}})};let o=null;const s=c=>{Timer.un(o),StrUtil.isNull(c)&&(c=parseInt(Cookie.get("codeTime"))),!StrUtil.isNull(c)&&(t.textCode.status=!1,o=Timer.on(()=>{let r=new Date().getTime();if(r-c>0)t.textCode.status=!1,Timer.un(o),t.textCode.text="发送验证码";else{t.textCode.status=!0;const d=(c-r)/1e3;t.textCode.text=d.toFixed(0)+"秒后再试"}},1e3,!0))},i=async()=>{const c=await F.send({type:1,content:"1518079148@qq.com"});console.log("res",c)};return e.onMounted(()=>{s()}),(c,r)=>{const d=e.resolveComponent("el-button"),_=e.resolveComponent("el-input"),p=e.resolveComponent("el-form-item"),y=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{class:"login-wrap",style:e.normalizeStyle({backgroundImage:`url(${e.unref(g).staticDir+"/bg/g-1.jpg"})`})},[e.createElementVNode("div",Ye,[e.createVNode(Je,{class:"fit"})]),e.createElementVNode("div",Ge,[e.createElementVNode("div",null,e.toDisplayString(e.unref(g).config.website.author),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(g).config.website.recordNumber),1)]),e.createElementVNode("div",Ze,[r[9]||(r[9]=e.createElementVNode("div",{class:"ms-title"},"系统登陆",-1)),e.createVNode(y,{model:t.param,rules:t.rules,ref_key:"login",ref:n,"label-width":"0px",class:"ms-content"},{default:e.withCtx(()=>[t.param.isPhone?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(p,{prop:"phone"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.param.phone,"onUpdate:modelValue":r[3]||(r[3]=m=>t.param.phone=m),placeholder:"手机号"},{default:e.withCtx(()=>[e.createVNode(d,{slot:"prepend",icon:"el-icon-lx-people"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(p,{prop:"code"},{default:e.withCtx(()=>[e.createElementVNode("div",Qe,[e.createVNode(_,{placeholder:"验证码",modelValue:t.param.code,"onUpdate:modelValue":r[4]||(r[4]=m=>t.param.code=m),onKeyup:r[5]||(r[5]=e.withKeys(m=>l(),["enter","native"])),class:"input-phone"},{default:e.withCtx(()=>[e.createVNode(d,{slot:"prepend",icon:"el-icon-lx-lock"})]),_:1},8,["modelValue"]),e.createVNode(d,{loading:t.textCode.loading,disabled:t.textCode.status,type:"primary",onClick:r[6]||(r[6]=m=>i()),style:{"border-radius":"0px 4px 4px 0px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.textCode.text),1)]),_:1},8,["loading","disabled"])])]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(p,{prop:"login_name"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.param.login_name,"onUpdate:modelValue":r[0]||(r[0]=m=>t.param.login_name=m),placeholder:"账号"},{default:e.withCtx(()=>[e.createVNode(d,{slot:"prepend",icon:"el-icon-lx-people"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(p,{prop:"login_password"},{default:e.withCtx(()=>[e.createElementVNode("div",Xe,[e.createVNode(_,{type:"password",placeholder:"密码",modelValue:t.param.login_password,"onUpdate:modelValue":r[1]||(r[1]=m=>t.param.login_password=m),onKeyup:r[2]||(r[2]=e.withKeys(m=>l(),["enter","native"])),class:e.normalizeClass([t.param.isPhone?"input-phone":void 0])},{default:e.withCtx(()=>[e.createVNode(d,{slot:"prepend",icon:"el-icon-lx-lock"})]),_:1},8,["modelValue","class"])])]),_:1})],64)),e.createElementVNode("div",ve,[e.createVNode(d,{type:"primary",onClick:r[7]||(r[7]=m=>l()),loading:t.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),_:1},8,["loading"]),e.createElementVNode("div",{style:{color:"#ffffff","font-size":"14px","margin-top":"10px",cursor:"pointer"},onClick:r[8]||(r[8]=m=>t.param.isPhone=!t.param.isPhone)}," 切换"+e.toDisplayString(t.param.isPhone?"账号":"验证码")+"登录 ",1)])]),_:1},8,["model","rules"])])],4)}}}),[["__scopeId","data-v-9b624341"]])},Symbol.toStringTag,{value:"Module"})),tt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({data:[],option:{api:B,search:{show:!1},data(n){return t.data=f.getTableTree(n),t.data},table:{border:!0,index:!1},column:[{key:"parentId",label:"父级",type:"tree-select",value:"0",form:{span:12},options:{treeSelect:{data:[],multiple:!1}},show:{table:!1}},{key:"title",label:"名称",type:"input",value:"",table:{width:"250px",align:"left"},rules:!0},{key:"type",label:"类型",type:"select",value:0,options:{select:{data:[{label:"目录",value:0},{label:"接口",value:1}]}}},{key:"sort",label:"排序",type:"input",value:0,table:{width:"80px",align:"center"},form:{span:12}},{key:"url",label:"地址",type:"select",value:"",show:{form:n=>n.type===1},options:{select:{filterable:!0,data:[]}},table:{minWidth:"250px",align:"left"},form:{span:12}}],form:{openBefore:async(n,l)=>{C.form.openBefore.parentId(n,l,t.data,t.option);const o=await t.api.getList();C.setOptionsData(t.option,"url",o.map(s=>({label:s.path,value:s.path})))}},tools:{add:n=>n===void 0?!0:n.type===0,update:!0,delete:!0,export:{show:!1},expand:!0}},api:{list:[],getList:async()=>{if(t.api.list.length)return t.api.list;u.TSys.loading(!0);const n=await B.all({final(l,o,s){u.TSys.loading(!1)}});return t.api.list=n.data,t.api.list}}});return(n,l)=>{const o=e.resolveComponent("el-tag"),s=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(s,{option:t.option},{"table-type":e.withCtx(({row:i})=>[i.type===0?(e.openBlock(),e.createBlock(o,{key:0,type:"success"},{default:e.withCtx(()=>l[0]||(l[0]=[e.createTextVNode("目录",-1)])),_:1,__:[0]})):(e.openBlock(),e.createBlock(o,{key:1,type:"warning"},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("接口",-1)])),_:1,__:[1]}))]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),ot=e.defineComponent({__name:"addIconItem",props:{isbig:{default:!1},el:{default:{}},lib:{default:""},color:{default:""},nofill:{default:!1}},setup(a){const t=e.ref({}),n=e.reactive({show:!1,observer:{}});return e.onMounted(()=>{n.observer=new IntersectionObserver((l,o)=>{l.forEach(s=>{n.show=s.isIntersecting})},{threshold:0}),n.observer.observe(t.value)}),e.onUnmounted(()=>{n.observer.disconnect()}),(l,o)=>{const s=e.resolveComponent("VIcon");return e.openBlock(),e.createElementBlock("span",{style:e.normalizeStyle({minHeight:a.isbig?"40px":"20px"}),ref_key:"_dom",ref:t},[n.show?(e.openBlock(),e.createBlock(s,{key:0,lib:a.lib,name:a.el.name,size:a.isbig?40:20,color:a.color,nofill:a.nofill},null,8,["lib","name","size","color","nofill"])):e.createCommentVNode("",!0)],4)}}}),nt={class:"row items-center",style:{gap:"10px"}},lt=["onUpdate:modelValue"],at=e.defineComponent({__name:"colorChoose",props:{colors:{default:[]},length:{default:6}},emits:["update:colors"],setup(a,{emit:t}){const n=a,l=t,o=e.reactive({color:[]});for(let r=0;r<n.length;r++)o.color.push({value:n.colors[r]||"#000000"});const s=()=>l("update:colors",o.color.map(r=>r.value));s();const i=$.Scope.Timer();let c=null;return e.watch(()=>o.color,()=>{i.un(c),c=i.once(()=>{s()},100)},{deep:!0}),(r,d)=>(e.openBlock(),e.createElementBlock("div",nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.color,(_,p)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:"color","onUpdate:modelValue":y=>o.color[p].value=y},null,8,lt)),[[e.vModelText,o.color[p].value]])),256))]))}}),st={class:"row items-center",style:{height:"60px",overflow:"auto"}},it={class:"row items-center",style:{gap:"10px",margin:"15px 0"}},rt={class:"row items-center",style:{gap:"10px","margin-bottom":"15px"}},ct={class:"row items-center"},pt={class:"flex items-center",style:{"margin-bottom":"10px"}},dt={style:{"margin-left":"10px"}},mt={key:0,class:"row"},ut=["onClick"],ft={style:{width:"0px"},class:"flex flex-center"},ht={style:{"text-wrap":"nowrap"}},_t={class:"dialog-footer"},yt=T(e.defineComponent({__name:"addDialog",props:{show:{default:!1},iconName:{default:"home"},iconLib:{default:"ant"},iconFill:{default:[]}},emits:["close","update:show"],setup(a,{emit:t}){const n=a;e.watch(()=>n.show,()=>{o.show=n.show,o.show&&o.open()});const l=t,o=e.reactive({libs:[],lib:"",size:0,nofill:!1,isbig:!1,getlibs:async()=>{if(o.libs.length)return;const s=VConf.vicon,i=`${s.url}/_keys.json`;let c=await s.fun.getRes(i);c||(c=await s.fun.getResorce(i,!0));const r=`${s.url}/_size.json`;let d=await s.fun.getRes(r);d||(d=await s.fun.getResorce(r,!0)),o.size=d.num,o.libs=c},init:()=>{o.lib=n.iconLib||"ant",o.item.lib=n.iconLib||"ant",o.item.name=n.iconName||"home",o.color.length=0,o.color.push(...n.iconFill)},changeLib:()=>{o.open(!1)},list:{},title:"选择图标",findName:"",color:[],item:{lib:"",name:""},show:!1,showIcon:!1,open:async(s=!0)=>{u.TSys.loading(!0);const i=VConf.vicon;await o.getlibs(),s&&o.init(),o.showIcon=!1;const c=o.lib,r=`${i.url}/${c}/_all.json`;if(o.list[c]||(o.list[c]=[]),o.list[c].length){e.nextTick(()=>{o.showIcon=!0}),u.TSys.loading(!1);return}let d=await i.fun.getRes(r);d||(d=await i.fun.getResorce(r,!0));const _=Object.keys(d);o.list[c]=[];for(let p=0;p<_.length;p++)o.list[c].push({name:_[p]});e.nextTick(()=>{o.showIcon=!0}),u.TSys.loading(!1)},choose:async s=>{o.item.lib=o.lib,o.item.name=s.name,await StrUtil.copyText(`${o.lib}-${s.name}`)},close:()=>{o.show=!1},closeItem:()=>{l("close",{lib:o.item.lib,name:o.item.name,color:o.color}),o.close()}});return e.watch(()=>o.show,()=>{l("update:show",o.show)}),(s,i)=>{const c=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-input"),_=e.resolveComponent("el-switch"),p=e.resolveComponent("el-tooltip"),y=e.resolveComponent("VIcon"),m=e.resolveComponent("el-scrollbar"),w=e.resolveComponent("el-button"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(k,{modelValue:o.show,"onUpdate:modelValue":i[5]||(i[5]=b=>o.show=b),title:o.title,"close-on-click-modal":!1,style:{width:"950px"},"z-index":1e4},{footer:e.withCtx(()=>[e.createElementVNode("span",_t,[e.createVNode(w,{onClick:o.close},{default:e.withCtx(()=>i[15]||(i[15]=[e.createTextVNode("关闭",-1)])),_:1,__:[15]},8,["onClick"]),e.createVNode(w,{type:"primary",onClick:o.closeItem},{default:e.withCtx(()=>i[16]||(i[16]=[e.createTextVNode("确定",-1)])),_:1,__:[16]},8,["onClick"])])]),default:e.withCtx(()=>[e.createElementVNode("div",st,[e.createVNode(r,{modelValue:o.lib,"onUpdate:modelValue":i[0]||(i[0]=b=>o.lib=b),onChange:o.changeLib},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.libs,b=>(e.openBlock(),e.createBlock(c,{value:b,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue","onChange"])]),e.createElementVNode("div",it,[i[6]||(i[6]=e.createElementVNode("div",null,"条件:",-1)),e.createVNode(d,{modelValue:o.findName,"onUpdate:modelValue":i[1]||(i[1]=b=>o.findName=b),style:{width:"160px"},placeholder:"查找"},null,8,["modelValue"]),i[7]||(i[7]=e.createElementVNode("div",null,"当前可选图标库数量:",-1)),e.createTextVNode(" "+e.toDisplayString(o.libs.length)+"个 ",1),i[8]||(i[8]=e.createElementVNode("div",null,"当前可选图标数量:",-1)),e.createTextVNode(" "+e.toDisplayString(o.size)+"个 ",1),i[9]||(i[9]=e.createElementVNode("div",null,"总大小:",-1)),i[10]||(i[10]=e.createTextVNode(" 43.49M ",-1))]),e.createElementVNode("div",rt,[i[13]||(i[13]=e.createElementVNode("div",null,"放大:",-1)),e.createVNode(_,{modelValue:o.isbig,"onUpdate:modelValue":i[2]||(i[2]=b=>o.isbig=b)},null,8,["modelValue"]),e.createVNode(p,{effect:"dark",content:"开启时使用图标库上传时的颜色示例:chroma、chromab、bank等多色图标库",placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",ct,[i[11]||(i[11]=e.createElementVNode("div",null,"颜色控制:",-1)),e.createVNode(_,{modelValue:o.nofill,"onUpdate:modelValue":i[3]||(i[3]=b=>o.nofill=b)},null,8,["modelValue"])])]),_:1}),!o.nofill&&o.showIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i[12]||(i[12]=e.createElementVNode("div",null,"颜色:",-1)),e.createVNode(at,{colors:o.color,"onUpdate:colors":i[4]||(i[4]=b=>o.color=b)},null,8,["colors"])],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",pt,[i[14]||(i[14]=e.createElementVNode("div",null,"当前选中:",-1)),e.createVNode(y,{lib:o.item.lib,name:o.item.name,color:o.color},null,8,["lib","name","color"]),e.createElementVNode("div",dt,e.toDisplayString(o.item.lib)+"-"+e.toDisplayString(o.item.name),1)]),e.createVNode(m,{"max-height":"400px"},{default:e.withCtx(()=>[o.showIcon?(e.openBlock(),e.createElementBlock("div",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.list[o.lib],b=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!o.findName||b.name.indexOf(o.findName)!=-1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"iconlist column flex-center",onClick:N=>o.choose(b),style:e.normalizeStyle({background:b.name===o.item.name&&o.lib===o.item.lib?"#c8ebff":void 0,height:o.isbig?"80px":"60px",width:o.isbig?"180px":"90px"})},[e.createVNode(ot,{isbig:o.isbig,el:b,color:o.color,nofill:o.nofill,lib:o.lib},null,8,["isbig","el","color","nofill","lib"]),e.createElementVNode("div",ft,[e.createElementVNode("div",ht,e.toDisplayString(b.name),1)])],12,ut)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-b9c727d4"]]),bt={class:"flex flex-center"},gt={class:"row"},wt=["onClick"],xt=Object.freeze(Object.defineProperty({__proto__:null,default:T(e.defineComponent({__name:"index",setup(a){const t=e.reactive({routers:[],initRouters:()=>{t.routers=[];const n=(l,o)=>{l.forEach(s=>{if(s.path){let i=s.path.split("/:")[0];i.length&&o.push({path:i,label:i,value:i})}s.children&&n(s.children,o)})};n(u.TSys.routes,t.routers)},icon:{visible:!1,current:null,form:{iconName:"",iconLib:"",iconFill:["#1890ff"]},show(n){t.icon.current=n,t.icon.visible=!0},select(n){t.icon.current.iconLib=n.lib,t.icon.current.iconName=n.name,t.icon.current.iconFill=n.color}},data:[],option:{api:I,data(n){return t.data=f.getTableTree(n),t.data},form:{openBefore:async(n,l)=>{C.form.openBefore.parentId(n,l,t.data,t.option),C.setOptionsData(t.option,"url",t.routers)},submitBefore(n,l){n.iconName?.length||(n.iconLib="",n.iconName="",n.iconFill=[])}},search:{show:!1},table:{border:!0,index:!1},column:[{key:"parentId",label:"父级",type:"tree-select",value:"0",form:{span:12},options:{treeSelect:{data:[],multiple:!1}},show:{table:!1}},{key:"title",label:"名称",type:"input",value:"",sort:{table:1}},{key:"type",label:"类型",type:"select",value:0,options:{select:{data:[{label:"目录",value:0},{label:"路由",value:1}]}},sort:{table:2}},{key:"icon",label:"图标",type:"input",value:"",sort:{table:3}},{key:"show",label:"显示",type:"switch",value:!0,show:{table:!1}},{key:"url",label:"地址",type:"select",value:"",show:{form:n=>n.type===1},options:{select:{filterable:!0,data:[]}},table:{minWidth:"250px",align:"left"},form:{span:12},sort:{table:4}},{key:"sort",label:"排序",type:"input",value:0,table:{width:"80px",align:"center"},sort:{table:5}},{key:"desc",label:"备注",type:"input",value:"",show:{table:!1}}],tools:{add:n=>n===void 0?!0:n.type===0,update:!0,delete:!0,export:{show:!1},expand:!0}}});return t.initRouters(),(n,l)=>{const o=e.resolveComponent("VIcon"),s=e.resolveComponent("el-tag"),i=e.resolveComponent("el-switch"),c=e.resolveComponent("el-button"),r=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(r,{option:t.option},{"table-icon":e.withCtx(({row:d})=>[e.createElementVNode("div",bt,[d.iconName?(e.openBlock(),e.createBlock(o,{key:0,lib:d.iconLib,name:d.iconName,color:d.iconFill,size:"18"},null,8,["lib","name","color"])):e.createCommentVNode("",!0)])]),"table-type":e.withCtx(({row:d})=>[e.createVNode(s,{type:d.type===0?"warning":void 0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.type===0?"目录":"路由"),1)]),_:2},1032,["type"])]),"form-show":e.withCtx(({row:d,item:_})=>[d.type===1?(e.openBlock(),e.createBlock(i,{key:0,modelValue:d[_.key],"onUpdate:modelValue":p=>d[_.key]=p},null,8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),"form-icon":e.withCtx(({row:d,item:_})=>[e.createElementVNode("div",gt,[e.createVNode(c,{style:{"margin-right":"16px"},onClick:p=>t.icon.show(d)},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("选择图标",-1)])),_:2,__:[1]},1032,["onClick"]),d.iconName?(e.openBlock(),e.createElementBlock("div",{key:0,class:"iconlist",onClick:p=>d.iconName=""},[e.createVNode(o,{lib:d.iconLib,name:d.iconName,color:d.iconFill,size:"26"},null,8,["lib","name","color"])],8,wt)):e.createCommentVNode("",!0)])]),"tools-right":e.withCtx(()=>[e.createVNode(yt,{iconName:t.icon.form.iconName,iconLib:t.icon.form.iconLib,iconFill:t.icon.form.iconFill,show:t.icon.visible,"onUpdate:show":l[0]||(l[0]=d=>t.icon.visible=d),onClose:t.icon.select},null,8,["iconName","iconLib","iconFill","show","onClose"])]),_:1},8,["option"])}}}),[["__scopeId","data-v-888f75ee"]])},Symbol.toStringTag,{value:"Module"})),kt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({menuList:[],apiList:[],roleList:[],option:{api:A,data(n){return t.roleList=n,n},search:{show:!1},table:{border:!0},tools:{export:{show:!1}},column:[{key:"title",label:"名称",type:"input",value:"",rules:!0},{key:"type",label:"角色标识",type:"input",value:"",rules:!0},{key:"status",label:"状态",type:"switch",value:1,options:{switch:{activeValue:1,activeLabel:"启用",inactiveValue:0,inactiveLabel:"禁用"}}},{key:"sort",label:"排序",type:"input",value:0,form:{span:12}},{key:"roleList",label:"角色列表",type:"tree-select",value:[],options:{treeSelect:{data:[],multiple:!0,collapseTags:!0,maxCollapseTags:4}},show:{table:!1},form:{span:12}},{key:"menuList",label:"菜单列表",type:"tree-select",value:[],options:{treeSelect:{data:[],multiple:!0,collapseTags:!0,maxCollapseTags:4}},show:{table:!1},form:{span:12}},{key:"apiList",label:"接口列表",type:"tree-select",value:[],options:{treeSelect:{data:[],multiple:!0,collapseTags:!0,maxCollapseTags:4,checkStrictly:!1}},show:{table:!1},form:{span:12}}],form:{openBefore:async(n,l)=>{if(n||(l.form.sort=t.roleList.length+1),t.menuList.length===0){u.TSys.loading();let o=await I.list({final(s,i,c){u.TSys.loading(!1)}});t.menuList=f.getTableTree(o.data),o=await B.list({final(s,i,c){u.TSys.loading(!1)}}),t.apiList=f.getTableTree(o.data)}C.setOptionsData(t.option,"menuList",t.menuList),C.setOptionsData(t.option,"apiList",t.apiList),C.setOptionsData(t.option,"roleList",t.roleList)}}}});return(n,l)=>{const o=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(o,{option:t.option},null,8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),Ct=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({data:[],roleList:[],option:{api:j,data(n){return n},form:{openBefore:async(n,l)=>{if(t.roleList.length===0){u.TSys.loading();let o=await A.list({final(s,i,c){u.TSys.loading(!1)}});console.log("res.data",o.data),t.roleList=o.data}C.setOptionsData(t.option,"roleList",t.roleList)}},search:{show:!1},table:{selectable:!0,border:!0},tools:{export:{fileName:()=>`用户列表_${new Date().getTime()}`}},column:[{key:"account",label:"账号",type:"input",value:"",sort:{table:1},form:{span:12}},{key:"status",label:"状态",type:"switch",value:1,options:{switch:{activeValue:1,activeLabel:"启用",inactiveValue:0,inactiveLabel:"禁用"}},sort:{table:2},form:{span:12}},{key:"nickname",label:"昵称",type:"input",value:"",sort:{table:1},form:{span:12}},{key:"phone",label:"手机号",type:"input",value:"",sort:{table:3},form:{span:12}},{key:"desc",label:"简介",type:"input",value:"",show:{table:!1},form:{span:12}},{key:"roleList",label:"角色列表",type:"tree-select",value:[],options:{treeSelect:{data:[],multiple:!0,collapseTags:!0,maxCollapseTags:4}},show:{table:!1},form:{span:12}}]}});return(n,l)=>{const o=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(o,{option:t.option},null,8,["option"])}}})},Symbol.toStringTag,{value:"Module"}));class X{static export(t){return http.post("/db/export",t)}static import(t){return http.post({url:"/db/import",headers:{"Content-Type":"multipart/form-data"}},t)}}const Vt={class:"row"},Nt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({import:()=>{const n=document.createElement("input");n.type="file",n.accept=".json,application/json",n.onchange=async l=>{const o=l.target.files[0];if(!o)return;const s=new FileReader;s.onload=async i=>{try{await X.import({file:o}),u.TSys.success("导入覆盖成功")}catch(c){console.error("上传的文件不是合法JSON",c)}},s.readAsText(o)},n.click()},export:async()=>{const{data:n}=await X.export();u.TSys.success("备份成功"+n,{duration:3e3})}});return(n,l)=>{const o=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(o,{onClick:t.export},{default:e.withCtx(()=>l[0]||(l[0]=[e.createTextVNode("备份数据",-1)])),_:1,__:[0]},8,["onClick"]),e.createVNode(o,{onClick:t.import},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("导入覆盖",-1)])),_:1,__:[1]},8,["onClick"])])}}})},Symbol.toStringTag,{value:"Module"})),Tt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({param:{host:"1518079148@qq.com"},option:{api:q,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format()}),n},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}}]},tools:{export:{fileName:()=>`邮件配置_${new Date().getTime()}`,before(n){const l={true:"是",false:"否"};n.data.forEach(o=>{o.secure=l[o.secure+""],o.enabled=l[o.enabled+""]})}}},column:[{key:"host",label:"SMTP地址",type:"input",value:"",show:{search:!0}},{key:"port",label:"SMTP端口",type:"input",value:""},{key:"user",label:"SMTP邮箱",type:"input",value:"",show:{search:!0}},{key:"pass",label:"SMTP密码",type:"input",value:"",disabled:{update:!0},show:{table:!1}},{key:"secure",label:"SSL加密",type:"switch",value:!0},{key:"enabled",label:"启用状态",type:"switch",value:!1,show:{search:!0}},{key:"desc",label:"备注",type:"input",value:"",update:{span:12},rules:!0}]},email:{async send(){await http.post("/email/send",{to:t.param.host,title:"测试邮件标题",content:"测试邮件内容666"}),u.TSys.success("发送成功")}}});return(n,l)=>{const o=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),i=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(i,{option:t.option},{"tools-right":e.withCtx(()=>[e.createVNode(o,{modelValue:t.param.host,"onUpdate:modelValue":l[0]||(l[0]=c=>t.param.host=c),placeholder:"邮件地址",style:{width:"150px"}},null,8,["modelValue"]),e.createVNode(s,{type:"danger",onClick:t.email.send},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("发送邮件测试",-1)])),_:1,__:[1]},8,["onClick"])]),"table-host":e.withCtx(({row:c})=>[e.createTextVNode(e.toDisplayString(c.host),1)]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),St={class:"user-info"},Et=["src"],$t={class:"user-info-cont"},Bt={class:"user-info-name"},Lt=Object.freeze(Object.defineProperty({__proto__:null,default:T(e.defineComponent({__name:"index",setup(a){return(t,n)=>{const l=e.resolveComponent("el-card"),o=e.resolveComponent("el-col"),s=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(s,{gutter:20},{default:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>[e.createVNode(l,{shadow:"hover",class:"mgb20"},{default:e.withCtx(()=>[e.createElementVNode("div",St,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/head.jpg",class:"user-avator",alt:""},null,8,Et),e.createElementVNode("div",$t,[e.createElementVNode("div",Bt,e.toDisplayString(e.unref(x).userInfo.nickname),1),e.createElementVNode("div",null,"欢迎"+e.toDisplayString(e.unref(x).userInfo.nickname)+"进入后台管理",1)])]),n[0]||(n[0]=e.createElementVNode("div",{class:"user-info-list"},[e.createElementVNode("div",{class:"user-info-list-item"},[e.createElementVNode("div",{class:"user-info-list-item-label"},"欢迎使用后台管理系统,左侧导航栏可快速访问各模块")])],-1))]),_:1,__:[0]})]),_:1})]),_:1})}}}),[["__scopeId","data-v-28a63a57"]])},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=(l,o="内容")=>{ie.ElMessageBox.alert(`<div style="white-space: pre-wrap; width: 1000px; word-break: break-all;">${l}</div>`,o,{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})},n=e.reactive({option:{api:H,data(l){return l.forEach(o=>{o.createTime=new Date(o.createTime).Format()}),l},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}},{key:"status",label:"状态码",type:"input",value:"",table:{width:"100px"}}]},tools:{add:!1,update:!1,export:{fileName:()=>`错误日志_${new Date().getTime()}`}},column:[{key:"ip",label:"IP地址",type:"input",value:"",show:{search:!0},table:{width:"120px",align:"left"}},{key:"path",label:"请求路径",type:"input",value:"",show:{search:!0},table:{minWidth:"180px",align:"left"}},{key:"method",label:"请求方法",type:"select",value:"",show:{search:!0},table:{minWidth:"100px"},options:{select:{data:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]}}},{key:"params",label:"请求参数",type:"input",value:"",table:{slot:!0}},{key:"userAgent",label:"用户代理",type:"input",value:""},{key:"error",label:"错误信息",type:"input",value:"",show:{search:!0},table:{minWidth:"140px"}},{key:"stack",label:"错误堆栈",type:"input",value:"",table:{show:!1}}]}});return(l,o)=>{const s=e.resolveComponent("el-button"),i=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(i,{option:n.option},{"table-params":e.withCtx(({row:c})=>[e.createVNode(s,{type:"primary",link:"",onClick:r=>t(c.params,"请求参数")},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("查看",-1)])),_:2,__:[0]},1032,["onClick"])]),"table-userAgent":e.withCtx(({row:c})=>[e.createVNode(s,{type:"primary",link:"",onClick:r=>t(c.userAgent,"用户代理")},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("查看",-1)])),_:2,__:[1]},1032,["onClick"])]),"table-stack":e.withCtx(({row:c})=>[e.createVNode(s,{type:"primary",link:"",onClick:r=>t(c.stack,"错误堆栈")},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode("查看",-1)])),_:2,__:[2]},1032,["onClick"])]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({option:{api:W,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format(),l.status=l.status?"成功":"失败"}),n},table:{selectable:!0,column:[{key:"createTime",label:"登录时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}}]},tools:{add:!1,update:!1,delete(n){return x.hasApi("/auth/loginLog/delete")},export:{fileName:()=>`登录日志_${new Date().getTime()}`}},column:[{key:"account",label:"登录账号",type:"input",value:"",show:{search:!0}},{key:"ip",label:"IP地址",type:"input",value:"",show:{search:!0}},{key:"os",label:"操作系统",type:"input",value:""},{key:"status",label:"登录状态",type:"switch",value:0,show:{search:!0},options:{switch:{activeLabel:"成功",inactiveLabel:"失败"}}},{key:"msg",label:"失败原因",type:"input",value:""}]}});return(n,l)=>{const o=e.resolveComponent("el-tag"),s=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(s,{option:t.option},{"table-status":e.withCtx(({row:i})=>[e.createVNode(o,{type:i.status==="成功"?"success":"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.status),1)]),_:2},1032,["type"])]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),It=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({option:{api:K,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format(),l.lastTime=l.lastTime?new Date(Number(l.lastTime)).Format():"-"}),n},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}},{key:"lastTime",label:"最后执行时间",type:"input",value:"",table:{width:"180px"}}]},tools:{export:{fileName:()=>`定时任务_${new Date().getTime()}`,before(n){const l={0:"正常",1:"暂停"},o={0:"允许",1:"禁止"};n.data.forEach(s=>{s.status=l[s.status],s.concurrent=o[s.concurrent]})}}},column:[{key:"name",label:"任务名称",type:"input",value:"",show:{search:!0},rules:!0},{key:"group",label:"任务组",type:"input",value:"",show:{search:!0},rules:!0},{key:"cron",label:"Cron表达式",type:"input",value:"",rules:!0},{key:"target",label:"调用目标",type:"input",value:"",rules:!0},{key:"params",label:"参数",type:"input",value:""},{key:"status",label:"启用状态",type:"switch",value:0,show:{search:!0},options:{switch:{activeValue:1,inactiveValue:0}}}]}});return(n,l)=>{const o=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(o,{option:t.option},null,8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({param:{phone:"",code:"123456"},option:{api:P,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format()}),n},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}}]},tools:{export:{fileName:()=>`短信配置_${new Date().getTime()}`,before(n){const l={true:"是",false:"否"};n.data.forEach(o=>{o.enabled=l[o.enabled+""]})}}},column:[{key:"provider",label:"短信服务商",type:"select",value:"",show:{search:!0},options:{select:{data:[{label:"阿里云",value:"ALIYUN"},{label:"腾讯云",value:"TENCENT"}]}}},{key:"accessKeyId",label:"AccessKey",type:"input",value:""},{key:"accessKeySecret",label:"Secret",type:"input",value:"",disabled:{update:!0},show:{table:!1}},{key:"signName",label:"短信签名",type:"input",value:""},{key:"templateId",label:"短信模板ID",type:"input",value:""},{key:"sdkAppId",label:"应用ID",type:"input",value:""},{key:"signId",label:"签名ID",type:"input",value:""},{key:"enabled",label:"启用状态",type:"switch",value:!1,show:{search:!0}},{key:"desc",label:"备注",type:"input",value:"",update:{span:12}}]},sms:{async send(){if(!t.param.phone){u.TSys.success("请输入手机号码");return}await P.send({phone:t.param.phone,templateParam:{code:t.param.code}}),u.TSys.success("发送成功")}}});return(n,l)=>{const o=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),i=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(i,{option:t.option},{"tools-right":e.withCtx(()=>[e.createVNode(o,{modelValue:t.param.phone,"onUpdate:modelValue":l[0]||(l[0]=c=>t.param.phone=c),placeholder:"手机号码",style:{width:"150px"}},null,8,["modelValue"]),e.createVNode(o,{modelValue:t.param.code,"onUpdate:modelValue":l[1]||(l[1]=c=>t.param.code=c),placeholder:"验证码",style:{width:"100px"}},null,8,["modelValue"]),e.createVNode(s,{type:"danger",onClick:t.sms.send},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode("发送短信测试",-1)])),_:1,__:[2]},8,["onClick"])]),"table-provider":e.withCtx(({row:c})=>[e.createTextVNode(e.toDisplayString(c.provider==="ALIYUN"?"阿里云":"腾讯云"),1)]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({option:{api:J,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format(),l.updateTime=new Date(l.updateTime).Format()}),n},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{minWidth:"180px"}},{key:"updateTime",label:"更新时间",type:"input",value:"",table:{minWidth:"180px"}}]},tools:{export:{fileName:()=>`系统配置_${new Date().getTime()}`}},column:[{key:"key",label:"配置键",type:"input",value:"",show:{search:!0},rules:!0},{key:"groupKey",label:"分组键",type:"input",value:"",show:{search:!0},rules:!0},{key:"groupValue",label:"分组名称",type:"input",value:"",rules:!0},{key:"system",label:"系统内置",type:"switch",value:0,show:{search:!0},options:{switch:{activeValue:1,inactiveValue:0,activeLabel:"是",inactiveLabel:"否"}}},{key:"desc",label:"配置说明",type:"input",value:"",form:{span:12}},{key:"value",label:"配置值",type:"input",value:"",rules:!0,table:{showOverflowTooltip:!0},form:{span:12},options:{input:{type:"textarea"}}}]}});return(n,l)=>{const o=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(o,{option:t.option},{"table-value":e.withCtx(({row:s})=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),Pt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({option:{api:Y,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format(),l.updateTime=new Date(l.updateTime).Format(),l.expireTime&&(l.expireTime=new Date(l.expireTime))}),n},table:{border:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{minWidth:"180px"},sort:{table:99}}]},tools:{export:{fileName:()=>`租户管理_${new Date().getTime()}`,before:n=>{n.data.forEach(l=>{l.expireTime&&(l.expireTime=new Date(l.expireTime).Format())})}}},column:[{key:"name",label:"租户名称",type:"input",value:"",rules:!0,show:{search:!0},sort:{table:1}},{key:"code",label:"租户编码",type:"input",value:"",rules:!0,show:{search:!0},sort:{table:2}},{key:"type",label:"租户类型",type:"select",value:1,options:{select:{data:[{label:"单库多租户",value:1},{label:"多库多租户",value:2}]}},rules:!0,show:{search:!0},sort:{table:3}},{key:"domain",label:"域名",type:"input",value:"",rules:!0,show:{table:!1,search:!0},sort:{table:4}},{key:"expireTime",label:"过期时间",type:"datetime",value:new Date,table:{minWidth:"180px"},sort:{table:100}},{key:"contactName",label:"联系人",type:"input",value:"",sort:{table:7}},{key:"contactPhone",label:"联系电话",type:"input",value:"",sort:{table:8}},{key:"dbUrl",label:"数据库连接",type:"input",value:"",rules:!0,show:{form:n=>n.type===2,table:!1}}]}});return(n,l)=>{const o=e.resolveComponent("el-tag"),s=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(s,{option:t.option},{"table-type":e.withCtx(({row:i})=>[e.createVNode(o,{type:i.type===1?"success":"warning"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.type===1?"单库多租户":"多库多租户"),1)]),_:2},1032,["type"])]),"table-expireTime":e.withCtx(({row:i})=>[e.createVNode(o,{type:i.expireTime<new Date().getTime()?"danger":"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(new Date(i.expireTime).Format()),1)]),_:2},1032,["type"])]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),Ut=e.defineComponent({__name:"index",props:{row:{default:{}},field:{default:"value"},itemFields:{default:[]},imgField:{default:""}},emits:["change"],setup(a,{emit:t}){const n=a,l=t,o=e.reactive({upload:{handler:s=>{f.upload.handler({callback:i=>{s[n.imgField]=i,l("change")}})}}});return(s,i)=>{const c=e.resolveComponent("el-button"),r=e.resolveComponent("TFormList");return e.openBlock(),e.createBlock(r,{row:a.row,field:a.field,itemFields:a.itemFields,onChange:i[0]||(i[0]=d=>l("change",d))},{"item-end":e.withCtx(({item:d})=>[a.imgField?(e.openBlock(),e.createBlock(c,{key:0,link:"",type:"primary",onClick:_=>o.upload.handler(d)},{default:e.withCtx(()=>i[1]||(i[1]=[e.createTextVNode("上传图片",-1)])),_:2,__:[1]},1032,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"item-end",{item:d},()=>[a.imgField?(e.openBlock(),e.createBlock(c,{key:0,link:"",type:"primary",onClick:_=>e.unref(f).preview.open(a.row[a.field].map(p=>p[a.imgField]),a.row[a.field].findIndex(p=>p[a.imgField]===d[a.imgField]))},{default:e.withCtx(()=>i[2]||(i[2]=[e.createTextVNode(" 查看图片 ",-1)])),_:2,__:[2]},1032,["onClick"])):e.createCommentVNode("",!0)])]),_:3},8,["row","field","itemFields"])}}}),Mt=e.defineComponent({__name:"index",setup(a){return e.watch(()=>u.TSys.router.currentRoute.value.path,(t,n)=>{CEvent.emit(M.change,t)},{immediate:!0}),(t,n)=>null}}),Q=a=>{a.component("xRouteEvent",Mt),a.component("xFormList",Ut)},zt=Object.freeze(Object.defineProperty({__proto__:null,default:{install:Q},install:Q},Symbol.toStringTag,{value:"Module"}));h.ApiApp=U,h.ApiAuthApi=B,h.ApiAuthMenu=I,h.ApiAuthPhone=re,h.ApiAuthRole=A,h.ApiAuthUser=j,h.ApiCaptcha=F,h.ApiCron=ce,h.ApiEmailConfig=q,h.ApiErrorLog=H,h.ApiJob=K,h.ApiLoginLog=W,h.ApiSmsConfig=P,h.ApiSystemConfig=J,h.ApiSystemTenant=Y,h.EDialog=G,h.ERouter=M,h.System=g,h.initApp=Ce,h.scurd=C,h.ssys=f,h.suser=x,h.sutil=V,h.svf=z,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("cc1-vue3"),require("cc1-ui"),require("cc1-form"),require("vue-router"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","cc1-vue3","cc1-ui","cc1-form","vue-router","element-plus"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.nestAuthAdmin={},h.Vue,h.cc1Vue3,h.toolsVueUI,h.cc1Form,h.VueRouter,h.ElementPlus))})(this,(function(h,e,$,se,u,R,ie){"use strict";class B{static all(t){return http.post("/auth/api/all",t)}static list(t){return http.post("/auth/api/list",t)}static create(t){return http.post("/auth/api/create",t)}static update(t){return http.post("/auth/api/update",t)}static delete(t){return http.post("/auth/api/delete",t)}}class I{static list(t){return http.post("/auth/menu/list",t)}static create(t){return http.post("/auth/menu/create",t)}static update(t){return http.post("/auth/menu/update",t)}static delete(t){return http.post("/auth/menu/delete",t)}}class re{static sendCode(t){return http.post("/auth/phone/sendCode",{phone:t})}}class A{static list(t){return http.post("/auth/role/list",t)}static roleList(t){return http.post("/auth/role/roleList",t)}static create(t){return http.post("/auth/role/create",t)}static update(t){return http.post("/auth/role/update",t)}static delete(t){return http.post("/auth/role/delete",t)}}class j{static list(t){return http.post("/auth/user/list",t)}static create(t){return http.post("/auth/user/create",t)}static update(t){return http.post("/auth/user/update",t)}static delete(t){return http.post("/auth/user/delete",t)}static login(t){return http.post("/auth/user/login",t)}}class F{static send(t){return http.post("/captcha/send",t)}static verify(t){return http.post("/captcha/verify",t)}}class W{static list(t){return http.post("/auth/loginLog/list",t)}static delete(t){return http.post("/auth/loginLog/delete",t)}}class ce{static list(t){return http.post({url:"cron/list",method:"post"},{...t})}static save(t){return http.post({url:"cron/save",method:"post"},t)}static remove(t){return http.post({url:"cron/remove",method:"post"},{id:t})}}class q{static list(t){return http.post("/email/config/list",t)}static create(t){return http.post("/email/config/create",t)}static update(t){return http.post("/email/config/update",t)}static delete(t){return http.post("/email/config/delete",t)}}class H{static list(t){return http.post("/log/error/list",t)}static delete(t){return http.post("/log/error/delete",t)}}class K{static list(t){return http.post("/schedule/job/list",t)}static create(t){return http.post("/schedule/job/create",t)}static update(t){return http.post("/schedule/job/update",t)}static delete(t){return http.post("/schedule/job/delete",t)}static execute(t){return http.post("/schedule/job/execute",t)}static changeStatus(t){return http.post("/schedule/job/changeStatus",t)}}class P{static list(t){return http.post("/sms/config/list",t)}static create(t){return http.post("/sms/config/create",t)}static update(t){return http.post("/sms/config/update",t)}static delete(t){return http.post("/sms/config/delete",t)}static send(t){return http.post("/sms/config/send",t)}}class U{static time(t){return http.post("/app/time",t)}static upload(t){return http.post({url:"/app/upload",headers:{"Content-Type":"multipart/form-data"}},t)}}class J{static list(t){return http.post("/system/config/list",t)}static create(t){return http.post("/system/config/create",t)}static update(t){return http.post("/system/config/update",t)}static delete(t){return http.post("/system/config/delete",t)}}class Y{static list(t){return http.post("/tenant/list",t)}static create(t){return http.post("/tenant/create",t)}static update(t){return http.post("/tenant/update",t)}static delete(t){return http.post("/tenant/delete",t)}}const S={ERouter:{change:"",reload:""},EDialog:{Insert:"",Update:"",Remove:""}};Object.keys(S).forEach(a=>{const t=S[a];Object.keys(t).forEach(n=>{a=="EDialog"?S[a][n]=n:S[a][n]=`${a}_${n}`})});const M=S.ERouter,G=S.EDialog,x=e.reactive({load:()=>{x.loginInfo=Cookie.get("loginInfo")||{},x.userInfo=x.loginInfo.userInfo||{},x.token=Cookie.get("token")},loginInfo:{},userInfo:{},token:null,setUserInfo:a=>{x.loginInfo=a,x.userInfo=a.userInfo,x.token=a.token,Cookie.set("loginInfo",a),Cookie.set("token",a.token)},clearInfo:()=>{x.token=null,x.userInfo={},f.setMenuList([],[]),f.setApiList([])},hasApi:a=>x.loginInfo.roleInfo.apiList.includes(a)});class E{static baseUrl="";static init(){const t=(l,o,...s)=>{o.forEach(i=>{l[i]&&l[i](...s)})},n=(l,o,s)=>{let i=s?.data?.code||l,c=s?.data.message;o.data.toast?o.data.toast(i,s,o):u.TSys.fail(g.i18n.t(`code.${i}`,{msg:c||"请求异常"})||g.i18n.t("code.OtherException")),t(o.data,["final","fail","complete"],l==200,o,s),i==401&&(x.clearInfo(),o.data.toLogin?.()!==!1&&u.TSys.router.replace("/login"))};http.setConfig({base:E.baseUrl,before(l){l.param.headers=l.param.headers||{},Object.keys(l.data).forEach(s=>{(l.data[s]===void 0||l.data[s]===null)&&delete l.data[s]});const o=x.token||"";o&&(l.param.headers.Token=o)},after(l,o){const{code:s}=l.data;if(s!=200)throw n(s,o,l),new Error(s);t(o.data,["final","success","complete"],l.data,o,l)},error:n})}}class g{static env;static i18n;static elementLocale;static staticDir;static config;static setConfig(t){const n={website:{recordNumber:"ICP备000000000号-1",author:"Copyright © 2022-2025 Design By Veigar"},staticDir:"/static_admin"};this.config=ObjectUtil.deepMerge(n,t),this.env=this.config.env,this.i18n=this.config.i18n,this.staticDir=this.config.staticDir,this.elementLocale=this.config.elementLocale,E.baseUrl=this.env.API}static getBaseUrl(t){return t=E.baseUrl.replace("/api","/")+t,t=t.replace(/(?<!:)\/{2,}/g,"/"),t}}const Z=a=>{const t=JSONUtil.cp(a),n=l=>t.filter(s=>{let i=s.parentId;return s.parentId.includes(",")&&(i=s.parentId.split(",").pop()),i===l}).map(s=>({...s,children:n(s._id)})).sort((s,i)=>s.sort-i.sort);return n("0")},f=e.reactive({getTableTree:Z,auth:{list:["/api/system/list","/api/system/detail"],isPass:a=>f.auth.list.includes(a)},load:()=>{f.menuListSource=JSONUtil.cp(Cookie.get("menuList"))},layout:{collapse:!1},menuListSource:[],menuList:[],setMenuList:(a,t)=>{f.menuList=a,f.menuListSource=JSONUtil.cp(t),Cookie.set("menuList",t)},getMenuList:async()=>{let a=Cookie.get("menuList");f.menuListSource=JSONUtil.cp(a);try{if(StrUtil.isNull(a)||(a=a),StrUtil.isNull(a))return u.TSys.router.push("/login"),[];let t=Z(a);return f.setMenuList(t,a),JSONUtil.cp(f.menuList)}catch{u.TSys.router.push("/login")}return JSONUtil.cp(f.menuList)},apiList:[],setApiList:a=>{f.apiList=a,Cookie.set("apiList",f.apiList)},getApiList:async()=>{let a=Cookie.get("apiList");try{return StrUtil.isNull(a)||(a=a),StrUtil.isNull(a)?(u.TSys.router.push("/login"),[]):(f.setApiList(a),f.apiList)}catch{u.TSys.router.push("/login")}return f.apiList},upload:{handler:a=>{const t=document.createElement("input");t.type="file",t.accept=a.accept||"image/*",t.multiple=a.multiple||!1,t.onchange=async n=>{const l=n.target.files[0];if(l){const o=await U.upload({file:l});a.callback(o.data),a.toast,u.TSys.success("上传成功")}else a.callback("")},t.click()}},preview:{show:!1,srcList:[],index:0,open:(a,t=0)=>{f.preview.index=t,f.preview.srcList=a.map(n=>g.getBaseUrl(n)),f.preview.show=!0}}}),pe=e.defineComponent({name:"App",__name:"App",setup(a){const t=e.reactive({locale:g.elementLocale,show:!0,reload:()=>{t.show=!1,e.nextTick(()=>{t.show=!0})}});return CEvent.on(M.reload,t.reload),(n,l)=>{const o=e.resolveComponent("x-route-event"),s=e.resolveComponent("router-view"),i=e.resolveComponent("el-image-viewer"),c=e.resolveComponent("el-config-provider");return e.openBlock(),e.createBlock(c,{locale:t.locale},{default:e.withCtx(()=>[e.createVNode(o),e.createVNode(s),e.unref(f).preview.show?(e.openBlock(),e.createBlock(i,{key:0,"url-list":e.unref(f).preview.srcList,"initial-index":e.unref(f).preview.index,onClose:l[0]||(l[0]=r=>e.unref(f).preview.show=!1)},null,8,["url-list","initial-index"])):e.createCommentVNode("",!0)]),_:1},8,["locale"])}}}),C=e.reactive({findOptions:(a,t)=>{const n=a.column.find(o=>o.key===t),l=o=>o.replace(/-([a-z])/g,(s,i)=>i.toUpperCase());if(n)return n.options[l(n.type)]},setOptionsData:(a,t,n)=>{const l=C.findOptions(a,t);l&&(l.data=n)},form:{openBefore:{parentId:(a,t,n,l)=>{a?t.type===G.Insert?(t.form.parentId=a._id,t.form.sort=a.children.length+1):t.form.parentId=a.parentId.substring(a.parentId.lastIndexOf(",")+1):(t.form.parentId="0",t.form.sort=n.length+1),C.setOptionsData(l,"parentId",[{_id:"0",title:"根",children:n}])}}}}),V=e.reactive({baseUrl:"",reset:()=>{},store:{},getStore(a){return V.store[a]},getDateOptions:(a=!0)=>{const t=[];a&&t.push({label:g.i18n.t("dateOptions.AllDates"),value:null,key:"all"}),t.push({label:g.i18n.t("dateOptions.Today"),value:TimeUtil.somedayse(),key:"today"}),t.push({label:g.i18n.t("dateOptions.Yesterday"),value:TimeUtil.somedayse(-1),key:"yesterday"});const n=new Date,l=TimeUtil.somedayse,o=n.getDay(),s=l(1-o)[0],i=l(7-o)[1],c={label:g.i18n.t("dateOptions.ThisWeek"),value:[s,i],key:"thisWeek"};t.push(c);const r=l(1-o-7)[0],d=l(7-o-7)[1],_={label:g.i18n.t("dateOptions.LastWeek"),value:[r,d],key:"lastWeek"};t.push(_);const p=new Date;p.setDate(1);const y=l(0,p);p.setMonth(p.getMonth()+1),p.setDate(1),p.setDate(p.getDate()-1);const m=l(0,p),w={label:g.i18n.t("dateOptions.ThisMonth"),value:[y[0],m[1]],key:"thisMonth"};return t.push(w),t}}),z=e.reactive({getVf:(a,t,n)=>{const l={};n===void 0&&(n=z.inputVal);for(const o in t)l[o]=s=>{a[o]=null,n({val:s.target.value,after:i=>{a[o]=i},...t[o]})};return l},inputVal:a=>{let{val:t,length:n,trim:l=!0,fixed:o=2,min:s=0,max:i=1e9}=a;l&&(t=t.replace(/\s+|\s+$/g,""));const c={int:r=>(r=r.replace(/[^\d]/g,""),r=Number(r)||0,r=s&&r<s?s:r,r=i&&r>i?i:r,r),float:r=>(r=r.replace(/^0(\d)/,"$1").replace(/^\./,"0").replace(/[^\d.]/g,"").replace(/^(\d*\.?\d*).*$/,"$1").replace(new RegExp(`^(\\d+)\\.(\\d{${o}}).*`),"$1.$2"),r),hanzi:r=>(r=r.replace(/[^\u4e00-\u9fa5]/g,""),r),Num:"0-9",En:"a-zA-Z",Hanzi:"一-龥"};if(t.length){n&&t.length>n&&(t=t.substring(0,n));const r=[],d=[],_=(p,y,m)=>{p===y?Array.isArray(a[p])?m.push(...a[p]):m.push(a[p]):m.push(c[p.substring(3)])};Object.keys(a).forEach(p=>{p.startsWith("get")?_(p,"getCustom",r):p.startsWith("del")?_(p,"delCustom",d):c[p]&&(t=c[p](t))}),r.length&&(t=t.replace(new RegExp(`[^${r.join("")}]`,"g"),"")),d.length&&(t=t.replace(new RegExp(`[${d.join("")}]`,"g"),""))}return a.after(t),t}}),de={install:a=>{const t=Cookie.clear.bind(Cookie);Cookie.clear=async(n,l)=>{n=n||{},n.excludeList=n.excludeList||[],n.excludeList.push("apiurl"),await t(n,l)}}},me={install:a=>{$.Scope.CEventBean=CEventBean,$.Scope.TimerBean=TimerBean}};let L={},D={};const ue={install:a=>{a.use(se),L=Cookie.get("iconObj")||{},D=Cookie.get("siconObj")||{},VConf.vicon.fun.getRes=async t=>L[t],VConf.vicon.fun.setRes=(t,n)=>{L[t]=n,Cookie.set("iconObj",L)},VConf.vsicon.url=g.staticDir+"/vicon/svg",VConf.vsicon.lib="",VConf.vsicon.fun.getRes=async t=>D[t],VConf.vsicon.fun.setRes=(t,n)=>{D[t]=n,Cookie.set("siconObj",D)}}},fe={style:{border:"1px solid #ccc"}},he=e.defineComponent({__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(a,{emit:t}){const n=e.defineAsyncComponent(()=>u.TSys.loadModule("editor").then(p=>p.Editor)),l=e.defineAsyncComponent(()=>u.TSys.loadModule("editor").then(p=>p.Toolbar)),o=a,s=t,i=e.shallowRef(),c=e.ref(o.modelValue);e.watch(c,p=>{s("update:modelValue",p)});const r={excludeKeys:["group-video"]},d={placeholder:"请输入内容...",MENU_CONF:{uploadImage:{async customUpload(p,y){const m=await U.upload({file:p});m.data=g.getBaseUrl(m.data),y(m.data,"",m.data),s("update:modelValue",c.value)}}}};e.onBeforeUnmount(()=>{const p=i.value;p?.destroy()});const _=p=>{i.value=p};return(p,y)=>(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.unref(l),{style:{"border-bottom":"1px solid #ccc"},editor:i.value,defaultConfig:r,mode:"default"},null,8,["editor"]),e.createVNode(e.unref(n),{style:{height:"500px","overflow-y":"hidden"},modelValue:c.value,"onUpdate:modelValue":y[0]||(y[0]=m=>c.value=m),defaultConfig:d,mode:"default",onOnCreated:_},null,8,["modelValue"])]))}}),_e={install:a=>{const t={activeValue:1,inactiveValue:0,activeText:"启用",inactiveText:"禁用",inlinePrompt:!0,tableConfig:{loadList:!1}};u.TForm.error.callback=(n,l)=>"必填",u.TFormConfig.setConfig({dialog:{delete:{content:'确定要执行删除操作吗,删除后<span style="color: red;">无法进行恢复</span>'}},size:{table:"default",form:"default",search:"default"},pagination:{size:20,pageSizes:[20,50,100,500],layout:"total, sizes, prev, pager, next, jumper"},table:{index:!0},tools:{export:{dropdown:!1}},columnConfig:{options:{switch:t,datetime:{startPlaceholder:"开始时间",endPlaceholder:"结束时间"},baseupload:{table:{showOverflowTooltip:!1}},basegroup:{dataApiConfig:{once:!0,init:!1,update:!0}},formAdd:{switch:t},formUpdate:{switch:t},search:{datetime:{startPlaceholder:"开始时间",endPlaceholder:"结束时间"}}}}}),a.use(u,{customComponent:{xEditor:he}})}},ye={install:a=>{a.use(de),a.use(me),a.use(ue),a.use(_e)}},be=()=>{const a=r=>r.replace(/\/index$/,"");let t=Object.assign({"/src/views/error/index.vue":()=>Promise.resolve().then(()=>$e),"/src/views/layout/index.vue":()=>Promise.resolve().then(()=>qe),"/src/views/login/index.vue":()=>Promise.resolve().then(()=>ve),"/src/views/pages/auth/api/index.vue":()=>Promise.resolve().then(()=>et),"/src/views/pages/auth/menu/index.vue":()=>Promise.resolve().then(()=>wt),"/src/views/pages/auth/role/index.vue":()=>Promise.resolve().then(()=>xt),"/src/views/pages/auth/user/index.vue":()=>Promise.resolve().then(()=>kt),"/src/views/pages/db/index.vue":()=>Promise.resolve().then(()=>Vt),"/src/views/pages/email/config/index.vue":()=>Promise.resolve().then(()=>Nt),"/src/views/pages/home/index.vue":()=>Promise.resolve().then(()=>Bt),"/src/views/pages/log/error/index.vue":()=>Promise.resolve().then(()=>Lt),"/src/views/pages/log/loginlog/index.vue":()=>Promise.resolve().then(()=>Dt),"/src/views/pages/schedule/job/index.vue":()=>Promise.resolve().then(()=>Ot),"/src/views/pages/sms/config/index.vue":()=>Promise.resolve().then(()=>It),"/src/views/pages/system/config/index.vue":()=>Promise.resolve().then(()=>At),"/src/views/pages/system/tenant/index.vue":()=>Promise.resolve().then(()=>jt)});if(!g.config.routes){u.TSys.fail("router.routes is required");return}Object.keys(g.config.routes).forEach(r=>{t[r]=g.config.routes[r]});const n={},l=["light","dark"],o="light",s="dark";Object.keys(t).forEach(r=>{l.forEach(d=>{o!=d&&(new RegExp(`^/src/views/${d}`).test(r)||(n[r]=t[r]),new RegExp(`^/src/views/${s}`).test(r)&&t[r])})});const i=$.CRouter.init({modules:n,children:[{path:"/layout",component:"/layout",childrenReg:["^/pages"]}],setInfoHook(r){r.meta={title:r.path}},mapKeyPathHook(r){return a(r)},pathHook(r){return a(r).replace(/^\/pages/,"")}}),c=R.createRouter({history:R.createWebHashHistory(),routes:[...i.array,{path:"/",redirect:"/home"},{path:"/:matchOthers(.*)*",redirect:"/error"}]});return u.TSys.router=c,u.TSys.routes=i.array,c};V.store={ssys:f,suser:x,sutil:V,svf:z,scurd:C};const ge=()=>{Object.keys(V.store).forEach(a=>{a!=="sutil"&&V.store[a].reset?.()})},we=()=>{Object.keys(V.store).forEach(a=>{a!=="sutil"&&V.store[a].load?.()})},xe=async()=>{we()};V.reset=ge;class ke{static async init(t){t.use(ye),t.use(g.i18n),await g.i18n.setLang(),xe(),E.init();const n=be();t.use(n),n.isReady().then(async()=>{t.mount("#app")})}}const O=e.createApp(pe),Ce=async a=>{g.setConfig(a),await g.config.install?.(O),O.use(window.ElementPlus);const t=await Promise.resolve().then(()=>Mt);O.use(t),ke.init(O)},Ve={style:{background:"#7395ff",width:"100vw",height:"100vh"}},Ne={class:"nfsystem"},Te=["src"],Se={class:"nftitle"},Ee=e.defineComponent({__name:"index",setup(a){const t=()=>{u.TSys.router.push("/")};return(n,l)=>{const o=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("div",Ne,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/404.png"},null,8,Te),e.createElementVNode("div",Se,[l[2]||(l[2]=e.createElementVNode("h2",null,"页面走丢了...",-1)),l[3]||(l[3]=e.createElementVNode("h4",null,"远方的朋友你好!非常抱歉,您所请求的页面不存在!",-1)),l[4]||(l[4]=e.createElementVNode("h4",null,"请仔细检查您输入的网址是否正确。",-1)),e.createVNode(o,{type:"warning",onClick:l[0]||(l[0]=s=>t()),style:{width:"220px"}},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("返回主页",-1)])),_:1,__:[1]})])])])}}}),T=(a,t)=>{const n=a.__vccOpts||a;for(const[l,o]of t)n[l]=o;return n},$e=Object.freeze(Object.defineProperty({__proto__:null,default:T(Ee,[["__scopeId","data-v-29641492"]])},Symbol.toStringTag,{value:"Module"})),Be={class:"header row no-wrap"},Le={class:"header-right"},De={class:"header-user-con"},Oe={class:"el-dropdown-link row items-center"},Ie={class:"user-avator"},Ae=["src"],je=T(e.defineComponent({__name:"Header",setup(a){const t=e.reactive({layout:f.layout,message:2}),n=()=>{t.layout.collapse=!t.layout.collapse};e.onMounted(()=>{document.body.clientWidth<1500&&n()});const l=o=>{o=="loginout"&&u.TSys.router.push("/login")};return(o,s)=>{const i=e.resolveComponent("v-icon"),c=e.resolveComponent("el-dropdown-item"),r=e.resolveComponent("el-dropdown-menu"),d=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",Be,[e.createElementVNode("div",{class:"collapse-btn",onClick:n},[e.createVNode(i,{name:"menu",size:"32",color:["#34B0E5"],style:e.normalizeStyle([{transition:"all 0.3s"},{transform:`rotateZ(${t.layout.collapse?90:0}deg)`}])},null,8,["style"])]),s[2]||(s[2]=e.createElementVNode("i",{class:"el-icon-lx-redpacket_fill",style:{"font-size":"30px",color:"#ff5900"}},null,-1)),s[3]||(s[3]=e.createElementVNode("div",{class:"logo col"},"后台管理",-1)),e.createElementVNode("div",Le,[e.createElementVNode("div",De,[e.createVNode(d,{class:"user-name",trigger:"click",onCommand:l},{dropdown:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(c,{command:"user"},{default:e.withCtx(()=>s[0]||(s[0]=[e.createTextVNode("个人中心",-1)])),_:1,__:[0]}),e.createVNode(c,{divided:"",command:"loginout"},{default:e.withCtx(()=>s[1]||(s[1]=[e.createTextVNode("退出登录",-1)])),_:1,__:[1]})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",Oe,[e.createTextVNode(e.toDisplayString(e.unref(x).userInfo.nickname)+" ",1),e.createElementVNode("div",Ie,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/head.jpg"},null,8,Ae)])])]),_:1})])])])}}}),[["__scopeId","data-v-7d929cc4"]]),Pe={class:"flex items-center vicon"},Ue={class:"flex items-center vicon"},Me=T(e.defineComponent({__name:"Sidebar",setup(a){const t=e.reactive({layout:f.layout,menu:[]}),n=async()=>{let s=await f.getMenuList();const i=c=>c.filter(r=>(r.type===0&&(r.url="/"+StrUtil.getId()),StrUtil.isNull(r.children)||(r.children=i(r.children)),r.show));s=i(s),t.menu=s};e.onMounted(()=>{n()});const l=e.computed(()=>u.TSys.router.currentRoute.value.path),o=s=>{l.value!==s&&window.innerWidth<900&&Timer.once(()=>{t.layout.collapse=!t.layout.collapse},300)};return(s,i)=>{const c=e.resolveComponent("v-icon"),r=e.resolveComponent("el-menu-item"),d=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu"),p=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sidebar",[t.layout.collapse?"sidebar-hideen":"sidebar-show"]])},[e.createVNode(p,{height:"100%",style:{"background-color":"#324157"}},{default:e.withCtx(()=>[e.createVNode(_,{class:"sidebar-el-menu","default-active":l.value,collapse:t.layout.collapse,"text-color":"#bfcbd9","active-text-color":"#20a0ff","unique-opened":"",router:"",onSelect:o},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menu,y=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y.children&&y.children?.length>0?(e.openBlock(),e.createBlock(d,{index:y.url,key:y.url},{title:e.withCtx(()=>[e.createElementVNode("div",Pe,[e.createVNode(c,{lib:y.iconLib,name:y.iconName,size:"24",color:["#1890ff"]},null,8,["lib","name"])]),e.createElementVNode("span",null,e.toDisplayString(y.title),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.children,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.children&&m.children?.length>0?(e.openBlock(),e.createBlock(d,{key:0,index:m.url},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.title),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.children,(w,k)=>(e.openBlock(),e.createBlock(r,{key:k,index:w.url},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.title),1)]),_:2},1032,["index"]))),128))]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(r,{key:1,index:m.url},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.title),1)]),_:2},1032,["index"]))],64))),256))]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(r,{index:y.url,key:y.url},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(y.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Ue,[e.createVNode(c,{lib:y.iconLib,name:y.iconName,size:"24",color:["#1890ff"]},null,8,["lib","name"])])]),_:2},1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse"])]),_:1})],2)}}}),[["__scopeId","data-v-ac094262"]]),ze={style:{display:"flex",height:"calc(100% - 70px)"}},Re={class:"content"},Fe={class:"view"},We={class:"row flex-center",style:{gap:"10px","font-size":"12px"}},qe=Object.freeze(Object.defineProperty({__proto__:null,default:T(e.defineComponent({__name:"index",setup(a){const t=e.reactive({keepAlive:["/auth/role","/auth/api"]});return(n,l)=>{const o=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(je),e.createElementVNode("div",ze,[e.createVNode(Me),e.createElementVNode("div",Re,[e.createElementVNode("div",null,[e.createElementVNode("div",Fe,[e.createVNode(o,null,{default:e.withCtx(({Component:s})=>[e.createVNode(e.Transition,{name:"slide-fade",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.KeepAlive,{include:t.keepAlive},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s),{key:n.$route.fullPath}))],1032,["include"]))]),_:2},1024)]),_:1}),e.createElementVNode("div",We,[e.createElementVNode("div",null,e.toDisplayString(e.unref(g).config.website.author),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(g).config.website.recordNumber),1)])])])])])],64)}}}),[["__scopeId","data-v-7d2c2356"]])},Symbol.toStringTag,{value:"Module"})),He=["id"],Ke=e.defineComponent({__name:"index",setup(a){const t=StrUtil.getId(),n=e.reactive({boxid:"canvas_snow-"+t,itemid:"canvas_sakura-"+t});let l;const o=()=>{const s=document.getElementById(n.boxid);if(s){const i=s.getBoundingClientRect();innerHeight=i.height,innerWidth=i.width;let c=document.getElementById(n.itemid);c.width=innerWidth,c.height=innerHeight}};return e.onMounted(()=>{const s=document.getElementById(n.boxid).getBoundingClientRect();let i=s.height,c=s.width,r=new Image;r.src=g.staticDir+"/bg/yh.png";let d=function(m,w,k,b,N){this.x=m,this.y=w,this.s=k,this.r=b,this.fn=N};d.prototype.draw=function(m){m.save(),m.translate(this.x,this.y),m.rotate(this.r),m.drawImage(r,0,0,40*this.s,40*this.s),m.restore()},d.prototype.update=function(){this.x=this.fn.x(this.x,this.y),this.y=this.fn.y(this.y,this.y),this.r=this.fn.r(this.r),(this.x>c||this.x<0||this.y>i||this.y<0)&&(this.r=p("fnr"),Math.random()>.4?(this.x=p("x"),this.y=0,this.s=p("s"),this.r=p("r")):(this.x=c,this.y=p("y"),this.s=p("s"),this.r=p("r")))};let _=function(){this.list=[]};_.prototype.push=function(m){this.list.push(m)},_.prototype.update=function(){for(let m=0,w=this.list.length;m<w;m++)this.list[m].update()},_.prototype.draw=function(m){for(let w=0,k=this.list.length;w<k;w++)this.list[w].draw(m)},_.prototype.get=function(m){return this.list[m]},_.prototype.size=function(){return this.list.length};function p(m){let w,k;switch(m){case"x":w=Math.random()*c;break;case"y":w=Math.random()*i;break;case"s":w=Math.random();break;case"r":w=Math.random()*6;break;case"fnx":k=-.5+Math.random()*1,w=function(b,N){return b+.5*k-1.7};break;case"fny":k=1.5+Math.random()*.7,w=function(b,N){return N+k};break;case"fnr":k=Math.random()*.03,w=function(b){return b+k};break}return w}function y(){let m=document.createElement("canvas"),w;m.height=i,m.width=c,m.setAttribute("style","position: absolute;left: 0;top: 0;pointer-events: none;object-fit:cover;"),m.setAttribute("id",n.itemid),document.getElementById(n.boxid).appendChild(m),w=m.getContext("2d");let k=new _;for(let b=0;b<50;b++){let N,v,ee,te,oe,ne,le,ae;v=p("x"),ee=p("y"),oe=p("r"),te=p("s"),ne=p("fnx"),le=p("fny"),ae=p("fnr"),N=new d(v,ee,te,oe,{x:ne,y:le,r:ae}),N.draw(w),k.push(N)}l=function(){w.clearRect(0,0,m.width,m.height),k.update(),k.draw(w),requestAnimationFrame(l)},requestAnimationFrame(l)}r.onload=function(){y()},window.addEventListener("resize",o)}),e.onUnmounted(()=>{window.removeEventListener("resize",o),window.cancelAnimationFrame(l);let s=document.getElementById(n.itemid);s?.parentNode?.removeChild(s)}),(s,i)=>(e.openBlock(),e.createElementBlock("div",{id:n.boxid},null,8,He))}}),Je={class:"absolute fit"},Ye={class:"login-icp"},Ge={class:"ms-login"},Ze={class:"row no-wrap",style:{width:"100%"}},Xe={class:"row no-wrap",style:{width:"100%"}},Qe={class:"login-btn"},ve=Object.freeze(Object.defineProperty({__proto__:null,default:T(e.defineComponent({__name:"index",setup(a){const t=e.reactive({param:{isPhone:!1,login_name:"",login_password:"",phone:"",code:""},textCode:{loading:!1,text:"发送验证码",status:!1},rules:{login_name:[{required:!0,message:"请输入用户名",trigger:"blur"}],login_password:[{required:!0,message:"请输入密码",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},loading:!1,text:"登录"});x.clearInfo();const n=e.ref(),l=()=>{n.value.validate(async c=>{if(c){let r=t.param.isPhone?{phone:t.param.phone,code:t.param.code}:{account:t.param.login_name,password:t.param.login_password};t.loading=!0,t.text="加载中";const d=await j.login({...r,final(p,y,m){t.loading=!1,t.text="登录"}});x.setUserInfo(d.data);let _=f.getTableTree(d.data.roleInfo.menuList);f.setMenuList(_,d.data.roleInfo.menuList),f.setApiList(d.data.roleInfo.apiList),u.TSys.router.push("/")}})};let o=null;const s=c=>{Timer.un(o),StrUtil.isNull(c)&&(c=parseInt(Cookie.get("codeTime"))),!StrUtil.isNull(c)&&(t.textCode.status=!1,o=Timer.on(()=>{let r=new Date().getTime();if(r-c>0)t.textCode.status=!1,Timer.un(o),t.textCode.text="发送验证码";else{t.textCode.status=!0;const d=(c-r)/1e3;t.textCode.text=d.toFixed(0)+"秒后再试"}},1e3,!0))},i=async()=>{const c=await F.send({type:1,content:"1518079148@qq.com"});console.log("res",c)};return e.onMounted(()=>{s()}),(c,r)=>{const d=e.resolveComponent("el-button"),_=e.resolveComponent("el-input"),p=e.resolveComponent("el-form-item"),y=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{class:"login-wrap",style:e.normalizeStyle({backgroundImage:`url(${e.unref(g).staticDir+"/bg/g-1.jpg"})`})},[e.createElementVNode("div",Je,[e.createVNode(Ke,{class:"fit"})]),e.createElementVNode("div",Ye,[e.createElementVNode("div",null,e.toDisplayString(e.unref(g).config.website.author),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(g).config.website.recordNumber),1)]),e.createElementVNode("div",Ge,[r[9]||(r[9]=e.createElementVNode("div",{class:"ms-title"},"系统登陆",-1)),e.createVNode(y,{model:t.param,rules:t.rules,ref_key:"login",ref:n,"label-width":"0px",class:"ms-content"},{default:e.withCtx(()=>[t.param.isPhone?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(p,{prop:"phone"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.param.phone,"onUpdate:modelValue":r[3]||(r[3]=m=>t.param.phone=m),placeholder:"手机号"},{default:e.withCtx(()=>[e.createVNode(d,{slot:"prepend",icon:"el-icon-lx-people"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(p,{prop:"code"},{default:e.withCtx(()=>[e.createElementVNode("div",Xe,[e.createVNode(_,{placeholder:"验证码",modelValue:t.param.code,"onUpdate:modelValue":r[4]||(r[4]=m=>t.param.code=m),onKeyup:r[5]||(r[5]=e.withKeys(m=>l(),["enter","native"])),class:"input-phone"},{default:e.withCtx(()=>[e.createVNode(d,{slot:"prepend",icon:"el-icon-lx-lock"})]),_:1},8,["modelValue"]),e.createVNode(d,{loading:t.textCode.loading,disabled:t.textCode.status,type:"primary",onClick:r[6]||(r[6]=m=>i()),style:{"border-radius":"0px 4px 4px 0px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.textCode.text),1)]),_:1},8,["loading","disabled"])])]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(p,{prop:"login_name"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.param.login_name,"onUpdate:modelValue":r[0]||(r[0]=m=>t.param.login_name=m),placeholder:"账号"},{default:e.withCtx(()=>[e.createVNode(d,{slot:"prepend",icon:"el-icon-lx-people"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(p,{prop:"login_password"},{default:e.withCtx(()=>[e.createElementVNode("div",Ze,[e.createVNode(_,{type:"password",placeholder:"密码",modelValue:t.param.login_password,"onUpdate:modelValue":r[1]||(r[1]=m=>t.param.login_password=m),onKeyup:r[2]||(r[2]=e.withKeys(m=>l(),["enter","native"])),class:e.normalizeClass([t.param.isPhone?"input-phone":void 0])},{default:e.withCtx(()=>[e.createVNode(d,{slot:"prepend",icon:"el-icon-lx-lock"})]),_:1},8,["modelValue","class"])])]),_:1})],64)),e.createElementVNode("div",Qe,[e.createVNode(d,{type:"primary",onClick:r[7]||(r[7]=m=>l()),loading:t.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),_:1},8,["loading"]),e.createElementVNode("div",{style:{color:"#ffffff","font-size":"14px","margin-top":"10px",cursor:"pointer"},onClick:r[8]||(r[8]=m=>t.param.isPhone=!t.param.isPhone)}," 切换"+e.toDisplayString(t.param.isPhone?"账号":"验证码")+"登录 ",1)])]),_:1},8,["model","rules"])])],4)}}}),[["__scopeId","data-v-9b624341"]])},Symbol.toStringTag,{value:"Module"})),et=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({data:[],option:{api:B,search:{show:!1},data(n){return t.data=f.getTableTree(n),t.data},table:{border:!0,index:!1},page:{show:!1},column:[{key:"parentId",label:"父级",type:"treeSelect",value:"0",form:{span:12},options:{treeSelect:{data:[],multiple:!1}},show:{table:!1}},{key:"title",label:"名称",type:"input",value:"",table:{width:"250px",align:"left"},rules:!0},{key:"type",label:"类型",type:"select",value:0,options:{select:{data:[{label:"目录",value:0},{label:"接口",value:1}]}}},{key:"sort",label:"排序",type:"input",value:0,table:{width:"80px",align:"center"},form:{span:12}},{key:"url",label:"地址",type:"select",value:"",show:{form:n=>n.type===1},options:{select:{filterable:!0,data:[]}},table:{minWidth:"250px",align:"left"},form:{span:12}}],form:{openBefore:async(n,l)=>{C.form.openBefore.parentId(n,l,t.data,t.option);const o=await t.api.getList();C.setOptionsData(t.option,"url",o.map(s=>({label:s.path,value:s.path})))}},tools:{add:n=>n===void 0?!0:n.type===0,update:!0,delete:!0,export:{show:!1},expand:!0}},api:{list:[],getList:async()=>{if(t.api.list.length)return t.api.list;u.TSys.loading(!0);const n=await B.all({final(l,o,s){u.TSys.loading(!1)}});return t.api.list=n.data,t.api.list}}});return(n,l)=>{const o=e.resolveComponent("el-tag"),s=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(s,{option:t.option},{"table-type":e.withCtx(({row:i})=>[i.type===0?(e.openBlock(),e.createBlock(o,{key:0,type:"success"},{default:e.withCtx(()=>l[0]||(l[0]=[e.createTextVNode("目录",-1)])),_:1,__:[0]})):(e.openBlock(),e.createBlock(o,{key:1,type:"warning"},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("接口",-1)])),_:1,__:[1]}))]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),tt=e.defineComponent({__name:"addIconItem",props:{isbig:{default:!1},el:{default:{}},lib:{default:""},color:{default:""},nofill:{default:!1}},setup(a){const t=e.ref({}),n=e.reactive({show:!1,observer:{}});return e.onMounted(()=>{n.observer=new IntersectionObserver((l,o)=>{l.forEach(s=>{n.show=s.isIntersecting})},{threshold:0}),n.observer.observe(t.value)}),e.onUnmounted(()=>{n.observer.disconnect()}),(l,o)=>{const s=e.resolveComponent("VIcon");return e.openBlock(),e.createElementBlock("span",{style:e.normalizeStyle({minHeight:a.isbig?"40px":"20px"}),ref_key:"_dom",ref:t},[n.show?(e.openBlock(),e.createBlock(s,{key:0,lib:a.lib,name:a.el.name,size:a.isbig?40:20,color:a.color,nofill:a.nofill},null,8,["lib","name","size","color","nofill"])):e.createCommentVNode("",!0)],4)}}}),ot={class:"row items-center",style:{gap:"10px"}},nt=["onUpdate:modelValue"],lt=e.defineComponent({__name:"colorChoose",props:{colors:{default:[]},length:{default:6}},emits:["update:colors"],setup(a,{emit:t}){const n=a,l=t,o=e.reactive({color:[]});for(let r=0;r<n.length;r++)o.color.push({value:n.colors[r]||"#000000"});const s=()=>l("update:colors",o.color.map(r=>r.value));s();const i=$.Scope.Timer();let c=null;return e.watch(()=>o.color,()=>{i.un(c),c=i.once(()=>{s()},100)},{deep:!0}),(r,d)=>(e.openBlock(),e.createElementBlock("div",ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.color,(_,p)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:"color","onUpdate:modelValue":y=>o.color[p].value=y},null,8,nt)),[[e.vModelText,o.color[p].value]])),256))]))}}),at={class:"row items-center",style:{height:"60px",overflow:"auto"}},st={class:"row items-center",style:{gap:"10px",margin:"15px 0"}},it={class:"row items-center",style:{gap:"10px","margin-bottom":"15px"}},rt={class:"row items-center"},ct={class:"flex items-center",style:{"margin-bottom":"10px"}},pt={style:{"margin-left":"10px"}},dt={key:0,class:"row"},mt=["onClick"],ut={style:{width:"0px"},class:"flex flex-center"},ft={style:{"text-wrap":"nowrap"}},ht={class:"dialog-footer"},_t=T(e.defineComponent({__name:"addDialog",props:{show:{default:!1},iconName:{default:"home"},iconLib:{default:"ant"},iconFill:{default:[]}},emits:["close","update:show"],setup(a,{emit:t}){const n=a;e.watch(()=>n.show,()=>{o.show=n.show,o.show&&o.open()});const l=t,o=e.reactive({libs:[],lib:"",size:0,nofill:!1,isbig:!1,getlibs:async()=>{if(o.libs.length)return;const s=VConf.vicon,i=`${s.url}/_keys.json`;let c=await s.fun.getRes(i);c||(c=await s.fun.getResorce(i,!0));const r=`${s.url}/_size.json`;let d=await s.fun.getRes(r);d||(d=await s.fun.getResorce(r,!0)),o.size=d.num,o.libs=c},init:()=>{o.lib=n.iconLib||"ant",o.item.lib=n.iconLib||"ant",o.item.name=n.iconName||"home",o.color.length=0,o.color.push(...n.iconFill)},changeLib:()=>{o.open(!1)},list:{},title:"选择图标",findName:"",color:[],item:{lib:"",name:""},show:!1,showIcon:!1,open:async(s=!0)=>{u.TSys.loading(!0);const i=VConf.vicon;await o.getlibs(),s&&o.init(),o.showIcon=!1;const c=o.lib,r=`${i.url}/${c}/_all.json`;if(o.list[c]||(o.list[c]=[]),o.list[c].length){e.nextTick(()=>{o.showIcon=!0}),u.TSys.loading(!1);return}let d=await i.fun.getRes(r);d||(d=await i.fun.getResorce(r,!0));const _=Object.keys(d);o.list[c]=[];for(let p=0;p<_.length;p++)o.list[c].push({name:_[p]});e.nextTick(()=>{o.showIcon=!0}),u.TSys.loading(!1)},choose:async s=>{o.item.lib=o.lib,o.item.name=s.name,await StrUtil.copyText(`${o.lib}-${s.name}`)},close:()=>{o.show=!1},closeItem:()=>{l("close",{lib:o.item.lib,name:o.item.name,color:o.color}),o.close()}});return e.watch(()=>o.show,()=>{l("update:show",o.show)}),(s,i)=>{const c=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-input"),_=e.resolveComponent("el-switch"),p=e.resolveComponent("el-tooltip"),y=e.resolveComponent("VIcon"),m=e.resolveComponent("el-scrollbar"),w=e.resolveComponent("el-button"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(k,{modelValue:o.show,"onUpdate:modelValue":i[5]||(i[5]=b=>o.show=b),title:o.title,"close-on-click-modal":!1,style:{width:"950px"},"z-index":1e4},{footer:e.withCtx(()=>[e.createElementVNode("span",ht,[e.createVNode(w,{onClick:o.close},{default:e.withCtx(()=>i[15]||(i[15]=[e.createTextVNode("关闭",-1)])),_:1,__:[15]},8,["onClick"]),e.createVNode(w,{type:"primary",onClick:o.closeItem},{default:e.withCtx(()=>i[16]||(i[16]=[e.createTextVNode("确定",-1)])),_:1,__:[16]},8,["onClick"])])]),default:e.withCtx(()=>[e.createElementVNode("div",at,[e.createVNode(r,{modelValue:o.lib,"onUpdate:modelValue":i[0]||(i[0]=b=>o.lib=b),onChange:o.changeLib},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.libs,b=>(e.openBlock(),e.createBlock(c,{value:b,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue","onChange"])]),e.createElementVNode("div",st,[i[6]||(i[6]=e.createElementVNode("div",null,"条件:",-1)),e.createVNode(d,{modelValue:o.findName,"onUpdate:modelValue":i[1]||(i[1]=b=>o.findName=b),style:{width:"160px"},placeholder:"查找"},null,8,["modelValue"]),i[7]||(i[7]=e.createElementVNode("div",null,"当前可选图标库数量:",-1)),e.createTextVNode(" "+e.toDisplayString(o.libs.length)+"个 ",1),i[8]||(i[8]=e.createElementVNode("div",null,"当前可选图标数量:",-1)),e.createTextVNode(" "+e.toDisplayString(o.size)+"个 ",1),i[9]||(i[9]=e.createElementVNode("div",null,"总大小:",-1)),i[10]||(i[10]=e.createTextVNode(" 43.49M ",-1))]),e.createElementVNode("div",it,[i[13]||(i[13]=e.createElementVNode("div",null,"放大:",-1)),e.createVNode(_,{modelValue:o.isbig,"onUpdate:modelValue":i[2]||(i[2]=b=>o.isbig=b)},null,8,["modelValue"]),e.createVNode(p,{effect:"dark",content:"开启时使用图标库上传时的颜色示例:chroma、chromab、bank等多色图标库",placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",rt,[i[11]||(i[11]=e.createElementVNode("div",null,"颜色控制:",-1)),e.createVNode(_,{modelValue:o.nofill,"onUpdate:modelValue":i[3]||(i[3]=b=>o.nofill=b)},null,8,["modelValue"])])]),_:1}),!o.nofill&&o.showIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i[12]||(i[12]=e.createElementVNode("div",null,"颜色:",-1)),e.createVNode(lt,{colors:o.color,"onUpdate:colors":i[4]||(i[4]=b=>o.color=b)},null,8,["colors"])],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",ct,[i[14]||(i[14]=e.createElementVNode("div",null,"当前选中:",-1)),e.createVNode(y,{lib:o.item.lib,name:o.item.name,color:o.color},null,8,["lib","name","color"]),e.createElementVNode("div",pt,e.toDisplayString(o.item.lib)+"-"+e.toDisplayString(o.item.name),1)]),e.createVNode(m,{"max-height":"400px"},{default:e.withCtx(()=>[o.showIcon?(e.openBlock(),e.createElementBlock("div",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.list[o.lib],b=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!o.findName||b.name.indexOf(o.findName)!=-1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"iconlist column flex-center",onClick:N=>o.choose(b),style:e.normalizeStyle({background:b.name===o.item.name&&o.lib===o.item.lib?"#c8ebff":void 0,height:o.isbig?"80px":"60px",width:o.isbig?"180px":"90px"})},[e.createVNode(tt,{isbig:o.isbig,el:b,color:o.color,nofill:o.nofill,lib:o.lib},null,8,["isbig","el","color","nofill","lib"]),e.createElementVNode("div",ut,[e.createElementVNode("div",ft,e.toDisplayString(b.name),1)])],12,mt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-b9c727d4"]]),yt={class:"flex flex-center"},bt={class:"row"},gt=["onClick"],wt=Object.freeze(Object.defineProperty({__proto__:null,default:T(e.defineComponent({__name:"index",setup(a){const t=e.reactive({routers:[],initRouters:()=>{t.routers=[];const n=(l,o)=>{l.forEach(s=>{if(s.path){let i=s.path.split("/:")[0];i.length&&o.push({path:i,label:i,value:i})}s.children&&n(s.children,o)})};n(u.TSys.routes,t.routers)},icon:{visible:!1,current:null,form:{iconName:"",iconLib:"",iconFill:["#1890ff"]},show(n){t.icon.current=n,t.icon.visible=!0},select(n){t.icon.current.iconLib=n.lib,t.icon.current.iconName=n.name,t.icon.current.iconFill=n.color}},data:[],option:{api:I,data(n){return t.data=f.getTableTree(n),t.data},form:{openBefore:async(n,l)=>{C.form.openBefore.parentId(n,l,t.data,t.option),C.setOptionsData(t.option,"url",t.routers)},submitBefore(n,l){n.iconName?.length||(n.iconLib="",n.iconName="",n.iconFill=[])}},search:{show:!1},table:{border:!0,index:!1},page:{show:!1},column:[{key:"parentId",label:"父级",type:"treeSelect",value:"0",form:{span:12},options:{treeSelect:{data:[],multiple:!1}},show:{table:!1}},{key:"title",label:"名称",type:"input",value:"",sort:{table:1}},{key:"type",label:"类型",type:"select",value:0,options:{select:{data:[{label:"目录",value:0},{label:"路由",value:1}]}},sort:{table:2}},{key:"icon",label:"图标",type:"input",value:"",sort:{table:3}},{key:"show",label:"显示",type:"switch",value:!0,show:{table:!1}},{key:"url",label:"地址",type:"select",value:"",show:{form:n=>n.type===1},options:{select:{filterable:!0,data:[]}},table:{minWidth:"250px",align:"left"},form:{span:12},sort:{table:4}},{key:"sort",label:"排序",type:"input",value:0,table:{width:"80px",align:"center"},sort:{table:5}},{key:"desc",label:"备注",type:"input",value:"",show:{table:!1}}],tools:{add:n=>n===void 0?!0:n.type===0,update:!0,delete:!0,export:{show:!1},expand:!0}}});return t.initRouters(),(n,l)=>{const o=e.resolveComponent("VIcon"),s=e.resolveComponent("el-tag"),i=e.resolveComponent("el-switch"),c=e.resolveComponent("el-button"),r=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(r,{option:t.option},{"table-icon":e.withCtx(({row:d})=>[e.createElementVNode("div",yt,[d.iconName?(e.openBlock(),e.createBlock(o,{key:0,lib:d.iconLib,name:d.iconName,color:d.iconFill,size:"18"},null,8,["lib","name","color"])):e.createCommentVNode("",!0)])]),"table-type":e.withCtx(({row:d})=>[e.createVNode(s,{type:d.type===0?"warning":void 0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.type===0?"目录":"路由"),1)]),_:2},1032,["type"])]),"form-show":e.withCtx(({row:d,item:_})=>[d.type===1?(e.openBlock(),e.createBlock(i,{key:0,modelValue:d[_.key],"onUpdate:modelValue":p=>d[_.key]=p},null,8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),"form-icon":e.withCtx(({row:d,item:_})=>[e.createElementVNode("div",bt,[e.createVNode(c,{style:{"margin-right":"16px"},onClick:p=>t.icon.show(d)},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("选择图标",-1)])),_:2,__:[1]},1032,["onClick"]),d.iconName?(e.openBlock(),e.createElementBlock("div",{key:0,class:"iconlist",onClick:p=>d.iconName=""},[e.createVNode(o,{lib:d.iconLib,name:d.iconName,color:d.iconFill,size:"26"},null,8,["lib","name","color"])],8,gt)):e.createCommentVNode("",!0)])]),"tools-right":e.withCtx(()=>[e.createVNode(_t,{iconName:t.icon.form.iconName,iconLib:t.icon.form.iconLib,iconFill:t.icon.form.iconFill,show:t.icon.visible,"onUpdate:show":l[0]||(l[0]=d=>t.icon.visible=d),onClose:t.icon.select},null,8,["iconName","iconLib","iconFill","show","onClose"])]),_:1},8,["option"])}}}),[["__scopeId","data-v-acda5d9c"]])},Symbol.toStringTag,{value:"Module"})),xt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({menuList:[],apiList:[],roleList:[],option:{api:A,data(n){return t.roleList=n,n},search:{show:!1},table:{border:!0},page:{show:!1},tools:{export:{show:!1}},column:[{key:"title",label:"名称",type:"input",value:"",rules:!0},{key:"type",label:"角色标识",type:"input",value:"",rules:!0},{key:"status",label:"状态",type:"switch",value:1,options:{switch:{activeValue:1,activeLabel:"启用",inactiveValue:0,inactiveLabel:"禁用"}}},{key:"sort",label:"排序",type:"input",value:0,form:{span:12}},{key:"roleList",label:"角色列表",type:"treeSelect",value:[],options:{treeSelect:{data:[],multiple:!0,collapseTags:!0,maxCollapseTags:4}},show:{table:!1},form:{span:12}},{key:"menuList",label:"菜单列表",type:"treeSelect",value:[],options:{treeSelect:{data:[],multiple:!0,collapseTags:!0,maxCollapseTags:4}},show:{table:!1},form:{span:12}},{key:"apiList",label:"接口列表",type:"treeSelect",value:[],options:{treeSelect:{data:[],multiple:!0,collapseTags:!0,maxCollapseTags:4,checkStrictly:!1}},show:{table:!1},form:{span:12}}],form:{openBefore:async(n,l)=>{if(n||(l.form.sort=t.roleList.length+1),t.menuList.length===0){u.TSys.loading();let o=await I.list({final(s,i,c){u.TSys.loading(!1)}});t.menuList=f.getTableTree(o.data),o=await B.list({final(s,i,c){u.TSys.loading(!1)}}),t.apiList=f.getTableTree(o.data)}C.setOptionsData(t.option,"menuList",t.menuList),C.setOptionsData(t.option,"apiList",t.apiList),C.setOptionsData(t.option,"roleList",t.roleList)}}}});return(n,l)=>{const o=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(o,{option:t.option},null,8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),kt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({data:[],roleList:[],option:{api:j,data(n){return n},form:{openBefore:async(n,l)=>{if(t.roleList.length===0){u.TSys.loading();let o=await A.list({final(s,i,c){u.TSys.loading(!1)}});console.log("res.data",o.data),t.roleList=o.data}C.setOptionsData(t.option,"roleList",t.roleList)}},search:{show:!1},table:{selectable:!0,border:!0},tools:{export:{fileName:()=>`用户列表_${new Date().getTime()}`}},column:[{key:"account",label:"账号",type:"input",value:"",sort:{table:1},form:{span:12}},{key:"status",label:"状态",type:"switch",value:1,options:{switch:{activeValue:1,activeLabel:"启用",inactiveValue:0,inactiveLabel:"禁用"}},sort:{table:2},form:{span:12}},{key:"nickname",label:"昵称",type:"input",value:"",sort:{table:1},form:{span:12}},{key:"phone",label:"手机号",type:"input",value:"",sort:{table:3},form:{span:12}},{key:"desc",label:"简介",type:"input",value:"",show:{table:!1},form:{span:12}},{key:"roleList",label:"角色列表",type:"treeSelect",value:[],options:{treeSelect:{data:[],multiple:!0,collapseTags:!0,maxCollapseTags:4}},show:{table:!1},form:{span:12}}]}});return(n,l)=>{const o=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(o,{option:t.option},null,8,["option"])}}})},Symbol.toStringTag,{value:"Module"}));class X{static export(t){return http.post("/db/export",t)}static import(t){return http.post({url:"/db/import",headers:{"Content-Type":"multipart/form-data"}},t)}}const Ct={class:"row"},Vt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({import:()=>{const n=document.createElement("input");n.type="file",n.accept=".json,application/json",n.onchange=async l=>{const o=l.target.files[0];if(!o)return;const s=new FileReader;s.onload=async i=>{try{await X.import({file:o}),u.TSys.success("导入覆盖成功")}catch(c){console.error("上传的文件不是合法JSON",c)}},s.readAsText(o)},n.click()},export:async()=>{const{data:n}=await X.export();u.TSys.success("备份成功"+n,{duration:3e3})}});return(n,l)=>{const o=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Ct,[e.createVNode(o,{onClick:t.export},{default:e.withCtx(()=>l[0]||(l[0]=[e.createTextVNode("备份数据",-1)])),_:1,__:[0]},8,["onClick"]),e.createVNode(o,{onClick:t.import},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("导入覆盖",-1)])),_:1,__:[1]},8,["onClick"])])}}})},Symbol.toStringTag,{value:"Module"})),Nt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({param:{host:"1518079148@qq.com"},option:{api:q,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format()}),n},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}}]},tools:{export:{fileName:()=>`邮件配置_${new Date().getTime()}`,before(n){const l={true:"是",false:"否"};n.data.forEach(o=>{o.secure=l[o.secure+""],o.enabled=l[o.enabled+""]})}}},column:[{key:"host",label:"SMTP地址",type:"input",value:"",show:{search:!0}},{key:"port",label:"SMTP端口",type:"input",value:""},{key:"user",label:"SMTP邮箱",type:"input",value:"",show:{search:!0}},{key:"pass",label:"SMTP密码",type:"input",value:"",disabled:{update:!0},show:{table:!1}},{key:"secure",label:"SSL加密",type:"switch",value:!0},{key:"enabled",label:"启用状态",type:"switch",value:!1,show:{search:!0}},{key:"desc",label:"备注",type:"input",value:"",update:{span:12},rules:!0}]},email:{async send(){await http.post("/email/send",{to:t.param.host,title:"测试邮件标题",content:"测试邮件内容666"}),u.TSys.success("发送成功")}}});return(n,l)=>{const o=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),i=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(i,{option:t.option},{"tools-right":e.withCtx(()=>[e.createVNode(o,{modelValue:t.param.host,"onUpdate:modelValue":l[0]||(l[0]=c=>t.param.host=c),placeholder:"邮件地址",style:{width:"150px"}},null,8,["modelValue"]),e.createVNode(s,{type:"danger",onClick:t.email.send},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("发送邮件测试",-1)])),_:1,__:[1]},8,["onClick"])]),"table-host":e.withCtx(({row:c})=>[e.createTextVNode(e.toDisplayString(c.host),1)]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),Tt={class:"user-info"},St=["src"],Et={class:"user-info-cont"},$t={class:"user-info-name"},Bt=Object.freeze(Object.defineProperty({__proto__:null,default:T(e.defineComponent({__name:"index",setup(a){return(t,n)=>{const l=e.resolveComponent("el-card"),o=e.resolveComponent("el-col"),s=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(s,{gutter:20},{default:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>[e.createVNode(l,{shadow:"hover",class:"mgb20"},{default:e.withCtx(()=>[e.createElementVNode("div",Tt,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/head.jpg",class:"user-avator",alt:""},null,8,St),e.createElementVNode("div",Et,[e.createElementVNode("div",$t,e.toDisplayString(e.unref(x).userInfo.nickname),1),e.createElementVNode("div",null,"欢迎"+e.toDisplayString(e.unref(x).userInfo.nickname)+"进入后台管理",1)])]),n[0]||(n[0]=e.createElementVNode("div",{class:"user-info-list"},[e.createElementVNode("div",{class:"user-info-list-item"},[e.createElementVNode("div",{class:"user-info-list-item-label"},"欢迎使用后台管理系统,左侧导航栏可快速访问各模块")])],-1))]),_:1,__:[0]})]),_:1})]),_:1})}}}),[["__scopeId","data-v-28a63a57"]])},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=(l,o="内容")=>{ie.ElMessageBox.alert(`<div style="white-space: pre-wrap; width: 1000px; word-break: break-all;">${l}</div>`,o,{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})},n=e.reactive({option:{api:H,data(l){return l.forEach(o=>{o.createTime=new Date(o.createTime).Format()}),l},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}},{key:"status",label:"状态码",type:"input",value:"",table:{width:"100px"}}]},tools:{add:!1,update:!1,export:{fileName:()=>`错误日志_${new Date().getTime()}`}},column:[{key:"ip",label:"IP地址",type:"input",value:"",show:{search:!0},table:{width:"120px",align:"left"}},{key:"path",label:"请求路径",type:"input",value:"",show:{search:!0},table:{minWidth:"180px",align:"left"}},{key:"method",label:"请求方法",type:"select",value:"",show:{search:!0},table:{minWidth:"100px"},options:{select:{data:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]}}},{key:"params",label:"请求参数",type:"input",value:"",table:{slot:!0}},{key:"userAgent",label:"用户代理",type:"input",value:""},{key:"error",label:"错误信息",type:"input",value:"",show:{search:!0},table:{minWidth:"140px"}},{key:"stack",label:"错误堆栈",type:"input",value:"",table:{show:!1}}]}});return(l,o)=>{const s=e.resolveComponent("el-button"),i=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(i,{option:n.option},{"table-params":e.withCtx(({row:c})=>[e.createVNode(s,{type:"primary",link:"",onClick:r=>t(c.params,"请求参数")},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("查看",-1)])),_:2,__:[0]},1032,["onClick"])]),"table-userAgent":e.withCtx(({row:c})=>[e.createVNode(s,{type:"primary",link:"",onClick:r=>t(c.userAgent,"用户代理")},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("查看",-1)])),_:2,__:[1]},1032,["onClick"])]),"table-stack":e.withCtx(({row:c})=>[e.createVNode(s,{type:"primary",link:"",onClick:r=>t(c.stack,"错误堆栈")},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode("查看",-1)])),_:2,__:[2]},1032,["onClick"])]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({option:{api:W,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format(),l.status=l.status?"成功":"失败"}),n},table:{selectable:!0,column:[{key:"createTime",label:"登录时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}}]},tools:{add:!1,update:!1,delete(n){return x.hasApi("/auth/loginLog/delete")},export:{fileName:()=>`登录日志_${new Date().getTime()}`}},column:[{key:"account",label:"登录账号",type:"input",value:"",show:{search:!0}},{key:"ip",label:"IP地址",type:"input",value:"",show:{search:!0}},{key:"os",label:"操作系统",type:"input",value:""},{key:"status",label:"登录状态",type:"switch",value:0,show:{search:!0},options:{switch:{activeLabel:"成功",inactiveLabel:"失败"}}},{key:"msg",label:"失败原因",type:"input",value:""}]}});return(n,l)=>{const o=e.resolveComponent("el-tag"),s=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(s,{option:t.option},{"table-status":e.withCtx(({row:i})=>[e.createVNode(o,{type:i.status==="成功"?"success":"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.status),1)]),_:2},1032,["type"])]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({option:{api:K,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format(),l.lastTime=l.lastTime?new Date(Number(l.lastTime)).Format():"-"}),n},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}},{key:"lastTime",label:"最后执行时间",type:"input",value:"",table:{width:"180px"}}]},tools:{export:{fileName:()=>`定时任务_${new Date().getTime()}`,before(n){const l={0:"正常",1:"暂停"},o={0:"允许",1:"禁止"};n.data.forEach(s=>{s.status=l[s.status],s.concurrent=o[s.concurrent]})}}},column:[{key:"name",label:"任务名称",type:"input",value:"",show:{search:!0},rules:!0},{key:"group",label:"任务组",type:"input",value:"",show:{search:!0},rules:!0},{key:"cron",label:"Cron表达式",type:"input",value:"",rules:!0},{key:"target",label:"调用目标",type:"input",value:"",rules:!0},{key:"params",label:"参数",type:"input",value:""},{key:"status",label:"启用状态",type:"switch",value:0,show:{search:!0},options:{switch:{activeValue:1,inactiveValue:0}}}]}});return(n,l)=>{const o=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(o,{option:t.option},null,8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),It=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({param:{phone:"",code:"123456"},option:{api:P,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format()}),n},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{width:"180px"},sort:{table:1}}]},tools:{export:{fileName:()=>`短信配置_${new Date().getTime()}`,before(n){const l={true:"是",false:"否"};n.data.forEach(o=>{o.enabled=l[o.enabled+""]})}}},column:[{key:"provider",label:"短信服务商",type:"select",value:"",show:{search:!0},options:{select:{data:[{label:"阿里云",value:"ALIYUN"},{label:"腾讯云",value:"TENCENT"}]}}},{key:"accessKeyId",label:"AccessKey",type:"input",value:""},{key:"accessKeySecret",label:"Secret",type:"input",value:"",disabled:{update:!0},show:{table:!1}},{key:"signName",label:"短信签名",type:"input",value:""},{key:"templateId",label:"短信模板ID",type:"input",value:""},{key:"sdkAppId",label:"应用ID",type:"input",value:""},{key:"signId",label:"签名ID",type:"input",value:""},{key:"enabled",label:"启用状态",type:"switch",value:!1,show:{search:!0}},{key:"desc",label:"备注",type:"input",value:"",update:{span:12}}]},sms:{async send(){if(!t.param.phone){u.TSys.success("请输入手机号码");return}await P.send({phone:t.param.phone,templateParam:{code:t.param.code}}),u.TSys.success("发送成功")}}});return(n,l)=>{const o=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),i=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(i,{option:t.option},{"tools-right":e.withCtx(()=>[e.createVNode(o,{modelValue:t.param.phone,"onUpdate:modelValue":l[0]||(l[0]=c=>t.param.phone=c),placeholder:"手机号码",style:{width:"150px"}},null,8,["modelValue"]),e.createVNode(o,{modelValue:t.param.code,"onUpdate:modelValue":l[1]||(l[1]=c=>t.param.code=c),placeholder:"验证码",style:{width:"100px"}},null,8,["modelValue"]),e.createVNode(s,{type:"danger",onClick:t.sms.send},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode("发送短信测试",-1)])),_:1,__:[2]},8,["onClick"])]),"table-provider":e.withCtx(({row:c})=>[e.createTextVNode(e.toDisplayString(c.provider==="ALIYUN"?"阿里云":"腾讯云"),1)]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({option:{api:J,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format(),l.updateTime=new Date(l.updateTime).Format()}),n},table:{selectable:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{minWidth:"180px"}},{key:"updateTime",label:"更新时间",type:"input",value:"",table:{minWidth:"180px"}}]},tools:{export:{fileName:()=>`系统配置_${new Date().getTime()}`}},column:[{key:"key",label:"配置键",type:"input",value:"",show:{search:!0},rules:!0},{key:"groupKey",label:"分组键",type:"input",value:"",show:{search:!0},rules:!0},{key:"groupValue",label:"分组名称",type:"input",value:"",rules:!0},{key:"system",label:"系统内置",type:"switch",value:0,show:{search:!0},options:{switch:{activeValue:1,inactiveValue:0,activeLabel:"是",inactiveLabel:"否"}}},{key:"desc",label:"配置说明",type:"input",value:"",form:{span:12}},{key:"value",label:"配置值",type:"input",value:"",rules:!0,table:{showOverflowTooltip:!0},form:{span:12},options:{input:{type:"textarea"}}}]}});return(n,l)=>{const o=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(o,{option:t.option},{"table-value":e.withCtx(({row:s})=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({option:{api:Y,data(n){return n.forEach(l=>{l.createTime=new Date(l.createTime).Format(),l.updateTime=new Date(l.updateTime).Format(),l.expireTime&&(l.expireTime=new Date(l.expireTime))}),n},table:{border:!0,column:[{key:"createTime",label:"创建时间",type:"input",value:"",table:{minWidth:"180px"},sort:{table:99}}]},tools:{export:{fileName:()=>`租户管理_${new Date().getTime()}`,before:n=>{n.data.forEach(l=>{l.expireTime&&(l.expireTime=new Date(l.expireTime).Format())})}}},column:[{key:"name",label:"租户名称",type:"input",value:"",rules:!0,show:{search:!0},sort:{table:1}},{key:"code",label:"租户编码",type:"input",value:"",rules:!0,show:{search:!0},sort:{table:2}},{key:"type",label:"租户类型",type:"select",value:1,options:{select:{data:[{label:"单库多租户",value:1},{label:"多库多租户",value:2}]}},rules:!0,show:{search:!0},sort:{table:3}},{key:"domain",label:"域名",type:"input",value:"",rules:!0,show:{table:!1,search:!0},sort:{table:4}},{key:"expireTime",label:"过期时间",type:"datetime",value:new Date,table:{minWidth:"180px"},sort:{table:100}},{key:"contactName",label:"联系人",type:"input",value:"",sort:{table:7}},{key:"contactPhone",label:"联系电话",type:"input",value:"",sort:{table:8}},{key:"dbUrl",label:"数据库连接",type:"input",value:"",rules:!0,show:{form:n=>n.type===2,table:!1}}]}});return(n,l)=>{const o=e.resolveComponent("el-tag"),s=e.resolveComponent("t-curd");return e.openBlock(),e.createBlock(s,{option:t.option},{"table-type":e.withCtx(({row:i})=>[e.createVNode(o,{type:i.type===1?"success":"warning"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.type===1?"单库多租户":"多库多租户"),1)]),_:2},1032,["type"])]),"table-expireTime":e.withCtx(({row:i})=>[e.createVNode(o,{type:i.expireTime<new Date().getTime()?"danger":"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(new Date(i.expireTime).Format()),1)]),_:2},1032,["type"])]),_:1},8,["option"])}}})},Symbol.toStringTag,{value:"Module"})),Pt=e.defineComponent({__name:"index",props:{row:{default:{}},field:{default:"value"},itemFields:{default:[]},imgField:{default:""}},emits:["change"],setup(a,{emit:t}){const n=a,l=t,o=e.reactive({upload:{handler:s=>{f.upload.handler({callback:i=>{s[n.imgField]=i,l("change")}})}}});return(s,i)=>{const c=e.resolveComponent("el-button"),r=e.resolveComponent("TFormList");return e.openBlock(),e.createBlock(r,{row:a.row,field:a.field,itemFields:a.itemFields,onChange:i[0]||(i[0]=d=>l("change",d))},{"item-end":e.withCtx(({item:d})=>[a.imgField?(e.openBlock(),e.createBlock(c,{key:0,link:"",type:"primary",onClick:_=>o.upload.handler(d)},{default:e.withCtx(()=>i[1]||(i[1]=[e.createTextVNode("上传图片",-1)])),_:2,__:[1]},1032,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"item-end",{item:d},()=>[a.imgField?(e.openBlock(),e.createBlock(c,{key:0,link:"",type:"primary",onClick:_=>e.unref(f).preview.open(a.row[a.field].map(p=>p[a.imgField]),a.row[a.field].findIndex(p=>p[a.imgField]===d[a.imgField]))},{default:e.withCtx(()=>i[2]||(i[2]=[e.createTextVNode(" 查看图片 ",-1)])),_:2,__:[2]},1032,["onClick"])):e.createCommentVNode("",!0)])]),_:3},8,["row","field","itemFields"])}}}),Ut=e.defineComponent({__name:"index",setup(a){return e.watch(()=>u.TSys.router.currentRoute.value.path,(t,n)=>{CEvent.emit(M.change,t)},{immediate:!0}),(t,n)=>null}}),Q=a=>{a.component("xRouteEvent",Ut),a.component("xFormList",Pt)},Mt=Object.freeze(Object.defineProperty({__proto__:null,default:{install:Q},install:Q},Symbol.toStringTag,{value:"Module"}));h.ApiApp=U,h.ApiAuthApi=B,h.ApiAuthMenu=I,h.ApiAuthPhone=re,h.ApiAuthRole=A,h.ApiAuthUser=j,h.ApiCaptcha=F,h.ApiCron=ce,h.ApiEmailConfig=q,h.ApiErrorLog=H,h.ApiJob=K,h.ApiLoginLog=W,h.ApiSmsConfig=P,h.ApiSystemConfig=J,h.ApiSystemTenant=Y,h.EDialog=G,h.ERouter=M,h.System=g,h.initApp=Ce,h.scurd=C,h.ssys=f,h.suser=x,h.sutil=V,h.svf=z,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -3,7 +3,7 @@ import { ApiAuthRole as L, ApiAuthMenu as h, ssys as i, ApiAuthApi as b, scurd a
|
|
|
3
3
|
import { TSys as s } from "cc1-form";
|
|
4
4
|
const _ = /* @__PURE__ */ u({
|
|
5
5
|
__name: "index",
|
|
6
|
-
setup(
|
|
6
|
+
setup(g) {
|
|
7
7
|
const e = c({
|
|
8
8
|
menuList: [],
|
|
9
9
|
apiList: [],
|
|
@@ -19,6 +19,9 @@ const _ = /* @__PURE__ */ u({
|
|
|
19
19
|
table: {
|
|
20
20
|
border: !0
|
|
21
21
|
},
|
|
22
|
+
page: {
|
|
23
|
+
show: !1
|
|
24
|
+
},
|
|
22
25
|
tools: {
|
|
23
26
|
export: {
|
|
24
27
|
show: !1
|
|
@@ -65,7 +68,7 @@ const _ = /* @__PURE__ */ u({
|
|
|
65
68
|
{
|
|
66
69
|
key: "roleList",
|
|
67
70
|
label: "角色列表",
|
|
68
|
-
type: "
|
|
71
|
+
type: "treeSelect",
|
|
69
72
|
value: [],
|
|
70
73
|
options: {
|
|
71
74
|
treeSelect: {
|
|
@@ -85,7 +88,7 @@ const _ = /* @__PURE__ */ u({
|
|
|
85
88
|
{
|
|
86
89
|
key: "menuList",
|
|
87
90
|
label: "菜单列表",
|
|
88
|
-
type: "
|
|
91
|
+
type: "treeSelect",
|
|
89
92
|
value: [],
|
|
90
93
|
options: {
|
|
91
94
|
treeSelect: {
|
|
@@ -105,7 +108,7 @@ const _ = /* @__PURE__ */ u({
|
|
|
105
108
|
{
|
|
106
109
|
key: "apiList",
|
|
107
110
|
label: "接口列表",
|
|
108
|
-
type: "
|
|
111
|
+
type: "treeSelect",
|
|
109
112
|
value: [],
|
|
110
113
|
options: {
|
|
111
114
|
treeSelect: {
|
|
@@ -129,12 +132,12 @@ const _ = /* @__PURE__ */ u({
|
|
|
129
132
|
if (t || (o.form.sort = e.roleList.length + 1), e.menuList.length === 0) {
|
|
130
133
|
s.loading();
|
|
131
134
|
let a = await h.list({
|
|
132
|
-
final(r, n
|
|
135
|
+
final(p, r, n) {
|
|
133
136
|
s.loading(!1);
|
|
134
137
|
}
|
|
135
138
|
});
|
|
136
139
|
e.menuList = i.getTableTree(a.data), a = await b.list({
|
|
137
|
-
final(r, n
|
|
140
|
+
final(p, r, n) {
|
|
138
141
|
s.loading(!1);
|
|
139
142
|
}
|
|
140
143
|
}), e.apiList = i.getTableTree(a.data);
|
|
@@ -191,8 +191,8 @@ const q = /* @__PURE__ */ C({
|
|
|
191
191
|
r("update:show", e.show);
|
|
192
192
|
}
|
|
193
193
|
), (i, o) => {
|
|
194
|
-
const c = p("el-radio"), d = p("el-radio-group"), t = p("el-input"), v = p("el-switch"), b = p("el-tooltip"), I = p("VIcon"),
|
|
195
|
-
return u(), x(
|
|
194
|
+
const c = p("el-radio"), d = p("el-radio-group"), t = p("el-input"), v = p("el-switch"), b = p("el-tooltip"), I = p("VIcon"), S = p("el-scrollbar"), U = p("el-button"), B = p("el-dialog");
|
|
195
|
+
return u(), x(B, {
|
|
196
196
|
modelValue: e.show,
|
|
197
197
|
"onUpdate:modelValue": o[5] || (o[5] = (s) => e.show = s),
|
|
198
198
|
title: e.title,
|
|
@@ -298,7 +298,7 @@ const q = /* @__PURE__ */ C({
|
|
|
298
298
|
}, null, 8, ["lib", "name", "color"]),
|
|
299
299
|
a("div", ee, y(e.item.lib) + "-" + y(e.item.name), 1)
|
|
300
300
|
]),
|
|
301
|
-
m(
|
|
301
|
+
m(S, { "max-height": "400px" }, {
|
|
302
302
|
default: f(() => [
|
|
303
303
|
e.showIcon ? (u(), h("div", oe, [
|
|
304
304
|
(u(!0), h(k, null, L(e.list[e.lib], (s) => (u(), h(k, null, [
|
|
@@ -391,11 +391,14 @@ const q = /* @__PURE__ */ C({
|
|
|
391
391
|
border: !0,
|
|
392
392
|
index: !1
|
|
393
393
|
},
|
|
394
|
+
page: {
|
|
395
|
+
show: !1
|
|
396
|
+
},
|
|
394
397
|
column: [
|
|
395
398
|
{
|
|
396
399
|
key: "parentId",
|
|
397
400
|
label: "父级",
|
|
398
|
-
type: "
|
|
401
|
+
type: "treeSelect",
|
|
399
402
|
value: "0",
|
|
400
403
|
form: {
|
|
401
404
|
span: 12
|
|
@@ -586,7 +589,7 @@ const q = /* @__PURE__ */ C({
|
|
|
586
589
|
}, 8, ["option"]);
|
|
587
590
|
};
|
|
588
591
|
}
|
|
589
|
-
}), ve = /* @__PURE__ */ T(de, [["__scopeId", "data-v-
|
|
592
|
+
}), ve = /* @__PURE__ */ T(de, [["__scopeId", "data-v-acda5d9c"]]);
|
|
590
593
|
export {
|
|
591
594
|
ve as default
|
|
592
595
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, reactive as m, resolveComponent as s, openBlock as
|
|
1
|
+
import { defineComponent as y, reactive as m, resolveComponent as s, openBlock as p, createBlock as n, withCtx as r, createTextVNode as i } from "vue";
|
|
2
2
|
import { ApiAuthApi as u, scurd as d, ssys as b } from "./cc1-admin-front.js";
|
|
3
3
|
import { TSys as f } from "cc1-form";
|
|
4
4
|
const v = /* @__PURE__ */ y({
|
|
@@ -18,11 +18,14 @@ const v = /* @__PURE__ */ y({
|
|
|
18
18
|
border: !0,
|
|
19
19
|
index: !1
|
|
20
20
|
},
|
|
21
|
+
page: {
|
|
22
|
+
show: !1
|
|
23
|
+
},
|
|
21
24
|
column: [
|
|
22
25
|
{
|
|
23
26
|
key: "parentId",
|
|
24
27
|
label: "父级",
|
|
25
|
-
type: "
|
|
28
|
+
type: "treeSelect",
|
|
26
29
|
value: "0",
|
|
27
30
|
form: {
|
|
28
31
|
span: 12
|
|
@@ -138,11 +141,11 @@ const v = /* @__PURE__ */ y({
|
|
|
138
141
|
});
|
|
139
142
|
return (t, a) => {
|
|
140
143
|
const l = s("el-tag"), o = s("t-curd");
|
|
141
|
-
return
|
|
144
|
+
return p(), n(o, {
|
|
142
145
|
option: e.option
|
|
143
146
|
}, {
|
|
144
147
|
"table-type": r(({ row: c }) => [
|
|
145
|
-
c.type === 0 ? (
|
|
148
|
+
c.type === 0 ? (p(), n(l, {
|
|
146
149
|
key: 0,
|
|
147
150
|
type: "success"
|
|
148
151
|
}, {
|
|
@@ -151,7 +154,7 @@ const v = /* @__PURE__ */ y({
|
|
|
151
154
|
])),
|
|
152
155
|
_: 1,
|
|
153
156
|
__: [0]
|
|
154
|
-
})) : (
|
|
157
|
+
})) : (p(), n(l, {
|
|
155
158
|
key: 1,
|
|
156
159
|
type: "warning"
|
|
157
160
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc1-admin-front",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "我来助你-后台管理系统-页面",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,12 +33,22 @@
|
|
|
33
33
|
"typecheck": "vue-tsc --noEmit",
|
|
34
34
|
"addtype": "tsx ./build/buildTypes.ts"
|
|
35
35
|
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"cc1-form": "*",
|
|
38
|
+
"cc1-js": "*",
|
|
39
|
+
"cc1-ui": "*",
|
|
40
|
+
"cc1-vue3": "*",
|
|
41
|
+
"element-plus": "*",
|
|
42
|
+
"xlsx": "*",
|
|
43
|
+
"sortablejs": "*",
|
|
44
|
+
"@wangeditor/editor-for-vue": "*"
|
|
45
|
+
},
|
|
36
46
|
"devDependencies": {
|
|
37
47
|
"@types/node": "22.15.2",
|
|
38
48
|
"@vitejs/plugin-vue": "5.2.1",
|
|
39
49
|
"@vue/tsconfig": "0.7.0",
|
|
40
50
|
"@wangeditor/editor-for-vue": "5.1.12",
|
|
41
|
-
"cc1-form": "1.3.
|
|
51
|
+
"cc1-form": "1.3.9",
|
|
42
52
|
"cc1-js": "1.0.9",
|
|
43
53
|
"cc1-ui": "1.0.17",
|
|
44
54
|
"cc1-vue3": "1.1.0",
|