cc1-admin-front 0.0.3 → 0.0.5

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.
@@ -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: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-c50a256a]{display:inline-flex;padding:0 5px;margin:5px 0;cursor:pointer}.iconlist[data-v-c50a256a]:hover{background:#f2f6fc}[class^=colorinput][data-v-c50a256a]{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-f400f21e]{display:inline-flex;padding:0 5px;margin:5px 0;cursor:pointer}.iconlist[data-v-f400f21e]:hover{background:#f2f6fc}[class^=colorinput][data-v-f400f21e]{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,10 +1,10 @@
1
1
  import "./cc1-admin-front.css";
2
- import { reactive as y, defineComponent as j, nextTick as N, resolveComponent as L, openBlock as E, createBlock as U, withCtx as M, createVNode as _, unref as C, createCommentVNode as B, defineAsyncComponent as I, shallowRef as P, ref as W, watch as z, onBeforeUnmount as H, createElementBlock as J, createApp as F } from "vue";
2
+ import { reactive as y, defineComponent as j, nextTick as N, resolveComponent as L, openBlock as E, createBlock as U, withCtx as M, createVNode as _, unref as w, createCommentVNode as B, defineAsyncComponent as I, shallowRef as P, ref as W, watch as z, onBeforeUnmount as H, createElementBlock as J, createApp as F } from "vue";
3
3
  import K, { TSys as h, 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";
7
- class kt {
7
+ class xt {
8
8
  static all(t) {
9
9
  return http.post("/auth/api/all", t);
10
10
  }
@@ -282,8 +282,10 @@ class b {
282
282
  },
283
283
  after(o, r) {
284
284
  const { code: a } = o.data;
285
- if (a != 200)
286
- throw s(a, r, o), new Error(a);
285
+ if (a != 200) {
286
+ r.res = o.data, o.status = a;
287
+ return;
288
+ }
287
289
  t(r.data, ["final", "success", "complete"], o.data, r, o);
288
290
  },
289
291
  error: s
@@ -424,11 +426,11 @@ const V = (e) => {
424
426
  default: M(() => [
425
427
  _(r),
426
428
  _(a),
427
- C(c).preview.show ? (E(), U(l, {
429
+ w(c).preview.show ? (E(), U(l, {
428
430
  key: 0,
429
- "url-list": C(c).preview.srcList,
430
- "initial-index": C(c).preview.index,
431
- onClose: o[0] || (o[0] = (i) => C(c).preview.show = !1)
431
+ "url-list": w(c).preview.srcList,
432
+ "initial-index": w(c).preview.index,
433
+ onClose: o[0] || (o[0] = (i) => w(c).preview.show = !1)
432
434
  }, null, 8, ["url-list", "initial-index"])) : B("", !0)
433
435
  ]),
434
436
  _: 1
@@ -467,7 +469,7 @@ const V = (e) => {
467
469
  * @param option 组件配置
468
470
  */
469
471
  parentId: (e, t, s, o) => {
470
- e ? t.type === h.EDialog.Add ? (t.form.parentId = e._id, t.form.sort = e.children.length + 1) : t.form.parentId = e.parentId.substring(e.parentId.lastIndexOf(",") + 1) : (t.form.parentId = "0", t.form.sort = s.length + 1), T.setOptionsData(o, "parentId", [{ _id: "0", title: "根", children: s }]);
472
+ e ? t.type === h.EDialog.Add ? (t.form.parentId = e._id, t.form.sort = e.children.length + 1, t.form._id = void 0) : t.form.parentId = e.parentId.substring(e.parentId.lastIndexOf(",") + 1) : (t.form.parentId = "0", t.form.sort = s.length + 1), T.setOptionsData(o, "parentId", [{ _id: "0", title: "根", children: s }]);
471
473
  }
472
474
  }
473
475
  }
@@ -504,12 +506,12 @@ const V = (e) => {
504
506
  key: "thisWeek"
505
507
  };
506
508
  t.push(p);
507
- const i = o(1 - r - 7)[0], f = o(7 - r - 7)[1], w = {
509
+ const i = o(1 - r - 7)[0], f = o(7 - r - 7)[1], C = {
508
510
  label: u.i18n.t("dateOptions.LastWeek"),
509
511
  value: [i, f],
510
512
  key: "lastWeek"
511
513
  };
512
- t.push(w);
514
+ t.push(C);
513
515
  const n = /* @__PURE__ */ new Date();
514
516
  n.setDate(1);
515
517
  const g = o(0, n);
@@ -635,11 +637,11 @@ const V = (e) => {
635
637
  };
636
638
  if (t.length) {
637
639
  s && t.length > s && (t = t.substring(0, s));
638
- const i = [], f = [], w = (n, g, m) => {
640
+ const i = [], f = [], C = (n, g, m) => {
639
641
  n === g ? Array.isArray(e[n]) ? m.push(...e[n]) : m.push(e[n]) : m.push(p[n.substring(3)]);
640
642
  };
641
643
  Object.keys(e).forEach((n) => {
642
- n.startsWith("get") ? w(n, "getCustom", i) : n.startsWith("del") ? w(n, "delCustom", f) : p[n] && (t = p[n](t));
644
+ n.startsWith("get") ? C(n, "getCustom", i) : n.startsWith("del") ? C(n, "delCustom", f) : p[n] && (t = p[n](t));
643
645
  }), i.length && (t = t.replace(new RegExp(`[^${i.join("")}]`, "g"), "")), f.length && (t = t.replace(new RegExp(`[${f.join("")}]`, "g"), ""));
644
646
  }
645
647
  return e.after(t), t;
@@ -656,12 +658,12 @@ const V = (e) => {
656
658
  }, rt = {
657
659
  install: it
658
660
  };
659
- let x = {}, k = {};
661
+ let k = {}, x = {};
660
662
  const at = (e) => {
661
- e.use(G), x = Cookie.get("iconObj") || {}, k = Cookie.get("siconObj") || {}, VConf.vicon.fun.getRes = async (t) => x[t], VConf.vicon.fun.setRes = (t, s) => {
662
- x[t] = s, Cookie.set("iconObj", x);
663
- }, VConf.vsicon.url = u.staticDir + "/vicon/svg", VConf.vsicon.lib = "", VConf.vsicon.fun.getRes = async (t) => k[t], VConf.vsicon.fun.setRes = (t, s) => {
664
- k[t] = s, Cookie.set("siconObj", k);
663
+ e.use(G), k = Cookie.get("iconObj") || {}, x = Cookie.get("siconObj") || {}, VConf.vicon.fun.getRes = async (t) => k[t], VConf.vicon.fun.setRes = (t, s) => {
664
+ k[t] = s, Cookie.set("iconObj", k);
665
+ }, VConf.vsicon.url = u.staticDir + "/vicon/svg", VConf.vsicon.lib = "", VConf.vsicon.fun.getRes = async (t) => x[t], VConf.vsicon.fun.setRes = (t, s) => {
666
+ x[t] = s, Cookie.set("siconObj", x);
665
667
  };
666
668
  }, nt = {
667
669
  install: at
@@ -698,23 +700,23 @@ const at = (e) => {
698
700
  const n = l.value;
699
701
  n?.destroy();
700
702
  });
701
- const w = (n) => {
703
+ const C = (n) => {
702
704
  l.value = n;
703
705
  };
704
706
  return (n, g) => (E(), J("div", lt, [
705
- _(C(o), {
707
+ _(w(o), {
706
708
  style: { "border-bottom": "1px solid #ccc" },
707
709
  editor: l.value,
708
710
  defaultConfig: i,
709
711
  mode: "default"
710
712
  }, null, 8, ["editor"]),
711
- _(C(s), {
713
+ _(w(s), {
712
714
  style: { height: "500px", "overflow-y": "hidden" },
713
715
  modelValue: p.value,
714
716
  "onUpdate:modelValue": g[0] || (g[0] = (m) => p.value = m),
715
717
  defaultConfig: f,
716
718
  mode: "default",
717
- onOnCreated: w
719
+ onOnCreated: C
718
720
  }, null, 8, ["modelValue"])
719
721
  ]));
720
722
  }
@@ -804,8 +806,8 @@ const at = (e) => {
804
806
  "/src/views/error/index.vue": () => import("./index-BTuR22Wh.js"),
805
807
  "/src/views/layout/index.vue": () => import("./index-Bk_LJXIb.js"),
806
808
  "/src/views/login/index.vue": () => import("./index-D47lvu37.js"),
807
- "/src/views/pages/auth/api/index.vue": () => import("./index-DGXkeIf1.js"),
808
- "/src/views/pages/auth/menu/index.vue": () => import("./index-C-1Hfwms.js"),
809
+ "/src/views/pages/auth/api/index.vue": () => import("./index-Dejkixap.js"),
810
+ "/src/views/pages/auth/menu/index.vue": () => import("./index-Cwr-LCNc.js"),
809
811
  "/src/views/pages/auth/role/index.vue": () => import("./index-CRagZR_l.js"),
810
812
  "/src/views/pages/auth/user/index.vue": () => import("./index-WKWmXVBK.js"),
811
813
  "/src/views/pages/db/index.vue": () => import("./index-DFNCjb_F.js"),
@@ -886,7 +888,7 @@ const ft = () => {
886
888
  gt();
887
889
  };
888
890
  v.reset = ft;
889
- class wt {
891
+ class Ct {
890
892
  /**
891
893
  * 初始化
892
894
  */
@@ -901,11 +903,11 @@ class wt {
901
903
  const A = F(et), Nt = async (e) => {
902
904
  u.setConfig(e), await u.config.install?.(A), A.use(window.ElementPlus);
903
905
  const t = await import("./index-DU5RPuKk.js");
904
- A.use(t), wt.init(A);
906
+ A.use(t), Ct.init(A);
905
907
  };
906
908
  export {
907
909
  R as ApiApp,
908
- kt as ApiAuthApi,
910
+ xt as ApiAuthApi,
909
911
  At as ApiAuthMenu,
910
912
  Ot as ApiAuthPhone,
911
913
  _t as ApiAuthRole,
@@ -1 +1 @@
1
- (function(_,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):(_=typeof globalThis<"u"?globalThis:_||self,e(_.nestAuthAdmin={},_.Vue,_.cc1Vue3,_.toolsVueUI,_.cc1Form,_.VueRouter,_.ElementPlus))})(this,(function(_,e,E,ae,u,R,se){"use strict";class ${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 A{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 ie{static sendCode(t){return http.post("/auth/phone/sendCode",{phone:t})}}class I{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 re{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 B={ERouter:{change:"",reload:""}};Object.keys(B).forEach(a=>{const t=B[a];Object.keys(t).forEach(n=>{B[a][n]=`${a}_${n}`})});const M=B.ERouter,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 S{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:S.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,S.baseUrl=this.env.API}static getBaseUrl(t){return t=S.baseUrl.replace("/api","/")+t,t=t.replace(/(?<!:)\/{2,}/g,"/"),t}}const G=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:G,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=G(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}}}),ce=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===u.TSys.EDialog.Add?(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],h={label:g.i18n.t("dateOptions.LastWeek"),value:[r,d],key:"lastWeek"};t.push(h);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=[],h=(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")?h(p,"getCustom",r):p.startsWith("del")?h(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}}),pe={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)}}},de={install:a=>{E.Scope.CEventBean=CEventBean,E.Scope.TimerBean=TimerBean}};let L={},D={};const me={install:a=>{a.use(ae),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)}}},ue={style:{border:"1px solid #ccc"}},fe=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 h=p=>{i.value=p};return(p,y)=>(e.openBlock(),e.createElementBlock("div",ue,[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:h},null,8,["modelValue"])]))}}),he={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:fe}})}},_e={install:a=>{a.use(pe),a.use(de),a.use(me),a.use(he)}},ye=()=>{const a=r=>r.replace(/\/index$/,"");let t=Object.assign({"/src/views/error/index.vue":()=>Promise.resolve().then(()=>Ee),"/src/views/layout/index.vue":()=>Promise.resolve().then(()=>We),"/src/views/login/index.vue":()=>Promise.resolve().then(()=>Qe),"/src/views/pages/auth/api/index.vue":()=>Promise.resolve().then(()=>ve),"/src/views/pages/auth/menu/index.vue":()=>Promise.resolve().then(()=>gt),"/src/views/pages/auth/role/index.vue":()=>Promise.resolve().then(()=>wt),"/src/views/pages/auth/user/index.vue":()=>Promise.resolve().then(()=>xt),"/src/views/pages/db/index.vue":()=>Promise.resolve().then(()=>Ct),"/src/views/pages/email/config/index.vue":()=>Promise.resolve().then(()=>Vt),"/src/views/pages/home/index.vue":()=>Promise.resolve().then(()=>$t),"/src/views/pages/log/error/index.vue":()=>Promise.resolve().then(()=>Bt),"/src/views/pages/log/loginlog/index.vue":()=>Promise.resolve().then(()=>Lt),"/src/views/pages/schedule/job/index.vue":()=>Promise.resolve().then(()=>Dt),"/src/views/pages/sms/config/index.vue":()=>Promise.resolve().then(()=>Ot),"/src/views/pages/system/config/index.vue":()=>Promise.resolve().then(()=>At),"/src/views/pages/system/tenant/index.vue":()=>Promise.resolve().then(()=>It)});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=E.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 be=()=>{Object.keys(V.store).forEach(a=>{a!=="sutil"&&V.store[a].reset?.()})},ge=()=>{Object.keys(V.store).forEach(a=>{a!=="sutil"&&V.store[a].load?.()})},we=async()=>{ge()};V.reset=be;class xe{static async init(t){t.use(_e),t.use(g.i18n),await g.i18n.setLang(),we(),S.init();const n=ye();t.use(n),n.isReady().then(async()=>{t.mount("#app")})}}const O=e.createApp(ce),ke=async a=>{g.setConfig(a),await g.config.install?.(O),O.use(window.ElementPlus);const t=await Promise.resolve().then(()=>Ut);O.use(t),xe.init(O)},Ce={style:{background:"#7395ff",width:"100vw",height:"100vh"}},Ve={class:"nfsystem"},Ne=["src"],Te={class:"nftitle"},Se=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",Ce,[e.createElementVNode("div",Ve,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/404.png"},null,8,Ne),e.createElementVNode("div",Te,[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},Ee=Object.freeze(Object.defineProperty({__proto__:null,default:T(Se,[["__scopeId","data-v-29641492"]])},Symbol.toStringTag,{value:"Module"})),$e={class:"header row no-wrap"},Be={class:"header-right"},Le={class:"header-user-con"},De={class:"el-dropdown-link row items-center"},Oe={class:"user-avator"},Ae=["src"],Ie=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",$e,[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",Be,[e.createElementVNode("div",Le,[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",De,[e.createTextVNode(e.toDisplayString(e.unref(x).userInfo.nickname)+" ",1),e.createElementVNode("div",Oe,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/head.jpg"},null,8,Ae)])])]),_:1})])])])}}}),[["__scopeId","data-v-7d929cc4"]]),je={class:"flex items-center vicon"},Pe={class:"flex items-center vicon"},Ue=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"),h=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(h,{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",je,[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",Pe,[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"]]),Me={style:{display:"flex",height:"calc(100% - 70px)"}},ze={class:"content"},Re={class:"view"},Fe={class:"row flex-center",style:{gap:"10px","font-size":"12px"}},We=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(Ie),e.createElementVNode("div",Me,[e.createVNode(Ue),e.createElementVNode("div",ze,[e.createElementVNode("div",null,[e.createElementVNode("div",Re,[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",Fe,[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"})),qe=["id"],He=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 h=function(){this.list=[]};h.prototype.push=function(m){this.list.push(m)},h.prototype.update=function(){for(let m=0,w=this.list.length;m<w;m++)this.list[m].update()},h.prototype.draw=function(m){for(let w=0,k=this.list.length;w<k;w++)this.list[w].draw(m)},h.prototype.get=function(m){return this.list[m]},h.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 h;for(let b=0;b<50;b++){let N,Q,v,ee,te,oe,ne,le;Q=p("x"),v=p("y"),te=p("r"),ee=p("s"),oe=p("fnx"),ne=p("fny"),le=p("fnr"),N=new d(Q,v,ee,te,{x:oe,y:ne,r:le}),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,qe))}}),Ke={class:"absolute fit"},Je={class:"login-icp"},Ye={class:"ms-login"},Ge={class:"row no-wrap",style:{width:"100%"}},Ze={class:"row no-wrap",style:{width:"100%"}},Xe={class:"login-btn"},Qe=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 h=f.getTableTree(d.data.roleInfo.menuList);f.setMenuList(h,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"),h=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",Ke,[e.createVNode(He,{class:"fit"})]),e.createElementVNode("div",Je,[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",Ye,[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(h,{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",Ze,[e.createVNode(h,{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(h,{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",Ge,[e.createVNode(h,{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",Xe,[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"})),ve=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({data:[],option:{api:$,search:{show:!1},data(n){return t.data=f.getTableTree(n),t.data},table:{border:!0,index:!1,add:n=>n?.type===0,operate:{width:160}},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),l.type===u.TSys.EDialog.Add&&(n.title="");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 $.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"})),et=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)}}}),tt={class:"row items-center",style:{gap:"10px"}},ot=["onUpdate:modelValue"],nt=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=E.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",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.color,(h,p)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:"color","onUpdate:modelValue":y=>o.color[p].value=y},null,8,ot)),[[e.vModelText,o.color[p].value]])),256))]))}}),lt={class:"row items-center",style:{height:"60px",overflow:"auto"}},at={class:"row items-center",style:{gap:"10px",margin:"15px 0"}},st={class:"row items-center",style:{gap:"10px","margin-bottom":"15px"}},it={class:"row items-center"},rt={class:"flex items-center",style:{"margin-bottom":"10px"}},ct={style:{"margin-left":"10px"}},pt={key:0,class:"row"},dt=["onClick"],mt={style:{width:"0px"},class:"flex flex-center"},ut={style:{"text-wrap":"nowrap"}},ft={class:"dialog-footer"},ht=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 h=Object.keys(d);o.list[c]=[];for(let p=0;p<h.length;p++)o.list[c].push({name:h[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"),h=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",ft,[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",lt,[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",at,[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",st,[i[13]||(i[13]=e.createElementVNode("div",null,"放大:",-1)),e.createVNode(h,{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",it,[i[11]||(i[11]=e.createElementVNode("div",null,"颜色控制:",-1)),e.createVNode(h,{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(nt,{colors:o.color,"onUpdate:colors":i[4]||(i[4]=b=>o.color=b)},null,8,["colors"])],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",rt,[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",ct,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",pt,[(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(et,{isbig:o.isbig,el:b,color:o.color,nofill:o.nofill,lib:o.lib},null,8,["isbig","el","color","nofill","lib"]),e.createElementVNode("div",mt,[e.createElementVNode("div",ut,e.toDisplayString(b.name),1)])],12,dt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-b9c727d4"]]),_t={class:"flex flex-center"},yt={class:"row"},bt=["onClick"],gt=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:A,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),l.type===u.TSys.EDialog.Add&&(n.title="")},submitBefore(n,l){n.iconName?.length||(n.iconLib="",n.iconName="",n.iconFill=[])}},search:{show:!1},table:{border:!0,index:!1,add:n=>n?.type===0,operate:{width:160}},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",_t,[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:h})=>[d.type===1?(e.openBlock(),e.createBlock(i,{key:0,modelValue:d[h.key],"onUpdate:modelValue":p=>d[h.key]=p},null,8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),"form-icon":e.withCtx(({row:d,item:h})=>[e.createElementVNode("div",yt,[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,bt)):e.createCommentVNode("",!0)])]),"tools-right":e.withCtx(()=>[e.createVNode(ht,{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-c50a256a"]])},Symbol.toStringTag,{value:"Module"})),wt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({menuList:[],apiList:[],roleList:[],option:{api:I,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 A.list({final(s,i,c){u.TSys.loading(!1)}});t.menuList=f.getTableTree(o.data),o=await $.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"})),xt=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 I.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 Z{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 kt={class:"row"},Ct=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 Z.import({file:o}),u.TSys.success("导入覆盖成功")}catch(c){console.error("上传的文件不是合法JSON",c)}},s.readAsText(o)},n.click()},export:async()=>{const{data:n}=await Z.export();u.TSys.success("备份成功"+n,{duration:3e3})}});return(n,l)=>{const o=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",kt,[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"})),Vt=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"})),Nt={class:"user-info"},Tt=["src"],St={class:"user-info-cont"},Et={class:"user-info-name"},$t=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",Nt,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/head.jpg",class:"user-avator",alt:""},null,8,Tt),e.createElementVNode("div",St,[e.createElementVNode("div",Et,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"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=(l,o="内容")=>{se.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"})),Lt=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"})),Dt=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"})),Ot=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"})),It=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"})),jt=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:h=>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:h=>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"])}}}),Pt=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}}),X=a=>{a.component("xRouteEvent",Pt),a.component("xFormList",jt)},Ut=Object.freeze(Object.defineProperty({__proto__:null,default:{install:X},install:X},Symbol.toStringTag,{value:"Module"}));_.ApiApp=U,_.ApiAuthApi=$,_.ApiAuthMenu=A,_.ApiAuthPhone=ie,_.ApiAuthRole=I,_.ApiAuthUser=j,_.ApiCaptcha=F,_.ApiCron=re,_.ApiEmailConfig=q,_.ApiErrorLog=H,_.ApiJob=K,_.ApiLoginLog=W,_.ApiSmsConfig=P,_.ApiSystemConfig=J,_.ApiSystemTenant=Y,_.ERouter=M,_.System=g,_.initApp=ke,_.scurd=C,_.ssys=f,_.suser=x,_.sutil=V,_.svf=z,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(_,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):(_=typeof globalThis<"u"?globalThis:_||self,e(_.nestAuthAdmin={},_.Vue,_.cc1Vue3,_.toolsVueUI,_.cc1Form,_.VueRouter,_.ElementPlus))})(this,(function(_,e,$,ae,u,R,se){"use strict";class E{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 A{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 ie{static sendCode(t){return http.post("/auth/phone/sendCode",{phone:t})}}class I{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 re{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 B={ERouter:{change:"",reload:""}};Object.keys(B).forEach(a=>{const t=B[a];Object.keys(t).forEach(n=>{B[a][n]=`${a}_${n}`})});const M=B.ERouter,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 S{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:S.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){o.res=l.data,l.status=s;return}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,S.baseUrl=this.env.API}static getBaseUrl(t){return t=S.baseUrl.replace("/api","/")+t,t=t.replace(/(?<!:)\/{2,}/g,"/"),t}}const G=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:G,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=G(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}}}),ce=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===u.TSys.EDialog.Add?(t.form.parentId=a._id,t.form.sort=a.children.length+1,t.form._id=void 0):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],h={label:g.i18n.t("dateOptions.LastWeek"),value:[r,d],key:"lastWeek"};t.push(h);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=[],h=(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")?h(p,"getCustom",r):p.startsWith("del")?h(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}}),pe={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)}}},de={install:a=>{$.Scope.CEventBean=CEventBean,$.Scope.TimerBean=TimerBean}};let L={},D={};const me={install:a=>{a.use(ae),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)}}},ue={style:{border:"1px solid #ccc"}},fe=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 h=p=>{i.value=p};return(p,y)=>(e.openBlock(),e.createElementBlock("div",ue,[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:h},null,8,["modelValue"])]))}}),he={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:fe}})}},_e={install:a=>{a.use(pe),a.use(de),a.use(me),a.use(he)}},ye=()=>{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(()=>We),"/src/views/login/index.vue":()=>Promise.resolve().then(()=>Qe),"/src/views/pages/auth/api/index.vue":()=>Promise.resolve().then(()=>ve),"/src/views/pages/auth/menu/index.vue":()=>Promise.resolve().then(()=>gt),"/src/views/pages/auth/role/index.vue":()=>Promise.resolve().then(()=>wt),"/src/views/pages/auth/user/index.vue":()=>Promise.resolve().then(()=>xt),"/src/views/pages/db/index.vue":()=>Promise.resolve().then(()=>Ct),"/src/views/pages/email/config/index.vue":()=>Promise.resolve().then(()=>Vt),"/src/views/pages/home/index.vue":()=>Promise.resolve().then(()=>Et),"/src/views/pages/log/error/index.vue":()=>Promise.resolve().then(()=>Bt),"/src/views/pages/log/loginlog/index.vue":()=>Promise.resolve().then(()=>Lt),"/src/views/pages/schedule/job/index.vue":()=>Promise.resolve().then(()=>Dt),"/src/views/pages/sms/config/index.vue":()=>Promise.resolve().then(()=>Ot),"/src/views/pages/system/config/index.vue":()=>Promise.resolve().then(()=>At),"/src/views/pages/system/tenant/index.vue":()=>Promise.resolve().then(()=>It)});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 be=()=>{Object.keys(V.store).forEach(a=>{a!=="sutil"&&V.store[a].reset?.()})},ge=()=>{Object.keys(V.store).forEach(a=>{a!=="sutil"&&V.store[a].load?.()})},we=async()=>{ge()};V.reset=be;class xe{static async init(t){t.use(_e),t.use(g.i18n),await g.i18n.setLang(),we(),S.init();const n=ye();t.use(n),n.isReady().then(async()=>{t.mount("#app")})}}const O=e.createApp(ce),ke=async a=>{g.setConfig(a),await g.config.install?.(O),O.use(window.ElementPlus);const t=await Promise.resolve().then(()=>Ut);O.use(t),xe.init(O)},Ce={style:{background:"#7395ff",width:"100vw",height:"100vh"}},Ve={class:"nfsystem"},Ne=["src"],Te={class:"nftitle"},Se=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",Ce,[e.createElementVNode("div",Ve,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/404.png"},null,8,Ne),e.createElementVNode("div",Te,[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(Se,[["__scopeId","data-v-29641492"]])},Symbol.toStringTag,{value:"Module"})),Ee={class:"header row no-wrap"},Be={class:"header-right"},Le={class:"header-user-con"},De={class:"el-dropdown-link row items-center"},Oe={class:"user-avator"},Ae=["src"],Ie=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",Ee,[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",Be,[e.createElementVNode("div",Le,[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",De,[e.createTextVNode(e.toDisplayString(e.unref(x).userInfo.nickname)+" ",1),e.createElementVNode("div",Oe,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/head.jpg"},null,8,Ae)])])]),_:1})])])])}}}),[["__scopeId","data-v-7d929cc4"]]),je={class:"flex items-center vicon"},Pe={class:"flex items-center vicon"},Ue=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"),h=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(h,{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",je,[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",Pe,[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"]]),Me={style:{display:"flex",height:"calc(100% - 70px)"}},ze={class:"content"},Re={class:"view"},Fe={class:"row flex-center",style:{gap:"10px","font-size":"12px"}},We=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(Ie),e.createElementVNode("div",Me,[e.createVNode(Ue),e.createElementVNode("div",ze,[e.createElementVNode("div",null,[e.createElementVNode("div",Re,[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",Fe,[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"})),qe=["id"],He=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 h=function(){this.list=[]};h.prototype.push=function(m){this.list.push(m)},h.prototype.update=function(){for(let m=0,w=this.list.length;m<w;m++)this.list[m].update()},h.prototype.draw=function(m){for(let w=0,k=this.list.length;w<k;w++)this.list[w].draw(m)},h.prototype.get=function(m){return this.list[m]},h.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 h;for(let b=0;b<50;b++){let N,Q,v,ee,te,oe,ne,le;Q=p("x"),v=p("y"),te=p("r"),ee=p("s"),oe=p("fnx"),ne=p("fny"),le=p("fnr"),N=new d(Q,v,ee,te,{x:oe,y:ne,r:le}),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,qe))}}),Ke={class:"absolute fit"},Je={class:"login-icp"},Ye={class:"ms-login"},Ge={class:"row no-wrap",style:{width:"100%"}},Ze={class:"row no-wrap",style:{width:"100%"}},Xe={class:"login-btn"},Qe=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 h=f.getTableTree(d.data.roleInfo.menuList);f.setMenuList(h,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"),h=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",Ke,[e.createVNode(He,{class:"fit"})]),e.createElementVNode("div",Je,[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",Ye,[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(h,{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",Ze,[e.createVNode(h,{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(h,{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",Ge,[e.createVNode(h,{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",Xe,[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"})),ve=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({data:[],option:{api:E,search:{show:!1},data(n){return t.data=f.getTableTree(n),t.data},table:{border:!0,index:!1,add:n=>n?.type===0,operate:{width:160}},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:{clearable:!1,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:"",rules:!0,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.title?n:null,l,t.data,t.option),l.type===u.TSys.EDialog.Add&&(n.title="");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 E.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"})),et=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)}}}),tt={class:"row items-center",style:{gap:"10px"}},ot=["onUpdate:modelValue"],nt=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",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.color,(h,p)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:"color","onUpdate:modelValue":y=>o.color[p].value=y},null,8,ot)),[[e.vModelText,o.color[p].value]])),256))]))}}),lt={class:"row items-center",style:{height:"60px",overflow:"auto"}},at={class:"row items-center",style:{gap:"10px",margin:"15px 0"}},st={class:"row items-center",style:{gap:"10px","margin-bottom":"15px"}},it={class:"row items-center"},rt={class:"flex items-center",style:{"margin-bottom":"10px"}},ct={style:{"margin-left":"10px"}},pt={key:0,class:"row"},dt=["onClick"],mt={style:{width:"0px"},class:"flex flex-center"},ut={style:{"text-wrap":"nowrap"}},ft={class:"dialog-footer"},ht=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 h=Object.keys(d);o.list[c]=[];for(let p=0;p<h.length;p++)o.list[c].push({name:h[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"),h=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",ft,[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",lt,[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",at,[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",st,[i[13]||(i[13]=e.createElementVNode("div",null,"放大:",-1)),e.createVNode(h,{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",it,[i[11]||(i[11]=e.createElementVNode("div",null,"颜色控制:",-1)),e.createVNode(h,{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(nt,{colors:o.color,"onUpdate:colors":i[4]||(i[4]=b=>o.color=b)},null,8,["colors"])],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",rt,[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",ct,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",pt,[(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(et,{isbig:o.isbig,el:b,color:o.color,nofill:o.nofill,lib:o.lib},null,8,["isbig","el","color","nofill","lib"]),e.createElementVNode("div",mt,[e.createElementVNode("div",ut,e.toDisplayString(b.name),1)])],12,dt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-b9c727d4"]]),_t={class:"flex flex-center"},yt={class:"row"},bt=["onClick"],gt=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:A,data(n){return t.data=f.getTableTree(n),t.data},form:{openBefore:async(n,l)=>{C.form.openBefore.parentId(n.title?n:null,l,t.data,t.option),C.setOptionsData(t.option,"url",t.routers),l.type===u.TSys.EDialog.Add&&(n.title="")},submitBefore(n,l){n.iconName?.length||(n.iconLib="",n.iconName="",n.iconFill=[])}},search:{show:!1},table:{border:!0,index:!1,add:n=>n?.type===0,operate:{width:160}},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:"",rules:!0,sort:{table:1}},{key:"type",label:"类型",type:"select",value:0,options:{select:{clearable:!1,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",rules:!0,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",_t,[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:h})=>[d.type===1?(e.openBlock(),e.createBlock(i,{key:0,modelValue:d[h.key],"onUpdate:modelValue":p=>d[h.key]=p},null,8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),"form-icon":e.withCtx(({row:d,item:h})=>[e.createElementVNode("div",yt,[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,bt)):e.createCommentVNode("",!0)])]),"tools-right":e.withCtx(()=>[e.createVNode(ht,{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-f400f21e"]])},Symbol.toStringTag,{value:"Module"})),wt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=e.reactive({menuList:[],apiList:[],roleList:[],option:{api:I,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 A.list({final(s,i,c){u.TSys.loading(!1)}});t.menuList=f.getTableTree(o.data),o=await E.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"})),xt=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 I.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 Z{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 kt={class:"row"},Ct=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 Z.import({file:o}),u.TSys.success("导入覆盖成功")}catch(c){console.error("上传的文件不是合法JSON",c)}},s.readAsText(o)},n.click()},export:async()=>{const{data:n}=await Z.export();u.TSys.success("备份成功"+n,{duration:3e3})}});return(n,l)=>{const o=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",kt,[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"})),Vt=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"})),Nt={class:"user-info"},Tt=["src"],St={class:"user-info-cont"},$t={class:"user-info-name"},Et=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",Nt,[e.createElementVNode("img",{src:e.unref(g).staticDir+"/images/head.jpg",class:"user-avator",alt:""},null,8,Tt),e.createElementVNode("div",St,[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"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(a){const t=(l,o="内容")=>{se.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"})),Lt=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"})),Dt=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"})),Ot=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"})),It=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"})),jt=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:h=>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:h=>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"])}}}),Pt=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}}),X=a=>{a.component("xRouteEvent",Pt),a.component("xFormList",jt)},Ut=Object.freeze(Object.defineProperty({__proto__:null,default:{install:X},install:X},Symbol.toStringTag,{value:"Module"}));_.ApiApp=U,_.ApiAuthApi=E,_.ApiAuthMenu=A,_.ApiAuthPhone=ie,_.ApiAuthRole=I,_.ApiAuthUser=j,_.ApiCaptcha=F,_.ApiCron=re,_.ApiEmailConfig=q,_.ApiErrorLog=H,_.ApiJob=K,_.ApiLoginLog=W,_.ApiSmsConfig=P,_.ApiSystemConfig=J,_.ApiSystemTenant=Y,_.ERouter=M,_.System=g,_.initApp=ke,_.scurd=C,_.ssys=f,_.suser=x,_.sutil=V,_.svf=z,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
@@ -378,7 +378,7 @@ const q = /* @__PURE__ */ C({
378
378
  },
379
379
  form: {
380
380
  openBefore: async (l, r) => {
381
- F.form.openBefore.parentId(l, r, n.data, n.option), F.setOptionsData(n.option, "url", n.routers), r.type === V.EDialog.Add && (l.title = "");
381
+ F.form.openBefore.parentId(l.title ? l : null, r, n.data, n.option), F.setOptionsData(n.option, "url", n.routers), r.type === V.EDialog.Add && (l.title = "");
382
382
  },
383
383
  submitBefore(l, r) {
384
384
  l.iconName?.length || (l.iconLib = "", l.iconName = "", l.iconFill = []);
@@ -422,6 +422,7 @@ const q = /* @__PURE__ */ C({
422
422
  label: "名称",
423
423
  type: "input",
424
424
  value: "",
425
+ rules: !0,
425
426
  sort: {
426
427
  table: 1
427
428
  }
@@ -433,6 +434,7 @@ const q = /* @__PURE__ */ C({
433
434
  value: 0,
434
435
  options: {
435
436
  select: {
437
+ clearable: !1,
436
438
  data: [
437
439
  { label: "目录", value: 0 },
438
440
  { label: "路由", value: 1 }
@@ -465,6 +467,7 @@ const q = /* @__PURE__ */ C({
465
467
  key: "url",
466
468
  label: "地址",
467
469
  type: "select",
470
+ rules: !0,
468
471
  value: "",
469
472
  show: {
470
473
  form: (l) => l.type === 1
@@ -593,7 +596,7 @@ const q = /* @__PURE__ */ C({
593
596
  }, 8, ["option"]);
594
597
  };
595
598
  }
596
- }), ge = /* @__PURE__ */ T(de, [["__scopeId", "data-v-c50a256a"]]);
599
+ }), ge = /* @__PURE__ */ T(de, [["__scopeId", "data-v-f400f21e"]]);
597
600
  export {
598
601
  ge as default
599
602
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, reactive as m, resolveComponent as s, openBlock as p, createBlock as r, withCtx as n, createTextVNode as u } from "vue";
1
+ import { defineComponent as y, reactive as m, resolveComponent as s, openBlock as r, createBlock as p, withCtx as n, createTextVNode as u } from "vue";
2
2
  import { TSys as i } from "cc1-form";
3
3
  import { ApiAuthApi as d, scurd as f, ssys as b } from "./cc1-admin-front.js";
4
4
  const x = /* @__PURE__ */ y({
@@ -62,6 +62,7 @@ const x = /* @__PURE__ */ y({
62
62
  value: 0,
63
63
  options: {
64
64
  select: {
65
+ clearable: !1,
65
66
  data: [
66
67
  { label: "目录", value: 0 },
67
68
  { label: "接口", value: 1 }
@@ -87,6 +88,7 @@ const x = /* @__PURE__ */ y({
87
88
  label: "地址",
88
89
  type: "select",
89
90
  value: "",
91
+ rules: !0,
90
92
  show: {
91
93
  form: (e) => e.type === 1
92
94
  },
@@ -107,7 +109,7 @@ const x = /* @__PURE__ */ y({
107
109
  ],
108
110
  form: {
109
111
  openBefore: async (e, a) => {
110
- f.form.openBefore.parentId(e, a, t.data, t.option), a.type === i.EDialog.Add && (e.title = "");
112
+ f.form.openBefore.parentId(e.title ? e : null, a, t.data, t.option), a.type === i.EDialog.Add && (e.title = "");
111
113
  const l = await t.api.getList();
112
114
  f.setOptionsData(
113
115
  t.option,
@@ -145,11 +147,11 @@ const x = /* @__PURE__ */ y({
145
147
  });
146
148
  return (e, a) => {
147
149
  const l = s("el-tag"), o = s("t-curd");
148
- return p(), r(o, {
150
+ return r(), p(o, {
149
151
  option: t.option
150
152
  }, {
151
153
  "table-type": n(({ row: c }) => [
152
- c.type === 0 ? (p(), r(l, {
154
+ c.type === 0 ? (r(), p(l, {
153
155
  key: 0,
154
156
  type: "success"
155
157
  }, {
@@ -158,7 +160,7 @@ const x = /* @__PURE__ */ y({
158
160
  ])),
159
161
  _: 1,
160
162
  __: [0]
161
- })) : (p(), r(l, {
163
+ })) : (r(), p(l, {
162
164
  key: 1,
163
165
  type: "warning"
164
166
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-admin-front",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "我来助你-后台管理系统-页面",
5
5
  "repository": {
6
6
  "type": "git",