no message

This commit is contained in:
小陌 2024-01-04 18:53:32 +08:00
parent e104d8b6f4
commit 01c808e5b2
96 changed files with 216 additions and 178 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.742c9157.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.b9d857df.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.ccb373e3.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.0fba5919.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;
top:0px;
left:0px;

4
dist/report.html vendored

File diff suppressed because one or more lines are too long

1
dist/static/css/app.0fba5919.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

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 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[155],{7155:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var a=r(6252);function o(e,t,r,o,u,l){const n=(0,a.up)("el-progress"),p=(0,a.up)("x-statistic"),f=(0,a.up)("el-card"),d=(0,a.up)("el-col"),s=(0,a.up)("el-row");return(0,a.wg)(),(0,a.j4)(f,{shadow:"never",header:"当前已用量"},{default:(0,a.w5)((()=>[(0,a.Wm)(n,{"text-inside":!0,"stroke-width":20,color:u.color,percentage:u.value,format:l.format},null,8,["color","percentage","format"]),(0,a.Wm)(s,{gutter:15,style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{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)(d,{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)(d,{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)(d,{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 u=r(8872),l={components:{xStatistic:u.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)(l,[["render",o]]);var f=p}}]);
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[102],{1102:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var a=r(6808);function o(e,t,r,o,u,l){const n=(0,a.up)("el-progress"),p=(0,a.up)("x-statistic"),f=(0,a.up)("el-card"),d=(0,a.up)("el-col"),s=(0,a.up)("el-row");return(0,a.wg)(),(0,a.j4)(f,{shadow:"never",header:"当前已用量"},{default:(0,a.w5)((()=>[(0,a.Wm)(n,{"text-inside":!0,"stroke-width":20,color:u.color,percentage:u.value,format:l.format},null,8,["color","percentage","format"]),(0,a.Wm)(s,{gutter:15,style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{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)(d,{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)(d,{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)(d,{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 u=r(6692),l={components:{xStatistic:u.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)(l,[["render",o]]);var f=p}}]);

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([[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([[149],{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}}]);

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

1
dist/static/js/251.15d72568.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[251],{251:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=a(6808),l=a(9511);const n={class:"left-panel"},i={class:"right-panel"},s={class:"right-panel-search"};function c(e,t,a,c,o,u){const h=(0,r.up)("el-date-picker"),p=(0,r.up)("el-input"),d=(0,r.up)("el-button"),m=(0,r.up)("el-header"),g=(0,r.up)("el-table-column"),f=(0,r.up)("xTable"),w=(0,r.up)("el-main"),b=(0,r.up)("el-container");return(0,r.wg)(),(0,r.j4)(b,{class:"container"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,[(0,r.Wm)(h,{modelValue:o.date,"onUpdate:modelValue":t[0]||(t[0]=e=>o.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,r._)("div",i,[(0,r._)("div",s,[(0,r.Wm)(p,{modelValue:o.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>o.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,r.Wm)(d,{type:"primary",icon:"el-icon-search",onClick:u.upsearch},null,8,["onClick"])])])])),_:1}),(0,r.Wm)(w,{class:"nopadding"},{default:(0,r.w5)((()=>[(0,r.Wm)(f,{ref:"table",api:o.api,params:o.search,tableColumn:o.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:u.rowClick},{default:(0,r.w5)((()=>[(0,r.Wm)(g,{type:"index",width:"60",align:"center"},{default:(0,r.w5)((e=>[(0,r._)("span",null,(0,l.zw)(e.$index+(o.currentPage-1)*o.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})}var o=a(1552),u=a(1843),h={name:"log",components:{columnItem:o.Z,xMenuItem: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 r=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+r,"gi"),""),e=e.replace(new RegExp("\\??"+r+"&?","gi"),"?"),e;var l=t+"="+a;if(e.match(r)){var n="("+t+"=)([^&]*)";return n=e.replace(new RegExp(n,"gi"),l),n}return e.match("[?]")?e+"&"+l:e+"?"+l},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)}))}}},p=a(8700);const d=(0,p.Z)(h,[["render",c],["__scopeId","data-v-eba8b6d4"]]);var m=d}}]);

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}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[233],{6233:function(e,l,t){t.r(l),t.d(l,{default:function(){return c}});var a=t(6252);const o=(0,a._)("div",{class:"el-form-item-msg"},null,-1),r=(0,a._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function m(e,l,t,m,i,n){const d=(0,a.up)("el-switch"),u=(0,a.up)("el-form-item"),c=(0,a.up)("el-color-picker"),s=(0,a.up)("el-form"),f=(0,a.up)("el-card"),p=(0,a.up)("el-option"),h=(0,a.up)("el-select");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(f,{shadow:"never",header:"语言主题"},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{label:"主题"},{default:(0,a.w5)((()=>[(0,a.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,a.Wm)(u,{label:"主题颜色"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:i.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>i.config.colorPrimary=e),predefine:i.colorList},{default:(0,a.w5)((()=>[(0,a.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1})])),_:1},512)])),_:1}),(0,a.Wm)(f,{shadow:"never",header:"个人设置",style:{"margin-top":"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{label:"自动登出"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:i.config.autoExit,"onUpdate:modelValue":l[2]||(l[2]=e=>i.config.autoExit=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{label:"从不",value:0}),(0,a.Wm)(p,{label:"1分钟",value:1}),(0,a.Wm)(p,{label:"5分钟",value:5}),(0,a.Wm)(p,{label:"10分钟",value:10}),(0,a.Wm)(p,{label:"15分钟",value:15}),(0,a.Wm)(p,{label:"20分钟",value:20}),(0,a.Wm)(p,{label:"25分钟",value:25}),(0,a.Wm)(p,{label:"30分钟",value:30}),(0,a.Wm)(p,{label:"35分钟",value:35}),(0,a.Wm)(p,{label:"40分钟",value:40}),(0,a.Wm)(p,{label:"45分钟",value:45}),(0,a.Wm)(p,{label:"50分钟",value:50}),(0,a.Wm)(p,{label:"55分钟",value:55}),(0,a.Wm)(p,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var i=t(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=t(3744);const u=(0,d.Z)(n,[["render",m]]);var c=u}}]);
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[279],{8279:function(e,l,t){t.r(l),t.d(l,{default:function(){return c}});var a=t(6808);const o=(0,a._)("div",{class:"el-form-item-msg"},null,-1),r=(0,a._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function m(e,l,t,m,i,n){const d=(0,a.up)("el-switch"),u=(0,a.up)("el-form-item"),c=(0,a.up)("el-color-picker"),s=(0,a.up)("el-form"),f=(0,a.up)("el-card"),p=(0,a.up)("el-option"),h=(0,a.up)("el-select");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(f,{shadow:"never",header:"语言主题"},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{label:"主题"},{default:(0,a.w5)((()=>[(0,a.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,a.Wm)(u,{label:"主题颜色"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:i.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>i.config.colorPrimary=e),predefine:i.colorList},{default:(0,a.w5)((()=>[(0,a.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1})])),_:1},512)])),_:1}),(0,a.Wm)(f,{shadow:"never",header:"个人设置",style:{"margin-top":"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{label:"自动登出"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:i.config.autoExit,"onUpdate:modelValue":l[2]||(l[2]=e=>i.config.autoExit=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{label:"从不",value:0}),(0,a.Wm)(p,{label:"1分钟",value:1}),(0,a.Wm)(p,{label:"5分钟",value:5}),(0,a.Wm)(p,{label:"10分钟",value:10}),(0,a.Wm)(p,{label:"15分钟",value:15}),(0,a.Wm)(p,{label:"20分钟",value:20}),(0,a.Wm)(p,{label:"25分钟",value:25}),(0,a.Wm)(p,{label:"30分钟",value:30}),(0,a.Wm)(p,{label:"35分钟",value:35}),(0,a.Wm)(p,{label:"40分钟",value:40}),(0,a.Wm)(p,{label:"45分钟",value:45}),(0,a.Wm)(p,{label:"50分钟",value:50}),(0,a.Wm)(p,{label:"55分钟",value:55}),(0,a.Wm)(p,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var i=t(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=t(8700);const u=(0,d.Z)(n,[["render",m]]);var c=u}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[299],{5299:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=a(6252),l=a(3577);const n={class:"left-panel"},i={class:"right-panel"},s={class:"right-panel-search"};function c(e,t,a,c,o,u){const h=(0,r.up)("el-date-picker"),p=(0,r.up)("el-input"),d=(0,r.up)("el-button"),m=(0,r.up)("el-header"),g=(0,r.up)("el-table-column"),f=(0,r.up)("xTable"),w=(0,r.up)("el-main"),b=(0,r.up)("el-container");return(0,r.wg)(),(0,r.j4)(b,{class:"container"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,[(0,r.Wm)(h,{modelValue:o.date,"onUpdate:modelValue":t[0]||(t[0]=e=>o.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,r._)("div",i,[(0,r._)("div",s,[(0,r.Wm)(p,{modelValue:o.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>o.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,r.Wm)(d,{type:"primary",icon:"el-icon-search",onClick:u.upsearch},null,8,["onClick"])])])])),_:1}),(0,r.Wm)(w,{class:"nopadding"},{default:(0,r.w5)((()=>[(0,r.Wm)(f,{ref:"table",api:o.api,params:o.search,tableColumn:o.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:u.rowClick},{default:(0,r.w5)((()=>[(0,r.Wm)(g,{type:"index",width:"60",align:"center"},{default:(0,r.w5)((e=>[(0,r._)("span",null,(0,l.zw)(e.$index+(o.currentPage-1)*o.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})}var o=a(8492),u=a(8046),h={name:"log",components:{columnItem:o.Z,xMenuItem: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 r=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+r,"gi"),""),e=e.replace(new RegExp("\\??"+r+"&?","gi"),"?"),e;var l=t+"="+a;if(e.match(r)){var n="("+t+"=)([^&]*)";return n=e.replace(new RegExp(n,"gi"),l),n}return e.match("[?]")?e+"&"+l:e+"?"+l},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)}))}}},p=a(3744);const d=(0,p.Z)(h,[["render",c],["__scopeId","data-v-eba8b6d4"]]);var m=d}}]);

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}}]);

1
dist/static/js/34.ed6c9523.js vendored Normal file

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([[146],{2146:function(e,t,a){a.r(t),a.d(t,{default:function(){return y}});var n=a(6252),l=a(3577);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(596);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(3744);const h=(0,g.Z)(w,[["render",m],["__scopeId","data-v-1377d2f7"]]);var y=h}}]);
"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(860);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}}]);

1
dist/static/js/378.01a81183.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([[386],{2386:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var i=a(6252),l=a(3577);const n={class:"message-body"},s={class:"message-content"},d={class:"message-body-item"};function o(e,t,a,o,c,u){const r=(0,i.up)("x-page-header"),h=(0,i.up)("el-header"),m=(0,i.up)("x-menu-item"),p=(0,i.up)("el-main"),g=(0,i.up)("el-container"),f=(0,i.up)("table2"),b=(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,l.j5)({width:c.width+"px"})},[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[c.title?((0,i.wg)(),(0,i.j4)(h,{key:0},{default:(0,i.w5)((()=>[(0,i.Wm)(r,{title:c.title,icon:c.icon},null,8,["title","icon"])])),_:1})):(0,i.kq)("",!0),(0,i.Wm)(p,{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,l.j5)({"margin-left":c.width+"px"})},[(0,i.Wm)(f,{ref:"table",onChildLoaded:u.getChildData},null,8,["onChildLoaded"])],4)])),[[b,c.loading]])])}var c=a(8046),u=a(8362),r={name:"table_3",components:{table2:u["default"],xMenuItem:c.Z},props:{name:{type:String,default:""}},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}}},h=a(3744);const m=(0,h.Z)(r,[["render",o],["__scopeId","data-v-3d8a5da0"]]);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([[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}}]);

View File

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

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}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[441],{2441: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"),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(7658);var u=n(3608);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-86f11d78"]]);var c=p}}]);

1
dist/static/js/457.c4bc9169.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(4045),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 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[967],{5967:function(e,s,r){r.r(s),r.d(s,{default:function(){return c}});var o=r(6252);const l=(0,o._)("div",{class:"el-form-item-msg"},"必须提供当前登录用户密码才能进行更改",-1),t=(0,o._)("div",{class:"el-form-item-msg"},"请输入包含英文、数字的8位以上密码",-1);function a(e,s,r,a,d,n){const u=(0,o.up)("el-alert"),m=(0,o.up)("el-input"),w=(0,o.up)("el-form-item"),p=(0,o.up)("x-password-strength"),i=(0,o.up)("el-button"),f=(0,o.up)("el-form"),h=(0,o.up)("el-card");return(0,o.wg)(),(0,o.j4)(h,{shadow:"never",header:"修改密码"},{default:(0,o.w5)((()=>[(0,o.Wm)(u,{title:"密码更新成功后,您将被重定向到登录页面,您可以使用新密码重新登录。",type:"info","show-icon":"",style:{"margin-bottom":"15px"}}),(0,o.Wm)(f,{ref:"form",model:d.form,rules:d.rules,"label-width":"120px",style:{"margin-top":"20px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(w,{label:"当前密码",prop:"userPassword"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{modelValue:d.form.userPassword,"onUpdate:modelValue":s[0]||(s[0]=e=>d.form.userPassword=e),type:"password","show-password":"",placeholder:"请输入当前密码"},null,8,["modelValue"]),l])),_:1}),(0,o.Wm)(w,{label:"新密码",prop:"newPassword"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[1]||(s[1]=e=>d.form.newPassword=e),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"]),(0,o.Wm)(p,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[2]||(s[2]=e=>d.form.newPassword=e)},null,8,["modelValue"]),t])),_:1}),(0,o.Wm)(w,{label:"确认新密码",prop:"confirmNewPassword"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{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,o.Wm)(w,null,{default:(0,o.w5)((()=>[(0,o.Wm)(i,{type:"primary",onClick:n.save},{default:(0,o.w5)((()=>[(0,o.Uk)("保存密码")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","rules"])])),_:1})}var d=r(3577);const n={class:"x-password-strength"};function u(e,s,r,l,t,a){return(0,o.wg)(),(0,o.iD)("div",n,[(0,o._)("div",{class:(0,d.C_)(["x-password-strength-bar",`x-password-strength-level-${t.level}`])},null,2)])}var m={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,o=/\d/.test(e),l=/[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?(o&&(s+=1),l&&(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)(m,[["render",u],["__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}}]);
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[474],{5474:function(e,s,r){r.r(s),r.d(s,{default:function(){return c}});var o=r(6808);const l=(0,o._)("div",{class:"el-form-item-msg"},"必须提供当前登录用户密码才能进行更改",-1),t=(0,o._)("div",{class:"el-form-item-msg"},"请输入包含英文、数字的8位以上密码",-1);function a(e,s,r,a,d,n){const u=(0,o.up)("el-alert"),m=(0,o.up)("el-input"),w=(0,o.up)("el-form-item"),p=(0,o.up)("x-password-strength"),i=(0,o.up)("el-button"),f=(0,o.up)("el-form"),h=(0,o.up)("el-card");return(0,o.wg)(),(0,o.j4)(h,{shadow:"never",header:"修改密码"},{default:(0,o.w5)((()=>[(0,o.Wm)(u,{title:"密码更新成功后,您将被重定向到登录页面,您可以使用新密码重新登录。",type:"info","show-icon":"",style:{"margin-bottom":"15px"}}),(0,o.Wm)(f,{ref:"form",model:d.form,rules:d.rules,"label-width":"120px",style:{"margin-top":"20px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(w,{label:"当前密码",prop:"userPassword"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{modelValue:d.form.userPassword,"onUpdate:modelValue":s[0]||(s[0]=e=>d.form.userPassword=e),type:"password","show-password":"",placeholder:"请输入当前密码"},null,8,["modelValue"]),l])),_:1}),(0,o.Wm)(w,{label:"新密码",prop:"newPassword"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[1]||(s[1]=e=>d.form.newPassword=e),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"]),(0,o.Wm)(p,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[2]||(s[2]=e=>d.form.newPassword=e)},null,8,["modelValue"]),t])),_:1}),(0,o.Wm)(w,{label:"确认新密码",prop:"confirmNewPassword"},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{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,o.Wm)(w,null,{default:(0,o.w5)((()=>[(0,o.Wm)(i,{type:"primary",onClick:n.save},{default:(0,o.w5)((()=>[(0,o.Uk)("保存密码")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","rules"])])),_:1})}var d=r(9511);const n={class:"x-password-strength"};function u(e,s,r,l,t,a){return(0,o.wg)(),(0,o.iD)("div",n,[(0,o._)("div",{class:(0,d.C_)(["x-password-strength-bar",`x-password-strength-level-${t.level}`])},null,2)])}var m={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,o=/\d/.test(e),l=/[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?(o&&(s+=1),l&&(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)(m,[["render",u],["__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

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}}]);

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}}]);

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[185],{9185:function(e,t,l){l.r(t),l.d(t,{default:function(){return g}});var a=l(6252),n=l(3577);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(5792),s=l(7015),p=l(8492),h=l(8046),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(3744);const f=(0,m.Z)(d,[["render",c],["__scopeId","data-v-79c6f9d2"]]);var g=f}}]);
"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(1552),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([[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/822.5ad09012.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[822],{822:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var i=a(6808),l=a(9511);const n={class:"message-body"},s={class:"message-content"},d={class:"message-body-item"};function o(e,t,a,o,c,u){const r=(0,i.up)("x-page-header"),h=(0,i.up)("el-header"),m=(0,i.up)("x-menu-item"),p=(0,i.up)("el-main"),g=(0,i.up)("el-container"),f=(0,i.up)("table2"),b=(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,l.j5)({width:c.width+"px"})},[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[c.title?((0,i.wg)(),(0,i.j4)(h,{key:0},{default:(0,i.w5)((()=>[(0,i.Wm)(r,{title:c.title,icon:c.icon},null,8,["title","icon"])])),_:1})):(0,i.kq)("",!0),(0,i.Wm)(p,{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,l.j5)({"margin-left":c.width+"px"})},[(0,i.Wm)(f,{ref:"table",onChildLoaded:u.getChildData},null,8,["onChildLoaded"])],4)])),[[b,c.loading]])])}var c=a(1843),u=a(4045),r={name:"table_3",components:{table2:u["default"],xMenuItem:c.Z},props:{name:{type:String,default:""}},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}}},h=a(8700);const m=(0,h.Z)(r,[["render",o],["__scopeId","data-v-3d8a5da0"]]);var p=m}}]);

1
dist/static/js/853.70c605d9.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

@ -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}}]);

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/app.ccb373e3.js vendored Normal file

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

File diff suppressed because one or more lines are too long

1
dist/static/js/xChunks.2f22260f.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
<template>
<ElCard :class="['mb-15px']" shadow="never">
<ElCard :class="['mb-15px', 'contentwrap']" shadow="never">
<template v-if="title" #header>
<div class="flex items-center">
<span class="text-16px font-700">{{ title }}</span>
@ -19,6 +19,10 @@
.-mb-15px {
margin-bottom: -15px;
}
.contentwrap .el-card__body {
padding: 2px 5px
}
</style>
<script>

View File

@ -151,7 +151,7 @@ export default {
//
displayHandle(item) {
if (item.showhandle) {
const exp = eval(item.showhandle.replace(/\$/g, "this.form"))
const exp = eval(item.showhandle.replace(/\$/g, "this.form")) // $.id==1 $.ids.includes("4")
return exp
} else if (item.hidehandle) {
const exp = eval(item.hidehandle.replace(/\$/g, "this.form"))

View File

@ -94,6 +94,13 @@
<template v-else-if="item.component == 'formtable'">
<x-form-table ref="videostable" v-model="data[item.name]" v-bind="item.options"> </x-form-table>
</template>
<template v-else-if="item.component == 'tabs'">
<el-tabs v-model="tabsValue" :type="item.options.type || 'border-card'" class="formtabs">
<el-tab-pane v-for="t in item.options.items" :key="t.value" :label="t.label" :name="t.value">
<el-input v-model="data[item.name][t.value]" type="textarea" rows="6" show-word-limit></el-input>
</el-tab-pane>
</el-tabs>
</template>
<!-- noComponent -->
<template v-else>
<el-tag type="danger">[{{ item.component }}] Component not found</el-tag>
@ -101,6 +108,36 @@
<div v-if="item.message" class="el-form-item-msg">{{ item.message }}</div>
</template>
<style>
.formtabs .el-tabs__header {
margin: 0;
}
/* .formtabs.el-textarea__inner {
box-shadow: none;
cursor: pointer;
height: auto;
padding: 0;
} */
</style>
<style scoped>
.formtabs {
width: 100%;
padding: 0 !important;
--el-input-hover-border-color: #000
}
.formtabs .el-tabs__nav {
padding: 0;
}
.formtabs .el-tabs--border-card>.el-tabs__content {
/* padding: 2px; */
overflow: inherit;
}
</style>
<script>
import { defineAsyncComponent } from 'vue'
const tableselectRender = defineAsyncComponent(() => import('./items/tableselect'))
@ -120,6 +157,12 @@ export default {
xEditor
},
computed: {
tabsValue() {
if (this.item.options && this.item.component == 'tabs') {
return this.item.options.value || this.item.options.items[0].value;
}
return '';
},
computedValue: {
get() {
// 使

View File

@ -2,7 +2,7 @@
<div style="display: flex;">
<el-badge v-if="item.status && item.status.key && row[item.status.key]" is-dot class="item" :type="item.status.type || 'primary'" style="width: 10px;cursor: pointer;margin-top: 10px;"></el-badge>
<x-avatar v-if="item.columntype == 'avatar' || item.component == 'avatar'" :name="item.name" :options="item.options" :data="row"></x-avatar>
<el-badge v-else-if="item.columntype == 'badge' || item.columntype == 'imagegroup'" :value="getType(row[item.name])" @click="handleClick(row, item)" v-bind="item.options"></el-badge>
<el-badge v-else-if="item.columntype == 'badge' || item.columntype == 'imagegroup'" :value="getType(row[item.name])" @click="handleClick(row, item)" v-bind="item.options"></el-badge>
<el-image v-else-if="item.columntype == 'image'" :preview-src-list="[getImg(row[item.name])]" :preview-teleported="true" hide-on-click-modal="true" lazy="true" style="max-width: 60px; height: 26px; border-radius: 2px;" fit="cover" :src="getImg(row[item.name])">
<template #error>
<div class="image-slot">
@ -19,14 +19,14 @@
<p v-else-if="item.columntype == 'button' && item.options.items && item.options.items.length > 0">
<template v-for="op in item.options.items">
<el-button @click="handleClick(row, op.options || item)" :key="op.value" :type="op.type || 'warning'" :size="op.size || 'small'" :link="op.link" :icon="op.icon" :circle="op.circle || false" v-if="op.value == row[item.name]">
<el-button @click="handleClick(row, op.options || item)" :key="op.value" :type="op.type || 'warning'" v-bind="op" v-if="op.value == row[item.name]">
{{ op.label }}
</el-button>
</template>
</p>
<p v-else-if="item.columntype == 'button'">
<el-button @click="handleClick(row, item)" :type="item.options.type || 'warning'" :size="item.options.size || 'small'" :circle="item.options.circle || false" :icon="item.options.icon"> {{ row[item.name] }} </el-button>
<el-button @click="handleClick(row, item)" :type="item.options.type || 'warning'" v-bind="item.options"> {{ row[item.name] }} </el-button>
</p>
<p v-else-if="item.columntype == 'tag' || item.columntype == 'time'" @click="handleClick(row, item)" v-time.tip="row[item.name]"></p>
@ -37,9 +37,9 @@
</div>
</template>
<style scoped>
.el-badge{
display: inherit;
}
.el-badge {
display: inherit;
}
</style>
<script>
export default {
@ -62,10 +62,8 @@ export default {
}
//
else if (item.update && (item.update.url || item.update.name)) {
this.$emit('xtableupdate', row, {
name: item.update.name || item.name,
remoteurl: item.update.url || 'table/getUpdate?name=' + item.update.name
}, item.update.type || 'dialog', 'update');
var options = Object.assign({ name: item.update.name || item.label, remoteurl: item.update.url || 'table/getUpdate?name=' + item.update.name }, item.update);
this.$emit('xtableupdate', row, options, 'update');
return;
}
//

View File

@ -242,8 +242,8 @@ export default {
getSelection(val) {
this.selection = val;
},
xtableupdate(row, options = [], componenttype, type) {
xtableupdate(row, options, type = 'update') {
var componenttype = options.type || 'dialog';
if (type == 'update') {
this.tableUpdateKey = options.name || this.name;
this.$nextTick(() => {
@ -251,7 +251,6 @@ export default {
})
return;
}
this.xtabledialog = options.name || this.name;
this.$nextTick(() => {
this.$refs.xtabledialog.open().setData(row).getComponentType(componenttype).setConfig(options);

View File

@ -122,6 +122,7 @@ export default {
//
setConfig(o) {
Object.assign(this.config, o);
if (typeof this.config.key !== 'undefined' && this.config.key) {
this.key = this.config.key;
}

View File

@ -15,7 +15,7 @@
</ContentWrap>
<ContentWrap class="xtable">
<el-tabs v-if="tabs && tabs.length > 0" v-model="search[tabskey]" @tab-change="tabChange">
<el-tabs v-if="tabs && tabs.length > 0" v-model="search[tabskey]" @tab-change="tabChange" class="xtabletabs">
<el-tab-pane v-for="item in tabs" :key="item.value" :label="item.label + (item.num ? '(' + item.num + ')' : '')" :name="item.value" />
</el-tabs>
<xTable :isselection="isselection" :batchoperation="batch" :defaultExpandAll="defaultExpandAll" height="auto" ref="table" :tableColumn="column" :name="tablename" :params="search" :api="api" :row-key="key" :remoteSort="true" :remoteFilter="true" stripe>
@ -244,18 +244,14 @@ export default {
margin-bottom: 0px !important;
}
.xtable .el-card__body {
padding: 2px 5px
}
.xtable .el-tabs__nav {
padding: 10px
}
.xtable .el-tabs {
.xtable .xtabletabs {
padding: 0px 2px 0;
}
.xtable .xtabletabs .el-tabs__nav {
padding: 10px
}
.xtable .mt-10px {
margin-top: 15px;
}
@ -264,19 +260,16 @@ export default {
margin-bottom: 15px;
}
.xtable .float-right {
float: right;
}
.xtable .el-tabs__header {
.xtable .xtabletabs .el-tabs__header {
margin: 0 0 2px;
}
.xtable .el-tabs__nav-next,
.el-tabs__nav-prev {
.xtable .xtabletabs .el-tabs__nav-next,
.xtable .xtabletabs .el-tabs__nav-prev {
padding: 10px 0;
}
</style>