用户组

This commit is contained in:
小陌 2023-12-29 18:08:48 +08:00
parent 1adec5fcfa
commit 1c66eb2f17
101 changed files with 950 additions and 1008 deletions

2
dist/index.html vendored
View File

@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.337a070a.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.4fd5df59.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.d52c379c.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.853ca01a.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.e8330142.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"></div><div class="app-loading__loader"></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>.app-loading { <!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.38cafffe.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.65ce160c.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.70e682f6.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.953e48e1.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"></div><div class="app-loading__loader"></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>.app-loading {
position: absolute; position: absolute;
top:0px; top:0px;
left:0px; left:0px;

4
dist/report.html vendored

File diff suppressed because one or more lines are too long

1
dist/static/css/22.51e74ab3.css vendored Normal file
View File

@ -0,0 +1 @@
.menu[data-v-86f11d78] .el-tree-node__label{display:flex;flex:1;height:100%}.custom-tree-node[data-v-86f11d78]{flex:1;justify-content:space-between;font-size:14px;padding-right:24px}.custom-tree-node .label[data-v-86f11d78],.custom-tree-node[data-v-86f11d78]{display:flex;align-items:center;height:100%}.custom-tree-node .label .el-tag[data-v-86f11d78]{margin-left:5px}.custom-tree-node .do[data-v-86f11d78]{display:none}.custom-tree-node .do i[data-v-86f11d78]{margin-left:5px;color:#999}.custom-tree-node .do i[data-v-86f11d78]:hover{color:#333}.custom-tree-node:hover .do[data-v-86f11d78]{display:inline-block}

1
dist/static/css/340.3955b5c9.css vendored Normal file
View File

@ -0,0 +1 @@
.el-header[data-v-1377d2f7]{height:50px}.el-aside[data-v-1377d2f7]{background-color:#fff}.x-page-header[data-v-1377d2f7]{border-bottom:0 solid #ebebebc2;padding:5px;.x-page-header__icon[data-v-1377d2f7]{width:40px}}.menu[data-v-1377d2f7] .el-tree-node__label{display:flex;flex:1;height:100%}.el-footer[data-v-1377d2f7]{padding:10px 15px;height:45px;text-align:center}

View File

@ -1 +0,0 @@
.x-file-select[data-v-632818a0]{display:flex;height:100%}.x-file-select__files[data-v-632818a0]{flex:1}.x-file-select__list[data-v-632818a0]{height:400px}.x-file-select__item[data-v-632818a0]{display:inline-block;float:left;margin:0 15px 25px 0;width:110px;cursor:pointer}.x-file-select__item__file[data-v-632818a0]{width:110px;height:110px;position:relative}.x-file-select__item__file .el-image[data-v-632818a0]{width:110px;height:110px}.x-file-select__item__box[data-v-632818a0]{position:absolute;top:0;right:0;bottom:0;left:0;border:2px solid var(--el-color-success);z-index:1;display:none}.x-file-select__item__box[data-v-632818a0]:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--el-color-success);opacity:.2;display:none}.x-file-select__item.active .x-file-select__item__box[data-v-632818a0],.x-file-select__item.active .x-file-select__item__box[data-v-632818a0]:before,.x-file-select__item:hover .x-file-select__item__box[data-v-632818a0]{display:block}.x-file-select__item p[data-v-632818a0]{margin-top:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-text-overflow:ellipsis;text-align:center}.x-file-select__item__checkbox[data-v-632818a0]{position:absolute;width:20px;height:20px;top:7px;right:7px;z-index:2;background:rgba(0,0,0,.2);border:1px solid #fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.x-file-select__item__checkbox i[data-v-632818a0]{font-size:14px;color:#fff;font-weight:700;display:none}.x-file-select__item__select[data-v-632818a0]{position:absolute;width:20px;height:20px;top:0;right:0;z-index:2;background:var(--el-color-success);display:none;flex-direction:column;align-items:center;justify-content:center}.x-file-select__item__select i[data-v-632818a0]{font-size:14px;color:#fff;font-weight:700}.x-file-select__item.active .x-file-select__item__checkbox[data-v-632818a0]{background:var(--el-color-success)}.x-file-select__item.active .x-file-select__item__checkbox i[data-v-632818a0]{display:block}.x-file-select__item.active .x-file-select__item__select[data-v-632818a0]{display:flex}.x-file-select__item__file .item-file[data-v-632818a0]{width:110px;height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center}.x-file-select__item__file .item-file i[data-v-632818a0]{font-size:40px}.x-file-select__item__file .item-file.item-file-doc[data-v-632818a0]{color:#409eff}.x-file-select__item__upload[data-v-632818a0]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background:hsla(0,0%,100%,.7);display:flex;flex-direction:column;align-items:center;justify-content:center}.x-file-select__side[data-v-632818a0]{width:200px;margin-right:15px;border-right:1px solid hsla(0,0%,50%,.2);display:flex;flex-flow:column}.x-file-select__side-menu[data-v-632818a0]{flex:1}.x-file-select__side-msg[data-v-632818a0]{height:32px;line-height:32px}.x-file-select__top[data-v-632818a0]{margin-bottom:15px;display:flex;justify-content:space-between}.x-file-select__upload[data-v-632818a0]{display:inline-block}.x-file-select__top .tips[data-v-632818a0]{font-size:12px;margin-left:10px;color:#999}.x-file-select__top .tips i[data-v-632818a0]{font-size:14px;margin-right:5px;position:relative;bottom:-.125em}.x-file-select__pagination[data-v-632818a0]{margin:15px 0}.x-file-select__do[data-v-632818a0]{text-align:right}

View File

@ -1 +0,0 @@
.container[data-v-0d7cfddc]{border:1px solid var(--el-border-color-light);border-radius:4px;background-color:var(--el-fill-color-blank);overflow:hidden}.el-aside[data-v-0d7cfddc]{background-color:#fff}

View File

@ -1 +0,0 @@
.x-select-filter[data-v-087a57ae]{width:100%}.x-select-filter__item[data-v-087a57ae]{display:flex}.x-select-filter__item-title[data-v-087a57ae]{width:80px}.x-select-filter__item-title label[data-v-087a57ae]{font-size:14px;padding-top:13px;display:inline-block;color:#999}.x-select-filter__item-options[data-v-087a57ae]{flex:1;border-bottom:1px dashed var(--el-border-color-light)}.x-select-filter__item-options ul[data-v-087a57ae]{display:flex;flex-wrap:wrap;padding-top:10px}.x-select-filter__item-options li[data-v-087a57ae]{list-style:none;cursor:pointer;height:28px;padding:0 15px;border-radius:32px;margin:0 10px 10px 0;display:flex;align-items:center;background:var(--el-color-primary-light-9)}.x-select-filter__item-options li .el-icon[data-v-087a57ae]{margin-right:3px;font-size:16px}.x-select-filter__item-options li[data-v-087a57ae]:hover{color:var(--el-color-primary)}.x-select-filter__item-options li.active[data-v-087a57ae]{background:var(--el-color-primary);color:#fff;font-weight:700}.x-select-filter__item:last-of-type .x-select-filter__item-options[data-v-087a57ae]{border:0}.x-select-filter__no-data[data-v-087a57ae]{color:#999}.userlose .el-card__body{padding:0}

1
dist/static/css/506.5fbff7aa.css vendored Normal file
View File

@ -0,0 +1 @@
.el-header[data-v-22a075c0]{height:50px}.x-page-header[data-v-22a075c0]{border-bottom:0 solid hsla(0,0%,92%,.761);padding:5px}.x-page-header .x-page-header__icon[data-v-22a075c0]{width:40px}.message-header[data-v-22a075c0]{margin-left:28px;height:60px}.message-header .title-icon[data-v-22a075c0]{width:30px;height:30px;margin-right:10px;border-radius:4px}.message-header .title[data-v-22a075c0]{font-size:16px;font-weight:600}.message-body[data-v-22a075c0],.message-content[data-v-22a075c0]{position:relative;height:100%}.message-body-side[data-v-22a075c0]{padding:0 0;font-size:14px;background-color:#fff;position:absolute;top:0;left:0;bottom:0;z-index:100;border-right:1px solid #e6e6e6;overflow-y:auto}.message-body-side .side-item[data-v-22a075c0]{position:relative;height:50px;line-height:50px;padding:0 20px;font-size:13px;cursor:pointer}.message-body-side .side-item i[data-v-22a075c0]{color:#999}.message-body-content[data-v-22a075c0]{height:100%;overflow:hidden}@media(max-width:767px){.message-body-side[data-v-22a075c0]{width:0!important;transition:all .1s;overflow-y:hidden}.message-body-content[data-v-22a075c0]{margin-left:0!important;transition:all .1s}}

1
dist/static/css/537.4e9ff295.css vendored Normal file
View File

@ -0,0 +1 @@
.container[data-v-79c6f9d2]{border:1px solid var(--el-border-color-light);border-radius:4px;background-color:var(--el-fill-color-blank);overflow:hidden}.el-header[data-v-79c6f9d2]{height:50px}.el-aside[data-v-79c6f9d2]{background-color:#fff}.x-page-header[data-v-79c6f9d2]{border-bottom:0 solid #ebebebc2;padding:5px;.x-page-header__icon[data-v-79c6f9d2]{width:40px}}

View File

@ -1 +0,0 @@
.x-page-header[data-v-03db4287]{border-bottom:1px solid hsla(0,0%,92%,.761);padding:10px 20px}.x-page-header .x-page-header__icon[data-v-03db4287]{width:40px}.message-header[data-v-03db4287]{margin-left:28px;height:60px}.message-header .title-icon[data-v-03db4287]{width:30px;height:30px;margin-right:10px;border-radius:4px}.message-header .title[data-v-03db4287]{font-size:16px;font-weight:600}.message-body[data-v-03db4287],.message-content[data-v-03db4287]{position:relative;height:100%}.message-body-side[data-v-03db4287]{padding:0 0;font-size:14px;background-color:#fff;position:absolute;top:0;left:0;bottom:0;z-index:100;border-right:1px solid #e6e6e6;overflow-y:auto}.message-body-side .side-item[data-v-03db4287]{position:relative;height:50px;line-height:50px;padding:0 20px;font-size:13px;cursor:pointer}.message-body-side .side-item i[data-v-03db4287]{color:#999}.message-body-content[data-v-03db4287]{height:100%;overflow:hidden}@media(max-width:767px){.message-body-side[data-v-03db4287]{width:0!important;transition:all .1s;overflow-y:hidden}.message-body-content[data-v-03db4287]{margin-left:0!important;transition:all .1s}}

View File

@ -1 +0,0 @@
.menu[data-v-194ed0e8] .el-tree-node__label{display:flex;flex:1;height:100%}.custom-tree-node[data-v-194ed0e8]{flex:1;justify-content:space-between;font-size:14px;padding-right:24px}.custom-tree-node .label[data-v-194ed0e8],.custom-tree-node[data-v-194ed0e8]{display:flex;align-items:center;height:100%}.custom-tree-node .label .el-tag[data-v-194ed0e8]{margin-left:5px}.custom-tree-node .do[data-v-194ed0e8]{display:none}.custom-tree-node .do i[data-v-194ed0e8]{margin-left:5px;color:#999}.custom-tree-node .do i[data-v-194ed0e8]:hover{color:#333}.custom-tree-node:hover .do[data-v-194ed0e8]{display:inline-block}

File diff suppressed because one or more lines are too long

12
dist/static/css/modules.70e682f6.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[105],{5105:function(e,t,s){s.r(t),s.d(t,{default:function(){return _}});var p=s(6252);const r=e=>((0,p.dD)("data-v-616a86ed"),e=e(),(0,p.Cn)(),e),i={class:"x-cropper"},a={class:"x-cropper__img"},o=["src"],c={class:"x-cropper__preview"},n=r((()=>(0,p._)("h4",null,"图像预览",-1))),d={class:"x-cropper__preview__img",ref:"preview"};function l(e,t,s,r,l,g){return(0,p.wg)(),(0,p.iD)("div",i,[(0,p._)("div",a,[(0,p._)("img",{src:s.src,ref:"img"},null,8,o)]),(0,p._)("div",c,[n,(0,p._)("div",d,null,512)])])}var g=s(3129),h=s.n(g),u={props:{src:{type:String,default:""},compress:{type:Number,default:1},aspectRatio:{type:Number,default:NaN}},data(){return{crop:null}},watch:{aspectRatio(e){this.crop.setAspectRatio(e)}},mounted(){this.init()},methods:{init(){this.crop=new(h())(this.$refs.img,{viewMode:2,dragMode:"move",responsive:!1,aspectRatio:this.aspectRatio,preview:this.$refs.preview})},setAspectRatio(e){this.crop.setAspectRatio(e)},getCropData(e,t="image/jpeg"){e(this.crop.getCroppedCanvas().toDataURL(t,this.compress))},getCropBlob(e,t="image/jpeg"){this.crop.getCroppedCanvas().toBlob((t=>{e(t)}),t,this.compress)},getCropFile(e,t="fileName.jpg",s="image/jpeg"){this.crop.getCroppedCanvas().toBlob((p=>{let r=new File([p],t,{type:s});e(r)}),s,this.compress)}}},m=s(3744);const v=(0,m.Z)(u,[["render",l],["__scopeId","data-v-616a86ed"]]);var _=v}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[669],{2669:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var a=r(6252);function o(e,t,r,o,l,u){const n=(0,a.up)("el-progress"),p=(0,a.up)("x-statistic"),f=(0,a.up)("el-card"),s=(0,a.up)("el-col"),d=(0,a.up)("el-row");return(0,a.wg)(),(0,a.j4)(f,{shadow:"never",header:"当前已用量",style:{margin:"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(n,{"text-inside":!0,"stroke-width":20,color:l.color,percentage:l.value,format:u.format},null,8,["color","percentage","format"]),(0,a.Wm)(d,{gutter:15,style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"文档",value:"7.41",suffix:"GB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"图片",value:"12.90",suffix:"GB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"视音频",value:"68.79",suffix:"MB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"其他",value:"17.58",suffix:"GB",groupSeparator:""})])),_:1})])),_:1})])),_:1})])),_:1})}var l=r(8872),u={components:{xStatistic:l.Z},data(){return{value:39.58,color:[{color:"#67C23A",percentage:40},{color:"#E6A23C",percentage:60},{color:"#F56C6C",percentage:80}]}},methods:{format(e){return e+"G"}}},n=r(3744);const p=(0,n.Z)(u,[["render",o]]);var f=p}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[135],{7135:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var a=r(6808);function o(e,t,r,o,l,u){const n=(0,a.up)("el-progress"),p=(0,a.up)("x-statistic"),f=(0,a.up)("el-card"),s=(0,a.up)("el-col"),d=(0,a.up)("el-row");return(0,a.wg)(),(0,a.j4)(f,{shadow:"never",header:"当前已用量",style:{margin:"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(n,{"text-inside":!0,"stroke-width":20,color:l.color,percentage:l.value,format:u.format},null,8,["color","percentage","format"]),(0,a.Wm)(d,{gutter:15,style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"文档",value:"7.41",suffix:"GB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"图片",value:"12.90",suffix:"GB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"视音频",value:"68.79",suffix:"MB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"其他",value:"17.58",suffix:"GB",groupSeparator:""})])),_:1})])),_:1})])),_:1})])),_:1})}var l=r(6692),u={components:{xStatistic:l.Z},data(){return{value:39.58,color:[{color:"#67C23A",percentage:40},{color:"#E6A23C",percentage:60},{color:"#F56C6C",percentage:80}]}},methods:{format(e){return e+"G"}}},n=r(8700);const p=(0,n.Z)(u,[["render",o]]);var f=p}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[875],{9875:function(e,l,a){a.r(l),a.d(l,{default:function(){return c}});var t=a(6252);const o=(0,t._)("div",{class:"el-form-item-msg"},null,-1),r=(0,t._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function m(e,l,a,m,i,n){const d=(0,t.up)("el-switch"),u=(0,t.up)("el-form-item"),c=(0,t.up)("el-color-picker"),s=(0,t.up)("el-form"),f=(0,t.up)("el-card"),p=(0,t.up)("el-option"),g=(0,t.up)("el-select");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(f,{shadow:"never",header:"语言主题",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"主题"},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{modelValue:i.config.dark,"onUpdate:modelValue":l[0]||(l[0]=e=>i.config.dark=e),"inline-prompt":"","active-icon":"el-icon-moon","inactive-icon":"el-icon-sunny"},null,8,["modelValue"]),o])),_:1}),(0,t.Wm)(u,{label:"主题颜色"},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{modelValue:i.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>i.config.colorPrimary=e),predefine:i.colorList},{default:(0,t.w5)((()=>[(0,t.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1})])),_:1},512)])),_:1}),(0,t.Wm)(f,{shadow:"never",header:"个人设置",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"自动登出"},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{modelValue:i.config.autoExit,"onUpdate:modelValue":l[2]||(l[2]=e=>i.config.autoExit=e)},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{label:"从不",value:0}),(0,t.Wm)(p,{label:"1分钟",value:1}),(0,t.Wm)(p,{label:"5分钟",value:5}),(0,t.Wm)(p,{label:"10分钟",value:10}),(0,t.Wm)(p,{label:"15分钟",value:15}),(0,t.Wm)(p,{label:"20分钟",value:20}),(0,t.Wm)(p,{label:"25分钟",value:25}),(0,t.Wm)(p,{label:"30分钟",value:30}),(0,t.Wm)(p,{label:"35分钟",value:35}),(0,t.Wm)(p,{label:"40分钟",value:40}),(0,t.Wm)(p,{label:"45分钟",value:45}),(0,t.Wm)(p,{label:"50分钟",value:50}),(0,t.Wm)(p,{label:"55分钟",value:55}),(0,t.Wm)(p,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var i=a(3111),n={data(){return{colorList:["#409EFF","#009688","#536dfe","#ff5c93","#c62f2f","#fd726d"],config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1,colorPrimary:this.$tool.data.get("APP_COLOR")||this.$config.COLOR||"#409EFF",autoExit:this.$tool.data.get("AUTO_EXIT")||0}}},watch:{"config.dark"(e){e?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",e)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))},"config.colorPrimary"(e){e||(e="#409EFF",this.config.colorPrimary="#409EFF"),document.documentElement.style.setProperty("--el-color-primary",e);for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-light-${l}`,i.Z.lighten(e,l/10));for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-dark-${l}`,i.Z.darken(e,l/10));this.$tool.data.set("APP_COLOR",e)},"config.autoExit"(e){0==e?this.$tool.data.remove("AUTO_EXIT"):this.$tool.data.set("AUTO_EXIT",e)}}},d=a(3744);const u=(0,d.Z)(n,[["render",m]]);var c=u}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[149],{4149:function(e,l,a){a.r(l),a.d(l,{default:function(){return c}});var t=a(6808);const o=(0,t._)("div",{class:"el-form-item-msg"},null,-1),r=(0,t._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function m(e,l,a,m,i,n){const d=(0,t.up)("el-switch"),u=(0,t.up)("el-form-item"),c=(0,t.up)("el-color-picker"),s=(0,t.up)("el-form"),f=(0,t.up)("el-card"),p=(0,t.up)("el-option"),g=(0,t.up)("el-select");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(f,{shadow:"never",header:"语言主题",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"主题"},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{modelValue:i.config.dark,"onUpdate:modelValue":l[0]||(l[0]=e=>i.config.dark=e),"inline-prompt":"","active-icon":"el-icon-moon","inactive-icon":"el-icon-sunny"},null,8,["modelValue"]),o])),_:1}),(0,t.Wm)(u,{label:"主题颜色"},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{modelValue:i.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>i.config.colorPrimary=e),predefine:i.colorList},{default:(0,t.w5)((()=>[(0,t.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1})])),_:1},512)])),_:1}),(0,t.Wm)(f,{shadow:"never",header:"个人设置",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"自动登出"},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{modelValue:i.config.autoExit,"onUpdate:modelValue":l[2]||(l[2]=e=>i.config.autoExit=e)},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{label:"从不",value:0}),(0,t.Wm)(p,{label:"1分钟",value:1}),(0,t.Wm)(p,{label:"5分钟",value:5}),(0,t.Wm)(p,{label:"10分钟",value:10}),(0,t.Wm)(p,{label:"15分钟",value:15}),(0,t.Wm)(p,{label:"20分钟",value:20}),(0,t.Wm)(p,{label:"25分钟",value:25}),(0,t.Wm)(p,{label:"30分钟",value:30}),(0,t.Wm)(p,{label:"35分钟",value:35}),(0,t.Wm)(p,{label:"40分钟",value:40}),(0,t.Wm)(p,{label:"45分钟",value:45}),(0,t.Wm)(p,{label:"50分钟",value:50}),(0,t.Wm)(p,{label:"55分钟",value:55}),(0,t.Wm)(p,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var i=a(9158),n={data(){return{colorList:["#409EFF","#009688","#536dfe","#ff5c93","#c62f2f","#fd726d"],config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1,colorPrimary:this.$tool.data.get("APP_COLOR")||this.$config.COLOR||"#409EFF",autoExit:this.$tool.data.get("AUTO_EXIT")||0}}},watch:{"config.dark"(e){e?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",e)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))},"config.colorPrimary"(e){e||(e="#409EFF",this.config.colorPrimary="#409EFF"),document.documentElement.style.setProperty("--el-color-primary",e);for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-light-${l}`,i.Z.lighten(e,l/10));for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-dark-${l}`,i.Z.darken(e,l/10));this.$tool.data.set("APP_COLOR",e)},"config.autoExit"(e){0==e?this.$tool.data.remove("AUTO_EXIT"):this.$tool.data.set("AUTO_EXIT",e)}}},d=a(8700);const u=(0,d.Z)(n,[["render",m]]);var c=u}}]);

1
dist/static/js/179.e4363933.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[179],{5179:function(e,s,r){r.r(s),r.d(s,{default:function(){return c}});var l=r(6808);const o=(0,l._)("div",{class:"el-form-item-msg"},"必须提供当前登录用户密码才能进行更改",-1),t=(0,l._)("div",{class:"el-form-item-msg"},"请输入包含英文、数字的8位以上密码",-1);function a(e,s,r,a,d,n){const m=(0,l.up)("el-alert"),u=(0,l.up)("el-input"),w=(0,l.up)("el-form-item"),p=(0,l.up)("x-password-strength"),i=(0,l.up)("el-button"),f=(0,l.up)("el-form"),h=(0,l.up)("el-card");return(0,l.wg)(),(0,l.j4)(h,{shadow:"never",header:"修改密码",style:{margin:"10px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{title:"密码更新成功后,您将被重定向到登录页面,您可以使用新密码重新登录。",type:"info","show-icon":"",style:{"margin-bottom":"15px"}}),(0,l.Wm)(f,{ref:"form",model:d.form,rules:d.rules,"label-width":"120px",style:{"margin-top":"20px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{label:"当前密码",prop:"userPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.userPassword,"onUpdate:modelValue":s[0]||(s[0]=e=>d.form.userPassword=e),type:"password","show-password":"",placeholder:"请输入当前密码"},null,8,["modelValue"]),o])),_:1}),(0,l.Wm)(w,{label:"新密码",prop:"newPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[1]||(s[1]=e=>d.form.newPassword=e),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"]),(0,l.Wm)(p,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[2]||(s[2]=e=>d.form.newPassword=e)},null,8,["modelValue"]),t])),_:1}),(0,l.Wm)(w,{label:"确认新密码",prop:"confirmNewPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.confirmNewPassword,"onUpdate:modelValue":s[3]||(s[3]=e=>d.form.confirmNewPassword=e),type:"password","show-password":"",placeholder:"请再次输入新密码"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(w,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,{type:"primary",onClick:n.save},{default:(0,l.w5)((()=>[(0,l.Uk)("保存密码")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","rules"])])),_:1})}var d=r(9511);const n={class:"x-password-strength"};function m(e,s,r,o,t,a){return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",{class:(0,d.C_)(["x-password-strength-bar",`x-password-strength-level-${t.level}`])},null,2)])}var u={props:{modelValue:{type:String,default:""}},data(){return{level:0}},watch:{modelValue(){this.strength(this.modelValue)}},mounted(){this.strength(this.modelValue)},methods:{strength(e){var s=0,r=e.length>=6,l=/\d/.test(e),o=/[a-z]/.test(e),t=/[A-Z]/.test(e),a=!/(\w)\1{2}/.test(e),d=/[`~!@#$%^&*()_+<>?:"{},./;'[\]]/.test(e);return e.length<=0?(s=0,this.level=s,!1):r?(l&&(s+=1),o&&(s+=1),t&&(s+=1),a&&(s+=1),d&&(s+=1),void(this.level=s)):(s=1,this.level=s,!1)}}},w=r(8700);const p=(0,w.Z)(u,[["render",m],["__scopeId","data-v-f6e10340"]]);var i=p,f={components:{xPasswordStrength:i},data(){return{form:{userPassword:"",newPassword:"",confirmNewPassword:""},rules:{userPassword:[{required:!0,message:"请输入当前密码"}],newPassword:[{required:!0,message:"请输入新密码"}],confirmNewPassword:[{required:!0,message:"请再次输入新密码"},{validator:(e,s,r)=>{s!==this.form.newPassword?r(new Error("两次输入密码不一致")):r()}}]}}},methods:{save(){this.$refs.form.validate((e=>{if(!e)return!1;this.$alert("密码修改成功,是否跳转至登录页使用新密码登录","修改成功",{type:"success",center:!0}).then((()=>{this.$router.replace({path:"/login"})})).catch((()=>{}))}))}}};const h=(0,w.Z)(f,[["render",a]]);var c=h}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[195],{1195:function(n,a,e){e.r(a),e.d(a,{default:function(){return i}});var t=e(6252);function u(n,a,e,u,r,d){const p=(0,t.up)("xTable"),c=(0,t.up)("el-main");return(0,t.wg)(),(0,t.j4)(c,{class:"nopadding"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{name:"weixin"})])),_:1})}var r=e(356),d={components:{xTable:r["default"]},data(){return{data:[]}}},p=e(3744);const c=(0,p.Z)(d,[["render",u]]);var i=c}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[197],{8197:function(n,e,t){t.r(e),t.d(e,{default:function(){return p}});var a=t(6252);function u(n,e,t,u,r,i){const o=(0,a.up)("xTable");return(0,a.wg)(),(0,a.j4)(o,{name:"weixin"})}var r=t(356),i={name:"weixin",components:{xTable:r["default"]},data(){return{loading:!1,leftType:"",info:{}}},computed:{},mounted(){},methods:{}},o=t(3744);const d=(0,o.Z)(i,[["render",u]]);var p=d}}]);

1
dist/static/js/20.8c3f1f69.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[20],{7020:function(e,t,a){a.r(t),a.d(t,{default:function(){return u}});var l=a(6808);const i={key:0};function n(e,t,a,n,o,d){const s=(0,l.up)("x-page-header"),u=(0,l.up)("el-alert"),p=(0,l.up)("el-option"),r=(0,l.up)("el-select"),m=(0,l.up)("el-input"),c=(0,l.up)("el-table-column"),g=(0,l.up)("x-form-table"),h=(0,l.up)("el-button"),f=(0,l.up)("x-form"),w=(0,l.up)("el-tab-pane"),b=(0,l.up)("el-tabs"),y=(0,l.up)("el-card"),k=(0,l.up)("el-main"),v=(0,l.up)("el-footer"),_=(0,l.up)("el-container"),x=(0,l.Q2)("loading");return(0,l.wg)(),(0,l.j4)(_,null,{default:(0,l.w5)((()=>[(0,l.Wm)(k,null,{default:(0,l.w5)((()=>[(0,l.Wm)(y,{shadow:"never",class:"setting"},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{title:"系统设置",description:"可以配置和修改网站的各种设置",icon:"el-icon-setting"}),(0,l.wy)(((0,l.wg)(),(0,l.j4)(b,{"tab-position":o.tabposition,modelValue:o.activename,"onUpdate:modelValue":t[1]||(t[1]=e=>o.activename=e)},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.settingList,(e=>((0,l.wg)(),(0,l.j4)(w,{key:e.key,label:e.name,name:e.key},{default:(0,l.w5)((()=>["extend"==e.type?((0,l.wg)(),(0,l.iD)("div",i,[e.tips?((0,l.wg)(),(0,l.j4)(u,{key:0,title:e.tips,type:"warning",style:{"margin-bottom":"15px"}},null,8,["title"])):(0,l.kq)("",!0),(0,l.Wm)(g,{modelValue:o.extend[e.key],"onUpdate:modelValue":t=>o.extend[e.key]=t,hideAdd:!0,"drag-sort":"",placeholder:"暂无数据"},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.column,(e=>((0,l.wg)(),(0,l.j4)(c,{label:e.label,prop:e.prop,width:e.width,key:e.prop},{default:(0,l.w5)((t=>["select"==e.component?((0,l.wg)(),(0,l.j4)(r,(0,l.dG)({key:0,modelValue:t.row[e.prop],"onUpdate:modelValue":a=>t.row[e.prop]=a},e.options,{clearable:"",filterable:"",style:{width:"100%"}}),{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.options.items,(e=>((0,l.wg)(),(0,l.j4)(p,{key:e.value,label:e.label||e.name,value:e.value},null,8,["label","value"])))),128))])),_:2},1040,["modelValue","onUpdate:modelValue"])):((0,l.wg)(),(0,l.j4)(m,{key:1,modelValue:t.row[e.prop],"onUpdate:modelValue":a=>t.row[e.prop]=a,placeholder:e.placeholder},null,8,["modelValue","onUpdate:modelValue","placeholder"]))])),_:2},1032,["label","prop","width"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue"]),(0,l.Wm)(h,{type:"primary",icon:"el-icon-plus",onClick:t=>d.table_add(e),style:{"margin-top":"20px"}},null,8,["onClick"])])):((0,l.wg)(),(0,l.j4)(f,{key:1,ref_for:!0,ref:"formref",config:o.formList[e.key],modelValue:o.info,"onUpdate:modelValue":t[0]||(t[0]=e=>o.info=e),loading:o.loading},null,8,["config","modelValue","loading"]))])),_:2},1032,["label","name"])))),128))])),_:1},8,["tab-position","modelValue"])),[[x,o.loading]])])),_:1})])),_:1}),(0,l.Wm)(v,null,{default:(0,l.w5)((()=>[(0,l.Wm)(h,{type:"primary",onClick:d.submit,style:{"max-width":"500px",width:"100%"},loading:o.submitloading},{default:(0,l.w5)((()=>[(0,l.Uk)("保存")])),_:1},8,["onClick","loading"])])),_:1})])),_:1})}a(8311);var o={name:"setting",data(){return{info:{},activename:"init",tabposition:"left",settingList:[],extend:[],formList:{},loading:!1,submitloading:!1}},mounted(){this.render()},created(){this.onLayoutResize(),window.addEventListener("resize",this.onLayoutResize)},methods:{onLayoutResize(){this.tabposition=document.body.clientWidth<992?"top":"left"},render(){this.loading=!0,setTimeout((async()=>{var e=await this.$http.get("setting/get");if(200!=e.code)return this.$message.warning(e.message),!1;this.settingList=e.data.settingList,this.info=e.data.info,this.formList=e.data.formList,this.extend=e.data.extend||[],this.loading=!1,e.data.activename&&(this.activename=e.data.activename)}),100)},async submit(){this.submitloading=!0;var e=this.$http.post("setting/submit",{info:this.info,extend:this.extend});this.submitloading=!1,this.$message.success(e.message||"操作成功")},table_add(e){var t={};e.column.forEach((function(e){t[e.prop]=""})),this.extend[e.key].push(t)}}},d=a(8700);const s=(0,d.Z)(o,[["render",n],["__scopeId","data-v-6c8b82b0"]]);var u=s}}]);

1
dist/static/js/22.68b6e570.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[22],{22:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var a=n(6808),s=n(9511);const i={class:"custom-tree-node"},l={class:"label"},d={key:0,class:"do"};function r(e,t,n,r,u,m){const o=(0,a.up)("el-input"),h=(0,a.up)("el-header"),p=(0,a.up)("el-icon"),c=(0,a.up)("el-tree"),f=(0,a.up)("el-main"),g=(0,a.up)("el-container"),w=(0,a.up)("el-aside"),v=(0,a.up)("save"),$=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(g,null,{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(w,{width:"300px"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(o,{clearable:"",placeholder:"输入关键字进行过滤",modelValue:u.menuFilterText,"onUpdate:modelValue":t[0]||(t[0]=e=>u.menuFilterText=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(f,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{data:u.menuList,"expand-on-click-node":!1,"filter-node-method":m.menuFilterNode,props:u.menuProps,onNodeClick:m.menuClick,onNodeDrop:m.nodeDrop,"check-strictly":"",class:"menu",draggable:"","highlight-current":"","node-key":"id",ref:"menu","show-checkbox":!1},{default:(0,a.w5)((({node:e,data:t})=>[(0,a._)("span",i,[(0,a._)("span",l,[(0,a.Wm)(p,{style:{"margin-right":"2px"}},{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(t.meta.icon||"el-icon-menu")))])),_:2},1024),(0,a.Uk)(" "+(0,s.zw)(e.label),1)]),t.parentid?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("span",d))])])),_:1},8,["data","filter-node-method","props","onNodeClick","onNodeDrop"])])),_:1})])),_:1})])),_:1})),[[$,u.menuloading]]),(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a.Wm)(f,{class:"nopadding",ref:"main",style:{padding:"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{menu:u.menuList,ref:"save"},null,8,["menu"])])),_:1},512)])),_:1})])),_:1})}n(8311);var u=n(8488);let m=1;var o={name:"systemmenu",components:{save:u["default"]},data(){return{menuloading:!1,menuList:[],menuProps:{label:e=>e.meta.title},menuFilterText:""}},watch:{menuFilterText(e){this.$refs.menu.filter(e)}},mounted(){this.getMenu()},methods:{async getMenu(){this.menuloading=!0;var e=await this.$http.get("menu");this.menuloading=!1,this.menuList=e.data},menuClick(e,t){var n=1==t.level?0:t.parent.data.id;this.$refs.save.setData(e,n),this.$refs.main.$el.scrollTop=0},menuFilterNode(e,t){if(!e)return!0;var n=t.meta.title;return-1!==n.indexOf(e)},getAllIds(e){let t=[];return e.forEach((e=>{let n={id:e.id};e.children&&(n.children=this.getAllIds(e.children)),t.push(n)})),t},async nodeDrop(e){let t=this.getAllIds(this.menuList);var n=await this.$http.post("menu/update",{id:e.data.id,ids:t});if(200!==n.code)return this.$message.warning(n.message),!1;this.$refs.save.setData({}),this.$message.success(n.message)},async add(e,t){var n="未命名"+m++,a={parentid:t?t.id:0,name:"",path:t?t.path+"/":"",component:"",meta:{title:n,type:"menu"}};this.menuloading=!0;var s=await this.$http.post("menu/submit",a);if(this.menuloading=!1,200!==s.code)return this.$message.warning(s.message),!1;a.id=s.data,this.$refs.menu.append(a,e),this.$refs.menu.setCurrentKey(a.id);var i=e?e.data.id:0;this.$refs.save.setData(a,i)},async delMenu(){var e=this.$refs.menu.getCheckedNodes();if(0==e.length)return this.$message.warning("请选择需要删除的项"),!1;var t=await this.$confirm("确认删除已选择的菜单吗?","提示",{type:"warning",confirmButtonText:"删除",confirmButtonClass:"el-button--danger"}).catch((()=>{}));if("confirm"!=t)return!1;this.menuloading=!0;var n={ids:e.map((e=>e.id))},a=await this.$http.post("menu/delete",n);this.menuloading=!1,200==a.code?e.forEach((e=>{var t=this.$refs.menu.getNode(e);t.isCurrent&&this.$refs.save.setData({}),this.$refs.menu.remove(e)})):this.$message.warning(a.message)}}},h=n(8700);const p=(0,h.Z)(o,[["render",r],["__scopeId","data-v-86f11d78"]]);var c=p}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[225],{4225:function(e,t,a){a.r(t),a.d(t,{default:function(){return u}});var l=a(6252);const i={key:0};function n(e,t,a,n,o,d){const s=(0,l.up)("x-page-header"),u=(0,l.up)("el-alert"),p=(0,l.up)("el-option"),r=(0,l.up)("el-select"),m=(0,l.up)("el-input"),c=(0,l.up)("el-table-column"),g=(0,l.up)("x-form-table"),h=(0,l.up)("el-button"),f=(0,l.up)("x-form"),w=(0,l.up)("el-tab-pane"),b=(0,l.up)("el-tabs"),y=(0,l.up)("el-card"),k=(0,l.up)("el-main"),v=(0,l.up)("el-footer"),_=(0,l.up)("el-container"),x=(0,l.Q2)("loading");return(0,l.wg)(),(0,l.j4)(_,null,{default:(0,l.w5)((()=>[(0,l.Wm)(k,null,{default:(0,l.w5)((()=>[(0,l.Wm)(y,{shadow:"never",class:"setting"},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{title:"系统设置",description:"可以配置和修改网站的各种设置",icon:"el-icon-setting"}),(0,l.wy)(((0,l.wg)(),(0,l.j4)(b,{"tab-position":o.tabposition,modelValue:o.activename,"onUpdate:modelValue":t[1]||(t[1]=e=>o.activename=e)},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.settingList,(e=>((0,l.wg)(),(0,l.j4)(w,{key:e.key,label:e.name,name:e.key},{default:(0,l.w5)((()=>["extend"==e.type?((0,l.wg)(),(0,l.iD)("div",i,[e.tips?((0,l.wg)(),(0,l.j4)(u,{key:0,title:e.tips,type:"warning",style:{"margin-bottom":"15px"}},null,8,["title"])):(0,l.kq)("",!0),(0,l.Wm)(g,{modelValue:o.extend[e.key],"onUpdate:modelValue":t=>o.extend[e.key]=t,hideAdd:!0,"drag-sort":"",placeholder:"暂无数据"},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.column,(e=>((0,l.wg)(),(0,l.j4)(c,{label:e.label,prop:e.prop,width:e.width,key:e.prop},{default:(0,l.w5)((t=>["select"==e.component?((0,l.wg)(),(0,l.j4)(r,(0,l.dG)({key:0,modelValue:t.row[e.prop],"onUpdate:modelValue":a=>t.row[e.prop]=a},e.options,{clearable:"",filterable:"",style:{width:"100%"}}),{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.options.items,(e=>((0,l.wg)(),(0,l.j4)(p,{key:e.value,label:e.label||e.name,value:e.value},null,8,["label","value"])))),128))])),_:2},1040,["modelValue","onUpdate:modelValue"])):((0,l.wg)(),(0,l.j4)(m,{key:1,modelValue:t.row[e.prop],"onUpdate:modelValue":a=>t.row[e.prop]=a,placeholder:e.placeholder},null,8,["modelValue","onUpdate:modelValue","placeholder"]))])),_:2},1032,["label","prop","width"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue"]),(0,l.Wm)(h,{type:"primary",icon:"el-icon-plus",onClick:t=>d.table_add(e),style:{"margin-top":"20px"}},null,8,["onClick"])])):((0,l.wg)(),(0,l.j4)(f,{key:1,ref_for:!0,ref:"formref",config:o.formList[e.key],modelValue:o.info,"onUpdate:modelValue":t[0]||(t[0]=e=>o.info=e),loading:o.loading},null,8,["config","modelValue","loading"]))])),_:2},1032,["label","name"])))),128))])),_:1},8,["tab-position","modelValue"])),[[x,o.loading]])])),_:1})])),_:1}),(0,l.Wm)(v,null,{default:(0,l.w5)((()=>[(0,l.Wm)(h,{type:"primary",onClick:d.submit,style:{"max-width":"500px",width:"100%"},loading:o.submitloading},{default:(0,l.w5)((()=>[(0,l.Uk)("保存")])),_:1},8,["onClick","loading"])])),_:1})])),_:1})}a(7658);var o={name:"setting",data(){return{info:{},activename:"init",tabposition:"left",settingList:[],extend:[],formList:{},loading:!1,submitloading:!1}},mounted(){this.render()},created(){this.onLayoutResize(),window.addEventListener("resize",this.onLayoutResize)},methods:{onLayoutResize(){this.tabposition=document.body.clientWidth<992?"top":"left"},render(){this.loading=!0,setTimeout((async()=>{var e=await this.$http.get("setting/get");if(200!=e.code)return this.$message.warning(e.message),!1;this.settingList=e.data.settingList,this.info=e.data.info,this.formList=e.data.formList,this.extend=e.data.extend||[],this.loading=!1,e.data.activename&&(this.activename=e.data.activename)}),100)},async submit(){this.submitloading=!0;var e=this.$http.post("setting/submit",{info:this.info,extend:this.extend});this.submitloading=!1,this.$message.success(e.message||"操作成功")},table_add(e){var t={};e.column.forEach((function(e){t[e.prop]=""})),this.extend[e.key].push(t)}}},d=a(3744);const s=(0,d.Z)(o,[["render",n],["__scopeId","data-v-6c8b82b0"]]);var u=s}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[440],{8440:function(e,l,t){t.r(l),t.d(l,{default:function(){return f}});var a=t(6252),d=t(3577);const i=e=>((0,a.dD)("data-v-5406f3ff"),e=e(),(0,a.Cn)(),e),s=i((()=>(0,a._)("i",{class:"el-icon-circle-plus"},null,-1))),r={class:"tree"},o={class:"custom-tree-node"},n={class:"file-name"},u={key:0,class:"icon",src:""},c={key:0},m=i((()=>(0,a._)("i",{class:"el-icon-more el-icon--right"},null,-1))),h=i((()=>(0,a._)("div",{class:"acea-row row-right page"},null,-1)));function p(e,l,t,i,p,w){const _=(0,a.up)("el-dropdown-item"),g=(0,a.up)("el-dropdown-menu"),b=(0,a.up)("el-dropdown"),f=(0,a.up)("el-tree"),k=(0,a.up)("el-col"),W=(0,a.up)("el-button"),x=(0,a.up)("el-row"),v=(0,a.up)("el-table-column"),S=(0,a.up)("el-divider"),C=(0,a.up)("el-table"),E=(0,a.up)("el-card"),L=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.iD)("div",null,[(0,a.Wm)(x,{class:"ivu-mt box-wrapper"},{default:(0,a.w5)((()=>[(0,a.Wm)(k,(0,a.dG)(p.grid1,{class:"left-wrapper"}),{default:(0,a.w5)((()=>[(0,a._)("div",{class:"tree_tit",onClick:l[0]||(l[0]=(...e)=>w.addSort&&w.addSort(...e))},[s,(0,a.Uk)(" 添加分类 ")]),(0,a._)("div",r,[(0,a.Wm)(f,{data:p.labelSort,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1,onNodeClick:w.bindMenuItem,"current-node-key":p.treeId},{default:(0,a.w5)((()=>[(0,a._)("span",o,[(0,a._)("span",n,[e.data.pid?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("img",u)),(0,a.Uk)(" "+(0,d.zw)(e.data.name),1)]),e.data.id?((0,a.wg)(),(0,a.iD)("span",c,[(0,a.Wm)(b,{onCommand:l[1]||(l[1]=l=>w.clickMenu(e.data,l))},{default:(0,a.w5)((()=>[m,(0,a._)("template",null,[(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a.Wm)(_,{command:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("编辑分类")])),_:1}),e.data.id?((0,a.wg)(),(0,a.j4)(_,{key:0,command:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("删除分类")])),_:1})):(0,a.kq)("",!0)])),_:1})])])),_:1})])):(0,a.kq)("",!0)])])),_:1},8,["data","onNodeClick","current-node-key"])])])),_:1},16),(0,a.Wm)(k,(0,a.dG)(p.grid2,{ref:"rightBox"}),{default:(0,a.w5)((()=>[(0,a.Wm)(E,{bordered:!1,shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(x,null,{default:(0,a.w5)((()=>[(0,a.Wm)(k,null,{default:(0,a.w5)((()=>[(0,a.Wm)(W,{type:"primary",onClick:w.add},{default:(0,a.w5)((()=>[(0,a.Uk)("添加标签")])),_:1},8,["onClick"])])),_:1})])),_:1}),(0,a.wy)(((0,a.wg)(),(0,a.j4)(C,{data:p.labelLists,ref:"table",class:"mt14","highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{label:"ID",width:"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.id),1)])])),_:1}),(0,a.Wm)(v,{label:"标签名称",width:"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.label_name),1)])])),_:1}),(0,a.Wm)(v,{label:"分类名称","min-width":"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.cate_name),1)])])),_:1}),(0,a.Wm)(v,{fixed:"right",label:"操作",width:"100"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("a",{onClick:l[2]||(l[2]=l=>w.edit(e.scope.row.id))},"修改"),(0,a.Wm)(S,{direction:"vertical"}),(0,a._)("a",{onClick:l[3]||(l[3]=l=>w.del(e.scope.row,"删除分类",e.scope.$index))},"删除")])])),_:1})])),_:1},8,["data"])),[[L,p.loading]]),h])),_:1})])),_:1},16)])),_:1})])}var w=t(3907),_={name:"user_label",data(){return{treeId:"",grid1:{xl:4,lg:4,md:6,sm:8,xs:0},grid2:{xl:20,lg:20,md:18,sm:16,xs:24},loading:!1,labelFrom:{page:1,limit:15,label_cate:""},labelLists:[],total:0,theme3:"light",labelSort:[],sortName:"",current:0}},computed:{...(0,w.rn)("media",["isMobile"]),labelWidth(){return this.isMobile?void 0:"80px"},labelPosition(){return this.isMobile?"top":"right"}},created(){},methods:{add(){},getList(){this.loading=!0},edit(e){console.log(e)},del(e,l,t){let a={title:l,num:t,url:`user/user_label/del/${e.id}`,method:"DELETE",ids:""};this.$modalSure(a).then((e=>{this.$message.success(e.msg),this.labelLists.splice(t,1),this.getList()})).catch((e=>{this.$message.error(e.msg)}))},getUserLabelAll(e){console.log(e)},showMenu(e){this.labelSort.forEach((l=>{l.id==e.id?l.status=!e.status:l.status=!1}))},labelEdit(e){console.log(e)},addSort(){},deleteSort(e,l){let t=this.labelSort.findIndex((l=>l.id==e.id)),a={title:l,num:t,url:`user/user_label_cate/${e.id}`,method:"DELETE",ids:""};this.$modalSure(a).then((e=>{this.$message.success(e.msg),this.labelSort.splice(t,1),this.labelSort=[],this.getUserLabelAll()})).catch((e=>{this.$message.error(e.msg)}))},clickMenu(e,l){1==l?this.labelEdit(e):2==l&&this.deleteSort(e,"删除分类")},bindMenuItem(e,l){this.labelFrom.page=1,this.current=l,this.labelSort.forEach((e=>{e.status=!1})),this.labelFrom.label_cate=e.id,this.getList()}}},g=t(3744);const b=(0,g.Z)(_,[["render",p],["__scopeId","data-v-5406f3ff"]]);var f=b}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[273],{1273:function(e,l,t){t.r(l),t.d(l,{default:function(){return f}});var a=t(6808),d=t(9511);const i=e=>((0,a.dD)("data-v-5406f3ff"),e=e(),(0,a.Cn)(),e),s=i((()=>(0,a._)("i",{class:"el-icon-circle-plus"},null,-1))),r={class:"tree"},o={class:"custom-tree-node"},n={class:"file-name"},u={key:0,class:"icon",src:""},c={key:0},m=i((()=>(0,a._)("i",{class:"el-icon-more el-icon--right"},null,-1))),h=i((()=>(0,a._)("div",{class:"acea-row row-right page"},null,-1)));function p(e,l,t,i,p,w){const _=(0,a.up)("el-dropdown-item"),g=(0,a.up)("el-dropdown-menu"),b=(0,a.up)("el-dropdown"),f=(0,a.up)("el-tree"),k=(0,a.up)("el-col"),W=(0,a.up)("el-button"),x=(0,a.up)("el-row"),v=(0,a.up)("el-table-column"),S=(0,a.up)("el-divider"),C=(0,a.up)("el-table"),E=(0,a.up)("el-card"),L=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.iD)("div",null,[(0,a.Wm)(x,{class:"ivu-mt box-wrapper"},{default:(0,a.w5)((()=>[(0,a.Wm)(k,(0,a.dG)(p.grid1,{class:"left-wrapper"}),{default:(0,a.w5)((()=>[(0,a._)("div",{class:"tree_tit",onClick:l[0]||(l[0]=(...e)=>w.addSort&&w.addSort(...e))},[s,(0,a.Uk)(" 添加分类 ")]),(0,a._)("div",r,[(0,a.Wm)(f,{data:p.labelSort,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1,onNodeClick:w.bindMenuItem,"current-node-key":p.treeId},{default:(0,a.w5)((()=>[(0,a._)("span",o,[(0,a._)("span",n,[e.data.pid?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("img",u)),(0,a.Uk)(" "+(0,d.zw)(e.data.name),1)]),e.data.id?((0,a.wg)(),(0,a.iD)("span",c,[(0,a.Wm)(b,{onCommand:l[1]||(l[1]=l=>w.clickMenu(e.data,l))},{default:(0,a.w5)((()=>[m,(0,a._)("template",null,[(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a.Wm)(_,{command:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("编辑分类")])),_:1}),e.data.id?((0,a.wg)(),(0,a.j4)(_,{key:0,command:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("删除分类")])),_:1})):(0,a.kq)("",!0)])),_:1})])])),_:1})])):(0,a.kq)("",!0)])])),_:1},8,["data","onNodeClick","current-node-key"])])])),_:1},16),(0,a.Wm)(k,(0,a.dG)(p.grid2,{ref:"rightBox"}),{default:(0,a.w5)((()=>[(0,a.Wm)(E,{bordered:!1,shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(x,null,{default:(0,a.w5)((()=>[(0,a.Wm)(k,null,{default:(0,a.w5)((()=>[(0,a.Wm)(W,{type:"primary",onClick:w.add},{default:(0,a.w5)((()=>[(0,a.Uk)("添加标签")])),_:1},8,["onClick"])])),_:1})])),_:1}),(0,a.wy)(((0,a.wg)(),(0,a.j4)(C,{data:p.labelLists,ref:"table",class:"mt14","highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{label:"ID",width:"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.id),1)])])),_:1}),(0,a.Wm)(v,{label:"标签名称",width:"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.label_name),1)])])),_:1}),(0,a.Wm)(v,{label:"分类名称","min-width":"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.cate_name),1)])])),_:1}),(0,a.Wm)(v,{fixed:"right",label:"操作",width:"100"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("a",{onClick:l[2]||(l[2]=l=>w.edit(e.scope.row.id))},"修改"),(0,a.Wm)(S,{direction:"vertical"}),(0,a._)("a",{onClick:l[3]||(l[3]=l=>w.del(e.scope.row,"删除分类",e.scope.$index))},"删除")])])),_:1})])),_:1},8,["data"])),[[L,p.loading]]),h])),_:1})])),_:1},16)])),_:1})])}var w=t(2194),_={name:"user_label",data(){return{treeId:"",grid1:{xl:4,lg:4,md:6,sm:8,xs:0},grid2:{xl:20,lg:20,md:18,sm:16,xs:24},loading:!1,labelFrom:{page:1,limit:15,label_cate:""},labelLists:[],total:0,theme3:"light",labelSort:[],sortName:"",current:0}},computed:{...(0,w.rn)("media",["isMobile"]),labelWidth(){return this.isMobile?void 0:"80px"},labelPosition(){return this.isMobile?"top":"right"}},created(){},methods:{add(){},getList(){this.loading=!0},edit(e){console.log(e)},del(e,l,t){let a={title:l,num:t,url:`user/user_label/del/${e.id}`,method:"DELETE",ids:""};this.$modalSure(a).then((e=>{this.$message.success(e.msg),this.labelLists.splice(t,1),this.getList()})).catch((e=>{this.$message.error(e.msg)}))},getUserLabelAll(e){console.log(e)},showMenu(e){this.labelSort.forEach((l=>{l.id==e.id?l.status=!e.status:l.status=!1}))},labelEdit(e){console.log(e)},addSort(){},deleteSort(e,l){let t=this.labelSort.findIndex((l=>l.id==e.id)),a={title:l,num:t,url:`user/user_label_cate/${e.id}`,method:"DELETE",ids:""};this.$modalSure(a).then((e=>{this.$message.success(e.msg),this.labelSort.splice(t,1),this.labelSort=[],this.getUserLabelAll()})).catch((e=>{this.$message.error(e.msg)}))},clickMenu(e,l){1==l?this.labelEdit(e):2==l&&this.deleteSort(e,"删除分类")},bindMenuItem(e,l){this.labelFrom.page=1,this.current=l,this.labelSort.forEach((e=>{e.status=!1})),this.labelFrom.label_cate=e.id,this.getList()}}},g=t(8700);const b=(0,g.Z)(_,[["render",p],["__scopeId","data-v-5406f3ff"]]);var f=b}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[321],{1321:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var i=n(6252),a=n(3577),r=n(9963);function h(e,t,n,h,l,o){return(0,i.wg)(),(0,i.iD)("div",{class:"x-code-editor",style:(0,a.j5)({height:o._height})},[(0,i.wy)((0,i._)("textarea",{ref:"textarea","onUpdate:modelValue":t[0]||(t[0]=e=>l.contentValue=e)},null,512),[[r.nr,l.contentValue]])],4)}var l=n(2262),o=n(4631),u=n.n(o),s=(n(17),n(6876),n(4086),{props:{modelValue:{type:String,default:""},mode:{type:String,default:"javascript"},height:{type:[String,Number],default:300},options:{type:Object,default:()=>{}},theme:{type:String,default:"idea"},readOnly:{type:Boolean,default:!1}},data(){return{contentValue:this.modelValue,coder:null,opt:{theme:this.theme,styleActiveLine:!0,lineNumbers:!0,lineWrapping:!1,tabSize:4,indentUnit:4,indentWithTabs:!0,mode:this.mode,readOnly:this.readOnly,...this.options}}},computed:{_height(){return Number(this.height)?Number(this.height)+"px":this.height}},watch:{modelValue(e){this.contentValue=e,e!==this.coder.getValue()&&this.coder.setValue(e)}},mounted(){this.init()},methods:{init(){this.coder=(0,l.Xl)(u().fromTextArea(this.$refs.textarea,this.opt)),this.coder.on("change",(e=>{this.contentValue=e.getValue(),this.$emit("update:modelValue",this.contentValue)}))},formatStrInJson(e){return JSON.stringify(JSON.parse(e),null,4)}}}),d=n(3744);const c=(0,d.Z)(s,[["render",h],["__scopeId","data-v-1c04bc3c"]]);var p=c}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[152],{2152:function(e,l,a){a.r(l),a.d(l,{default:function(){return r}});var o=a(6252);function m(e,l,a,m,t,u){const d=(0,o.up)("el-checkbox"),r=(0,o.up)("el-form-item"),n=(0,o.up)("el-form"),f=(0,o.up)("el-card");return(0,o.wg)(),(0,o.j4)(f,{shadow:"never",header:"事务待办",style:{margin:"10px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(n,{ref:"form","label-width":"180px","label-position":"left",style:{"margin-top":"20px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(r,{label:"有新的待办"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:t.form.new,"onUpdate:modelValue":l[0]||(l[0]=e=>t.form.new=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("短信推送")])),_:1},8,["modelValue"]),(0,o.Wm)(d,{modelValue:t.form.new_wx,"onUpdate:modelValue":l[1]||(l[1]=e=>t.form.new_wx=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("微信推送")])),_:1},8,["modelValue"])])),_:1}),(0,o.Wm)(r,{label:"待办有效时剩24小时"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:t.form.timeout,"onUpdate:modelValue":l[2]||(l[2]=e=>t.form.timeout=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("短信推送")])),_:1},8,["modelValue"]),(0,o.Wm)(d,{modelValue:t.form.timeout_wx,"onUpdate:modelValue":l[3]||(l[3]=e=>t.form.timeout_wx=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("微信推送")])),_:1},8,["modelValue"])])),_:1})])),_:1},512)])),_:1})}var t={data(){return{form:{new:!0,timeout:!0}}}},u=a(3744);const d=(0,u.Z)(t,[["render",m]]);var r=d}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[330],{5330:function(e,l,a){a.r(l),a.d(l,{default:function(){return r}});var o=a(6808);function m(e,l,a,m,t,u){const d=(0,o.up)("el-checkbox"),r=(0,o.up)("el-form-item"),n=(0,o.up)("el-form"),f=(0,o.up)("el-card");return(0,o.wg)(),(0,o.j4)(f,{shadow:"never",header:"事务待办",style:{margin:"10px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(n,{ref:"form","label-width":"180px","label-position":"left",style:{"margin-top":"20px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(r,{label:"有新的待办"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:t.form.new,"onUpdate:modelValue":l[0]||(l[0]=e=>t.form.new=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("短信推送")])),_:1},8,["modelValue"]),(0,o.Wm)(d,{modelValue:t.form.new_wx,"onUpdate:modelValue":l[1]||(l[1]=e=>t.form.new_wx=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("微信推送")])),_:1},8,["modelValue"])])),_:1}),(0,o.Wm)(r,{label:"待办有效时剩24小时"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:t.form.timeout,"onUpdate:modelValue":l[2]||(l[2]=e=>t.form.timeout=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("短信推送")])),_:1},8,["modelValue"]),(0,o.Wm)(d,{modelValue:t.form.timeout_wx,"onUpdate:modelValue":l[3]||(l[3]=e=>t.form.timeout_wx=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("微信推送")])),_:1},8,["modelValue"])])),_:1})])),_:1},512)])),_:1})}var t={data(){return{form:{new:!0,timeout:!0}}}},u=a(8700);const d=(0,u.Z)(t,[["render",m]]);var r=d}}]);

1
dist/static/js/340.71b9fa2a.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[340],{6340:function(e,t,a){a.r(t),a.d(t,{default:function(){return y}});var n=a(6808),l=a(9511);const i=e=>((0,n.dD)("data-v-1377d2f7"),e=e(),(0,n.Cn)(),e),u=i((()=>(0,n._)("span",null,"系统管理组",-1))),s={key:0,class:"menu-tag"},d=i((()=>(0,n._)("span",null,"自定义用户组",-1))),o={key:0,class:"menu-tag"},p=i((()=>(0,n._)("span",null,"用户等级组",-1))),r={key:0,class:"menu-tag"};function m(e,t,a,i,m,c){const f=(0,n.up)("x-page-header"),w=(0,n.up)("el-header"),g=(0,n.up)("el-icon-Setting"),h=(0,n.up)("el-icon"),y=(0,n.up)("el-menu-item"),k=(0,n.up)("el-sub-menu"),v=(0,n.up)("el-icon-Stamp"),_=(0,n.up)("el-icon-Flag"),x=(0,n.up)("el-menu"),C=(0,n.up)("el-main"),W=(0,n.up)("el-button"),D=(0,n.up)("el-footer"),T=(0,n.up)("el-container"),b=(0,n.up)("el-aside"),z=(0,n.up)("save"),$=(0,n.Q2)("loading");return(0,n.wg)(),(0,n.j4)(T,{style:{padding:"10px 10px 5px 10px"}},{default:(0,n.w5)((()=>[(0,n.Wm)(T,{style:{border:"1px solid var(--el-border-color-light)","border-radius":"4px","background-color":"var(--el-fill-color-blank)"}},{default:(0,n.w5)((()=>[(0,n.wy)(((0,n.wg)(),(0,n.j4)(b,{width:"200px"},{default:(0,n.w5)((()=>[(0,n.Wm)(T,null,{default:(0,n.w5)((()=>[(0,n.Wm)(w,null,{default:(0,n.w5)((()=>[(0,n.Wm)(f,{title:"用户组",icon:"el-icon-Calendar"})])),_:1}),(0,n.Wm)(C,{class:"nopadding"},{default:(0,n.w5)((()=>[(0,n.Wm)(x,{"default-active":m.activeType,onOpen:c.handleOpen,onClose:c.handleClose,"unique-opened":!0,defaultOpeneds:["system"]},{default:(0,n.w5)((()=>[(0,n.Wm)(k,{index:"system"},{title:(0,n.w5)((()=>[(0,n.Wm)(h,null,{default:(0,n.w5)((()=>[(0,n.Wm)(g)])),_:1}),u])),default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(m.groupList.system,((e,t)=>((0,n.wg)(),(0,n.j4)(y,{key:t,index:e.id,onClick:t=>c.menuClick(e)},{default:(0,n.w5)((()=>[(0,n.Uk)((0,l.zw)(e.title)+" ",1),e.count?((0,n.wg)(),(0,n.iD)("span",s,(0,l.zw)(e.count),1)):(0,n.kq)("",!0)])),_:2},1032,["index","onClick"])))),128))])),_:1}),(0,n.Wm)(k,{index:"default"},{title:(0,n.w5)((()=>[(0,n.Wm)(h,null,{default:(0,n.w5)((()=>[(0,n.Wm)(v)])),_:1}),d])),default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(m.groupList.default,((e,t)=>((0,n.wg)(),(0,n.j4)(y,{key:t,index:e.id,onClick:t=>c.menuClick(e)},{default:(0,n.w5)((()=>[(0,n.Uk)((0,l.zw)(e.title)+" ",1),e.count?((0,n.wg)(),(0,n.iD)("span",o,(0,l.zw)(e.count),1)):(0,n.kq)("",!0)])),_:2},1032,["index","onClick"])))),128))])),_:1}),(0,n.Wm)(k,{index:"member"},{title:(0,n.w5)((()=>[(0,n.Wm)(h,null,{default:(0,n.w5)((()=>[(0,n.Wm)(_)])),_:1}),p])),default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(m.groupList.member,((e,t)=>((0,n.wg)(),(0,n.j4)(y,{key:t,index:e.id,onClick:t=>c.menuClick(e)},{default:(0,n.w5)((()=>[(0,n.Uk)((0,l.zw)(e.title)+" ",1),e.count?((0,n.wg)(),(0,n.iD)("span",r,(0,l.zw)(e.count),1)):(0,n.kq)("",!0)])),_:2},1032,["index","onClick"])))),128))])),_:1})])),_:1},8,["default-active","onOpen","onClose"])])),_:1}),m.activeType?((0,n.wg)(),(0,n.j4)(D,{key:0},{default:(0,n.w5)((()=>[(0,n.Wm)(W,{onClick:t[0]||(t[0]=e=>c.add()),icon:"el-icon-plus",size:"small",type:m.addType[m.activeType]},{default:(0,n.w5)((()=>[(0,n.Uk)("添加用户组")])),_:1},8,["type"])])),_:1})):(0,n.kq)("",!0)])),_:1})])),_:1})),[[$,m.menuloading]]),(0,n.Wm)(T,null,{default:(0,n.w5)((()=>[(0,n.Wm)(C,{class:"nopadding",ref:"main",style:{padding:"20px"}},{default:(0,n.w5)((()=>[(0,n.Wm)(z,{info:{},onRefreshData:c.refreshData,activeType:m.activeType,ref:"save"},null,8,["onRefreshData","activeType"])])),_:1},512)])),_:1})])),_:1})])),_:1})}var c=a(7276);let f=1;var w={name:"systemmenu",components:{save:c["default"]},data(){return{menuloading:!1,groupList:{system:[]},groupInfo:{},activeType:"system",menuProps:{label:e=>e.meta.title},menuFilterText:"",addType:{system:"primary",default:"warning",member:"danger"}}},watch:{menuFilterText(e){this.$refs.menu.filter(e)}},mounted(){this.getData()},methods:{async getData(){this.menuloading=!0;var e=await this.$http.get("user/group/lists");this.menuloading=!1,this.groupList=e.data},menuClick(e){this.groupInfo=e,this.$refs.save.setData(e)},async refreshData(){var e=await this.$http.get("user/group/lists");this.groupList=e.data},handleOpen(e){this.activeType=e,this.$refs.save.setData({})},handleClose(){this.activeType="",this.$refs.save.setData({})},async add(){var e="未命名"+f++,t={id:-1,title:e,type:this.activeType,authority:{},adminnode:{}};this.$refs.save.setData(t)}}},g=a(8700);const h=(0,g.Z)(w,[["render",m],["__scopeId","data-v-1377d2f7"]]);var y=h}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[819],{9819:function(a,e,t){t.r(e),t.d(e,{default:function(){return b}});var i=t(6252),l=t(3577);const n={class:"dis-f",style:{"flex-direction":"column",height:"100%"}},s={class:"left-panel tab-list-box dis-f al-item"},c=["onClick"],d={class:"right-panel"},o={key:0,class:"right-panel-search"},p={class:"flex-1 dis-f"},u={class:"hid-box tran-width"},r={class:"tab-info-box tab-info-box-hid"};function m(a,e,t,m,h,k){const g=(0,i.up)("el-button"),f=(0,i.up)("el-header"),v=(0,i.up)("InstalledApplist"),b=(0,i.up)("plugin-market"),_=(0,i.up)("el-container");return(0,i.wg)(),(0,i.iD)("div",n,[(0,i.Wm)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(f,null,{default:(0,i.w5)((()=>[(0,i._)("div",s,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(h.tabList,((a,e)=>((0,i.wg)(),(0,i.iD)("div",{key:e,class:(0,l.C_)(["tab-box",{"click-tab":a.type===h.activeName}]),onClick:e=>k.changeTab(a.type)},(0,l.zw)(a.title),11,c)))),128))]),(0,i._)("div",d,["market"==h.activeName?((0,i.wg)(),(0,i.iD)("div",o,[(0,i.Wm)(g,{type:"primary",size:"small",onClick:e[0]||(e[0]=a=>k.cleanCache()),loading:h.updateloading,icon:"el-icon-opportunity"},{default:(0,i.w5)((()=>[(0,i.Uk)("更新列表")])),_:1},8,["loading"])])):(0,i.kq)("",!0)])])),_:1}),(0,i._)("div",p,[(0,i._)("div",u,[(0,i._)("div",r,["manage"==h.activeName?((0,i.wg)(),(0,i.j4)(v,{key:0})):(0,i.kq)("",!0),"market"==h.activeName?((0,i.wg)(),(0,i.j4)(b,{key:1,ref:"market"},null,512)):(0,i.kq)("",!0)])])])])),_:1})])}var h=t(7440),k=t(9725),g={data(){return{activeName:"manage",updateloading:!1,tabList:[{title:"插件管理",type:"manage"},{title:"插件市场",type:"market"}]}},components:{pluginMarket:h["default"],InstalledApplist:k["default"]},mounted(){},methods:{changeTab(a){this.activeName=a},cleanCache(){this.updateloading=!0,this.$http.post("admin/application/cleanCache",{},{cacheparameters:!0}).then((a=>{200==a.code&&(this.$refs.market.loaddata(),this.updateloading=!1)}))}}},f=t(3744);const v=(0,f.Z)(g,[["render",m],["__scopeId","data-v-60337e11"]]);var b=v}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[358],{8358:function(a,e,t){t.r(e),t.d(e,{default:function(){return b}});var i=t(6808),l=t(9511);const n={class:"dis-f",style:{"flex-direction":"column",height:"100%"}},s={class:"left-panel tab-list-box dis-f al-item"},c=["onClick"],d={class:"right-panel"},o={key:0,class:"right-panel-search"},p={class:"flex-1 dis-f"},u={class:"hid-box tran-width"},r={class:"tab-info-box tab-info-box-hid"};function m(a,e,t,m,h,k){const g=(0,i.up)("el-button"),f=(0,i.up)("el-header"),v=(0,i.up)("InstalledApplist"),b=(0,i.up)("plugin-market"),_=(0,i.up)("el-container");return(0,i.wg)(),(0,i.iD)("div",n,[(0,i.Wm)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(f,null,{default:(0,i.w5)((()=>[(0,i._)("div",s,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(h.tabList,((a,e)=>((0,i.wg)(),(0,i.iD)("div",{key:e,class:(0,l.C_)(["tab-box",{"click-tab":a.type===h.activeName}]),onClick:e=>k.changeTab(a.type)},(0,l.zw)(a.title),11,c)))),128))]),(0,i._)("div",d,["market"==h.activeName?((0,i.wg)(),(0,i.iD)("div",o,[(0,i.Wm)(g,{type:"primary",size:"small",onClick:e[0]||(e[0]=a=>k.cleanCache()),loading:h.updateloading,icon:"el-icon-opportunity"},{default:(0,i.w5)((()=>[(0,i.Uk)("更新列表")])),_:1},8,["loading"])])):(0,i.kq)("",!0)])])),_:1}),(0,i._)("div",p,[(0,i._)("div",u,[(0,i._)("div",r,["manage"==h.activeName?((0,i.wg)(),(0,i.j4)(v,{key:0})):(0,i.kq)("",!0),"market"==h.activeName?((0,i.wg)(),(0,i.j4)(b,{key:1,ref:"market"},null,512)):(0,i.kq)("",!0)])])])])),_:1})])}var h=t(2376),k=t(1749),g={data(){return{activeName:"manage",updateloading:!1,tabList:[{title:"插件管理",type:"manage"},{title:"插件市场",type:"market"}]}},components:{pluginMarket:h["default"],InstalledApplist:k["default"]},mounted(){},methods:{changeTab(a){this.activeName=a},cleanCache(){this.updateloading=!0,this.$http.post("admin/application/cleanCache",{},{cacheparameters:!0}).then((a=>{200==a.code&&(this.$refs.market.loaddata(),this.updateloading=!1)}))}}},f=t(8700);const v=(0,f.Z)(g,[["render",m],["__scopeId","data-v-60337e11"]]);var b=v}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[40],{7040:function(e,s,r){r.r(s),r.d(s,{default:function(){return c}});var l=r(6252);const o=(0,l._)("div",{class:"el-form-item-msg"},"必须提供当前登录用户密码才能进行更改",-1),t=(0,l._)("div",{class:"el-form-item-msg"},"请输入包含英文、数字的8位以上密码",-1);function a(e,s,r,a,d,n){const m=(0,l.up)("el-alert"),u=(0,l.up)("el-input"),w=(0,l.up)("el-form-item"),p=(0,l.up)("x-password-strength"),i=(0,l.up)("el-button"),f=(0,l.up)("el-form"),h=(0,l.up)("el-card");return(0,l.wg)(),(0,l.j4)(h,{shadow:"never",header:"修改密码",style:{margin:"10px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{title:"密码更新成功后,您将被重定向到登录页面,您可以使用新密码重新登录。",type:"info","show-icon":"",style:{"margin-bottom":"15px"}}),(0,l.Wm)(f,{ref:"form",model:d.form,rules:d.rules,"label-width":"120px",style:{"margin-top":"20px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{label:"当前密码",prop:"userPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.userPassword,"onUpdate:modelValue":s[0]||(s[0]=e=>d.form.userPassword=e),type:"password","show-password":"",placeholder:"请输入当前密码"},null,8,["modelValue"]),o])),_:1}),(0,l.Wm)(w,{label:"新密码",prop:"newPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[1]||(s[1]=e=>d.form.newPassword=e),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"]),(0,l.Wm)(p,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[2]||(s[2]=e=>d.form.newPassword=e)},null,8,["modelValue"]),t])),_:1}),(0,l.Wm)(w,{label:"确认新密码",prop:"confirmNewPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.confirmNewPassword,"onUpdate:modelValue":s[3]||(s[3]=e=>d.form.confirmNewPassword=e),type:"password","show-password":"",placeholder:"请再次输入新密码"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(w,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,{type:"primary",onClick:n.save},{default:(0,l.w5)((()=>[(0,l.Uk)("保存密码")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","rules"])])),_:1})}var d=r(3577);const n={class:"x-password-strength"};function m(e,s,r,o,t,a){return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",{class:(0,d.C_)(["x-password-strength-bar",`x-password-strength-level-${t.level}`])},null,2)])}var u={props:{modelValue:{type:String,default:""}},data(){return{level:0}},watch:{modelValue(){this.strength(this.modelValue)}},mounted(){this.strength(this.modelValue)},methods:{strength(e){var s=0,r=e.length>=6,l=/\d/.test(e),o=/[a-z]/.test(e),t=/[A-Z]/.test(e),a=!/(\w)\1{2}/.test(e),d=/[`~!@#$%^&*()_+<>?:"{},./;'[\]]/.test(e);return e.length<=0?(s=0,this.level=s,!1):r?(l&&(s+=1),o&&(s+=1),t&&(s+=1),a&&(s+=1),d&&(s+=1),void(this.level=s)):(s=1,this.level=s,!1)}}},w=r(3744);const p=(0,w.Z)(u,[["render",m],["__scopeId","data-v-f6e10340"]]);var i=p,f={components:{xPasswordStrength:i},data(){return{form:{userPassword:"",newPassword:"",confirmNewPassword:""},rules:{userPassword:[{required:!0,message:"请输入当前密码"}],newPassword:[{required:!0,message:"请输入新密码"}],confirmNewPassword:[{required:!0,message:"请再次输入新密码"},{validator:(e,s,r)=>{s!==this.form.newPassword?r(new Error("两次输入密码不一致")):r()}}]}}},methods:{save(){this.$refs.form.validate((e=>{if(!e)return!1;this.$alert("密码修改成功,是否跳转至登录页使用新密码登录","修改成功",{type:"success",center:!0}).then((()=>{this.$router.replace({path:"/login"})})).catch((()=>{}))}))}}};const h=(0,w.Z)(f,[["render",a]]);var c=h}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[596],{6230:function(r,o,e){e.r(o),e.d(o,{default:function(){return g}});var n=e(6252),t=e(5747);const i=r=>((0,n.dD)("data-v-26f35ebe"),r=r(),(0,n.Cn)(),r),a={class:"x"},c={class:"y"},s={class:"router-err"},u=i((()=>(0,n._)("div",{class:"router-err__icon"},[(0,n._)("img",{src:t})],-1))),l={class:"router-err__content"},d=i((()=>(0,n._)("h2",null,"无权限或找不到页面",-1))),_=i((()=>(0,n._)("p",null,"当前页面无权限访问或者打开了一个不存在的链接,请检查当前账户权限和链接的可访问性。",-1)));function p(r,o,e,t,i,p){const h=(0,n.up)("el-button");return(0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("div",c,[(0,n._)("div",s,[u,(0,n._)("div",l,[d,_,(0,n.Wm)(h,{type:"primary",plain:"",round:"",onClick:p.gohome},{default:(0,n.w5)((()=>[(0,n.Uk)("返回首页")])),_:1},8,["onClick"]),(0,n.Wm)(h,{type:"primary",round:"",onClick:p.goback},{default:(0,n.w5)((()=>[(0,n.Uk)("返回上一页")])),_:1},8,["onClick"])])])])])}e(7658);var h={methods:{gohome(){location.href="#/"},goback(){this.$router.go(-1)},gologin(){this.$router.push("/login")}}},k=e(3744);const f=(0,k.Z)(h,[["render",p],["__scopeId","data-v-26f35ebe"]]);var g=f}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[596],{4399:function(r,o,e){e.r(o),e.d(o,{default:function(){return g}});var n=e(6808),t=e(5747);const i=r=>((0,n.dD)("data-v-26f35ebe"),r=r(),(0,n.Cn)(),r),a={class:"x"},c={class:"y"},s={class:"router-err"},u=i((()=>(0,n._)("div",{class:"router-err__icon"},[(0,n._)("img",{src:t})],-1))),l={class:"router-err__content"},d=i((()=>(0,n._)("h2",null,"无权限或找不到页面",-1))),_=i((()=>(0,n._)("p",null,"当前页面无权限访问或者打开了一个不存在的链接,请检查当前账户权限和链接的可访问性。",-1)));function p(r,o,e,t,i,p){const h=(0,n.up)("el-button");return(0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("div",c,[(0,n._)("div",s,[u,(0,n._)("div",l,[d,_,(0,n.Wm)(h,{type:"primary",plain:"",round:"",onClick:p.gohome},{default:(0,n.w5)((()=>[(0,n.Uk)("返回首页")])),_:1},8,["onClick"]),(0,n.Wm)(h,{type:"primary",round:"",onClick:p.goback},{default:(0,n.w5)((()=>[(0,n.Uk)("返回上一页")])),_:1},8,["onClick"])])])])])}e(8311);var h={methods:{gohome(){location.href="#/"},goback(){this.$router.go(-1)},gologin(){this.$router.push("/login")}}},k=e(8700);const f=(0,k.Z)(h,[["render",p],["__scopeId","data-v-26f35ebe"]]);var g=f}}]);

1
dist/static/js/424.0efddb93.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[424],{8424:function(n,a,e){e.r(a),e.d(a,{default:function(){return i}});var t=e(6808);function u(n,a,e,u,r,d){const p=(0,t.up)("xTable"),c=(0,t.up)("el-main");return(0,t.wg)(),(0,t.j4)(c,{class:"nopadding"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{name:"weixin"})])),_:1})}var r=e(9378),d={components:{xTable:r["default"]},data(){return{data:[]}}},p=e(8700);const c=(0,p.Z)(d,[["render",u]]);var i=c}}]);

1
dist/static/js/44.fe991d71.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[44],{7044:function(e,t,s){s.r(t),s.d(t,{default:function(){return _}});var p=s(6808);const r=e=>((0,p.dD)("data-v-616a86ed"),e=e(),(0,p.Cn)(),e),i={class:"x-cropper"},a={class:"x-cropper__img"},o=["src"],c={class:"x-cropper__preview"},n=r((()=>(0,p._)("h4",null,"图像预览",-1))),d={class:"x-cropper__preview__img",ref:"preview"};function l(e,t,s,r,l,g){return(0,p.wg)(),(0,p.iD)("div",i,[(0,p._)("div",a,[(0,p._)("img",{src:s.src,ref:"img"},null,8,o)]),(0,p._)("div",c,[n,(0,p._)("div",d,null,512)])])}var g=s(9151),h=s.n(g),u={props:{src:{type:String,default:""},compress:{type:Number,default:1},aspectRatio:{type:Number,default:NaN}},data(){return{crop:null}},watch:{aspectRatio(e){this.crop.setAspectRatio(e)}},mounted(){this.init()},methods:{init(){this.crop=new(h())(this.$refs.img,{viewMode:2,dragMode:"move",responsive:!1,aspectRatio:this.aspectRatio,preview:this.$refs.preview})},setAspectRatio(e){this.crop.setAspectRatio(e)},getCropData(e,t="image/jpeg"){e(this.crop.getCroppedCanvas().toDataURL(t,this.compress))},getCropBlob(e,t="image/jpeg"){this.crop.getCroppedCanvas().toBlob((t=>{e(t)}),t,this.compress)},getCropFile(e,t="fileName.jpg",s="image/jpeg"){this.crop.getCroppedCanvas().toBlob((p=>{let r=new File([p],t,{type:s});e(r)}),s,this.compress)}}},m=s(8700);const v=(0,m.Z)(u,[["render",l],["__scopeId","data-v-616a86ed"]]);var _=v}}]);

1
dist/static/js/457.6e64f7cc.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[457],{9457:function(e,n,t){t.r(n),t.d(n,{default:function(){return o}});var u=t(6808);function a(e,n,t,a,r,c){const s=(0,u.up)("table2");return(0,u.wg)(),(0,u.j4)(s,{name:"user"})}var r=t(1259),c={name:"user",components:{table2:r["default"]},data(){return{}},computed:{},watch:{},mounted(){},methods:{}},s=t(8700);const d=(0,s.Z)(c,[["render",a]]);var o=d}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[485],{485:function(e,t,a){a.r(t),a.d(t,{default:function(){return g}});var l=a(6252),n=a(3577);const i={class:"left-panel"},r={class:"right-panel"},o={class:"right-panel-search"};function c(e,t,a,c,s,u){const p=(0,l.up)("x-page-header"),h=(0,l.up)("x-menu-item"),d=(0,l.up)("el-aside"),m=(0,l.up)("el-date-picker"),f=(0,l.up)("el-input"),g=(0,l.up)("el-button"),w=(0,l.up)("el-header"),y=(0,l.up)("xEcharts"),b=(0,l.up)("el-table-column"),k=(0,l.up)("xTable"),C=(0,l.up)("el-main"),x=(0,l.up)("el-container"),_=(0,l.up)("info"),W=(0,l.up)("el-drawer");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(x,null,{default:(0,l.w5)((()=>[(0,l.Wm)(d,{width:"210px"},{default:(0,l.w5)((()=>[(0,l.Wm)(p,{title:"日志",icon:"el-icon-Calendar",style:{padding:"10px 16px"}}),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(s.typeList,((e,t)=>((0,l.wg)(),(0,l.j4)(h,{key:t,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:s.search.type==e.value,onClick:t=>u.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])),_:1}),(0,l.Wm)(x,{style:{padding:"10px 10px 6px 10px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(x,{class:"container"},{default:(0,l.w5)((()=>[(0,l.Wm)(w,null,{default:(0,l.w5)((()=>[(0,l._)("div",i,[(0,l.Wm)(m,{modelValue:s.date,"onUpdate:modelValue":t[0]||(t[0]=e=>s.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,l._)("div",r,[(0,l._)("div",o,[(0,l.Wm)(f,{modelValue:s.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>s.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,l.Wm)(g,{type:"primary",icon:"el-icon-search",onClick:u.upsearch},null,8,["onClick"])])])])),_:1}),"object"===typeof s.chartoption&&Object.keys(s.chartoption).length>0?((0,l.wg)(),(0,l.j4)(w,{key:0,style:{height:"120px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{height:"100%",option:s.chartoption},null,8,["option"])])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(k,{ref:"table",api:s.api,params:s.search,tableColumn:s.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:u.rowClick},{default:(0,l.w5)((()=>[(0,l.Wm)(b,{type:"index",width:"60",align:"center"},{default:(0,l.w5)((e=>[(0,l._)("span",null,(0,n.zw)(e.$index+(s.currentPage-1)*s.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:s.infoDrawer,"onUpdate:modelValue":t[2]||(t[2]=e=>s.infoDrawer=e),title:"日志详情",size:700,"destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(_,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var s=a(6359),u=a(7015),p=a(8492),h=a(8046),d={name:"log",components:{info:s["default"],columnItem:p.Z,xMenuItem:h.Z,xEcharts:u.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{sideClick(e){this.info=e,this.search.type=e.value,this.current=e.value,this.column=e.column||"column"},changeURLArg(e,t,a){var l=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+l,"gi"),""),e=e.replace(new RegExp("\\??"+l+"&?","gi"),"?"),e;var n=t+"="+a;if(e.match(l)){var i="("+t+"=)([^&]*)";return i=e.replace(new RegExp(i,"gi"),n),i}return e.match("[?]")?e+"&"+n:e+"?"+n},nodeClick(e){if(e.disabled)return!1;this.current=e.label,this.column=e.column||"column"},getType(){this.$http.get("log/admin/types",{type:this.$route.query.type},{cacheparameters:!0}).then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e])}}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);let e=window.location.href;for(const[t,a]of Object.entries(this.search))e=this.changeURLArg(e,t,a);history.replaceState(Object.assign({},window.history.state,{url:e}),"null",e)},upsearch(){this.getCurrent()},rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},m=a(3744);const f=(0,m.Z)(d,[["render",c],["__scopeId","data-v-0d7cfddc"]]);var g=f}}]);

File diff suppressed because one or more lines are too long

1
dist/static/js/49.6badf02c.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[49],{5596:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var i=n(6808),a=n(9511),r=n(1441);function h(e,t,n,h,l,o){return(0,i.wg)(),(0,i.iD)("div",{class:"x-code-editor",style:(0,a.j5)({height:o._height})},[(0,i.wy)((0,i._)("textarea",{ref:"textarea","onUpdate:modelValue":t[0]||(t[0]=e=>l.contentValue=e)},null,512),[[r.nr,l.contentValue]])],4)}var l=n(3839),o=n(3322),u=n.n(o),s=(n(5935),n(8881),n(2876),{props:{modelValue:{type:String,default:""},mode:{type:String,default:"javascript"},height:{type:[String,Number],default:300},options:{type:Object,default:()=>{}},theme:{type:String,default:"idea"},readOnly:{type:Boolean,default:!1}},data(){return{contentValue:this.modelValue,coder:null,opt:{theme:this.theme,styleActiveLine:!0,lineNumbers:!0,lineWrapping:!1,tabSize:4,indentUnit:4,indentWithTabs:!0,mode:this.mode,readOnly:this.readOnly,...this.options}}},computed:{_height(){return Number(this.height)?Number(this.height)+"px":this.height}},watch:{modelValue(e){this.contentValue=e,e!==this.coder.getValue()&&this.coder.setValue(e)}},mounted(){this.init()},methods:{init(){this.coder=(0,l.Xl)(u().fromTextArea(this.$refs.textarea,this.opt)),this.coder.on("change",(e=>{this.contentValue=e.getValue(),this.$emit("update:modelValue",this.contentValue)}))},formatStrInJson(e){return JSON.stringify(JSON.parse(e),null,4)}}}),d=n(8700);const c=(0,d.Z)(s,[["render",h],["__scopeId","data-v-1c04bc3c"]]);var p=c}}]);

1
dist/static/js/506.3d21e379.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[506],{5506:function(e,t,l){l.r(t),l.d(t,{default:function(){return g}});var i=l(6808),a=l(9511);const n={class:"message-body"},s={class:"message-content"},d={class:"message-body-item"};function o(e,t,l,o,c,u){const h=(0,i.up)("x-page-header"),r=(0,i.up)("el-header"),m=(0,i.up)("x-menu-item"),g=(0,i.up)("el-main"),p=(0,i.up)("el-container"),b=(0,i.up)("table2"),f=(0,i.Q2)("loading");return(0,i.wg)(),(0,i.iD)("div",n,[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",{class:"message-body-side",style:(0,a.j5)({width:c.width+"px"})},[(0,i.Wm)(p,null,{default:(0,i.w5)((()=>[(0,i.Wm)(r,null,{default:(0,i.w5)((()=>[(0,i.Wm)(h,{title:c.title,icon:c.icon},null,8,["title","icon"])])),_:1}),(0,i.Wm)(g,{style:{padding:"0"}},{default:(0,i.w5)((()=>[(0,i._)("div",d,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(c.items,((e,t)=>((0,i.wg)(),(0,i.j4)(m,{key:t,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:c.search[c.key]==e.value,onClick:t=>u.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])])),_:1})])),_:1})],4),(0,i._)("div",{class:"message-body-content",style:(0,a.j5)({"margin-left":c.width+"px"})},[(0,i.Wm)(b,{ref:"table",onChildLoaded:u.getChildData},null,8,["onChildLoaded"])],4)])),[[f,c.loading]])])}var c=l(1843),u=l(1259),h={name:"table_3",components:{table2:u["default"],xMenuItem:c.Z},data(){return{loading:!0,icon:"",width:180,title:"",items:[],key:"",search:{}}},methods:{sideClick(e){this.info=e,this.search[this.key||"type"]=e.value,this.$refs.table.filterChange(this.search)},getChildData(e){Object.assign(this.$data,e),this.loading=!1}}},r=l(8700);const m=(0,r.Z)(h,[["render",o],["__scopeId","data-v-22a075c0"]]);var g=m}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[516],{516:function(e,a,l){l.r(a),l.d(a,{default:function(){return i}});var s=l(6252);function o(e,a,l,o,t,r){const d=(0,s.up)("x-upload"),i=(0,s.up)("el-form-item"),m=(0,s.up)("el-input"),p=(0,s.up)("el-cascader"),u=(0,s.up)("el-option"),n=(0,s.up)("el-select"),f=(0,s.up)("el-form"),h=(0,s.up)("el-button"),w=(0,s.up)("x-dialog");return(0,s.wg)(),(0,s.j4)(w,{title:t.titleMap[t.mode],modelValue:t.visible,"onUpdate:modelValue":a[9]||(a[9]=e=>t.visible=e),width:"500",padding:"20","destroy-on-close":"",onClosed:a[10]||(a[10]=a=>e.$emit("closed"))},{footer:(0,s.w5)((()=>[(0,s.Wm)(h,{onClick:a[7]||(a[7]=e=>t.visible=!1)},{default:(0,s.w5)((()=>[(0,s.Uk)("取 消")])),_:1}),"show"!=t.mode?((0,s.wg)(),(0,s.j4)(h,{key:0,type:"primary",loading:t.isSaveing,onClick:a[8]||(a[8]=e=>r.submit())},{default:(0,s.w5)((()=>[(0,s.Uk)("保 存")])),_:1},8,["loading"])):(0,s.kq)("",!0)])),default:(0,s.w5)((()=>[(0,s.Wm)(f,{model:t.form,rules:t.rules,disabled:"show"==t.mode,ref:"dialogForm","label-width":"100px","label-position":"left"},{default:(0,s.w5)((()=>[(0,s.Wm)(i,{label:"头像",prop:"avatar"},{default:(0,s.w5)((()=>[(0,s.Wm)(d,{modelValue:t.form.avatar,"onUpdate:modelValue":a[0]||(a[0]=e=>t.form.avatar=e),title:"上传头像"},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"登录账号",prop:"userName"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{modelValue:t.form.userName,"onUpdate:modelValue":a[1]||(a[1]=e=>t.form.userName=e),placeholder:"用于登录系统",clearable:""},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"姓名",prop:"name"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{modelValue:t.form.name,"onUpdate:modelValue":a[2]||(a[2]=e=>t.form.name=e),placeholder:"请输入完整的真实姓名",clearable:""},null,8,["modelValue"])])),_:1}),"add"==t.mode?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Wm)(i,{label:"登录密码",prop:"password"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{type:"password",modelValue:t.form.password,"onUpdate:modelValue":a[3]||(a[3]=e=>t.form.password=e),clearable:"","show-password":""},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"确认密码",prop:"password2"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{type:"password",modelValue:t.form.password2,"onUpdate:modelValue":a[4]||(a[4]=e=>t.form.password2=e),clearable:"","show-password":""},null,8,["modelValue"])])),_:1})],64)):(0,s.kq)("",!0),(0,s.Wm)(i,{label:"所属部门",prop:"dept"},{default:(0,s.w5)((()=>[(0,s.Wm)(p,{modelValue:t.form.dept,"onUpdate:modelValue":a[5]||(a[5]=e=>t.form.dept=e),options:t.depts,props:t.deptsProps,clearable:"",style:{width:"100%"}},null,8,["modelValue","options","props"])])),_:1}),(0,s.Wm)(i,{label:"所属角色",prop:"group"},{default:(0,s.w5)((()=>[(0,s.Wm)(n,{modelValue:t.form.group,"onUpdate:modelValue":a[6]||(a[6]=e=>t.form.group=e),multiple:"",filterable:"",style:{width:"100%"}},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(t.groups,(e=>((0,s.wg)(),(0,s.j4)(u,{key:e.id,label:e.label,value:e.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model","rules","disabled"])])),_:1},8,["title","modelValue"])}var t={emits:["success","closed"],data(){return{mode:"add",titleMap:{add:"新增用户",edit:"编辑用户",show:"查看"},visible:!1,isSaveing:!1,form:{id:"",userName:"",avatar:"",name:"",dept:"",group:[]},rules:{avatar:[{required:!0,message:"请上传头像"}],userName:[{required:!0,message:"请输入登录账号"}],name:[{required:!0,message:"请输入真实姓名"}],password:[{required:!0,message:"请输入登录密码"},{validator:(e,a,l)=>{""!==this.form.password2&&this.$refs.dialogForm.validateField("password2"),l()}}],password2:[{required:!0,message:"请再次输入密码"},{validator:(e,a,l)=>{a!==this.form.password?l(new Error("两次输入密码不一致!")):l()}}],dept:[{required:!0,message:"请选择所属部门"}],group:[{required:!0,message:"请选择所属角色",trigger:"change"}]},groups:[],groupsProps:{value:"id",multiple:!0,checkStrictly:!0},depts:[],deptsProps:{value:"id",checkStrictly:!0}}},mounted(){this.getGroup(),this.getDept()},methods:{open(e="add"){return this.mode=e,this.visible=!0,this},async getGroup(){var e=await this.$api.system.role.list.get();this.groups=e.data.rows},async getDept(){var e=await this.$api.system.dept.list.get();this.depts=e.data},submit(){this.$refs.dialogForm.validate((async e=>{if(!e)return!1;this.isSaveing=!0;var a=await this.$api.demo.post.post(this.form);this.isSaveing=!1,200==a.code?(this.$emit("success",this.form,this.mode),this.visible=!1,this.$message.success("操作成功")):this.$alert(a.message,"提示",{type:"error"})}))},setData(e){this.form.id=e.id,this.form.userName=e.userName,this.form.avatar=e.avatar,this.form.name=e.name,this.form.group=e.group,this.form.dept=e.dept}}},r=l(3744);const d=(0,r.Z)(t,[["render",o]]);var i=d}}]);

1
dist/static/js/537.217929f0.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[537],{1537:function(e,t,l){l.r(t),l.d(t,{default:function(){return g}});var a=l(6808),n=l(9511);const i={class:"left-panel"},r={class:"right-panel"},o={class:"right-panel-search"};function c(e,t,l,c,u,s){const p=(0,a.up)("x-page-header"),h=(0,a.up)("el-header"),d=(0,a.up)("x-menu-item"),m=(0,a.up)("el-main"),f=(0,a.up)("el-container"),g=(0,a.up)("el-aside"),w=(0,a.up)("el-date-picker"),y=(0,a.up)("el-input"),b=(0,a.up)("el-button"),_=(0,a.up)("xEcharts"),k=(0,a.up)("el-table-column"),C=(0,a.up)("xTable"),x=(0,a.up)("info"),W=(0,a.up)("el-drawer");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,{width:"210px"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"日志",icon:"el-icon-Calendar"})])),_:1}),(0,a.Wm)(m,{style:{padding:"0"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(u.typeList,((e,t)=>((0,a.wg)(),(0,a.j4)(d,{key:t,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:u.search.type==e.value,onClick:t=>s.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])),_:1})])),_:1})])),_:1}),(0,a.Wm)(f,{style:{padding:"10px 10px 6px 10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{class:"container"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a._)("div",i,[(0,a.Wm)(w,{modelValue:u.date,"onUpdate:modelValue":t[0]||(t[0]=e=>u.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,a._)("div",r,[(0,a._)("div",o,[(0,a.Wm)(y,{modelValue:u.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>u.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,a.Wm)(b,{type:"primary",icon:"el-icon-search",onClick:s.upsearch},null,8,["onClick"])])])])),_:1}),"object"===typeof u.chartoption&&Object.keys(u.chartoption).length>0?((0,a.wg)(),(0,a.j4)(h,{key:0,style:{height:"120px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{height:"100%",option:u.chartoption},null,8,["option"])])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(m,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(C,{ref:"table",api:u.api,params:u.search,tableColumn:u.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:s.rowClick},{default:(0,a.w5)((()=>[(0,a.Wm)(k,{type:"index",width:"60",align:"center"},{default:(0,a.w5)((e=>[(0,a._)("span",null,(0,n.zw)(e.$index+(u.currentPage-1)*u.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.Wm)(W,{modelValue:u.infoDrawer,"onUpdate:modelValue":t[2]||(t[2]=e=>u.infoDrawer=e),title:"日志详情",size:700,"destroy-on-close":""},{default:(0,a.w5)((()=>[(0,a.Wm)(x,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var u=l(328),s=l(7844),p=l(1606),h=l(1843),d={name:"log",components:{info:u["default"],columnItem:p.Z,xMenuItem:h.Z,xEcharts:s.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{sideClick(e){this.info=e,this.search.type=e.value,this.current=e.value,this.column=e.column||"column"},changeURLArg(e,t,l){var a=t+"=([^&]*)";if(""===l)return e=e.replace(new RegExp("&?"+a,"gi"),""),e=e.replace(new RegExp("\\??"+a+"&?","gi"),"?"),e;var n=t+"="+l;if(e.match(a)){var i="("+t+"=)([^&]*)";return i=e.replace(new RegExp(i,"gi"),n),i}return e.match("[?]")?e+"&"+n:e+"?"+n},nodeClick(e){if(e.disabled)return!1;this.current=e.label,this.column=e.column||"column"},getType(){this.$http.get("log/admin/types",{type:this.$route.query.type},{cacheparameters:!0}).then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e])}}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);let e=window.location.href;for(const[t,l]of Object.entries(this.search))e=this.changeURLArg(e,t,l);history.replaceState(Object.assign({},window.history.state,{url:e}),"null",e)},upsearch(){this.getCurrent()},rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},m=l(8700);const f=(0,m.Z)(d,[["render",c],["__scopeId","data-v-79c6f9d2"]]);var g=f}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[770],{3770:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var n=a(6252);function r(e,t,a,r,u,s){const o=(0,n.up)("x-user");return(0,n.wg)(),(0,n.j4)(o,{modelValue:u.user,"onUpdate:modelValue":t[0]||(t[0]=e=>u.user=e)},null,8,["modelValue"])}var u={name:"userCenter",components:{},data(){return{user:{avatar:""},page:"account"}},beforeRouteEnter(e,t,a){a((e=>{t.is&&(delete t.is,e.$alert("路由跳转过来后含有特殊标识,做特殊处理","提示",{type:"success",center:!0}).then((()=>{})).catch((()=>{})))}))},created(){var e=this.$tool.data.get("user");this.user=e},methods:{openPage(e){this.page=e.index}}},s=a(3744);const o=(0,s.Z)(u,[["render",r]]);var c=o}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[546],{4875:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var n=a(6808);function r(e,t,a,r,u,s){const o=(0,n.up)("x-user");return(0,n.wg)(),(0,n.j4)(o,{modelValue:u.user,"onUpdate:modelValue":t[0]||(t[0]=e=>u.user=e)},null,8,["modelValue"])}var u={name:"userCenter",components:{},data(){return{user:{avatar:""},page:"account"}},beforeRouteEnter(e,t,a){a((e=>{t.is&&(delete t.is,e.$alert("路由跳转过来后含有特殊标识,做特殊处理","提示",{type:"success",center:!0}).then((()=>{})).catch((()=>{})))}))},created(){var e=this.$tool.data.get("user");this.user=e},methods:{openPage(e){this.page=e.index}}},s=a(8700);const o=(0,s.Z)(u,[["render",r]]);var c=o}}]);

1
dist/static/js/590.7868e220.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[590],{7590:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var i=n(6808);const a={class:"x-editor"};function l(e,t,n,l,o,s){const r=(0,i.up)("Editor");return(0,i.wg)(),(0,i.iD)("div",a,[(0,i.Wm)(r,{modelValue:o.contentValue,"onUpdate:modelValue":t[0]||(t[0]=e=>o.contentValue=e),init:o.init,disabled:n.disabled,placeholder:n.placeholder,onOnClick:s.onClick},null,8,["modelValue","init","disabled","placeholder","onOnClick"])])}var o=n(7536),s=n(5401),r=n(642),c=n.n(r),d=(n(4499),n(3910),n(5062),n(8529),n(9840),n(6024),n(2574),n(5877),n(3415),n(2684),n(187),n(9889),n(453),n(6611),{components:{Editor:s.Z},props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},height:{type:Number,default:300},disabled:{type:Boolean,default:!1},plugins:{type:[String,Array],default:"code image media link preview table quickbars template pagebreak lists advlist"},toolbar:{type:[String,Array],default:"undo redo | forecolor backcolor bold italic underline strikethrough link | blocks fontfamily fontsize | \t\t\t\t\talignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | pagebreak | \t\t\t\t\timage media table template preview | code selectall"},templates:{type:Array,default:()=>[]},options:{type:Object,default:()=>{}}},data(){return{init:{language_url:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/langs/zh_CN.js",language:"zh_CN",skin_url:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/skins/ui/oxide",content_css:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/skins/content/default/content.css",menubar:!1,statusbar:!0,plugins:this.plugins,toolbar:this.toolbar,toolbar_mode:"sliding",font_size_formats:"12px 14px 16px 18px 22px 24px 36px 72px",height:this.height,placeholder:this.placeholder,branding:!1,resize:!0,elementpath:!0,content_style:"",templates:this.templates,quickbars_selection_toolbar:"forecolor backcolor bold italic underline strikethrough link",quickbars_image_toolbar:"alignleft aligncenter alignright",quickbars_insert_toolbar:!1,image_caption:!0,image_advtab:!0,convert_urls:!1,images_upload_handler:function(e){return new Promise(((t,n)=>{const i=new FormData;i.append("files",e.blob(),e.filename()),o.Z.common.upload.post(i).then((e=>{t(e.data.url)})).catch((()=>{n("Image upload failed")}))}))},setup:function(e){e.on("init",(function(){this.getBody().style.fontSize="14px"})),e.on("OpenWindow",(function(e){var t=document.querySelector(".el-drawer.open"),n=e.target.editorContainer;if(t&&t.contains(n)){var i=document.activeElement;setTimeout((()=>{document.activeElement.blur(),i.focus()}),0)}}))},...this.options},contentValue:this.modelValue}},watch:{modelValue(e){this.contentValue=e},contentValue(e){this.$emit("update:modelValue",e)}},mounted(){console.log({NODE_ENV:"production",VUE_APP_TITLE:"X-PHP",BASE_URL:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/"}),c().init({})},methods:{onClick(e){this.$emit("onClick",e,c())}}}),u=n(8700);const p=(0,u.Z)(d,[["render",l]]);var m=p}}]);

1
dist/static/js/633.e35e0313.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[633],{6633:function(e,a,l){l.r(a),l.d(a,{default:function(){return i}});var s=l(6808);function o(e,a,l,o,t,r){const d=(0,s.up)("x-upload"),i=(0,s.up)("el-form-item"),m=(0,s.up)("el-input"),p=(0,s.up)("el-cascader"),u=(0,s.up)("el-option"),n=(0,s.up)("el-select"),f=(0,s.up)("el-form"),h=(0,s.up)("el-button"),w=(0,s.up)("x-dialog");return(0,s.wg)(),(0,s.j4)(w,{title:t.titleMap[t.mode],modelValue:t.visible,"onUpdate:modelValue":a[9]||(a[9]=e=>t.visible=e),width:"500",padding:"20","destroy-on-close":"",onClosed:a[10]||(a[10]=a=>e.$emit("closed"))},{footer:(0,s.w5)((()=>[(0,s.Wm)(h,{onClick:a[7]||(a[7]=e=>t.visible=!1)},{default:(0,s.w5)((()=>[(0,s.Uk)("取 消")])),_:1}),"show"!=t.mode?((0,s.wg)(),(0,s.j4)(h,{key:0,type:"primary",loading:t.isSaveing,onClick:a[8]||(a[8]=e=>r.submit())},{default:(0,s.w5)((()=>[(0,s.Uk)("保 存")])),_:1},8,["loading"])):(0,s.kq)("",!0)])),default:(0,s.w5)((()=>[(0,s.Wm)(f,{model:t.form,rules:t.rules,disabled:"show"==t.mode,ref:"dialogForm","label-width":"100px","label-position":"left"},{default:(0,s.w5)((()=>[(0,s.Wm)(i,{label:"头像",prop:"avatar"},{default:(0,s.w5)((()=>[(0,s.Wm)(d,{modelValue:t.form.avatar,"onUpdate:modelValue":a[0]||(a[0]=e=>t.form.avatar=e),title:"上传头像"},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"登录账号",prop:"userName"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{modelValue:t.form.userName,"onUpdate:modelValue":a[1]||(a[1]=e=>t.form.userName=e),placeholder:"用于登录系统",clearable:""},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"姓名",prop:"name"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{modelValue:t.form.name,"onUpdate:modelValue":a[2]||(a[2]=e=>t.form.name=e),placeholder:"请输入完整的真实姓名",clearable:""},null,8,["modelValue"])])),_:1}),"add"==t.mode?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Wm)(i,{label:"登录密码",prop:"password"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{type:"password",modelValue:t.form.password,"onUpdate:modelValue":a[3]||(a[3]=e=>t.form.password=e),clearable:"","show-password":""},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"确认密码",prop:"password2"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{type:"password",modelValue:t.form.password2,"onUpdate:modelValue":a[4]||(a[4]=e=>t.form.password2=e),clearable:"","show-password":""},null,8,["modelValue"])])),_:1})],64)):(0,s.kq)("",!0),(0,s.Wm)(i,{label:"所属部门",prop:"dept"},{default:(0,s.w5)((()=>[(0,s.Wm)(p,{modelValue:t.form.dept,"onUpdate:modelValue":a[5]||(a[5]=e=>t.form.dept=e),options:t.depts,props:t.deptsProps,clearable:"",style:{width:"100%"}},null,8,["modelValue","options","props"])])),_:1}),(0,s.Wm)(i,{label:"所属角色",prop:"group"},{default:(0,s.w5)((()=>[(0,s.Wm)(n,{modelValue:t.form.group,"onUpdate:modelValue":a[6]||(a[6]=e=>t.form.group=e),multiple:"",filterable:"",style:{width:"100%"}},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(t.groups,(e=>((0,s.wg)(),(0,s.j4)(u,{key:e.id,label:e.label,value:e.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model","rules","disabled"])])),_:1},8,["title","modelValue"])}var t={emits:["success","closed"],data(){return{mode:"add",titleMap:{add:"新增用户",edit:"编辑用户",show:"查看"},visible:!1,isSaveing:!1,form:{id:"",userName:"",avatar:"",name:"",dept:"",group:[]},rules:{avatar:[{required:!0,message:"请上传头像"}],userName:[{required:!0,message:"请输入登录账号"}],name:[{required:!0,message:"请输入真实姓名"}],password:[{required:!0,message:"请输入登录密码"},{validator:(e,a,l)=>{""!==this.form.password2&&this.$refs.dialogForm.validateField("password2"),l()}}],password2:[{required:!0,message:"请再次输入密码"},{validator:(e,a,l)=>{a!==this.form.password?l(new Error("两次输入密码不一致!")):l()}}],dept:[{required:!0,message:"请选择所属部门"}],group:[{required:!0,message:"请选择所属角色",trigger:"change"}]},groups:[],groupsProps:{value:"id",multiple:!0,checkStrictly:!0},depts:[],deptsProps:{value:"id",checkStrictly:!0}}},mounted(){this.getGroup(),this.getDept()},methods:{open(e="add"){return this.mode=e,this.visible=!0,this},async getGroup(){var e=await this.$api.system.role.list.get();this.groups=e.data.rows},async getDept(){var e=await this.$api.system.dept.list.get();this.depts=e.data},submit(){this.$refs.dialogForm.validate((async e=>{if(!e)return!1;this.isSaveing=!0;var a=await this.$api.demo.post.post(this.form);this.isSaveing=!1,200==a.code?(this.$emit("success",this.form,this.mode),this.visible=!1,this.$message.success("操作成功")):this.$alert(a.message,"提示",{type:"error"})}))},setData(e){this.form.id=e.id,this.form.userName=e.userName,this.form.avatar=e.avatar,this.form.name=e.name,this.form.group=e.group,this.form.dept=e.dept}}},r=l(8700);const d=(0,r.Z)(t,[["render",o]]);var i=d}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[650],{8650:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var i=n(6252);const a={class:"x-editor"};function l(e,t,n,l,o,s){const r=(0,i.up)("Editor");return(0,i.wg)(),(0,i.iD)("div",a,[(0,i.Wm)(r,{modelValue:o.contentValue,"onUpdate:modelValue":t[0]||(t[0]=e=>o.contentValue=e),init:o.init,disabled:n.disabled,placeholder:n.placeholder,onOnClick:s.onClick},null,8,["modelValue","init","disabled","placeholder","onOnClick"])])}var o=n(7877),s=n(396),r=n(7575),c=n.n(r),d=(n(8860),n(6890),n(7490),n(8190),n(2170),n(2540),n(2682),n(4446),n(1449),n(8619),n(8843),n(6552),n(4400),n(8672),{components:{Editor:s.Z},props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},height:{type:Number,default:300},disabled:{type:Boolean,default:!1},plugins:{type:[String,Array],default:"code image media link preview table quickbars template pagebreak lists advlist"},toolbar:{type:[String,Array],default:"undo redo | forecolor backcolor bold italic underline strikethrough link | blocks fontfamily fontsize | \t\t\t\t\talignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | pagebreak | \t\t\t\t\timage media table template preview | code selectall"},templates:{type:Array,default:()=>[]},options:{type:Object,default:()=>{}}},data(){return{init:{language_url:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/langs/zh_CN.js",language:"zh_CN",skin_url:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/skins/ui/oxide",content_css:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/tinymce/skins/content/default/content.css",menubar:!1,statusbar:!0,plugins:this.plugins,toolbar:this.toolbar,toolbar_mode:"sliding",font_size_formats:"12px 14px 16px 18px 22px 24px 36px 72px",height:this.height,placeholder:this.placeholder,branding:!1,resize:!0,elementpath:!0,content_style:"",templates:this.templates,quickbars_selection_toolbar:"forecolor backcolor bold italic underline strikethrough link",quickbars_image_toolbar:"alignleft aligncenter alignright",quickbars_insert_toolbar:!1,image_caption:!0,image_advtab:!0,convert_urls:!1,images_upload_handler:function(e){return new Promise(((t,n)=>{const i=new FormData;i.append("files",e.blob(),e.filename()),o.Z.common.upload.post(i).then((e=>{t(e.data.url)})).catch((()=>{n("Image upload failed")}))}))},setup:function(e){e.on("init",(function(){this.getBody().style.fontSize="14px"})),e.on("OpenWindow",(function(e){var t=document.querySelector(".el-drawer.open"),n=e.target.editorContainer;if(t&&t.contains(n)){var i=document.activeElement;setTimeout((()=>{document.activeElement.blur(),i.focus()}),0)}}))},...this.options},contentValue:this.modelValue}},watch:{modelValue(e){this.contentValue=e},contentValue(e){this.$emit("update:modelValue",e)}},mounted(){console.log({NODE_ENV:"production",VUE_APP_TITLE:"X-PHP",BASE_URL:"https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/"}),c().init({})},methods:{onClick(e){this.$emit("onClick",e,c())}}}),u=n(3744);const p=(0,u.Z)(d,[["render",l]]);var m=p}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[467],{2467:function(e,l,a){a.r(l),a.d(l,{default:function(){return n}});var u=a(6252);const m=(0,u._)("div",{class:"el-form-item-msg"},"账号信息用于登录,系统不允许修改",-1);function o(e,l,a,o,t,d){const r=(0,u.up)("el-input"),n=(0,u.up)("el-form-item"),s=(0,u.up)("x-upload"),p=(0,u.up)("el-option"),i=(0,u.up)("el-select"),f=(0,u.up)("x-item"),c=(0,u.up)("el-button"),b=(0,u.up)("el-form"),V=(0,u.up)("el-card");return(0,u.wg)(),(0,u.j4)(V,{shadow:"never",header:"个人信息",style:{margin:"10px"}},{default:(0,u.w5)((()=>[(0,u.Wm)(b,{ref:"form",model:t.user,"label-width":"120px",style:{"margin-top":"10px"}},{default:(0,u.w5)((()=>[(0,u.Wm)(n,{label:"账号"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.username,"onUpdate:modelValue":l[0]||(l[0]=e=>t.user.username=e),disabled:""},null,8,["modelValue"]),m])),_:1}),(0,u.Wm)(n,{label:"头像"},{default:(0,u.w5)((()=>[(0,u.Wm)(s,{modelValue:t.user.avatar,"onUpdate:modelValue":l[1]||(l[1]=e=>t.user.avatar=e),icon:"el-icon-avatar",cropper:!0,compress:1,aspectRatio:1},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"姓名"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.nickname,"onUpdate:modelValue":l[2]||(l[2]=e=>t.user.nickname=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"邮箱"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.email,"onUpdate:modelValue":l[3]||(l[3]=e=>t.user.email=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"手机号"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.mobile,"onUpdate:modelValue":l[4]||(l[4]=e=>t.user.mobile=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"性别"},{default:(0,u.w5)((()=>[(0,u.Wm)(i,{modelValue:t.user.gender,"onUpdate:modelValue":l[5]||(l[5]=e=>t.user.gender=e),placeholder:"请选择"},{default:(0,u.w5)((()=>[(0,u.Wm)(p,{label:"保密",value:"0"}),(0,u.Wm)(p,{label:"男",value:"1"}),(0,u.Wm)(p,{label:"女",value:"2"})])),_:1},8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"个性签名"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.about,"onUpdate:modelValue":l[6]||(l[6]=e=>t.user.about=e),type:"textarea"},null,8,["modelValue"])])),_:1}),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(t.form,((e,a)=>((0,u.wg)(),(0,u.j4)(n,{label:e.label,key:a},{default:(0,u.w5)((()=>[(0,u.Wm)(f,{item:e,modelValue:t.user,"onUpdate:modelValue":l[7]||(l[7]=e=>t.user=e)},null,8,["item","modelValue"])])),_:2},1032,["label"])))),128)),(0,u.Wm)(n,null,{default:(0,u.w5)((()=>[(0,u.Wm)(c,{type:"primary",onClick:d.submit},{default:(0,u.w5)((()=>[(0,u.Uk)("保存")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])])),_:1})}var t={props:{data:{type:Object,default:()=>({})}},components:{},data(){return{user:{},form:[],token:null}},watch:{},mounted(){},methods:{updateParentValue(e){console.log(e),alert("fdsafa")},submit(){alert(1)}}},d=a(3744);const r=(0,d.Z)(t,[["render",o]]);var n=r}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[715],{2715:function(e,l,a){a.r(l),a.d(l,{default:function(){return n}});var u=a(6808);const m=(0,u._)("div",{class:"el-form-item-msg"},"账号信息用于登录,系统不允许修改",-1);function o(e,l,a,o,t,d){const r=(0,u.up)("el-input"),n=(0,u.up)("el-form-item"),s=(0,u.up)("x-upload"),p=(0,u.up)("el-option"),i=(0,u.up)("el-select"),f=(0,u.up)("x-item"),c=(0,u.up)("el-button"),b=(0,u.up)("el-form"),V=(0,u.up)("el-card");return(0,u.wg)(),(0,u.j4)(V,{shadow:"never",header:"个人信息",style:{margin:"10px"}},{default:(0,u.w5)((()=>[(0,u.Wm)(b,{ref:"form",model:t.user,"label-width":"120px",style:{"margin-top":"10px"}},{default:(0,u.w5)((()=>[(0,u.Wm)(n,{label:"账号"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.username,"onUpdate:modelValue":l[0]||(l[0]=e=>t.user.username=e),disabled:""},null,8,["modelValue"]),m])),_:1}),(0,u.Wm)(n,{label:"头像"},{default:(0,u.w5)((()=>[(0,u.Wm)(s,{modelValue:t.user.avatar,"onUpdate:modelValue":l[1]||(l[1]=e=>t.user.avatar=e),icon:"el-icon-avatar",cropper:!0,compress:1,aspectRatio:1},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"姓名"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.nickname,"onUpdate:modelValue":l[2]||(l[2]=e=>t.user.nickname=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"邮箱"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.email,"onUpdate:modelValue":l[3]||(l[3]=e=>t.user.email=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"手机号"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.mobile,"onUpdate:modelValue":l[4]||(l[4]=e=>t.user.mobile=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"性别"},{default:(0,u.w5)((()=>[(0,u.Wm)(i,{modelValue:t.user.gender,"onUpdate:modelValue":l[5]||(l[5]=e=>t.user.gender=e),placeholder:"请选择"},{default:(0,u.w5)((()=>[(0,u.Wm)(p,{label:"保密",value:"0"}),(0,u.Wm)(p,{label:"男",value:"1"}),(0,u.Wm)(p,{label:"女",value:"2"})])),_:1},8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"个性签名"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.about,"onUpdate:modelValue":l[6]||(l[6]=e=>t.user.about=e),type:"textarea"},null,8,["modelValue"])])),_:1}),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(t.form,((e,a)=>((0,u.wg)(),(0,u.j4)(n,{label:e.label,key:a},{default:(0,u.w5)((()=>[(0,u.Wm)(f,{item:e,modelValue:t.user,"onUpdate:modelValue":l[7]||(l[7]=e=>t.user=e)},null,8,["item","modelValue"])])),_:2},1032,["label"])))),128)),(0,u.Wm)(n,null,{default:(0,u.w5)((()=>[(0,u.Wm)(c,{type:"primary",onClick:d.submit},{default:(0,u.w5)((()=>[(0,u.Uk)("保存")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])])),_:1})}var t={props:{data:{type:Object,default:()=>({})}},components:{},data(){return{user:{},form:[],token:null}},watch:{},mounted(){},methods:{updateParentValue(e){console.log(e),alert("fdsafa")},submit(){alert(1)}}},d=a(8700);const r=(0,d.Z)(t,[["render",o]]);var n=r}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[623],{4623:function(r,n,o){o.r(n),o.d(n,{default:function(){return f}});var e=o(6252),t=o(5747);const a=r=>((0,e.dD)("data-v-73690a9f"),r=r(),(0,e.Cn)(),r),c={class:"router-err"},u=a((()=>(0,e._)("div",{class:"router-err__icon"},[(0,e._)("img",{src:t})],-1))),i={class:"router-err__content"},l=a((()=>(0,e._)("h2",null,"无权限或找不到页面",-1))),s=a((()=>(0,e._)("p",null,"当前页面无权限访问或者打开了一个不存在的链接,请检查当前账户权限和链接的可访问性。",-1)));function d(r,n,o,t,a,d){const _=(0,e.up)("el-button");return(0,e.wg)(),(0,e.iD)("div",c,[u,(0,e._)("div",i,[l,s,(0,e.Wm)(_,{type:"primary",plain:"",round:"",onClick:d.gohome},{default:(0,e.w5)((()=>[(0,e.Uk)("返回首页")])),_:1},8,["onClick"]),(0,e.Wm)(_,{type:"primary",round:"",onClick:d.goback},{default:(0,e.w5)((()=>[(0,e.Uk)("返回上一页")])),_:1},8,["onClick"])])])}var _={methods:{gohome(){location.href="#/"},goback(){this.$router.go(-1)}}},p=o(3744);const k=(0,p.Z)(_,[["render",d],["__scopeId","data-v-73690a9f"]]);var f=k}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[727],{4727:function(r,n,o){o.r(n),o.d(n,{default:function(){return f}});var e=o(6808),t=o(5747);const a=r=>((0,e.dD)("data-v-73690a9f"),r=r(),(0,e.Cn)(),r),c={class:"router-err"},u=a((()=>(0,e._)("div",{class:"router-err__icon"},[(0,e._)("img",{src:t})],-1))),i={class:"router-err__content"},l=a((()=>(0,e._)("h2",null,"无权限或找不到页面",-1))),s=a((()=>(0,e._)("p",null,"当前页面无权限访问或者打开了一个不存在的链接,请检查当前账户权限和链接的可访问性。",-1)));function d(r,n,o,t,a,d){const _=(0,e.up)("el-button");return(0,e.wg)(),(0,e.iD)("div",c,[u,(0,e._)("div",i,[l,s,(0,e.Wm)(_,{type:"primary",plain:"",round:"",onClick:d.gohome},{default:(0,e.w5)((()=>[(0,e.Uk)("返回首页")])),_:1},8,["onClick"]),(0,e.Wm)(_,{type:"primary",round:"",onClick:d.goback},{default:(0,e.w5)((()=>[(0,e.Uk)("返回上一页")])),_:1},8,["onClick"])])])}var _={methods:{gohome(){location.href="#/"},goback(){this.$router.go(-1)}}},p=o(8700);const k=(0,p.Z)(_,[["render",d],["__scopeId","data-v-73690a9f"]]);var f=k}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[189],{5189:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var o=t(6252);const a={key:0};function d(e,n,t,d,u,r){const s=(0,o.up)("el-skeleton"),i=(0,o.up)("el-card"),l=(0,o.up)("el-main"),p=(0,o.up)("widgets");return(0,o.wg)(),(0,o.iD)(o.HY,null,[u.pageLoading?((0,o.wg)(),(0,o.iD)("div",a,[(0,o.Wm)(l,null,{default:(0,o.w5)((()=>[(0,o.Wm)(i,{shadow:"never"},{default:(0,o.w5)((()=>[(0,o.Wm)(s,{rows:1})])),_:1}),(0,o.Wm)(i,{shadow:"never",style:{"margin-top":"15px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(s)])),_:1})])),_:1})])):(0,o.kq)("",!0),(0,o.Wm)(p,{onOnMounted:r.onMounted},null,8,["onOnMounted"])],64)}const u=(0,o.RC)((()=>Promise.all([t.e(759),t.e(54),t.e(915),t.e(309)]).then(t.bind(t,9309))));var r={name:"home",components:{widgets:u},data(){return{pageLoading:!0}},created(){},mounted(){},methods:{onMounted(){this.pageLoading=!1}}},s=t(3744);const i=(0,s.Z)(r,[["render",d]]);var l=i}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[750],{4750:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var o=t(6808);const a={key:0};function d(e,n,t,d,u,r){const s=(0,o.up)("el-skeleton"),i=(0,o.up)("el-card"),l=(0,o.up)("el-main"),p=(0,o.up)("widgets");return(0,o.wg)(),(0,o.iD)(o.HY,null,[u.pageLoading?((0,o.wg)(),(0,o.iD)("div",a,[(0,o.Wm)(l,null,{default:(0,o.w5)((()=>[(0,o.Wm)(i,{shadow:"never"},{default:(0,o.w5)((()=>[(0,o.Wm)(s,{rows:1})])),_:1}),(0,o.Wm)(i,{shadow:"never",style:{"margin-top":"15px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(s)])),_:1})])),_:1})])):(0,o.kq)("",!0),(0,o.Wm)(p,{onOnMounted:r.onMounted},null,8,["onOnMounted"])],64)}const u=(0,o.RC)((()=>Promise.all([t.e(759),t.e(54),t.e(915),t.e(853)]).then(t.bind(t,853))));var r={name:"home",components:{widgets:u},data(){return{pageLoading:!0}},created(){},mounted(){},methods:{onMounted(){this.pageLoading=!1}}},s=t(8700);const i=(0,s.Z)(r,[["render",d]]);var l=i}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[863],{8863:function(e,l,t){t.r(l),t.d(l,{default:function(){return g}});var n=t(6252),a=t(3577),o=t(5080);const c={class:"common-header-left"},i={class:"common-header-logo"},s=["alt"],r={class:"common-header-title"},u={class:"common-header-right"},d={class:"common-container"},m={class:"common-title"},_={class:"common-main el-card"};function f(e,l,t,f,p,h){const w=(0,n.up)("router-link"),g=(0,n.up)("el-header"),v=(0,n.up)("el-main"),k=(0,n.up)("el-container");return(0,n.wg)(),(0,n.j4)(k,null,{default:(0,n.w5)((()=>[(0,n.Wm)(g,{style:{height:"50px"}},{default:(0,n.w5)((()=>[(0,n._)("div",c,[(0,n._)("div",i,[(0,n._)("img",{alt:e.$config.APP_NAME,src:o},null,8,s),(0,n._)("label",null,(0,a.zw)(e.$config.APP_NAME),1)]),(0,n._)("div",r,(0,a.zw)(t.title),1)]),(0,n._)("div",u,[(0,n.Wm)(w,{to:"/login"},{default:(0,n.w5)((()=>[(0,n.Uk)("返回登录")])),_:1})])])),_:1}),(0,n.Wm)(v,null,{default:(0,n.w5)((()=>[(0,n._)("div",d,[(0,n._)("h2",m,(0,a.zw)(t.title),1),(0,n._)("div",_,[(0,n.WI)(e.$slots,"default")])])])),_:3})])),_:3})}var p={props:{title:{type:String,default:""}}},h=t(3744);const w=(0,h.Z)(p,[["render",f]]);var g=w}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[778],{3778:function(e,l,t){t.r(l),t.d(l,{default:function(){return g}});var n=t(6808),a=t(9511),o=t(5080);const c={class:"common-header-left"},i={class:"common-header-logo"},s=["alt"],r={class:"common-header-title"},u={class:"common-header-right"},d={class:"common-container"},m={class:"common-title"},_={class:"common-main el-card"};function f(e,l,t,f,p,h){const w=(0,n.up)("router-link"),g=(0,n.up)("el-header"),v=(0,n.up)("el-main"),k=(0,n.up)("el-container");return(0,n.wg)(),(0,n.j4)(k,null,{default:(0,n.w5)((()=>[(0,n.Wm)(g,{style:{height:"50px"}},{default:(0,n.w5)((()=>[(0,n._)("div",c,[(0,n._)("div",i,[(0,n._)("img",{alt:e.$config.APP_NAME,src:o},null,8,s),(0,n._)("label",null,(0,a.zw)(e.$config.APP_NAME),1)]),(0,n._)("div",r,(0,a.zw)(t.title),1)]),(0,n._)("div",u,[(0,n.Wm)(w,{to:"/login"},{default:(0,n.w5)((()=>[(0,n.Uk)("返回登录")])),_:1})])])),_:1}),(0,n.Wm)(v,null,{default:(0,n.w5)((()=>[(0,n._)("div",d,[(0,n._)("h2",m,(0,a.zw)(t.title),1),(0,n._)("div",_,[(0,n.WI)(e.$slots,"default")])])])),_:3})])),_:3})}var p={props:{title:{type:String,default:""}}},h=t(8700);const w=(0,h.Z)(p,[["render",f]]);var g=w}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[78],{7078:function(e,n,t){t.r(n),t.d(n,{default:function(){return o}});var u=t(6252);function a(e,n,t,a,r,c){const s=(0,u.up)("table2");return(0,u.wg)(),(0,u.j4)(s,{name:"user"})}var r=t(8362),c={name:"user",components:{table2:r["default"]},data(){return{}},computed:{},watch:{},mounted(){},methods:{}},s=t(3744);const d=(0,s.Z)(c,[["render",a]]);var o=d}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[798],{798:function(t,o,e){e.r(o),e.d(o,{default:function(){return C}});var i=e(6252),a=e(3577);const s=t=>((0,i.dD)("data-v-568968a7"),t=t(),(0,i.Cn)(),t),n={class:"login_bg"},l={class:"login_adv",style:{"background-image":"url(https://x-mo.cn:8888/background)"}},c=s((()=>(0,i._)("div",{class:"login_adv__title"},[(0,i._)("h2",null,"X-PHP"),(0,i._)("p",null,"以优雅的代码,打造精致的应用。高性能 / 精致 / 优雅")],-1))),d=s((()=>(0,i._)("div",{class:"login_adv__mask"},null,-1))),r={class:"login_adv__bottom"},g={class:"login_main"},h={class:"login_config"},u={class:"login-form"},m={class:"login-header"},_={class:"logo"},p=["alt","src"],f={class:"login-oauth"},v={class:"qrCodeLogin"},w=s((()=>(0,i._)("p",{class:"msg"},"请使用微信扫一扫登录 | 模拟3秒后自动扫描",-1))),L={key:0,class:"qrCodeLogin-result"};function $(t,o,e,s,$,k){const W=(0,i.up)("el-button"),A=(0,i.up)("password-form"),P=(0,i.up)("el-tab-pane"),b=(0,i.up)("el-tabs"),q=(0,i.up)("el-divider"),C=(0,i.up)("x-qr-code"),y=(0,i.up)("el-result"),E=(0,i.up)("el-dialog");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",n,[(0,i._)("div",l,[c,d,(0,i._)("div",r," © "+(0,a.zw)(t.$config.APP_NAME)+" "+(0,a.zw)(t.$config.APP_VER),1)]),(0,i._)("div",g,[(0,i._)("div",h,[(0,i.Wm)(W,{icon:$.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:k.configDark},null,8,["icon","onClick"])]),(0,i._)("div",u,[(0,i._)("div",m,[(0,i._)("div",_,[(0,i._)("img",{alt:t.$config.APP_NAME,src:$.appLogo},null,8,p),(0,i._)("label",null,(0,a.zw)(t.$config.APP_NAME),1)])]),(0,i.Wm)(b,null,{default:(0,i.w5)((()=>[(0,i.Wm)(P,{label:"登录",lazy:""},{default:(0,i.w5)((()=>[(0,i.Wm)(A)])),_:1})])),_:1}),t.$config.MY_SHOW_LOGIN_OAUTH?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(q,null,{default:(0,i.w5)((()=>[(0,i.Uk)("其它登录")])),_:1}),(0,i._)("div",f,[(0,i.Wm)(W,{type:"success",icon:"x-icon-wechat",circle:"",onClick:k.wechatLogin},null,8,["onClick"])])],64)):(0,i.kq)("",!0)])])]),(0,i.Wm)(E,{modelValue:$.showWechatLogin,"onUpdate:modelValue":o[0]||(o[0]=t=>$.showWechatLogin=t),title:"微信登录",width:400,"destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i._)("div",v,[(0,i.Wm)(C,{class:"qrCode",text:$.WechatLoginCode,size:200},null,8,["text"]),w,$.isWechatLoginResult?((0,i.wg)(),(0,i.iD)("div",L,[(0,i.Wm)(y,{icon:"success",title:"已扫描","sub-title":"请在设备中点击授权登录"})])):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])],64)}var k=e(6874),W=e(2247),A=e(5080),P={components:{passwordForm:k["default"],phoneForm:W["default"]},data(){return{config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1},lang:[{name:"简体中文",value:"zh-cn"},{name:"English",value:"en"}],WechatLoginCode:"",WechatLoginuniqid:"",appLogo:"",showWechatLogin:!1,isWechatLoginResult:!1}},watch:{"config.dark"(t){t?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",t)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))}},created:function(){this.appLogo=this.$tool.data.get("appLogo")||this.$config.APP_LOGO||A,this.$tool.cookie.remove(this.$config.SESSIONNAME),this.$tool.data.remove("user"),this.$tool.data.remove("menu"),this.$tool.data.remove("permissions"),this.$tool.data.remove("dashboardgrid"),this.$tool.data.remove("grid"),this.$tool.store.remove("token"),this.$store.commit("clearViewTags"),this.$store.commit("clearKeepLive"),this.$store.commit("clearIframeList")},methods:{configDark(){this.config.dark=!this.config.dark},long_contact:function(){if(!this.WechatLoginuniqid)return!1;setTimeout((async()=>{var t=await this.$http.post("login/wechatSubmit",{uniqid:this.WechatLoginuniqid});if(201==t.code)this.showWechatLogin=!1,this.$message.warning(t.message);else if(202==t.code)this.long_contact();else if(200==t.code){this.showWechatLogin=!1,this.$tool.cookie.set(this.$config.SESSIONNAME,t.data.token,{expires:31104e3});const o=this.$route.query.redirect||"/";return this.$router.replace({path:o}),this.$message.success("Login Success 登录成功"),this.islogin=!1,!1}}),1e3)},async wechatLogin(){var t=await this.$http.get("login/wechatQrcode");if(200!=t.code)return this.$message.warning(t.message),!1;this.showWechatLogin=!0,this.WechatLoginCode=t.data.qrcodeurl,this.WechatLoginuniqid=t.data.uniqid,this.long_contact()}}},b=e(3744);const q=(0,b.Z)(P,[["render",$],["__scopeId","data-v-568968a7"]]);var C=q}}]);

1
dist/static/js/80.38558e18.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/static/js/853.70c605d9.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[873],{7873:function(e,t,i){i.r(t),i.d(t,{default:function(){return b}});var s=i(6252),a=i(3577);const l={class:"message-body"},n={class:"message-content"},o={class:"message-body-flexbox"},d={class:"message-body-item"};function c(e,t,i,c,h,u){const r=(0,s.up)("x-page-header"),m=(0,s.up)("x-menu-item"),g=(0,s.up)("table2"),b=(0,s.Q2)("loading");return(0,s.wg)(),(0,s.iD)("div",l,[(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",n,[(0,s._)("div",{class:"message-body-side",style:(0,a.j5)({width:h.width+"px"})},[(0,s._)("div",o,[(0,s.Wm)(r,{title:h.title,icon:h.icon},null,8,["title","icon"])]),(0,s._)("div",d,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(h.items,((e,t)=>((0,s.wg)(),(0,s.j4)(m,{key:t,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:h.search[h.key]==e.value,onClick:t=>u.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])],4),(0,s._)("div",{class:"message-body-content",style:(0,a.j5)({"margin-left":h.width+"px"})},[(0,s.Wm)(g,{ref:"table",onChildLoaded:u.getChildData},null,8,["onChildLoaded"])],4)])),[[b,h.loading]])])}var h=i(8046),u=i(8362),r={name:"table_3",components:{table2:u["default"],xMenuItem:h.Z},data(){return{loading:!0,icon:"",width:180,title:"",items:[],key:"",search:{}}},methods:{sideClick(e){this.info=e,this.search[this.key||"type"]=e.value,this.$refs.table.filterChange(this.search)},getChildData(e){Object.assign(this.$data,e),this.loading=!1}}},m=i(3744);const g=(0,m.Z)(r,[["render",c],["__scopeId","data-v-03db4287"]]);var b=g}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[749],{8749:function(e,l,t){t.r(l),t.d(l,{default:function(){return p}});var a=t(6252),u=t(9963);function o(e,l,t,o,n,d){const m=(0,a.up)("el-input"),p=(0,a.up)("el-form-item"),r=(0,a.up)("el-button"),i=(0,a.up)("el-form"),c=(0,a.up)("el-table-column"),s=(0,a.up)("x-table-select");return(0,a.wg)(),(0,a.j4)(s,(0,a.dG)({modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e)},t.item.options,{style:{width:"100%"}}),{header:(0,a.w5)((({data:e,form:l,submit:t})=>[l&&l.length>0?((0,a.wg)(),(0,a.j4)(i,{key:0,inline:!0,model:e,onKeyup:(0,u.D2)(t,["enter"])},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(l,((l,t)=>((0,a.wg)(),(0,a.j4)(p,{style:{"margin-bottom":"0px"},key:t},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{modelValue:e[l.name],"onUpdate:modelValue":t=>e[l.name]=t,placeholder:l.placeholder},null,8,["modelValue","onUpdate:modelValue","placeholder"])])),_:2},1024)))),128)),(0,a.Wm)(p,{style:{"margin-bottom":"0px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{type:"primary",onClick:t},{default:(0,a.w5)((()=>[(0,a.Uk)("查询")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1032,["model","onKeyup"])):(0,a.kq)("",!0)])),default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.item.options.column,((e,l)=>((0,a.wg)(),(0,a.j4)(c,(0,a.dG)({key:l},e),null,16)))),128))])),_:1},16,["modelValue"])}var n={name:"tableselectRender",props:{modelValue:[String,Number,Boolean,Date,Object,Array],item:{type:Object,default:()=>{}}},data(){return{value:this.modelValue}},watch:{value(e){this.$emit("update:modelValue",e)}},mounted(){},methods:{}},d=t(3744);const m=(0,d.Z)(n,[["render",o]]);var p=m}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[873],{6149:function(e,l,t){t.r(l),t.d(l,{default:function(){return p}});var a=t(6808),u=t(1441);function o(e,l,t,o,n,d){const m=(0,a.up)("el-input"),p=(0,a.up)("el-form-item"),r=(0,a.up)("el-button"),i=(0,a.up)("el-form"),c=(0,a.up)("el-table-column"),s=(0,a.up)("x-table-select");return(0,a.wg)(),(0,a.j4)(s,(0,a.dG)({modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e)},t.item.options,{style:{width:"100%"}}),{header:(0,a.w5)((({data:e,form:l,submit:t})=>[l&&l.length>0?((0,a.wg)(),(0,a.j4)(i,{key:0,inline:!0,model:e,onKeyup:(0,u.D2)(t,["enter"])},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(l,((l,t)=>((0,a.wg)(),(0,a.j4)(p,{style:{"margin-bottom":"0px"},key:t},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{modelValue:e[l.name],"onUpdate:modelValue":t=>e[l.name]=t,placeholder:l.placeholder},null,8,["modelValue","onUpdate:modelValue","placeholder"])])),_:2},1024)))),128)),(0,a.Wm)(p,{style:{"margin-bottom":"0px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{type:"primary",onClick:t},{default:(0,a.w5)((()=>[(0,a.Uk)("查询")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1032,["model","onKeyup"])):(0,a.kq)("",!0)])),default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.item.options.column,((e,l)=>((0,a.wg)(),(0,a.j4)(c,(0,a.dG)({key:l},e),null,16)))),128))])),_:1},16,["modelValue"])}var n={name:"tableselectRender",props:{modelValue:[String,Number,Boolean,Date,Object,Array],item:{type:Object,default:()=>{}}},data(){return{value:this.modelValue}},watch:{value(e){this.$emit("update:modelValue",e)}},mounted(){},methods:{}},d=t(8700);const m=(0,d.Z)(n,[["render",o]]);var p=m}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[732],{3732:function(e,t,l){l.r(t),l.d(t,{default:function(){return _}});var i=l(6252),s=l(3577);const a=e=>((0,i.dD)("data-v-116ca45f"),e=e(),(0,i.Cn)(),e),o=a((()=>(0,i._)("p",null,"添加计划任务",-1))),n=a((()=>(0,i._)("h4",null,"执行类",-1))),d=a((()=>(0,i._)("h4",null,"定时规则",-1))),u={class:"bottom"},r={class:"state"},c={class:"handler"};function m(e,t,l,a,m,p){const h=(0,i.up)("el-icon-plus"),g=(0,i.up)("el-icon"),f=(0,i.up)("el-card"),w=(0,i.up)("el-col"),_=(0,i.up)("el-tag"),k=(0,i.up)("el-button"),v=(0,i.up)("el-popconfirm"),b=(0,i.up)("el-dropdown-item"),$=(0,i.up)("el-dropdown-menu"),W=(0,i.up)("el-dropdown"),y=(0,i.up)("el-row"),C=(0,i.up)("el-main"),x=(0,i.up)("save-dialog"),D=(0,i.up)("logs"),z=(0,i.up)("el-drawer");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i.Wm)(C,null,{default:(0,i.w5)((()=>[(0,i.Wm)(y,{gutter:15},{default:(0,i.w5)((()=>[(0,i.Wm)(w,{xl:6,lg:6,md:8,sm:12,xs:24},{default:(0,i.w5)((()=>[(0,i.Wm)(f,{class:"task task-add",shadow:"never",onClick:p.add},{default:(0,i.w5)((()=>[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i.Wm)(h)])),_:1}),o])),_:1},8,["onClick"])])),_:1}),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(m.list,(e=>((0,i.wg)(),(0,i.j4)(w,{xl:6,lg:6,md:8,sm:12,xs:24,key:e.id},{default:(0,i.w5)((()=>[(0,i.Wm)(f,{class:"task task-item",shadow:"hover"},{default:(0,i.w5)((()=>[(0,i._)("h2",null,(0,s.zw)(e.title),1),(0,i._)("ul",null,[(0,i._)("li",null,[n,(0,i._)("p",null,(0,s.zw)(e.type),1)]),(0,i._)("li",null,[d,(0,i._)("p",null,[(0,i.Uk)((0,s.zw)(e.schedule)+" ",1),(0,i._)("code",null,"("+(0,s.zw)(e.executetime)+")",1)])])]),(0,i._)("div",u,[(0,i._)("div",r,["1"==e.status?((0,i.wg)(),(0,i.j4)(_,{key:0,size:"small"},{default:(0,i.w5)((()=>[(0,i.Uk)("准备就绪")])),_:1})):(0,i.kq)("",!0),"0"==e.status?((0,i.wg)(),(0,i.j4)(_,{key:1,size:"small",type:"info"},{default:(0,i.w5)((()=>[(0,i.Uk)("停用")])),_:1})):(0,i.kq)("",!0)]),(0,i._)("div",c,[(0,i.Wm)(v,{title:"立即执行吗?",onConfirm:t=>p.run(e)},{reference:(0,i.w5)((()=>[(0,i.Wm)(k,{type:"primary",icon:"el-icon-caret-right",circle:""})])),_:2},1032,["onConfirm"]),(0,i.Wm)(W,{trigger:"click"},{dropdown:(0,i.w5)((()=>[(0,i.Wm)($,null,{default:(0,i.w5)((()=>[(0,i.Wm)(b,{onClick:t=>p.edit(e)},{default:(0,i.w5)((()=>[(0,i.Uk)("编辑")])),_:2},1032,["onClick"]),(0,i.Wm)(b,{onClick:t=>p.logs(e)},{default:(0,i.w5)((()=>[(0,i.Uk)("日志")])),_:2},1032,["onClick"]),(0,i.Wm)(b,{onClick:t=>p.crontabdelete(e),divided:""},{default:(0,i.w5)((()=>[(0,i.Uk)("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),default:(0,i.w5)((()=>[(0,i.Wm)(k,{type:"primary",icon:"el-icon-more",circle:"",plain:""})])),_:2},1024)])])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),m.dialog.save?((0,i.wg)(),(0,i.j4)(x,{key:0,ref:"saveDialog",onSuccess:p.handleSuccess,onClosed:t[0]||(t[0]=e=>m.dialog.save=!1)},null,8,["onSuccess"])):(0,i.kq)("",!0),(0,i.Wm)(z,{title:m.loginfo.title+"计划任务日志",modelValue:m.dialog.logsVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>m.dialog.logsVisible=e),size:600,direction:"rtl","destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i.Wm)(D,{ref:"logs"},null,512)])),_:1},8,["title","modelValue"])],64)}l(7658);var p=l(1005),h=l(2953),g={name:"crontab",components:{saveDialog:p["default"],logs:h["default"]},provide(){return{list:this.list}},data(){return{dialog:{save:!1,logsVisible:!1},list:[],loginfo:{},logslist:[]}},mounted(){this.loaddata()},methods:{loaddata(){this.$http.get("crontab/admin/lists").then((e=>{200!=e.code?this.$alert(e.message,"提示",{type:"error"}):this.list=e.data}))},add(){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open()}))},edit(e){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open("edit").setData(e)}))},crontabdelete(e){this.$confirm(`确认删除 ${e.title} 计划任务吗?`,"提示",{type:"warning",confirmButtonText:"删除",confirmButtonClass:"el-button--danger"}).then((()=>{this.$http.get("crontab/admin/delete").then((t=>{200!=t.code?this.$alert(t.message,"提示",{type:"error"}):this.list.splice(this.list.findIndex((t=>t.id===e.id)),1)}))})).catch((()=>{}))},logs(e){this.loginfo=e,this.dialog.logsVisible=!0,this.$nextTick((()=>{this.$refs.logs.setApi("crontab/admin/logs?id="+e.id)}))},run(e){this.$message.success(`已成功执行计划任务:${e.title}`)},handleSuccess(e,t){this.$http.post("crontab/admin/submit",{type:t,info:e}).then((l=>{if(this.$refs.saveDialog.isSaveing=!1,200==l.code)return l.data&&l.data.id?"add"==t?this.list.push(e):"edit"==t&&this.list.filter((t=>t.id===e.id)).forEach((t=>{Object.assign(t,e)})):this.loaddata({}),this.$refs.saveDialog.visible=!1,void this.$message.success(l.message||"操作成功");this.$alert(l.message||"错误","提示",{type:"error"})}))}}},f=l(3744);const w=(0,f.Z)(g,[["render",m],["__scopeId","data-v-116ca45f"]]);var _=w}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[924],{5924:function(e,t,l){l.r(t),l.d(t,{default:function(){return _}});var i=l(6808),s=l(9511);const a=e=>((0,i.dD)("data-v-116ca45f"),e=e(),(0,i.Cn)(),e),o=a((()=>(0,i._)("p",null,"添加计划任务",-1))),n=a((()=>(0,i._)("h4",null,"执行类",-1))),d=a((()=>(0,i._)("h4",null,"定时规则",-1))),u={class:"bottom"},r={class:"state"},c={class:"handler"};function m(e,t,l,a,m,p){const h=(0,i.up)("el-icon-plus"),g=(0,i.up)("el-icon"),f=(0,i.up)("el-card"),w=(0,i.up)("el-col"),_=(0,i.up)("el-tag"),k=(0,i.up)("el-button"),v=(0,i.up)("el-popconfirm"),b=(0,i.up)("el-dropdown-item"),$=(0,i.up)("el-dropdown-menu"),W=(0,i.up)("el-dropdown"),y=(0,i.up)("el-row"),C=(0,i.up)("el-main"),x=(0,i.up)("save-dialog"),D=(0,i.up)("logs"),z=(0,i.up)("el-drawer");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i.Wm)(C,null,{default:(0,i.w5)((()=>[(0,i.Wm)(y,{gutter:15},{default:(0,i.w5)((()=>[(0,i.Wm)(w,{xl:6,lg:6,md:8,sm:12,xs:24},{default:(0,i.w5)((()=>[(0,i.Wm)(f,{class:"task task-add",shadow:"never",onClick:p.add},{default:(0,i.w5)((()=>[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i.Wm)(h)])),_:1}),o])),_:1},8,["onClick"])])),_:1}),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(m.list,(e=>((0,i.wg)(),(0,i.j4)(w,{xl:6,lg:6,md:8,sm:12,xs:24,key:e.id},{default:(0,i.w5)((()=>[(0,i.Wm)(f,{class:"task task-item",shadow:"hover"},{default:(0,i.w5)((()=>[(0,i._)("h2",null,(0,s.zw)(e.title),1),(0,i._)("ul",null,[(0,i._)("li",null,[n,(0,i._)("p",null,(0,s.zw)(e.type),1)]),(0,i._)("li",null,[d,(0,i._)("p",null,[(0,i.Uk)((0,s.zw)(e.schedule)+" ",1),(0,i._)("code",null,"("+(0,s.zw)(e.executetime)+")",1)])])]),(0,i._)("div",u,[(0,i._)("div",r,["1"==e.status?((0,i.wg)(),(0,i.j4)(_,{key:0,size:"small"},{default:(0,i.w5)((()=>[(0,i.Uk)("准备就绪")])),_:1})):(0,i.kq)("",!0),"0"==e.status?((0,i.wg)(),(0,i.j4)(_,{key:1,size:"small",type:"info"},{default:(0,i.w5)((()=>[(0,i.Uk)("停用")])),_:1})):(0,i.kq)("",!0)]),(0,i._)("div",c,[(0,i.Wm)(v,{title:"立即执行吗?",onConfirm:t=>p.run(e)},{reference:(0,i.w5)((()=>[(0,i.Wm)(k,{type:"primary",icon:"el-icon-caret-right",circle:""})])),_:2},1032,["onConfirm"]),(0,i.Wm)(W,{trigger:"click"},{dropdown:(0,i.w5)((()=>[(0,i.Wm)($,null,{default:(0,i.w5)((()=>[(0,i.Wm)(b,{onClick:t=>p.edit(e)},{default:(0,i.w5)((()=>[(0,i.Uk)("编辑")])),_:2},1032,["onClick"]),(0,i.Wm)(b,{onClick:t=>p.logs(e)},{default:(0,i.w5)((()=>[(0,i.Uk)("日志")])),_:2},1032,["onClick"]),(0,i.Wm)(b,{onClick:t=>p.crontabdelete(e),divided:""},{default:(0,i.w5)((()=>[(0,i.Uk)("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),default:(0,i.w5)((()=>[(0,i.Wm)(k,{type:"primary",icon:"el-icon-more",circle:"",plain:""})])),_:2},1024)])])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),m.dialog.save?((0,i.wg)(),(0,i.j4)(x,{key:0,ref:"saveDialog",onSuccess:p.handleSuccess,onClosed:t[0]||(t[0]=e=>m.dialog.save=!1)},null,8,["onSuccess"])):(0,i.kq)("",!0),(0,i.Wm)(z,{title:m.loginfo.title+"计划任务日志",modelValue:m.dialog.logsVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>m.dialog.logsVisible=e),size:600,direction:"rtl","destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i.Wm)(D,{ref:"logs"},null,512)])),_:1},8,["title","modelValue"])],64)}l(8311);var p=l(7467),h=l(5560),g={name:"crontab",components:{saveDialog:p["default"],logs:h["default"]},provide(){return{list:this.list}},data(){return{dialog:{save:!1,logsVisible:!1},list:[],loginfo:{},logslist:[]}},mounted(){this.loaddata()},methods:{loaddata(){this.$http.get("crontab/admin/lists").then((e=>{200!=e.code?this.$alert(e.message,"提示",{type:"error"}):this.list=e.data}))},add(){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open()}))},edit(e){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open("edit").setData(e)}))},crontabdelete(e){this.$confirm(`确认删除 ${e.title} 计划任务吗?`,"提示",{type:"warning",confirmButtonText:"删除",confirmButtonClass:"el-button--danger"}).then((()=>{this.$http.get("crontab/admin/delete").then((t=>{200!=t.code?this.$alert(t.message,"提示",{type:"error"}):this.list.splice(this.list.findIndex((t=>t.id===e.id)),1)}))})).catch((()=>{}))},logs(e){this.loginfo=e,this.dialog.logsVisible=!0,this.$nextTick((()=>{this.$refs.logs.setApi("crontab/admin/logs?id="+e.id)}))},run(e){this.$message.success(`已成功执行计划任务:${e.title}`)},handleSuccess(e,t){this.$http.post("crontab/admin/submit",{type:t,info:e}).then((l=>{if(this.$refs.saveDialog.isSaveing=!1,200==l.code)return l.data&&l.data.id?"add"==t?this.list.push(e):"edit"==t&&this.list.filter((t=>t.id===e.id)).forEach((t=>{Object.assign(t,e)})):this.loaddata({}),this.$refs.saveDialog.visible=!1,void this.$message.success(l.message||"操作成功");this.$alert(l.message||"错误","提示",{type:"error"})}))}}},f=l(8700);const w=(0,f.Z)(g,[["render",m],["__scopeId","data-v-116ca45f"]]);var _=w}}]);

1
dist/static/js/966.4ddce099.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[966],{8966:function(t,o,e){e.r(o),e.d(o,{default:function(){return C}});var i=e(6808),a=e(9511);const s=t=>((0,i.dD)("data-v-568968a7"),t=t(),(0,i.Cn)(),t),n={class:"login_bg"},l={class:"login_adv",style:{"background-image":"url(https://x-mo.cn:8888/background)"}},c=s((()=>(0,i._)("div",{class:"login_adv__title"},[(0,i._)("h2",null,"X-PHP"),(0,i._)("p",null,"以优雅的代码,打造精致的应用。高性能 / 精致 / 优雅")],-1))),d=s((()=>(0,i._)("div",{class:"login_adv__mask"},null,-1))),r={class:"login_adv__bottom"},g={class:"login_main"},h={class:"login_config"},u={class:"login-form"},m={class:"login-header"},_={class:"logo"},p=["alt","src"],f={class:"login-oauth"},v={class:"qrCodeLogin"},w=s((()=>(0,i._)("p",{class:"msg"},"请使用微信扫一扫登录 | 模拟3秒后自动扫描",-1))),L={key:0,class:"qrCodeLogin-result"};function $(t,o,e,s,$,k){const W=(0,i.up)("el-button"),A=(0,i.up)("password-form"),P=(0,i.up)("el-tab-pane"),b=(0,i.up)("el-tabs"),q=(0,i.up)("el-divider"),C=(0,i.up)("x-qr-code"),y=(0,i.up)("el-result"),E=(0,i.up)("el-dialog");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",n,[(0,i._)("div",l,[c,d,(0,i._)("div",r," © "+(0,a.zw)(t.$config.APP_NAME)+" "+(0,a.zw)(t.$config.APP_VER),1)]),(0,i._)("div",g,[(0,i._)("div",h,[(0,i.Wm)(W,{icon:$.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:k.configDark},null,8,["icon","onClick"])]),(0,i._)("div",u,[(0,i._)("div",m,[(0,i._)("div",_,[(0,i._)("img",{alt:t.$config.APP_NAME,src:$.appLogo},null,8,p),(0,i._)("label",null,(0,a.zw)(t.$config.APP_NAME),1)])]),(0,i.Wm)(b,null,{default:(0,i.w5)((()=>[(0,i.Wm)(P,{label:"登录",lazy:""},{default:(0,i.w5)((()=>[(0,i.Wm)(A)])),_:1})])),_:1}),t.$config.MY_SHOW_LOGIN_OAUTH?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(q,null,{default:(0,i.w5)((()=>[(0,i.Uk)("其它登录")])),_:1}),(0,i._)("div",f,[(0,i.Wm)(W,{type:"success",icon:"x-icon-wechat",circle:"",onClick:k.wechatLogin},null,8,["onClick"])])],64)):(0,i.kq)("",!0)])])]),(0,i.Wm)(E,{modelValue:$.showWechatLogin,"onUpdate:modelValue":o[0]||(o[0]=t=>$.showWechatLogin=t),title:"微信登录",width:400,"destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i._)("div",v,[(0,i.Wm)(C,{class:"qrCode",text:$.WechatLoginCode,size:200},null,8,["text"]),w,$.isWechatLoginResult?((0,i.wg)(),(0,i.iD)("div",L,[(0,i.Wm)(y,{icon:"success",title:"已扫描","sub-title":"请在设备中点击授权登录"})])):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])],64)}var k=e(7126),W=e(8428),A=e(5080),P={components:{passwordForm:k["default"],phoneForm:W["default"]},data(){return{config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1},lang:[{name:"简体中文",value:"zh-cn"},{name:"English",value:"en"}],WechatLoginCode:"",WechatLoginuniqid:"",appLogo:"",showWechatLogin:!1,isWechatLoginResult:!1}},watch:{"config.dark"(t){t?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",t)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))}},created:function(){this.appLogo=this.$tool.data.get("appLogo")||this.$config.APP_LOGO||A,this.$tool.cookie.remove(this.$config.SESSIONNAME),this.$tool.data.remove("user"),this.$tool.data.remove("menu"),this.$tool.data.remove("permissions"),this.$tool.data.remove("dashboardgrid"),this.$tool.data.remove("grid"),this.$tool.store.remove("token"),this.$store.commit("clearViewTags"),this.$store.commit("clearKeepLive"),this.$store.commit("clearIframeList")},methods:{configDark(){this.config.dark=!this.config.dark},long_contact:function(){if(!this.WechatLoginuniqid)return!1;setTimeout((async()=>{var t=await this.$http.post("login/wechatSubmit",{uniqid:this.WechatLoginuniqid});if(201==t.code)this.showWechatLogin=!1,this.$message.warning(t.message);else if(202==t.code)this.long_contact();else if(200==t.code){this.showWechatLogin=!1,this.$tool.cookie.set(this.$config.SESSIONNAME,t.data.token,{expires:31104e3});const o=this.$route.query.redirect||"/";return this.$router.replace({path:o}),this.$message.success("Login Success 登录成功"),this.islogin=!1,!1}}),1e3)},async wechatLogin(){var t=await this.$http.get("login/wechatQrcode");if(200!=t.code)return this.$message.warning(t.message),!1;this.showWechatLogin=!0,this.WechatLoginCode=t.data.qrcodeurl,this.WechatLoginuniqid=t.data.uniqid,this.long_contact()}}},b=e(8700);const q=(0,b.Z)(P,[["render",$],["__scopeId","data-v-568968a7"]]);var C=q}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[974],{1097:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var a=n(6252),s=n(3577);const i={class:"custom-tree-node"},l={class:"label"},d={key:0,class:"do"};function r(e,t,n,r,u,m){const o=(0,a.up)("el-input"),h=(0,a.up)("el-header"),p=(0,a.up)("el-icon"),c=(0,a.up)("el-tree"),g=(0,a.up)("el-main"),f=(0,a.up)("el-container"),w=(0,a.up)("el-aside"),v=(0,a.up)("save"),$=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(f,null,{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(w,{width:"300px"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(o,{clearable:"",placeholder:"输入关键字进行过滤",modelValue:u.menuFilterText,"onUpdate:modelValue":t[0]||(t[0]=e=>u.menuFilterText=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(g,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{data:u.menuList,"expand-on-click-node":!1,"filter-node-method":m.menuFilterNode,props:u.menuProps,onNodeClick:m.menuClick,onNodeDrop:m.nodeDrop,"check-strictly":"",class:"menu",draggable:"","highlight-current":"","node-key":"id",ref:"menu","show-checkbox":!1},{default:(0,a.w5)((({node:e,data:t})=>[(0,a._)("span",i,[(0,a._)("span",l,[(0,a.Wm)(p,{style:{"margin-right":"2px"}},{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(t.meta.icon||"el-icon-menu")))])),_:2},1024),(0,a.Uk)(" "+(0,s.zw)(e.label),1)]),t.parentid?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("span",d))])])),_:1},8,["data","filter-node-method","props","onNodeClick","onNodeDrop"])])),_:1})])),_:1})])),_:1})),[[$,u.menuloading]]),(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,{class:"nopadding",ref:"main",style:{padding:"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{menu:u.menuList,ref:"save"},null,8,["menu"])])),_:1},512)])),_:1})])),_:1})}n(7658);var u=n(8480);let m=1;var o={name:"systemmenu",components:{save:u["default"]},data(){return{menuloading:!1,menuList:[],menuProps:{label:e=>e.meta.title},menuFilterText:""}},watch:{menuFilterText(e){this.$refs.menu.filter(e)}},mounted(){this.getMenu()},methods:{async getMenu(){this.menuloading=!0;var e=await this.$http.get("menu");this.menuloading=!1,this.menuList=e.data},menuClick(e,t){var n=1==t.level?0:t.parent.data.id;this.$refs.save.setData(e,n),this.$refs.main.$el.scrollTop=0},menuFilterNode(e,t){if(!e)return!0;var n=t.meta.title;return-1!==n.indexOf(e)},getAllIds(e){let t=[];return e.forEach((e=>{let n={id:e.id};e.children&&(n.children=this.getAllIds(e.children)),t.push(n)})),t},async nodeDrop(e){let t=this.getAllIds(this.menuList);var n=await this.$http.post("menu/update",{id:e.data.id,ids:t});if(200!==n.code)return this.$message.warning(n.message),!1;this.$refs.save.setData({}),this.$message.success(n.message)},async add(e,t){var n="未命名"+m++,a={parentid:t?t.id:0,name:"",path:t?t.path+"/":"",component:"",meta:{title:n,type:"menu"}};this.menuloading=!0;var s=await this.$http.post("menu/submit",a);if(this.menuloading=!1,200!==s.code)return this.$message.warning(s.message),!1;a.id=s.data,this.$refs.menu.append(a,e),this.$refs.menu.setCurrentKey(a.id);var i=e?e.data.id:0;this.$refs.save.setData(a,i)},async delMenu(){var e=this.$refs.menu.getCheckedNodes();if(0==e.length)return this.$message.warning("请选择需要删除的项"),!1;var t=await this.$confirm("确认删除已选择的菜单吗?","提示",{type:"warning",confirmButtonText:"删除",confirmButtonClass:"el-button--danger"}).catch((()=>{}));if("confirm"!=t)return!1;this.menuloading=!0;var n={ids:e.map((e=>e.id))},a=await this.$http.post("menu/delete",n);this.menuloading=!1,200==a.code?e.forEach((e=>{var t=this.$refs.menu.getNode(e);t.isCurrent&&this.$refs.save.setData({}),this.$refs.menu.remove(e)})):this.$message.warning(a.message)}}},h=n(3744);const p=(0,h.Z)(o,[["render",r],["__scopeId","data-v-194ed0e8"]]);var c=p}}]);

File diff suppressed because one or more lines are too long

1
dist/static/js/app.65ce160c.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/static/js/codemirror.028dbdf2.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/static/js/echarts.54f8b643.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

91
dist/static/js/modules.38cafffe.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/static/js/tinymce.48a3b38f.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/static/js/xChunks.3c058ebd.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -10,164 +10,164 @@
</el-main> </el-main>
<template #footer> <template #footer>
<el-button type="primary" :loading="isSaveing" @click="submit">{{ config.submitname || '保存' }}</el-button> <el-button type="primary" :loading="isSaveing" @click="submit">{{ config.submitname || '保存' }}</el-button>
<el-button @click="visible=false">取消</el-button> <el-button @click="visible = false">取消</el-button>
</template> </template>
</component> </component>
</div> </div>
</template> </template>
<style scoped> <style scoped>
.x-update:deep(.el-drawer) .el-drawer__footer { .x-update:deep(.el-drawer) .el-drawer__footer {
text-align: left; text-align: left;
border-top: 1px solid var(--el-border-color-light); border-top: 1px solid var(--el-border-color-light);
padding: 10px 18px; padding: 10px 18px;
} }
</style> </style>
<script> <script>
export default { export default {
emits: ['success', 'closed'], emits: ['success', 'closed'],
props: { props: {
column: { type: Array, default: () => [] }, column: { type: Array, default: () => [] },
name: { type: String, default: "id" }, name: { type: String, default: "id" },
}, },
data() { data() {
return { return {
loading: false, loading: false,
mode: "plus", mode: "plus",
token: '', token: '',
key: this.name, key: this.name,
titleMap: { titleMap: {
plus: '新增', plus: '新增',
edit: '编辑' edit: '编辑'
},
data: {},
style: {},
config: {
column : this.column,
labelPosition : "right",
labelWidth : "120px",
size : "medium",
submitinfokey : "info",
url:'',
merge:false, // , data
submitname:'保存'
},
size:900,
visible: false,
isSaveing: false,
type:'dialog',
}
},
watch: {
column(){
this.config.column = this.column;
}
},
computed: {
componentType() {
return this.type == 'drawer' ? 'el-drawer' : 'x-dialog';
}
},
mounted() {
},
methods: {
getComponentType(type) {
this.type = type;
return this;
}, },
// data: {},
open(mode='plus'){ style: {},
this.mode = mode; config: {
this.visible = true; column: this.column,
return this; labelPosition: "right",
}, labelWidth: "120px",
// size: "medium",
submit(){ submitinfokey: "info",
url: '',
merge: false, // , data
this.$refs.formref.validate(async (valid) => { submitname: '保存'
if (valid) {
if (!this.config.url) {
console.log(this.data)
this.$alert('没有'+ ((this.config.name || this.titleMap[this.mode]) || '编辑') +'数据相关配置', "提示", {type: 'error'});
return;
}
const data = {
[this.config.submitinfokey || 'info']: this.data,
};
if (this.key && typeof this.data[this.key] !== 'undefined') {
Object.assign(data,{[this.key]: this.data[this.key]});
}
if (this.token) {
Object.assign(data,{token: this.token});
}
this.isSaveing = true;
this.$http.post(this.config.url, data).then((res) => {
this.isSaveing = false;
if (res.code == 200 ) {
this.visible = false;
this.$emit('success', res.data, this.mode, res.message || "操作成功");
return;
}
this.$alert(res.message, "提示", {type: 'error'});
})
}
})
},
//
setConfig(o){
Object.assign(this.config, o);
if (typeof this.config.key !== 'undefined' && this.config.key) {
this.key = this.config.key;
}
//
if (this.config.remoteurl) {
this.loading = true;
setTimeout(async ()=>{
var res = await this.$http.post(this.config.remoteurl, {[this.key]: this.data[this.key]})
if (res.code == 200 ) {
this.loading = false;
if (res.data.config) {
Object.assign(this.config, res.data.config);
}
if (res.data.data) {
this.config.merge ? Object.assign(this.data, res.data.data) : this.setData(res.data.data)
}
if (res.data.token) {
this.token = res.data.token
}
if (res.data.size) {
this.size = res.data.size
}
if (res.data.type && res.data.type !== this.type) {
this.getComponentType(res.data.type)
}
if (res.data.style) {
this.style = res.data.style;
}
return;
}
this.visible = false;
this.$alert(res.message, "提示", {type: 'error'});
}, 100)
return false;
}
},
//
setData(data){
this.data = data;
return this;
}, },
size: 900,
visible: false,
isSaveing: false,
type: 'dialog',
} }
},
watch: {
column() {
this.config.column = this.column;
}
},
computed: {
componentType() {
return this.type == 'drawer' ? 'el-drawer' : 'x-dialog';
}
},
mounted() {
},
methods: {
getComponentType(type) {
this.type = type;
return this;
},
//
open(mode = 'plus') {
this.mode = mode;
this.visible = true;
return this;
},
//
submit() {
this.$refs.formref.validate(async (valid) => {
if (valid) {
if (!this.config.url) {
console.log(this.data)
this.$alert('没有' + ((this.config.name || this.titleMap[this.mode]) || '编辑') + '数据相关配置', "提示", { type: 'error' });
return;
}
const data = {
[this.config.submitinfokey || 'info']: this.data,
};
if (this.key && typeof this.data[this.key] !== 'undefined') {
Object.assign(data, { [this.key]: this.data[this.key] });
}
if (this.token) {
Object.assign(data, { token: this.token });
}
this.isSaveing = true;
this.$http.post(this.config.url, data).then((res) => {
this.isSaveing = false;
if (res.code == 200) {
this.visible = false;
this.$emit('success', res.data, this.mode, res.message || "操作成功");
return;
}
this.$alert(res.message, "提示", { type: 'error' });
})
}
})
},
//
setConfig(o) {
Object.assign(this.config, o);
if (typeof this.config.key !== 'undefined' && this.config.key) {
this.key = this.config.key;
}
//
if (this.config.remoteurl) {
this.loading = true;
setTimeout(async () => {
var res = await this.$http.post(this.config.remoteurl, { [this.key]: this.data[this.key] })
if (res.code == 200) {
this.loading = false;
if (res.data.config) {
Object.assign(this.config, res.data.config);
}
if (res.data.data) {
this.config.merge ? Object.assign(this.data, res.data.data) : this.setData(res.data.data)
}
if (res.data.token) {
this.token = res.data.token
}
if (res.data.size) {
this.size = res.data.size
}
if (res.data.type && res.data.type !== this.type) {
this.getComponentType(res.data.type)
}
if (res.data.style) {
this.style = res.data.style;
}
return;
}
this.visible = false;
this.$alert(res.message, "提示", { type: 'error' });
}, 100)
return false;
}
},
//
setData(data) {
this.data = data;
return this;
},
} }
}
</script> </script>

View File

@ -1,51 +0,0 @@
<template>
<el-container>
<el-main>
<el-card shadow="never" style="height: 100%;">
<!-- <el-alert title="资源库选择器即将弃用,将不会维护更新,与1.7版本之后将移除此组件" type="error" style="margin-bottom:20px;"></el-alert> -->
<x-file-select v-model="file" :multiple="multiple" :hideUpload="hideUpload" :max="99" @submit="submit">
<template #do>
<el-button>自定义插槽</el-button>
</template>
</x-file-select>
</el-card>
<!-- <el-card shadow="never" header="参数和方法">
<el-button type="primary" @click="multiple = !multiple">切换multiple</el-button>
<el-button type="primary" @click="hideUpload = !hideUpload">切换hideUpload</el-button>
</el-card> -->
</el-main>
</el-container>
</template>
<script>
import xFileSelect from '@/components/xFileSelect'
export default {
name: 'fileselect',
components: {
xFileSelect
},
data() {
return {
file: '',
multiple: false,
hideUpload: false,
upload: '',
upload2: ''
}
},
mounted() {
},
methods: {
submit(value){
console.log(value)
this.$message("返回值请查看F12控制台console.log()")
}
}
}
</script>
<style scoped>
</style>

View File

@ -1,8 +1,14 @@
<template> <template>
<el-container> <el-container>
<el-aside width="210px"> <el-aside width="210px">
<x-page-header title="日志" icon="el-icon-Calendar" style="padding: 10px 16px;"></x-page-header> <el-container>
<x-menu-item v-for="(item, index) in typeList" :key="index" :label="item.label" :num="item.num" :icon="item.icon" :icon-color="item.color" :select="search.type == item.value" @click="sideClick(item)" /> <el-header>
<x-page-header title="日志" icon="el-icon-Calendar"></x-page-header>
</el-header>
<el-main style="padding: 0;">
<x-menu-item v-for="(item, index) in typeList" :key="index" :label="item.label" :num="item.num" :icon="item.icon" :icon-color="item.color" :select="search.type == item.value" @click="sideClick(item)" />
</el-main>
</el-container>
</el-aside> </el-aside>
<el-container style="padding: 10px 10px 6px 10px"> <el-container style="padding: 10px 10px 6px 10px">
<el-main class="nopadding"> <el-main class="nopadding">
@ -34,7 +40,6 @@
</el-main> </el-main>
</el-container> </el-container>
</el-container> </el-container>
<el-drawer v-model="infoDrawer" title="日志详情" :size="700" destroy-on-close> <el-drawer v-model="infoDrawer" title="日志详情" :size="700" destroy-on-close>
<info ref="info"></info> <info ref="info"></info>
</el-drawer> </el-drawer>
@ -162,8 +167,19 @@ export default {
; ;
overflow: hidden; overflow: hidden;
} }
.el-header{
height:50px
}
.el-aside { .el-aside {
background-color: white; background-color: white;
} }
.x-page-header {
border-bottom: 0px solid #ebebebc2;
padding: 5px;
.x-page-header__icon {
width: 40px;
}
}
</style> </style>

View File

@ -1,16 +1,15 @@
<template> <template>
<el-main style="padding:0 20px;"> <el-main style="padding:0 20px;">
<el-collapse v-model="activeNames" style="margin-top: 20px;"> <el-collapse v-model="activeNames" style="margin-top: 20px;">
<el-collapse-item title="详细" name="2"> <el-collapse-item title="详细" name="2">
<el-descriptions border :column="1"> <el-descriptions border :column="1">
<el-descriptions-item v-for="(value, key) in data" :key="key" :label="key"> <el-descriptions-item v-for="(value, key) in data" :key="key" :label="key">
<template v-if="typeof value === 'object'"> <template v-if="typeof value === 'object'">
<pre>{{ JSON.stringify(value, null, 2) }}</pre> <pre>{{ JSON.stringify(value, null, 2) }}</pre>
</template> </template>
<template v-else> <template v-else>
{{ value }} {{ value }}
</template> </template>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-collapse-item> </el-collapse-item>
@ -19,26 +18,31 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
data: {}, data: {},
activeNames: ['1', '2'], activeNames: ['1', '2'],
typeMap: { typeMap: {
'info': "info", 'info': "info",
'warn': "warning", 'warn': "warning",
'error': "error" 'error': "error"
}
}
},
methods: {
setData(data){
this.data = data
} }
} }
},
methods: {
setData(data) {
this.data = data
}
} }
}
</script> </script>
<style scoped> <style scoped>
.code {background: #848484;padding:15px;color: #fff;font-size: 12px;border-radius: 4px;} .code {
</style> background: #848484;
padding: 15px;
color: #fff;
font-size: 12px;
border-radius: 4px;
}</style>

View File

@ -1,203 +1,236 @@
<template> <template>
<el-container> <el-container>
<el-aside v-loading="menuloading" width="300px"> <el-aside v-loading="menuloading" width="300px">
<el-container> <el-container>
<el-header> <el-header>
<el-input clearable="" placeholder="输入关键字进行过滤" v-model="menuFilterText"> <el-input clearable="" placeholder="输入关键字进行过滤" v-model="menuFilterText">
</el-input> </el-input>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">
<el-tree :data="menuList" :expand-on-click-node="false" :filter-node-method="menuFilterNode" :props="menuProps" @node-click="menuClick" @node-drop="nodeDrop" check-strictly="" class="menu" draggable="" highlight-current="" node-key="id" ref="menu" :show-checkbox="false"> <el-tree :data="menuList" :expand-on-click-node="false" :filter-node-method="menuFilterNode" :props="menuProps" @node-click="menuClick" @node-drop="nodeDrop" check-strictly="" class="menu" draggable="" highlight-current="" node-key="id" ref="menu" :show-checkbox="false">
<template #default="{node, data}"> <template #default="{ node, data }">
<span class="custom-tree-node"> <span class="custom-tree-node">
<span class="label"> <span class="label">
<el-icon style="margin-right: 2px;"> <el-icon style="margin-right: 2px;">
<component :is="data.meta.icon || 'el-icon-menu'"> </component> <component :is="data.meta.icon || 'el-icon-menu'"> </component>
</el-icon> </el-icon>
{{ node.label }} {{ node.label }}
</span> </span>
<span class="do" v-if="!data.parentid"> <span class="do" v-if="!data.parentid">
<!-- <el-button @click.stop="add(node, data)" icon="el-icon-plus" size="small"> </el-button> --> <!-- <el-button @click.stop="add(node, data)" icon="el-icon-plus" size="small"> </el-button> -->
</span> </span>
</span> </span>
</template> </template>
</el-tree> </el-tree>
</el-main> </el-main>
<!-- <el-footer style="height:51px;"> <!-- <el-footer style="height:51px;">
<el-button @click="add()" icon="el-icon-plus" size="small" type="primary"> <el-button @click="add()" icon="el-icon-plus" size="small" type="primary">
</el-button> </el-button>
<el-button @click="delMenu" icon="el-icon-delete" plain="" size="small" type="danger"> <el-button @click="delMenu" icon="el-icon-delete" plain="" size="small" type="danger">
</el-button> </el-button>
</el-footer> --> </el-footer> -->
</el-container> </el-container>
</el-aside> </el-aside>
<el-container> <el-container>
<el-main class="nopadding" ref="main" style="padding:20px;"> <el-main class="nopadding" ref="main" style="padding:20px;">
<save :menu="menuList" ref="save"> <save :menu="menuList" ref="save">
</save> </save>
</el-main> </el-main>
</el-container> </el-container>
</el-container> </el-container>
</template> </template>
<script> <script>
let newMenuIndex = 1; let newMenuIndex = 1;
import save from './save' import save from './save'
export default { export default {
name: "systemmenu", name: "systemmenu",
components: { components: {
save save
},
data() {
return {
menuloading: false,
menuList: [],
menuProps: {
label: (data) => {
return data.meta.title
}
},
menuFilterText: ""
}
},
watch: {
menuFilterText(val) {
this.$refs.menu.filter(val);
}
},
mounted() {
this.getMenu();
},
methods: {
//
async getMenu() {
this.menuloading = true
var res = await this.$http.get('menu');
this.menuloading = false
this.menuList = res.data;
}, },
data(){ //
return { menuClick(data, node) {
menuloading: false, var pid = node.level == 1 ? 0 : node.parent.data.id;
menuList: [], this.$refs.save.setData(data, pid)
menuProps: { this.$refs.main.$el.scrollTop = 0
label: (data)=>{ },
return data.meta.title //
} menuFilterNode(value, data) {
}, if (!value) return true;
menuFilterText: "" var targetText = data.meta.title;
return targetText.indexOf(value) !== -1;
},
getAllIds(treeData) {
let idList = [];
treeData.forEach(node => {
let newNode = { id: node.id };
if (node.children) {
newNode.children = this.getAllIds(node.children);
}
idList.push(newNode);
});
return idList;
},
//
async nodeDrop(draggingNode) {
let ids = this.getAllIds(this.menuList);
// let obj = Object.assign({}, draggingNode.data, {parentid:dropNode.data.id});
// delete obj.children;
var res = await this.$http.post('menu/update', { id: draggingNode.data.id, ids: ids });
if (res.code !== 200) {
this.$message.warning(res.message);
return false;
} }
// var pid = this.getParentId(this.menuList, draggingNode.data.id);
// alert(pid)
// console.log(pid,this.menuList)
this.$refs.save.setData({})
this.$message.success(res.message);
}, },
watch: { //
menuFilterText(val){ async add(node, data) {
this.$refs.menu.filter(val); var newMenuName = "未命名" + newMenuIndex++;
var newMenuData = {
parentid: data ? data.id : 0,
name: "",
path: data ? data.path + '/' : "",
component: "",
meta: {
title: newMenuName,
type: "menu"
}
} }
this.menuloading = true
var res = await this.$http.post('menu/submit', newMenuData)
this.menuloading = false
if (res.code !== 200) {
this.$message.warning(res.message);
return false;
}
newMenuData.id = res.data
this.$refs.menu.append(newMenuData, node)
this.$refs.menu.setCurrentKey(newMenuData.id)
var pid = node ? node.data.id : 0
this.$refs.save.setData(newMenuData, pid)
}, },
mounted() { //
this.getMenu(); async delMenu() {
}, var CheckedNodes = this.$refs.menu.getCheckedNodes()
methods: { if (CheckedNodes.length == 0) {
// this.$message.warning("请选择需要删除的项")
async getMenu(){ return false;
this.menuloading = true }
var res = await this.$http.get('menu');
this.menuloading = false
this.menuList = res.data;
},
//
menuClick(data, node){
var pid = node.level==1 ? 0 : node.parent.data.id;
this.$refs.save.setData(data, pid)
this.$refs.main.$el.scrollTop = 0
},
//
menuFilterNode(value, data){
if (!value) return true;
var targetText = data.meta.title;
return targetText.indexOf(value) !== -1;
},
getAllIds (treeData) {
let idList = [];
treeData.forEach(node => {
let newNode = {id: node.id};
if (node.children) {
newNode.children = this.getAllIds(node.children);
}
idList.push(newNode);
});
return idList;
},
//
async nodeDrop(draggingNode){
let ids = this.getAllIds(this.menuList);
var confirm = await this.$confirm('确认删除已选择的菜单吗?', '提示', {
type: 'warning',
confirmButtonText: '删除',
confirmButtonClass: 'el-button--danger'
}).catch(() => { })
if (confirm != 'confirm') {
return false
}
// let obj = Object.assign({}, draggingNode.data, {parentid:dropNode.data.id}); this.menuloading = true
// delete obj.children; var reqData = {
ids: CheckedNodes.map(item => item.id)
}
var res = await this.$http.post('menu/delete', reqData)
this.menuloading = false
var res = await this.$http.post('menu/update', {id:draggingNode.data.id,ids:ids}); if (res.code == 200) {
if(res.code !== 200){ CheckedNodes.forEach(item => {
this.$message.warning(res.message); var node = this.$refs.menu.getNode(item)
return false; if (node.isCurrent) {
} this.$refs.save.setData({})
// var pid = this.getParentId(this.menuList, draggingNode.data.id);
// alert(pid)
// console.log(pid,this.menuList)
this.$refs.save.setData({})
this.$message.success(res.message);
},
//
async add(node, data){
var newMenuName = "未命名" + newMenuIndex++;
var newMenuData = {
parentid: data ? data.id : 0,
name: "",
path: data ? data.path+'/' : "",
component: "",
meta:{
title: newMenuName,
type: "menu"
} }
} this.$refs.menu.remove(item)
this.menuloading = true })
var res = await this.$http.post('menu/submit',newMenuData) } else {
this.menuloading = false this.$message.warning(res.message)
if(res.code !== 200){
this.$message.warning(res.message);
return false;
}
newMenuData.id = res.data
this.$refs.menu.append(newMenuData, node)
this.$refs.menu.setCurrentKey(newMenuData.id)
var pid = node ? node.data.id : 0
this.$refs.save.setData(newMenuData, pid)
},
//
async delMenu(){
var CheckedNodes = this.$refs.menu.getCheckedNodes()
if(CheckedNodes.length == 0){
this.$message.warning("请选择需要删除的项")
return false;
}
var confirm = await this.$confirm('确认删除已选择的菜单吗?','提示', {
type: 'warning',
confirmButtonText: '删除',
confirmButtonClass: 'el-button--danger'
}).catch(() => {})
if(confirm != 'confirm'){
return false
}
this.menuloading = true
var reqData = {
ids: CheckedNodes.map(item => item.id)
}
var res = await this.$http.post('menu/delete',reqData)
this.menuloading = false
if(res.code == 200){
CheckedNodes.forEach(item => {
var node = this.$refs.menu.getNode(item)
if(node.isCurrent){
this.$refs.save.setData({})
}
this.$refs.menu.remove(item)
})
}else{
this.$message.warning(res.message)
}
} }
} }
} }
}
</script> </script>
<style scoped=""> <style scoped="">
.menu:deep(.el-tree-node__label) {display: flex;flex: 1;height:100%;} .menu:deep(.el-tree-node__label) {
.custom-tree-node {display: flex;flex: 1;align-items: center;justify-content: space-between;font-size: 14px;height:100%;padding-right:24px;} display: flex;
.custom-tree-node .label {display: flex;align-items: center;;height: 100%;} flex: 1;
.custom-tree-node .label .el-tag {margin-left: 5px;} height: 100%;
.custom-tree-node .do {display: none;} }
.custom-tree-node .do i {margin-left:5px;color: #999;}
.custom-tree-node .do i:hover {color: #333;}
.custom-tree-node:hover .do {display: inline-block;} .custom-tree-node {
</style> display: flex;
flex: 1;
align-items: center;
justify-content: space-between;
font-size: 14px;
height: 100%;
padding-right: 24px;
}
.custom-tree-node .label {
display: flex;
align-items: center;
;
height: 100%;
}
.custom-tree-node .label .el-tag {
margin-left: 5px;
}
.custom-tree-node .do {
display: none;
}
.custom-tree-node .do i {
margin-left: 5px;
color: #999;
}
.custom-tree-node .do i:hover {
color: #333;
}
.custom-tree-node:hover .do {
display: inline-block;
}</style>

View File

@ -2,12 +2,22 @@
<div class="message-body"> <div class="message-body">
<div v-loading="loading" class="message-content"> <div v-loading="loading" class="message-content">
<div class="message-body-side" :style="{ width: width + 'px' }"> <div class="message-body-side" :style="{ width: width + 'px' }">
<div class="message-body-flexbox"> <el-container>
<x-page-header :title="title" :icon="icon"></x-page-header> <el-header>
</div> <x-page-header :title="title" :icon="icon"></x-page-header>
<div class="message-body-item"> </el-header>
<x-menu-item v-for="(item, index) in items" :key="index" :label="item.label" :num="item.num" :icon="item.icon" :icon-color="item.color" :select="search[key] == item.value" @click="sideClick(item)" /> <el-main style="padding: 0;">
</div> <div class="message-body-item">
<x-menu-item v-for="(item, index) in items" :key="index" :label="item.label" :num="item.num" :icon="item.icon" :icon-color="item.color" :select="search[key] == item.value" @click="sideClick(item)" />
</div>
</el-main>
<!-- <el-footer style="height:51px;">
<el-button @click="add()" icon="el-icon-plus" size="small" type="primary">
</el-button>
<el-button @click="delMenu" icon="el-icon-delete" plain="" size="small" type="danger">
</el-button>
</el-footer> -->
</el-container>
</div> </div>
<div class="message-body-content" :style="{ 'margin-left': width + 'px' }"> <div class="message-body-content" :style="{ 'margin-left': width + 'px' }">
<table2 ref="table" @childLoaded="getChildData"></table2> <table2 ref="table" @childLoaded="getChildData"></table2>
@ -39,9 +49,6 @@ export default {
} }
}, },
methods: { methods: {
/**
* 侧边点击
*/
sideClick(item) { sideClick(item) {
this.info = item this.info = item
this.search[this.key || 'type'] = item.value; this.search[this.key || 'type'] = item.value;
@ -56,9 +63,13 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-header {
height: 50px
}
.x-page-header { .x-page-header {
border-bottom: 1px solid #ebebebc2; border-bottom: 0px solid #ebebebc2;
padding: 10px 20px; padding: 5px;
.x-page-header__icon { .x-page-header__icon {
width: 40px; width: 40px;

View File

@ -1,207 +1,171 @@
<template> <template>
<el-main> <el-container style="padding: 10px 10px 5px 10px;">
<el-card shadow="never"> <el-container style="border: 1px solid var(--el-border-color-light); border-radius: 4px; background-color: var(--el-fill-color-blank);">
<x-select-filter :data="data" :selected-values="selectedValues" :label-width="80" @on-change="change"></x-select-filter> <el-aside v-loading="menuloading" width="200px">
</el-card> <el-container>
<el-card class="userlose" shadow="never" style="margin-top: 10px;"> <el-header>
<x-page-header title="用户组" icon="el-icon-Calendar"></x-page-header>
</el-header>
<el-main class="nopadding">
<el-menu :default-active="activeType" @open="handleOpen" @close="handleClose" :unique-opened="true" :defaultOpeneds="['system']">
<el-sub-menu index="system">
<template #title>
<el-icon>
<el-icon-Setting />
</el-icon>
<span>系统管理组</span>
</template>
<el-menu-item v-for="(i, index) in groupList.system" :key="index" :index="i.id" @click="menuClick(i)">
{{ i.title }}
<span v-if="i.count" class="menu-tag">{{ i.count }}</span>
</el-menu-item>
</el-sub-menu>
<el-sub-menu index="default">
<template #title>
<el-icon>
<el-icon-Stamp />
</el-icon>
<span>自定义用户组</span>
</template>
<el-menu-item v-for="(i, index) in groupList.default" :key="index" :index="i.id" @click="menuClick(i)">
{{ i.title }}
<span v-if="i.count" class="menu-tag">{{ i.count }}</span>
</el-menu-item>
</el-sub-menu>
<el-sub-menu index="member">
<template #title>
<el-icon>
<el-icon-Flag />
</el-icon>
<span>用户等级组</span>
</template>
<el-menu-item v-for="(i, index) in groupList.member" :key="index" :index="i.id" @click="menuClick(i)">
{{ i.title }}
<span v-if="i.count" class="menu-tag">{{ i.count }}</span>
</el-menu-item>
</el-sub-menu>
</el-menu>
</el-main>
<el-footer v-if="activeType">
<el-button @click="add()" icon="el-icon-plus" size="small" :type="addType[activeType]">添加用户组</el-button>
</el-footer>
</el-container>
</el-aside>
<el-container> <el-container>
<el-header v-auths="['user.group']"> <el-main class="nopadding" ref="main" style="padding:20px;">
<div class="left-panel"> <save :info="{}" @refresh-data="refreshData" :activeType="activeType" ref="save"> </save>
<el-button type="primary" icon="el-icon-plus" @click="add"></el-button>
</div>
</el-header>
<el-main class="nopadding">
<x-table :api="api" :hideDo="true" size="large" stripe ref="table" :params="filterData" :hidePagination="true">
<el-table-column prop="id" fixed sortable label="GroupID" align="center" width="120" />
<el-table-column prop="title" label="名称" width="180" />
<el-table-column prop="alias" label="别名" width="180" />
<el-table-column prop="alias" label="用户数量" width="180" />
<el-table-column prop="status" label="状态" width="90">
<template #default="scope">
<x-status-indicator pulse type="success" v-if="scope.row.status==1" label="开启" />
<x-status-indicator pulse type="info" v-if="scope.row.status==0" label="关闭" />
</template>
</el-table-column>
<el-table-column prop="anicount" label="积分" width="100" v-if="filterData.type=='member'" />
<el-table-column prop="anicount" label="主图" width="100" v-if="filterData.type=='member'">
<template #default="scope">
<el-image :preview-src-list="[scope.row.image.url]" :preview-teleported="true" hide-on-click-modal="true" lazy="true" style="width: 30px; height: 30px" fit="cover" :src="scope.row.image.url">
<template #error>
<div class="image-slot">
无图
</div>
</template>
</el-image>
</template>
</el-table-column>
<el-table-column prop="aid" label="控制台模块" width="120" v-if="filterData.type=='system'">
<template #default="scope">
<el-badge :value="scope.row.authority.grid ? scope.row.authority.grid.length:0" type="warning"></el-badge>
</template>
</el-table-column>
<el-table-column prop="aid" label="菜单" width="80" v-if="filterData.type=='system'">
<template #default="scope">
<el-badge :value="scope.row.authority.menu ? scope.row.authority.menu.length:0" type="primary"></el-badge>
</template>
</el-table-column>
<el-table-column prop="message" label="备注">
<template #default="scope">
<input class="el-input__inner" type="text" readonly :value="scope.row.message">
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="right" width="200">
<template #default="scope">
<el-button-group>
<el-button text type="primary" size="small" @click="group_show(scope.row, scope.$index)">查看</el-button>
<el-button text type="primary" size="small" @click="group_edit(scope.row, scope.$index)" v-auths="['user.group']">编辑</el-button>
<el-popconfirm title="确定删除吗?" @confirm="group_del(scope.row, scope.$index)" >
<template #reference>
<el-button text type="primary" size="small" v-auths="['user.group']">删除</el-button>
</template>
</el-popconfirm>
</el-button-group>
</template>
</el-table-column>
</x-table>
</el-main> </el-main>
</el-container> </el-container>
</el-card> </el-container>
</el-main> </el-container>
<save-dialog v-if="dialog.save" ref="saveDialog" @success="handleSaveSuccess" @closed="dialog.save=false"></save-dialog>
</template> </template>
<style>
.userlose .el-card__body{
padding: 0px;
}
</style>
<script> <script>
import xSelectFilter from '@/components/xSelectFilter' let newMenuIndex = 1;
import saveDialog from './save' import save from './save'
export default { export default {
name: 'selectFilter', name: "systemmenu",
components: { components: {
xSelectFilter, save
saveDialog, },
}, data() {
data() { return {
return { menuloading: false,
data: [ groupList: {
{ system: [],
title: "用户组",
key: "type",
options: [
{
label: "系统管理组",
value: "system",
icon: "el-icon-flag"
},
{
label: "用户等级套餐组",
value: "member",
icon: "el-icon-bottom-left"
},
{
label: "自定义会员组",
value: "default",
icon: "el-icon-circle-close"
}
]
}
],
selectedValues: {
type: ["system"]
},
filterData: {
type:'system'
},
search: {},
dialog: {
save: false,
permission: false
},
api:'user/group/lists'
}
},
computed: {
filteredItems() {
return this.items.filter(item => item.category === 'Category A');
}
},
mounted() {
},
methods: {
//
handleSaveSuccess(){
this.$refs.table.refresh()
}, },
// groupInfo: {},
add(){ activeType: 'system',
this.dialog.save = true menuProps: {
this.$nextTick(() => { label: (data) => {
this.$refs.saveDialog.open().setData({type:this.filterData.type}) return data.meta.title
})
},
//
group_edit(row){
this.dialog.save = true
this.$nextTick(() => {
this.$refs.saveDialog.open('edit').setData(row)
})
},
//
group_show(row){
this.dialog.save = true
this.$nextTick(() => {
this.$refs.saveDialog.open('show').setData(row)
})
},
//
permission(){
this.dialog.permission = true
this.$nextTick(() => {
this.$refs.permissionDialog.open()
})
},
//
async group_del(row){
var reqData = {id: row.id}
var res = await this.$http.post('user/group/delete',reqData);
if(res.code == 200){
this.$refs.table.refresh()
this.$message.success("删除成功");
return false;
} }
this.$alert(res.message, "提示", {type: 'error'})
}, },
change(selected){ menuFilterText: "",
this.filterData = selected addType: {
this.$refs.table.reload(this.filterData) system: 'primary',
}, default: 'warning',
// member: 'danger',
changeSwitch(val, row){
row.status = row.status == '1'?'0':'1'
row.$switch_status = true;
setTimeout(()=>{
delete row.$switch_status;
row.status = val;
this.$message.success("操作成功")
}, 500)
}, },
} }
},
watch: {
menuFilterText(val) {
this.$refs.menu.filter(val);
}
},
mounted() {
this.getData();
},
methods: {
//
async getData() {
this.menuloading = true
var res = await this.$http.get('user/group/lists');
this.menuloading = false
this.groupList = res.data;
},
//
menuClick(data) {
this.groupInfo = data;
this.$refs.save.setData(data)
},
async refreshData() {
var res = await this.$http.get('user/group/lists');
this.groupList = res.data;
},
//
handleOpen(o) {
this.activeType = o;
this.$refs.save.setData({})
},
//
handleClose() {
this.activeType = '';
this.$refs.save.setData({})
},
//
async add() {
var newMenuName = "未命名" + newMenuIndex++;
var newMenuData = {
id: -1,
title: newMenuName,
type: this.activeType,
authority: {},
adminnode: {},
}
this.$refs.save.setData(newMenuData)
},
} }
}
</script> </script>
<style scoped="">
.el-header {
height: 50px
}
<style> .el-aside {
background-color: white;
}
.x-page-header {
border-bottom: 0px solid #ebebebc2;
padding: 5px;
.x-page-header__icon {
width: 40px;
}
}
.menu:deep(.el-tree-node__label) {
display: flex;
flex: 1;
height: 100%;
}
.el-footer {
padding: 10px 15px;
height: 45px;
text-align: center;
}
</style> </style>

View File

@ -1,246 +1,252 @@
<template> <template>
<x-dialog :title="titleMap[mode]" v-model="visible" :width="900" destroy-on-close @closed="$emit('closed')"> <el-row :gutter="40">
<el-main style="padding: 10px 20px;"> <el-col v-if="!form.id">
<el-form :model="form" :rules="rules" :disabled="mode=='show'" ref="dialogForm" label-width="100px" label-position="left"> <el-empty description="请选择左侧用户组后操作" :image-size="100"></el-empty>
<el-form-item label="角色名称" prop="title"> </el-col>
<el-input v-model="form.title" clearable></el-input> <template v-else>
</el-form-item> <el-col :lg="24">
<h2>{{ form.title || "新增用户组" }}</h2>
<el-form :model="form" :rules="rules" ref="dialogForm" label-width="100px" label-position="left">
<el-form-item label="GroupID" prop="id">
<el-link type="info" :underline="false" v-copy="form.id">{{ form.id }}</el-link>
</el-form-item>
<el-form-item label="显示名称" prop="title">
<el-input v-model="form.title" clearable placeholder="用户组显示名字"></el-input>
</el-form-item>
<el-form-item label="类型" prop="type">
<el-select v-model="form.type" class="m-2" disabled placeholder="Select">
<el-option label="系统管理组" value="system" />
<el-option label="自定义用户组" value="default" />
<el-option label="用户等级组" value="member" />
</el-select>
<div class="el-form-item-msg">用户组类型不可修改</div>
</el-form-item>
<el-form-item label="别名" prop="alias">
<el-input v-model="form.alias" clearable placeholder="用户组别名"></el-input>
<div class="el-form-item-msg">用户组别名, 用于一些权限判断, 可以留空不可重复</div>
</el-form-item>
<el-form-item label="别名" prop="title"> <el-form-item label="升级点数" prop="anicount" v-if="form.type == 'member'">
<el-input v-model="form.alias" clearable></el-input> <el-input v-model="form.anicount" clearable></el-input>
<div class="el-form-item-msg">用于权限判断,可以留空; 不可重复</div> <div class="el-form-item-msg">通过积分算法,达到此值后自动升级</div>
</el-form-item> </el-form-item>
<el-form-item label="升级点数" prop="anicount" v-if="form.type=='member'"> <el-form-item label="等级图片" prop="anicount" v-if="form.type == 'member'">
<el-input v-model="form.anicount" clearable></el-input> <x-upload v-model="form.image" title="等级图片" :cropper="true" width="120" height="120" :aspectRatio="1 / 1"></x-upload>
</el-form-item> </el-form-item>
<el-form-item label="等级图片" prop="anicount" v-if="form.type=='member'"> <el-form-item label="用户组图标" prop="icon">
<x-upload v-model="form.image" title="等级图片"></x-upload> <x-icon-select v-model="form.icon" clearable></x-icon-select>
</el-form-item> </el-form-item>
<el-form-item label="是否有效" prop="status"> <el-form-item label="备注" prop="message">
<el-input v-model="form.message" clearable type="textarea"></el-input>
</el-form-item>
<el-radio-group v-model="form.status">
<el-radio label="1" size="large">开启</el-radio>
<el-radio label="0" size="large">关闭</el-radio>
</el-radio-group>
</el-form-item> <el-form-item label="是否有效" prop="status">
<el-radio-group v-model="form.status">
<el-radio label="1" size="large">开启</el-radio>
<el-radio label="0" size="large">关闭</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="备注" prop="message">
<el-input v-model="form.message" clearable type="textarea"></el-input>
</el-form-item>
<div class="rolepermission" v-if="form.type=='system'"> <div class="rolepermission" v-if="form.type == 'system'">
<el-tabs tab-position="top"> <el-tabs tab-position="top">
<el-tab-pane label="菜单权限"> <el-tab-pane label="菜单权限">
<div class="treeMain"> <div class="treeMain">
<el-tree ref="menu" node-key="id" :data="menu.list" :props="menu.props" :default-checked-keys="menu.checked" show-checkbox></el-tree> <el-tree ref="menu" node-key="id" :data="menu.list" :props="menu.props" :default-checked-keys="menu.checked" show-checkbox></el-tree>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="数据权限"> <el-tab-pane label="数据权限">
<el-form label-width="100px" label-position="left"> <el-form label-width="100px" label-position="left">
<el-form-item label="规则类型"> <el-form-item label="规则类型">
<el-select v-model="form.authority.dataType" placeholder="请选择"> <el-select v-model="form.authority.dataType" placeholder="请选择">
<el-option label="全部可见" value="1"></el-option> <el-option label="全部可见" value="1"></el-option>
<el-option label="本人可见" value="2"></el-option> <el-option label="本人可见" value="2"></el-option>
<el-option label="所在部门可见" value="3"></el-option> <el-option label="所在部门可见" value="3"></el-option>
<el-option label="所在部门及子级可见" value="4"></el-option> <el-option label="所在部门及子级可见" value="4"></el-option>
<el-option label="选择的部门可见" value="5"></el-option> <el-option label="自定义" value="6"></el-option>
<el-option label="自定义" value="6"></el-option> </el-select>
</el-select> </el-form-item>
</el-form-item> <el-form-item label="规则值" v-show="form.authority.dataType == '6'">
<el-form-item label="选择部门" v-show="form.dataType=='5'"> <el-input v-model="form.authority.dataRule" clearable type="textarea" :rows="6" placeholder="请输入自定义规则代码"></el-input>
<div class="treeMain" style="width: 100%;"> </el-form-item>
<el-tree ref="dept" node-key="id" :data="dept.list" :props="dept.props" :default-checked-keys="dept.checked" show-checkbox></el-tree> </el-form>
</div> </el-tab-pane>
</el-form-item> <el-tab-pane label="控制台模块">
<el-form-item label="规则值" v-show="form.dataType=='6'"> <div class="treeMain">
<el-input v-model="form.authority.dataRule" clearable type="textarea" :rows="6" placeholder="请输入自定义规则代码"></el-input> <el-tree ref="grid" node-key="key" :data="grid.list" :props="grid.props" :default-checked-keys="grid.checked" show-checkbox></el-tree>
</el-form-item> </div>
</el-form> </el-tab-pane>
</el-tab-pane> </el-tabs>
<el-tab-pane label="控制台模块"> </div>
<div class="treeMain"> </el-form>
<el-tree ref="grid" node-key="key" :data="grid.list" :props="grid.props" :default-checked-keys="grid.checked" show-checkbox></el-tree> </el-col>
</div> <div style="padding-left: 120px; z-index: 100; width: 100%; position: fixed; bottom: 12px;">
</el-tab-pane> <el-button type="info" v-if="form.id > 0" @click="deleteGroup" icon="el-icon-Delete">删除用户组</el-button>
</el-tabs> <el-button type="primary" @click="save" :loading="loading" icon="el-icon-Promotion"> </el-button>
</div> </div>
</el-form>
</el-main>
<template #footer>
<el-button @click="visible=false" > </el-button>
<el-button v-if="mode!='show'" type="primary" :loading="isSaveing" @click="submit()"> </el-button>
</template> </template>
</x-dialog> </el-row>
</template> </template>
<style scoped>
.treeMain {
height: 280px;
overflow: auto;
border: 1px solid #dcdfe6cc;
border-radius: 4px;
padding: 4px 0;
}
.rolepermission{
padding-left: 100px;
}
@media (max-width: 992px){
.rolepermission{
padding-left: 0px;
}
}
</style>
<script> <script>
export default { import xIconSelect from '@/components/xIconSelect'
emits: ['success', 'closed'], export default {
data() { components: {
return { xIconSelect
mode: "add", },
titleMap: { props: {
add: '新增', info: { type: Object, default: () => { } },
edit: '编辑', activeType: { type: String, default: () => '' },
show: '查看' },
}, data() {
visible: false, return {
isSaveing: false, form: {},
// loading: false,
form: { menu: {
id:"", list: [],
title: "", checked: [],
alias: "", props: {
status: 1, label: (data) => {
message: "", return data.meta.title
authority:{
menu:[],
grid:[],
dataType: 1,
} }
}, }
// },
rules: { grid: {
title: [ list: [],
{required: true, message: '请填写名称'} checked: [],
], props: {
alias: [ label: (data) => {
{required: true, message: '请填写别名'} return data.title
], },
}, disabled: (data) => {
menu: { return data.isFixed
list: [],
checked: [],
props: {
label: (data)=>{
return data.meta.title
}
} }
}, }
grid: { },
list: [], rules: {
checked: [], title: [
props: { { required: true, message: '请填写名称' }
label: (data)=>{ ],
return data.title status: [
}, { required: true, message: '请选择状态' }
disabled: (data)=>{ ],
return data.isFixed },
} dept: {
list: [],
checked: [],
props: {
label: (data) => {
return data.title
},
disabled: (data) => {
return data.isFixed
} }
}, }
dept: { },
list: [], }
checked: [], },
props: { mounted() {
label: (data)=>{ },
return data.title methods: {
},
disabled: (data)=>{ deleteGroup() {
return data.isFixed var confirm = this.$confirm('确认删除' + this.form.title + '用户组吗?', '提示', {
} type: 'warning',
} confirmButtonText: '删除',
}, confirmButtonClass: 'el-button--danger'
}).catch(() => { })
if (confirm != 'confirm') {
return false
} }
}, },
mounted() {
//
async save() {
//
if (this.form.type == 'system') {
this.form.authority.menu = this.$refs.menu.getCheckedKeys().concat(this.$refs.menu.getHalfCheckedKeys())
this.form.authority.grid = this.$refs.grid.getCheckedKeys().concat(this.$refs.grid.getHalfCheckedKeys())
} else {
this.form.authority = {
menu: [],
grid: [],
};
}
this.$refs.dialogForm.validate(async (valid) => {
if (valid) {
this.loading = true;
var res = await this.$http.post('user/group/submit', this.form);
this.loading = false;
if (res.code == 200) {
this.$emit('success', this.form, this.mode)
this.visible = false;
this.$message.success("操作成功")
//
this.$emit('refresh-data');
return;
}
this.$alert(res.message, "提示", { type: 'error' })
}
})
}, },
methods: { //
// setData(data) {
open(mode='add'){
this.mode = mode;
this.visible = true;
return this
},
//
submit(){
// this.form = data;
if (this.form.type == 'system') {
this.form.authority.menu = this.$refs.menu.getCheckedKeys().concat(this.$refs.menu.getHalfCheckedKeys())
this.form.authority.grid = this.$refs.grid.getCheckedKeys().concat(this.$refs.grid.getHalfCheckedKeys())
}else{
this.form.authority = {
menu:[],
grid:[],
};
}
this.$refs.dialogForm.validate(async (valid) => {
if (valid) {
this.isSaveing = true;
var res = await this.$http.post('user/group/submit', this.form);
this.isSaveing = false;
if(res.code == 200){
this.$emit('success', this.form, this.mode)
this.visible = false;
this.$message.success("操作成功")
return ;
}
this.$alert(res.message, "提示", {type: 'error'})
}
})
},
//
setData(data){
// this.form = data
Object.assign(this.form, data)
if (this.form.type == 'system') {
this.grid.checked = this.form.authority.grid || []; this.grid.checked = this.form.authority.grid || [];
this.dept.checked = this.form.authority.dept || []; this.dept.checked = this.form.authority.dept || [];
this.menu.checked = this.form.authority.menu || [] this.menu.checked = this.form.authority.menu || [];
if (!this.menu.list.length) {
if (this.form.type=='system') { this.$http.post('user/group/menuSystem', {}).then((res) => {
this.$http.post('user/group/menuSystem',{}).then((res) => { if (res.code == 200) {
if (res.code==200) {
// Object.assign(this.$data, res.data);
this.menu.list = res.data.menu || []; this.menu.list = res.data.menu || [];
//key //key
this.$nextTick(() => {
let filterKeys = this.menu.checked.filter(key => this.$refs.menu.getNode(key).isLeaf)
this.$refs.menu.setCheckedKeys(filterKeys, true)
})
this.grid.list = res.data.grid || []; this.grid.list = res.data.grid || [];
this.dept.list = res.data.dept || []; this.dept.list = res.data.dept || [];
this.$nextTick(() => {
let filterKeys = this.menu.checked.filter(key => {
let node = this.$refs.menu.getNode(key);
//
return node && node.isLeaf;
});
this.$refs.menu.setCheckedKeys(filterKeys, true);
});
return false; return false;
} }
this.$alert(res.message, "提示", {type: 'error'}); this.$alert(res.message, "提示", { type: 'error' });
}); });
} else {
this.$nextTick(() => {
let filterKeys = this.menu.checked.filter(key => {
let node = this.$refs.menu.getNode(key);
//
return node && node.isLeaf;
});
this.$refs.menu.setCheckedKeys(filterKeys, true);
});
} }
} }
} }
} }
}
</script> </script>
<style> <style scoped>
h2 {
font-size: 17px;
color: #3c4a54;
padding: 0 0 30px 0;
}
</style> </style>

Some files were not shown because too many files have changed in this diff Show More