table 与 form 新增 status.key 状态
This commit is contained in:
parent
4a88628bb7
commit
e9ab2ba4cc
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -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.14247ec5.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.2bd8b1c0.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.09556da4.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.bb01c8a0.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
4
dist/report.html
vendored
File diff suppressed because one or more lines are too long
1
dist/static/css/app.2bd8b1c0.css
vendored
1
dist/static/css/app.2bd8b1c0.css
vendored
File diff suppressed because one or more lines are too long
1
dist/static/css/app.bb01c8a0.css
vendored
Normal file
1
dist/static/css/app.bb01c8a0.css
vendored
Normal file
File diff suppressed because one or more lines are too long
12
dist/static/css/modules.70e682f6.css
vendored
Normal file
12
dist/static/css/modules.70e682f6.css
vendored
Normal file
File diff suppressed because one or more lines are too long
12
dist/static/css/modules.853ca01a.css
vendored
12
dist/static/css/modules.853ca01a.css
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/1.55ffdf0a.js
vendored
Normal file
1
dist/static/js/1.55ffdf0a.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/105.9dff4cb4.js
vendored
1
dist/static/js/105.9dff4cb4.js
vendored
@ -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}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[669],{2669:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var a=r(6252);function o(e,t,r,o,l,u){const n=(0,a.up)("el-progress"),p=(0,a.up)("x-statistic"),f=(0,a.up)("el-card"),s=(0,a.up)("el-col"),d=(0,a.up)("el-row");return(0,a.wg)(),(0,a.j4)(f,{shadow:"never",header:"当前已用量",style:{margin:"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(n,{"text-inside":!0,"stroke-width":20,color:l.color,percentage:l.value,format:u.format},null,8,["color","percentage","format"]),(0,a.Wm)(d,{gutter:15,style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"文档",value:"7.41",suffix:"GB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"图片",value:"12.90",suffix:"GB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"视音频",value:"68.79",suffix:"MB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"其他",value:"17.58",suffix:"GB",groupSeparator:""})])),_:1})])),_:1})])),_:1})])),_:1})}var l=r(8872),u={components:{xStatistic:l.Z},data(){return{value:39.58,color:[{color:"#67C23A",percentage:40},{color:"#E6A23C",percentage:60},{color:"#F56C6C",percentage:80}]}},methods:{format(e){return e+"G"}}},n=r(3744);const p=(0,n.Z)(u,[["render",o]]);var f=p}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[135],{7135:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var a=r(6808);function o(e,t,r,o,l,u){const n=(0,a.up)("el-progress"),p=(0,a.up)("x-statistic"),f=(0,a.up)("el-card"),s=(0,a.up)("el-col"),d=(0,a.up)("el-row");return(0,a.wg)(),(0,a.j4)(f,{shadow:"never",header:"当前已用量",style:{margin:"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(n,{"text-inside":!0,"stroke-width":20,color:l.color,percentage:l.value,format:u.format},null,8,["color","percentage","format"]),(0,a.Wm)(d,{gutter:15,style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"文档",value:"7.41",suffix:"GB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"图片",value:"12.90",suffix:"GB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"视音频",value:"68.79",suffix:"MB",groupSeparator:""})])),_:1})])),_:1}),(0,a.Wm)(s,{lg:6},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"其他",value:"17.58",suffix:"GB",groupSeparator:""})])),_:1})])),_:1})])),_:1})])),_:1})}var l=r(6692),u={components:{xStatistic:l.Z},data(){return{value:39.58,color:[{color:"#67C23A",percentage:40},{color:"#E6A23C",percentage:60},{color:"#F56C6C",percentage:80}]}},methods:{format(e){return e+"G"}}},n=r(8700);const p=(0,n.Z)(u,[["render",o]]);var f=p}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[875],{9875:function(e,l,a){a.r(l),a.d(l,{default:function(){return c}});var t=a(6252);const o=(0,t._)("div",{class:"el-form-item-msg"},null,-1),r=(0,t._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function m(e,l,a,m,i,n){const d=(0,t.up)("el-switch"),u=(0,t.up)("el-form-item"),c=(0,t.up)("el-color-picker"),s=(0,t.up)("el-form"),f=(0,t.up)("el-card"),p=(0,t.up)("el-option"),g=(0,t.up)("el-select");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(f,{shadow:"never",header:"语言主题",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"主题"},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{modelValue:i.config.dark,"onUpdate:modelValue":l[0]||(l[0]=e=>i.config.dark=e),"inline-prompt":"","active-icon":"el-icon-moon","inactive-icon":"el-icon-sunny"},null,8,["modelValue"]),o])),_:1}),(0,t.Wm)(u,{label:"主题颜色"},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{modelValue:i.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>i.config.colorPrimary=e),predefine:i.colorList},{default:(0,t.w5)((()=>[(0,t.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1})])),_:1},512)])),_:1}),(0,t.Wm)(f,{shadow:"never",header:"个人设置",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"自动登出"},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{modelValue:i.config.autoExit,"onUpdate:modelValue":l[2]||(l[2]=e=>i.config.autoExit=e)},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{label:"从不",value:0}),(0,t.Wm)(p,{label:"1分钟",value:1}),(0,t.Wm)(p,{label:"5分钟",value:5}),(0,t.Wm)(p,{label:"10分钟",value:10}),(0,t.Wm)(p,{label:"15分钟",value:15}),(0,t.Wm)(p,{label:"20分钟",value:20}),(0,t.Wm)(p,{label:"25分钟",value:25}),(0,t.Wm)(p,{label:"30分钟",value:30}),(0,t.Wm)(p,{label:"35分钟",value:35}),(0,t.Wm)(p,{label:"40分钟",value:40}),(0,t.Wm)(p,{label:"45分钟",value:45}),(0,t.Wm)(p,{label:"50分钟",value:50}),(0,t.Wm)(p,{label:"55分钟",value:55}),(0,t.Wm)(p,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var i=a(3111),n={data(){return{colorList:["#409EFF","#009688","#536dfe","#ff5c93","#c62f2f","#fd726d"],config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1,colorPrimary:this.$tool.data.get("APP_COLOR")||this.$config.COLOR||"#409EFF",autoExit:this.$tool.data.get("AUTO_EXIT")||0}}},watch:{"config.dark"(e){e?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",e)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))},"config.colorPrimary"(e){e||(e="#409EFF",this.config.colorPrimary="#409EFF"),document.documentElement.style.setProperty("--el-color-primary",e);for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-light-${l}`,i.Z.lighten(e,l/10));for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-dark-${l}`,i.Z.darken(e,l/10));this.$tool.data.set("APP_COLOR",e)},"config.autoExit"(e){0==e?this.$tool.data.remove("AUTO_EXIT"):this.$tool.data.set("AUTO_EXIT",e)}}},d=a(3744);const u=(0,d.Z)(n,[["render",m]]);var c=u}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[149],{4149:function(e,l,a){a.r(l),a.d(l,{default:function(){return c}});var t=a(6808);const o=(0,t._)("div",{class:"el-form-item-msg"},null,-1),r=(0,t._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function m(e,l,a,m,i,n){const d=(0,t.up)("el-switch"),u=(0,t.up)("el-form-item"),c=(0,t.up)("el-color-picker"),s=(0,t.up)("el-form"),f=(0,t.up)("el-card"),p=(0,t.up)("el-option"),g=(0,t.up)("el-select");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(f,{shadow:"never",header:"语言主题",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"主题"},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{modelValue:i.config.dark,"onUpdate:modelValue":l[0]||(l[0]=e=>i.config.dark=e),"inline-prompt":"","active-icon":"el-icon-moon","inactive-icon":"el-icon-sunny"},null,8,["modelValue"]),o])),_:1}),(0,t.Wm)(u,{label:"主题颜色"},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{modelValue:i.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>i.config.colorPrimary=e),predefine:i.colorList},{default:(0,t.w5)((()=>[(0,t.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1})])),_:1},512)])),_:1}),(0,t.Wm)(f,{shadow:"never",header:"个人设置",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"自动登出"},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{modelValue:i.config.autoExit,"onUpdate:modelValue":l[2]||(l[2]=e=>i.config.autoExit=e)},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{label:"从不",value:0}),(0,t.Wm)(p,{label:"1分钟",value:1}),(0,t.Wm)(p,{label:"5分钟",value:5}),(0,t.Wm)(p,{label:"10分钟",value:10}),(0,t.Wm)(p,{label:"15分钟",value:15}),(0,t.Wm)(p,{label:"20分钟",value:20}),(0,t.Wm)(p,{label:"25分钟",value:25}),(0,t.Wm)(p,{label:"30分钟",value:30}),(0,t.Wm)(p,{label:"35分钟",value:35}),(0,t.Wm)(p,{label:"40分钟",value:40}),(0,t.Wm)(p,{label:"45分钟",value:45}),(0,t.Wm)(p,{label:"50分钟",value:50}),(0,t.Wm)(p,{label:"55分钟",value:55}),(0,t.Wm)(p,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var i=a(9158),n={data(){return{colorList:["#409EFF","#009688","#536dfe","#ff5c93","#c62f2f","#fd726d"],config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1,colorPrimary:this.$tool.data.get("APP_COLOR")||this.$config.COLOR||"#409EFF",autoExit:this.$tool.data.get("AUTO_EXIT")||0}}},watch:{"config.dark"(e){e?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",e)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))},"config.colorPrimary"(e){e||(e="#409EFF",this.config.colorPrimary="#409EFF"),document.documentElement.style.setProperty("--el-color-primary",e);for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-light-${l}`,i.Z.lighten(e,l/10));for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-dark-${l}`,i.Z.darken(e,l/10));this.$tool.data.set("APP_COLOR",e)},"config.autoExit"(e){0==e?this.$tool.data.remove("AUTO_EXIT"):this.$tool.data.set("AUTO_EXIT",e)}}},d=a(8700);const u=(0,d.Z)(n,[["render",m]]);var c=u}}]);
|
1
dist/static/js/179.e4363933.js
vendored
Normal file
1
dist/static/js/179.e4363933.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[179],{5179:function(e,s,r){r.r(s),r.d(s,{default:function(){return c}});var l=r(6808);const o=(0,l._)("div",{class:"el-form-item-msg"},"必须提供当前登录用户密码才能进行更改",-1),t=(0,l._)("div",{class:"el-form-item-msg"},"请输入包含英文、数字的8位以上密码",-1);function a(e,s,r,a,d,n){const m=(0,l.up)("el-alert"),u=(0,l.up)("el-input"),w=(0,l.up)("el-form-item"),p=(0,l.up)("x-password-strength"),i=(0,l.up)("el-button"),f=(0,l.up)("el-form"),h=(0,l.up)("el-card");return(0,l.wg)(),(0,l.j4)(h,{shadow:"never",header:"修改密码",style:{margin:"10px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{title:"密码更新成功后,您将被重定向到登录页面,您可以使用新密码重新登录。",type:"info","show-icon":"",style:{"margin-bottom":"15px"}}),(0,l.Wm)(f,{ref:"form",model:d.form,rules:d.rules,"label-width":"120px",style:{"margin-top":"20px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{label:"当前密码",prop:"userPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.userPassword,"onUpdate:modelValue":s[0]||(s[0]=e=>d.form.userPassword=e),type:"password","show-password":"",placeholder:"请输入当前密码"},null,8,["modelValue"]),o])),_:1}),(0,l.Wm)(w,{label:"新密码",prop:"newPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[1]||(s[1]=e=>d.form.newPassword=e),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"]),(0,l.Wm)(p,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[2]||(s[2]=e=>d.form.newPassword=e)},null,8,["modelValue"]),t])),_:1}),(0,l.Wm)(w,{label:"确认新密码",prop:"confirmNewPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.confirmNewPassword,"onUpdate:modelValue":s[3]||(s[3]=e=>d.form.confirmNewPassword=e),type:"password","show-password":"",placeholder:"请再次输入新密码"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(w,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,{type:"primary",onClick:n.save},{default:(0,l.w5)((()=>[(0,l.Uk)("保存密码")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","rules"])])),_:1})}var d=r(9511);const n={class:"x-password-strength"};function m(e,s,r,o,t,a){return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",{class:(0,d.C_)(["x-password-strength-bar",`x-password-strength-level-${t.level}`])},null,2)])}var u={props:{modelValue:{type:String,default:""}},data(){return{level:0}},watch:{modelValue(){this.strength(this.modelValue)}},mounted(){this.strength(this.modelValue)},methods:{strength(e){var s=0,r=e.length>=6,l=/\d/.test(e),o=/[a-z]/.test(e),t=/[A-Z]/.test(e),a=!/(\w)\1{2}/.test(e),d=/[`~!@#$%^&*()_+<>?:"{},./;'[\]]/.test(e);return e.length<=0?(s=0,this.level=s,!1):r?(l&&(s+=1),o&&(s+=1),t&&(s+=1),a&&(s+=1),d&&(s+=1),void(this.level=s)):(s=1,this.level=s,!1)}}},w=r(8700);const p=(0,w.Z)(u,[["render",m],["__scopeId","data-v-f6e10340"]]);var i=p,f={components:{xPasswordStrength:i},data(){return{form:{userPassword:"",newPassword:"",confirmNewPassword:""},rules:{userPassword:[{required:!0,message:"请输入当前密码"}],newPassword:[{required:!0,message:"请输入新密码"}],confirmNewPassword:[{required:!0,message:"请再次输入新密码"},{validator:(e,s,r)=>{s!==this.form.newPassword?r(new Error("两次输入密码不一致")):r()}}]}}},methods:{save(){this.$refs.form.validate((e=>{if(!e)return!1;this.$alert("密码修改成功,是否跳转至登录页使用新密码登录","修改成功",{type:"success",center:!0}).then((()=>{this.$router.replace({path:"/login"})})).catch((()=>{}))}))}}};const h=(0,w.Z)(f,[["render",a]]);var c=h}}]);
|
1
dist/static/js/195.3c8a7e1d.js
vendored
1
dist/static/js/195.3c8a7e1d.js
vendored
@ -1 +0,0 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[195],{1195:function(n,a,e){e.r(a),e.d(a,{default:function(){return i}});var t=e(6252);function u(n,a,e,u,r,d){const p=(0,t.up)("xTable"),c=(0,t.up)("el-main");return(0,t.wg)(),(0,t.j4)(c,{class:"nopadding"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{name:"weixin"})])),_:1})}var r=e(356),d={components:{xTable:r["default"]},data(){return{data:[]}}},p=e(3744);const c=(0,p.Z)(d,[["render",u]]);var i=c}}]);
|
1
dist/static/js/197.43d5a8c9.js
vendored
1
dist/static/js/197.43d5a8c9.js
vendored
@ -1 +0,0 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[197],{8197:function(n,e,t){t.r(e),t.d(e,{default:function(){return p}});var a=t(6252);function u(n,e,t,u,r,i){const o=(0,a.up)("xTable");return(0,a.wg)(),(0,a.j4)(o,{name:"weixin"})}var r=t(356),i={name:"weixin",components:{xTable:r["default"]},data(){return{loading:!1,leftType:"",info:{}}},computed:{},mounted(){},methods:{}},o=t(3744);const d=(0,o.Z)(i,[["render",u]]);var p=d}}]);
|
1
dist/static/js/20.8c3f1f69.js
vendored
Normal file
1
dist/static/js/20.8c3f1f69.js
vendored
Normal 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}}]);
|
File diff suppressed because one or more lines are too long
1
dist/static/js/225.d983bc36.js
vendored
1
dist/static/js/225.d983bc36.js
vendored
@ -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}}]);
|
@ -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}}]);
|
1
dist/static/js/30.163a435d.js
vendored
Normal file
1
dist/static/js/30.163a435d.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/309.e2d4e47c.js
vendored
1
dist/static/js/309.e2d4e47c.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/321.214697b9.js
vendored
1
dist/static/js/321.214697b9.js
vendored
@ -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 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[383],{4383: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 f=(0,i.up)("el-button"),g=(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)(g,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)(f,{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(8084),f={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)}))}}},g=t(3744);const v=(0,g.Z)(f,[["render",m],["__scopeId","data-v-4176f032"]]);var b=v}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[321],{5321: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 f=(0,i.up)("el-button"),g=(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)(g,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)(f,{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(6881),f={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)}))}}},g=t(8700);const v=(0,g.Z)(f,[["render",m],["__scopeId","data-v-4176f032"]]);var b=v}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[152],{2152:function(e,l,a){a.r(l),a.d(l,{default:function(){return r}});var o=a(6252);function m(e,l,a,m,t,u){const d=(0,o.up)("el-checkbox"),r=(0,o.up)("el-form-item"),n=(0,o.up)("el-form"),f=(0,o.up)("el-card");return(0,o.wg)(),(0,o.j4)(f,{shadow:"never",header:"事务待办",style:{margin:"10px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(n,{ref:"form","label-width":"180px","label-position":"left",style:{"margin-top":"20px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(r,{label:"有新的待办"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:t.form.new,"onUpdate:modelValue":l[0]||(l[0]=e=>t.form.new=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("短信推送")])),_:1},8,["modelValue"]),(0,o.Wm)(d,{modelValue:t.form.new_wx,"onUpdate:modelValue":l[1]||(l[1]=e=>t.form.new_wx=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("微信推送")])),_:1},8,["modelValue"])])),_:1}),(0,o.Wm)(r,{label:"待办有效时剩24小时"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:t.form.timeout,"onUpdate:modelValue":l[2]||(l[2]=e=>t.form.timeout=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("短信推送")])),_:1},8,["modelValue"]),(0,o.Wm)(d,{modelValue:t.form.timeout_wx,"onUpdate:modelValue":l[3]||(l[3]=e=>t.form.timeout_wx=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("微信推送")])),_:1},8,["modelValue"])])),_:1})])),_:1},512)])),_:1})}var t={data(){return{form:{new:!0,timeout:!0}}}},u=a(3744);const d=(0,u.Z)(t,[["render",m]]);var r=d}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[330],{5330:function(e,l,a){a.r(l),a.d(l,{default:function(){return r}});var o=a(6808);function m(e,l,a,m,t,u){const d=(0,o.up)("el-checkbox"),r=(0,o.up)("el-form-item"),n=(0,o.up)("el-form"),f=(0,o.up)("el-card");return(0,o.wg)(),(0,o.j4)(f,{shadow:"never",header:"事务待办",style:{margin:"10px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(n,{ref:"form","label-width":"180px","label-position":"left",style:{"margin-top":"20px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(r,{label:"有新的待办"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:t.form.new,"onUpdate:modelValue":l[0]||(l[0]=e=>t.form.new=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("短信推送")])),_:1},8,["modelValue"]),(0,o.Wm)(d,{modelValue:t.form.new_wx,"onUpdate:modelValue":l[1]||(l[1]=e=>t.form.new_wx=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("微信推送")])),_:1},8,["modelValue"])])),_:1}),(0,o.Wm)(r,{label:"待办有效时剩24小时"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{modelValue:t.form.timeout,"onUpdate:modelValue":l[2]||(l[2]=e=>t.form.timeout=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("短信推送")])),_:1},8,["modelValue"]),(0,o.Wm)(d,{modelValue:t.form.timeout_wx,"onUpdate:modelValue":l[3]||(l[3]=e=>t.form.timeout_wx=e)},{default:(0,o.w5)((()=>[(0,o.Uk)("微信推送")])),_:1},8,["modelValue"])])),_:1})])),_:1},512)])),_:1})}var t={data(){return{form:{new:!0,timeout:!0}}}},u=a(8700);const d=(0,u.Z)(t,[["render",m]]);var r=d}}]);
|
1
dist/static/js/351.d0460385.js
vendored
1
dist/static/js/351.d0460385.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/364.2952c6d3.js
vendored
1
dist/static/js/364.2952c6d3.js
vendored
@ -1 +0,0 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[364],{3364:function(e,l,t){t.r(l),t.d(l,{default:function(){return m}});var a=t(6252);function u(e,l,t,u,o,n){const d=(0,a.up)("el-input"),m=(0,a.up)("el-form-item"),p=(0,a.up)("el-button"),r=(0,a.up)("el-form"),i=(0,a.up)("el-table-column"),c=(0,a.up)("x-table-select");return(0,a.wg)(),(0,a.j4)(c,(0,a.dG)({modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=e=>o.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)(r,{key:0,inline:!0,model:e},{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)(m,{style:{"margin-bottom":"0px"},key:t},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{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)(m,{style:{"margin-bottom":"0px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{type:"primary",onClick:t},{default:(0,a.w5)((()=>[(0,a.Uk)("查询")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1032,["model"])):(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)(i,(0,a.dG)({key:l},e),null,16)))),128))])),_:1},16,["modelValue"])}var o={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:{}},n=t(3744);const d=(0,n.Z)(o,[["render",u]]);var m=d}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[335],{2335:function(e,t,a){a.r(t),a.d(t,{default:function(){return g}});var l=a(6252),n=a(3577);const r={class:"left-panel"},i={class:"right-panel"},o={class:"right-panel-search"};function u(e,t,a,u,c,s){const d=(0,l.up)("el-tree"),p=(0,l.up)("el-aside"),h=(0,l.up)("el-date-picker"),m=(0,l.up)("el-input"),g=(0,l.up)("el-button"),f=(0,l.up)("el-header"),w=(0,l.up)("xEcharts"),y=(0,l.up)("el-table-column"),k=(0,l.up)("xTable"),C=(0,l.up)("el-main"),b=(0,l.up)("el-container"),_=(0,l.up)("info"),W=(0,l.up)("el-drawer");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p,{width:"210px"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{ref:"typeList",class:"menu","node-key":"label",data:c.typeList,"default-expand-all":!0,onNodeClick:s.nodeClick,"current-node-key":c.current,"highlight-current":!0,"expand-on-click-node":!1},null,8,["data","onNodeClick","current-node-key"])])),_:1}),(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(f,null,{default:(0,l.w5)((()=>[(0,l._)("div",r,[(0,l.Wm)(h,{modelValue:c.date,"onUpdate:modelValue":t[0]||(t[0]=e=>c.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,l._)("div",i,[(0,l._)("div",o,[(0,l.Wm)(m,{modelValue:c.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>c.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,l.Wm)(g,{type:"primary",icon:"el-icon-search",onClick:s.upsearch},null,8,["onClick"])])])])),_:1}),"object"===typeof c.chartoption&&Object.keys(c.chartoption).length>0?((0,l.wg)(),(0,l.j4)(f,{key:0,style:{height:"120px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{height:"100%",option:c.chartoption},null,8,["option"])])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(k,{ref:"table",api:c.api,params:c.search,tableColumn:c.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:s.rowClick},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{type:"index",width:"60",align:"center"},{default:(0,l.w5)((e=>[(0,l._)("span",null,(0,n.zw)(e.$index+(c.currentPage-1)*c.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:c.infoDrawer,"onUpdate:modelValue":t[2]||(t[2]=e=>c.infoDrawer=e),title:"日志详情",size:700,"destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(_,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var c=a(6359),s=a(7015),d=a(4362),p={name:"log",components:{info:c["default"],columnItem:d.Z,xEcharts:s.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{keyword:this.$route.query.keyword||"",type:this.$route.query.type||""},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{changeURLArg(e,t,a){var l=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+l,"gi"),""),e=e.replace(new RegExp("\\??"+l+"&?","gi"),"?"),e;var n=t+"="+a;if(e.match(l)){var r="("+t+"=)([^&]*)";return r=e.replace(new RegExp(r,"gi"),n),r}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.search.type},{cacheparameters:!0}).then((e=>{200==e.code&&Object.assign(this.$data,e.data)}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);var e=this.changeURLArg(window.location.href,"type",this.current);e=this.changeURLArg(e,"keyword",this.search.keyword),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)}))}}},h=a(3744);const m=(0,h.Z)(p,[["render",u]]);var g=m}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[370],{5370:function(e,t,a){a.r(t),a.d(t,{default:function(){return g}});var l=a(6808),n=a(9511);const r={class:"left-panel"},i={class:"right-panel"},o={class:"right-panel-search"};function u(e,t,a,u,c,s){const d=(0,l.up)("el-tree"),p=(0,l.up)("el-aside"),h=(0,l.up)("el-date-picker"),m=(0,l.up)("el-input"),g=(0,l.up)("el-button"),f=(0,l.up)("el-header"),w=(0,l.up)("xEcharts"),y=(0,l.up)("el-table-column"),k=(0,l.up)("xTable"),C=(0,l.up)("el-main"),b=(0,l.up)("el-container"),_=(0,l.up)("info"),W=(0,l.up)("el-drawer");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p,{width:"210px"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{ref:"typeList",class:"menu","node-key":"label",data:c.typeList,"default-expand-all":!0,onNodeClick:s.nodeClick,"current-node-key":c.current,"highlight-current":!0,"expand-on-click-node":!1},null,8,["data","onNodeClick","current-node-key"])])),_:1}),(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(f,null,{default:(0,l.w5)((()=>[(0,l._)("div",r,[(0,l.Wm)(h,{modelValue:c.date,"onUpdate:modelValue":t[0]||(t[0]=e=>c.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,l._)("div",i,[(0,l._)("div",o,[(0,l.Wm)(m,{modelValue:c.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>c.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,l.Wm)(g,{type:"primary",icon:"el-icon-search",onClick:s.upsearch},null,8,["onClick"])])])])),_:1}),"object"===typeof c.chartoption&&Object.keys(c.chartoption).length>0?((0,l.wg)(),(0,l.j4)(f,{key:0,style:{height:"120px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{height:"100%",option:c.chartoption},null,8,["option"])])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(k,{ref:"table",api:c.api,params:c.search,tableColumn:c.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:s.rowClick},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{type:"index",width:"60",align:"center"},{default:(0,l.w5)((e=>[(0,l._)("span",null,(0,n.zw)(e.$index+(c.currentPage-1)*c.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:c.infoDrawer,"onUpdate:modelValue":t[2]||(t[2]=e=>c.infoDrawer=e),title:"日志详情",size:700,"destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(_,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var c=a(3834),s=a(7844),d=a(2326),p={name:"log",components:{info:c["default"],columnItem:d.Z,xEcharts:s.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{keyword:this.$route.query.keyword||"",type:this.$route.query.type||""},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{changeURLArg(e,t,a){var l=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+l,"gi"),""),e=e.replace(new RegExp("\\??"+l+"&?","gi"),"?"),e;var n=t+"="+a;if(e.match(l)){var r="("+t+"=)([^&]*)";return r=e.replace(new RegExp(r,"gi"),n),r}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.search.type},{cacheparameters:!0}).then((e=>{200==e.code&&Object.assign(this.$data,e.data)}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);var e=this.changeURLArg(window.location.href,"type",this.current);e=this.changeURLArg(e,"keyword",this.search.keyword),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)}))}}},h=a(8700);const m=(0,h.Z)(p,[["render",u]]);var g=m}}]);
|
1
dist/static/js/40.ddc7db38.js
vendored
1
dist/static/js/40.ddc7db38.js
vendored
@ -1 +0,0 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[40],{7040:function(e,s,r){r.r(s),r.d(s,{default:function(){return c}});var l=r(6252);const o=(0,l._)("div",{class:"el-form-item-msg"},"必须提供当前登录用户密码才能进行更改",-1),t=(0,l._)("div",{class:"el-form-item-msg"},"请输入包含英文、数字的8位以上密码",-1);function a(e,s,r,a,d,n){const m=(0,l.up)("el-alert"),u=(0,l.up)("el-input"),w=(0,l.up)("el-form-item"),p=(0,l.up)("x-password-strength"),i=(0,l.up)("el-button"),f=(0,l.up)("el-form"),h=(0,l.up)("el-card");return(0,l.wg)(),(0,l.j4)(h,{shadow:"never",header:"修改密码",style:{margin:"10px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{title:"密码更新成功后,您将被重定向到登录页面,您可以使用新密码重新登录。",type:"info","show-icon":"",style:{"margin-bottom":"15px"}}),(0,l.Wm)(f,{ref:"form",model:d.form,rules:d.rules,"label-width":"120px",style:{"margin-top":"20px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{label:"当前密码",prop:"userPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.userPassword,"onUpdate:modelValue":s[0]||(s[0]=e=>d.form.userPassword=e),type:"password","show-password":"",placeholder:"请输入当前密码"},null,8,["modelValue"]),o])),_:1}),(0,l.Wm)(w,{label:"新密码",prop:"newPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[1]||(s[1]=e=>d.form.newPassword=e),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"]),(0,l.Wm)(p,{modelValue:d.form.newPassword,"onUpdate:modelValue":s[2]||(s[2]=e=>d.form.newPassword=e)},null,8,["modelValue"]),t])),_:1}),(0,l.Wm)(w,{label:"确认新密码",prop:"confirmNewPassword"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{modelValue:d.form.confirmNewPassword,"onUpdate:modelValue":s[3]||(s[3]=e=>d.form.confirmNewPassword=e),type:"password","show-password":"",placeholder:"请再次输入新密码"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(w,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,{type:"primary",onClick:n.save},{default:(0,l.w5)((()=>[(0,l.Uk)("保存密码")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","rules"])])),_:1})}var d=r(3577);const n={class:"x-password-strength"};function m(e,s,r,o,t,a){return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",{class:(0,d.C_)(["x-password-strength-bar",`x-password-strength-level-${t.level}`])},null,2)])}var u={props:{modelValue:{type:String,default:""}},data(){return{level:0}},watch:{modelValue(){this.strength(this.modelValue)}},mounted(){this.strength(this.modelValue)},methods:{strength(e){var s=0,r=e.length>=6,l=/\d/.test(e),o=/[a-z]/.test(e),t=/[A-Z]/.test(e),a=!/(\w)\1{2}/.test(e),d=/[`~!@#$%^&*()_+<>?:"{},./;'[\]]/.test(e);return e.length<=0?(s=0,this.level=s,!1):r?(l&&(s+=1),o&&(s+=1),t&&(s+=1),a&&(s+=1),d&&(s+=1),void(this.level=s)):(s=1,this.level=s,!1)}}},w=r(3744);const p=(0,w.Z)(u,[["render",m],["__scopeId","data-v-f6e10340"]]);var i=p,f={components:{xPasswordStrength:i},data(){return{form:{userPassword:"",newPassword:"",confirmNewPassword:""},rules:{userPassword:[{required:!0,message:"请输入当前密码"}],newPassword:[{required:!0,message:"请输入新密码"}],confirmNewPassword:[{required:!0,message:"请再次输入新密码"},{validator:(e,s,r)=>{s!==this.form.newPassword?r(new Error("两次输入密码不一致")):r()}}]}}},methods:{save(){this.$refs.form.validate((e=>{if(!e)return!1;this.$alert("密码修改成功,是否跳转至登录页使用新密码登录","修改成功",{type:"success",center:!0}).then((()=>{this.$router.replace({path:"/login"})})).catch((()=>{}))}))}}};const h=(0,w.Z)(f,[["render",a]]);var c=h}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[596],{6230:function(r,o,e){e.r(o),e.d(o,{default:function(){return g}});var n=e(6252),t=e(5747);const i=r=>((0,n.dD)("data-v-26f35ebe"),r=r(),(0,n.Cn)(),r),a={class:"x"},c={class:"y"},s={class:"router-err"},u=i((()=>(0,n._)("div",{class:"router-err__icon"},[(0,n._)("img",{src:t})],-1))),l={class:"router-err__content"},d=i((()=>(0,n._)("h2",null,"无权限或找不到页面",-1))),_=i((()=>(0,n._)("p",null,"当前页面无权限访问或者打开了一个不存在的链接,请检查当前账户权限和链接的可访问性。",-1)));function p(r,o,e,t,i,p){const h=(0,n.up)("el-button");return(0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("div",c,[(0,n._)("div",s,[u,(0,n._)("div",l,[d,_,(0,n.Wm)(h,{type:"primary",plain:"",round:"",onClick:p.gohome},{default:(0,n.w5)((()=>[(0,n.Uk)("返回首页")])),_:1},8,["onClick"]),(0,n.Wm)(h,{type:"primary",round:"",onClick:p.goback},{default:(0,n.w5)((()=>[(0,n.Uk)("返回上一页")])),_:1},8,["onClick"])])])])])}e(7658);var h={methods:{gohome(){location.href="#/"},goback(){this.$router.go(-1)},gologin(){this.$router.push("/login")}}},k=e(3744);const f=(0,k.Z)(h,[["render",p],["__scopeId","data-v-26f35ebe"]]);var g=f}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[596],{4399:function(r,o,e){e.r(o),e.d(o,{default:function(){return g}});var n=e(6808),t=e(5747);const i=r=>((0,n.dD)("data-v-26f35ebe"),r=r(),(0,n.Cn)(),r),a={class:"x"},c={class:"y"},s={class:"router-err"},u=i((()=>(0,n._)("div",{class:"router-err__icon"},[(0,n._)("img",{src:t})],-1))),l={class:"router-err__content"},d=i((()=>(0,n._)("h2",null,"无权限或找不到页面",-1))),_=i((()=>(0,n._)("p",null,"当前页面无权限访问或者打开了一个不存在的链接,请检查当前账户权限和链接的可访问性。",-1)));function p(r,o,e,t,i,p){const h=(0,n.up)("el-button");return(0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("div",c,[(0,n._)("div",s,[u,(0,n._)("div",l,[d,_,(0,n.Wm)(h,{type:"primary",plain:"",round:"",onClick:p.gohome},{default:(0,n.w5)((()=>[(0,n.Uk)("返回首页")])),_:1},8,["onClick"]),(0,n.Wm)(h,{type:"primary",round:"",onClick:p.goback},{default:(0,n.w5)((()=>[(0,n.Uk)("返回上一页")])),_:1},8,["onClick"])])])])])}e(8311);var h={methods:{gohome(){location.href="#/"},goback(){this.$router.go(-1)},gologin(){this.$router.push("/login")}}},k=e(8700);const f=(0,k.Z)(h,[["render",p],["__scopeId","data-v-26f35ebe"]]);var g=f}}]);
|
1
dist/static/js/424.0efddb93.js
vendored
Normal file
1
dist/static/js/424.0efddb93.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[424],{8424:function(n,a,e){e.r(a),e.d(a,{default:function(){return i}});var t=e(6808);function u(n,a,e,u,r,d){const p=(0,t.up)("xTable"),c=(0,t.up)("el-main");return(0,t.wg)(),(0,t.j4)(c,{class:"nopadding"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{name:"weixin"})])),_:1})}var r=e(9378),d={components:{xTable:r["default"]},data(){return{data:[]}}},p=e(8700);const c=(0,p.Z)(d,[["render",u]]);var i=c}}]);
|
File diff suppressed because one or more lines are too long
1
dist/static/js/44.fe991d71.js
vendored
Normal file
1
dist/static/js/44.fe991d71.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[44],{7044:function(e,t,s){s.r(t),s.d(t,{default:function(){return _}});var p=s(6808);const r=e=>((0,p.dD)("data-v-616a86ed"),e=e(),(0,p.Cn)(),e),i={class:"x-cropper"},a={class:"x-cropper__img"},o=["src"],c={class:"x-cropper__preview"},n=r((()=>(0,p._)("h4",null,"图像预览",-1))),d={class:"x-cropper__preview__img",ref:"preview"};function l(e,t,s,r,l,g){return(0,p.wg)(),(0,p.iD)("div",i,[(0,p._)("div",a,[(0,p._)("img",{src:s.src,ref:"img"},null,8,o)]),(0,p._)("div",c,[n,(0,p._)("div",d,null,512)])])}var g=s(9151),h=s.n(g),u={props:{src:{type:String,default:""},compress:{type:Number,default:1},aspectRatio:{type:Number,default:NaN}},data(){return{crop:null}},watch:{aspectRatio(e){this.crop.setAspectRatio(e)}},mounted(){this.init()},methods:{init(){this.crop=new(h())(this.$refs.img,{viewMode:2,dragMode:"move",responsive:!1,aspectRatio:this.aspectRatio,preview:this.$refs.preview})},setAspectRatio(e){this.crop.setAspectRatio(e)},getCropData(e,t="image/jpeg"){e(this.crop.getCroppedCanvas().toDataURL(t,this.compress))},getCropBlob(e,t="image/jpeg"){this.crop.getCroppedCanvas().toBlob((t=>{e(t)}),t,this.compress)},getCropFile(e,t="fileName.jpg",s="image/jpeg"){this.crop.getCroppedCanvas().toBlob((p=>{let r=new File([p],t,{type:s});e(r)}),s,this.compress)}}},m=s(8700);const v=(0,m.Z)(u,[["render",l],["__scopeId","data-v-616a86ed"]]);var _=v}}]);
|
1
dist/static/js/457.a480d252.js
vendored
Normal file
1
dist/static/js/457.a480d252.js
vendored
Normal 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(1910),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}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[974],{1097:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var a=n(6252),s=n(3577);const i={class:"custom-tree-node"},l={class:"label"},d={key:0,class:"do"};function r(e,t,n,r,u,m){const o=(0,a.up)("el-input"),h=(0,a.up)("el-header"),p=(0,a.up)("el-icon"),c=(0,a.up)("el-tree"),g=(0,a.up)("el-main"),f=(0,a.up)("el-container"),w=(0,a.up)("el-aside"),v=(0,a.up)("save"),$=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(f,null,{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(w,{width:"300px"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(o,{clearable:"",placeholder:"输入关键字进行过滤",modelValue:u.menuFilterText,"onUpdate:modelValue":t[0]||(t[0]=e=>u.menuFilterText=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(g,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{data:u.menuList,"expand-on-click-node":!1,"filter-node-method":m.menuFilterNode,props:u.menuProps,onNodeClick:m.menuClick,onNodeDrop:m.nodeDrop,"check-strictly":"",class:"menu",draggable:"","highlight-current":"","node-key":"id",ref:"menu","show-checkbox":!1},{default:(0,a.w5)((({node:e,data:t})=>[(0,a._)("span",i,[(0,a._)("span",l,[(0,a.Wm)(p,{style:{"margin-right":"2px"}},{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(t.meta.icon||"el-icon-menu")))])),_:2},1024),(0,a.Uk)(" "+(0,s.zw)(e.label),1)]),t.parentid?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("span",d))])])),_:1},8,["data","filter-node-method","props","onNodeClick","onNodeDrop"])])),_:1})])),_:1})])),_:1})),[[$,u.menuloading]]),(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,{class:"nopadding",ref:"main",style:{padding:"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{menu:u.menuList,ref:"save"},null,8,["menu"])])),_:1},512)])),_:1})])),_:1})}n(7658);var u=n(8480);let m=1;var o={name:"systemmenu",components:{save:u["default"]},data(){return{menuloading:!1,menuList:[],menuProps:{label:e=>e.meta.title},menuFilterText:""}},watch:{menuFilterText(e){this.$refs.menu.filter(e)}},mounted(){this.getMenu()},methods:{async getMenu(){this.menuloading=!0;var e=await this.$http.get("menu");this.menuloading=!1,this.menuList=e.data},menuClick(e,t){var n=1==t.level?0:t.parent.data.id;this.$refs.save.setData(e,n),this.$refs.main.$el.scrollTop=0},menuFilterNode(e,t){if(!e)return!0;var n=t.meta.title;return-1!==n.indexOf(e)},getAllIds(e){let t=[];return e.forEach((e=>{let n={id:e.id};e.children&&(n.children=this.getAllIds(e.children)),t.push(n)})),t},async nodeDrop(e){let t=this.getAllIds(this.menuList);var n=await this.$http.post("menu/update",{id:e.data.id,ids:t});if(200!==n.code)return this.$message.warning(n.message),!1;this.$refs.save.setData({}),this.$message.success(n.message)},async add(e,t){var n="未命名"+m++,a={parentid:t?t.id:0,name:"",path:t?t.path+"/":"",component:"",meta:{title:n,type:"menu"}};this.menuloading=!0;var s=await this.$http.post("menu/submit",a);if(this.menuloading=!1,200!==s.code)return this.$message.warning(s.message),!1;a.id=s.data,this.$refs.menu.append(a,e),this.$refs.menu.setCurrentKey(a.id);var i=e?e.data.id:0;this.$refs.save.setData(a,i)},async delMenu(){var e=this.$refs.menu.getCheckedNodes();if(0==e.length)return this.$message.warning("请选择需要删除的项"),!1;var t=await this.$confirm("确认删除已选择的菜单吗?","提示",{type:"warning",confirmButtonText:"删除",confirmButtonClass:"el-button--danger"}).catch((()=>{}));if("confirm"!=t)return!1;this.menuloading=!0;var n={ids:e.map((e=>e.id))},a=await this.$http.post("menu/delete",n);this.menuloading=!1,200==a.code?e.forEach((e=>{var t=this.$refs.menu.getNode(e);t.isCurrent&&this.$refs.save.setData({}),this.$refs.menu.remove(e)})):this.$message.warning(a.message)}}},h=n(3744);const p=(0,h.Z)(o,[["render",r],["__scopeId","data-v-194ed0e8"]]);var c=p}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[458],{8458: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"),g=(0,a.up)("el-main"),f=(0,a.up)("el-container"),w=(0,a.up)("el-aside"),v=(0,a.up)("save"),$=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(f,null,{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(w,{width:"300px"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(o,{clearable:"",placeholder:"输入关键字进行过滤",modelValue:u.menuFilterText,"onUpdate:modelValue":t[0]||(t[0]=e=>u.menuFilterText=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(g,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{data:u.menuList,"expand-on-click-node":!1,"filter-node-method":m.menuFilterNode,props:u.menuProps,onNodeClick:m.menuClick,onNodeDrop:m.nodeDrop,"check-strictly":"",class:"menu",draggable:"","highlight-current":"","node-key":"id",ref:"menu","show-checkbox":!1},{default:(0,a.w5)((({node:e,data:t})=>[(0,a._)("span",i,[(0,a._)("span",l,[(0,a.Wm)(p,{style:{"margin-right":"2px"}},{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(t.meta.icon||"el-icon-menu")))])),_:2},1024),(0,a.Uk)(" "+(0,s.zw)(e.label),1)]),t.parentid?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("span",d))])])),_:1},8,["data","filter-node-method","props","onNodeClick","onNodeDrop"])])),_:1})])),_:1})])),_:1})),[[$,u.menuloading]]),(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,{class:"nopadding",ref:"main",style:{padding:"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{menu:u.menuList,ref:"save"},null,8,["menu"])])),_:1},512)])),_:1})])),_:1})}n(8311);var u=n(2867);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-194ed0e8"]]);var c=p}}]);
|
1
dist/static/js/49.4d47009c.js
vendored
1
dist/static/js/49.4d47009c.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/49.6badf02c.js
vendored
Normal file
1
dist/static/js/49.6badf02c.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[49],{5596:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var i=n(6808),a=n(9511),r=n(1441);function h(e,t,n,h,l,o){return(0,i.wg)(),(0,i.iD)("div",{class:"x-code-editor",style:(0,a.j5)({height:o._height})},[(0,i.wy)((0,i._)("textarea",{ref:"textarea","onUpdate:modelValue":t[0]||(t[0]=e=>l.contentValue=e)},null,512),[[r.nr,l.contentValue]])],4)}var l=n(3839),o=n(3322),u=n.n(o),s=(n(5935),n(8881),n(2876),{props:{modelValue:{type:String,default:""},mode:{type:String,default:"javascript"},height:{type:[String,Number],default:300},options:{type:Object,default:()=>{}},theme:{type:String,default:"idea"},readOnly:{type:Boolean,default:!1}},data(){return{contentValue:this.modelValue,coder:null,opt:{theme:this.theme,styleActiveLine:!0,lineNumbers:!0,lineWrapping:!1,tabSize:4,indentUnit:4,indentWithTabs:!0,mode:this.mode,readOnly:this.readOnly,...this.options}}},computed:{_height(){return Number(this.height)?Number(this.height)+"px":this.height}},watch:{modelValue(e){this.contentValue=e,e!==this.coder.getValue()&&this.coder.setValue(e)}},mounted(){this.init()},methods:{init(){this.coder=(0,l.Xl)(u().fromTextArea(this.$refs.textarea,this.opt)),this.coder.on("change",(e=>{this.contentValue=e.getValue(),this.$emit("update:modelValue",this.contentValue)}))},formatStrInJson(e){return JSON.stringify(JSON.parse(e),null,4)}}}),d=n(8700);const c=(0,d.Z)(s,[["render",h],["__scopeId","data-v-1c04bc3c"]]);var p=c}}]);
|
1
dist/static/js/516.7a95f540.js
vendored
1
dist/static/js/516.7a95f540.js
vendored
@ -1 +0,0 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[516],{516:function(e,a,l){l.r(a),l.d(a,{default:function(){return i}});var s=l(6252);function o(e,a,l,o,t,r){const d=(0,s.up)("x-upload"),i=(0,s.up)("el-form-item"),m=(0,s.up)("el-input"),p=(0,s.up)("el-cascader"),u=(0,s.up)("el-option"),n=(0,s.up)("el-select"),f=(0,s.up)("el-form"),h=(0,s.up)("el-button"),w=(0,s.up)("x-dialog");return(0,s.wg)(),(0,s.j4)(w,{title:t.titleMap[t.mode],modelValue:t.visible,"onUpdate:modelValue":a[9]||(a[9]=e=>t.visible=e),width:"500",padding:"20","destroy-on-close":"",onClosed:a[10]||(a[10]=a=>e.$emit("closed"))},{footer:(0,s.w5)((()=>[(0,s.Wm)(h,{onClick:a[7]||(a[7]=e=>t.visible=!1)},{default:(0,s.w5)((()=>[(0,s.Uk)("取 消")])),_:1}),"show"!=t.mode?((0,s.wg)(),(0,s.j4)(h,{key:0,type:"primary",loading:t.isSaveing,onClick:a[8]||(a[8]=e=>r.submit())},{default:(0,s.w5)((()=>[(0,s.Uk)("保 存")])),_:1},8,["loading"])):(0,s.kq)("",!0)])),default:(0,s.w5)((()=>[(0,s.Wm)(f,{model:t.form,rules:t.rules,disabled:"show"==t.mode,ref:"dialogForm","label-width":"100px","label-position":"left"},{default:(0,s.w5)((()=>[(0,s.Wm)(i,{label:"头像",prop:"avatar"},{default:(0,s.w5)((()=>[(0,s.Wm)(d,{modelValue:t.form.avatar,"onUpdate:modelValue":a[0]||(a[0]=e=>t.form.avatar=e),title:"上传头像"},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"登录账号",prop:"userName"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{modelValue:t.form.userName,"onUpdate:modelValue":a[1]||(a[1]=e=>t.form.userName=e),placeholder:"用于登录系统",clearable:""},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"姓名",prop:"name"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{modelValue:t.form.name,"onUpdate:modelValue":a[2]||(a[2]=e=>t.form.name=e),placeholder:"请输入完整的真实姓名",clearable:""},null,8,["modelValue"])])),_:1}),"add"==t.mode?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Wm)(i,{label:"登录密码",prop:"password"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{type:"password",modelValue:t.form.password,"onUpdate:modelValue":a[3]||(a[3]=e=>t.form.password=e),clearable:"","show-password":""},null,8,["modelValue"])])),_:1}),(0,s.Wm)(i,{label:"确认密码",prop:"password2"},{default:(0,s.w5)((()=>[(0,s.Wm)(m,{type:"password",modelValue:t.form.password2,"onUpdate:modelValue":a[4]||(a[4]=e=>t.form.password2=e),clearable:"","show-password":""},null,8,["modelValue"])])),_:1})],64)):(0,s.kq)("",!0),(0,s.Wm)(i,{label:"所属部门",prop:"dept"},{default:(0,s.w5)((()=>[(0,s.Wm)(p,{modelValue:t.form.dept,"onUpdate:modelValue":a[5]||(a[5]=e=>t.form.dept=e),options:t.depts,props:t.deptsProps,clearable:"",style:{width:"100%"}},null,8,["modelValue","options","props"])])),_:1}),(0,s.Wm)(i,{label:"所属角色",prop:"group"},{default:(0,s.w5)((()=>[(0,s.Wm)(n,{modelValue:t.form.group,"onUpdate:modelValue":a[6]||(a[6]=e=>t.form.group=e),multiple:"",filterable:"",style:{width:"100%"}},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(t.groups,(e=>((0,s.wg)(),(0,s.j4)(u,{key:e.id,label:e.label,value:e.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model","rules","disabled"])])),_:1},8,["title","modelValue"])}var t={emits:["success","closed"],data(){return{mode:"add",titleMap:{add:"新增用户",edit:"编辑用户",show:"查看"},visible:!1,isSaveing:!1,form:{id:"",userName:"",avatar:"",name:"",dept:"",group:[]},rules:{avatar:[{required:!0,message:"请上传头像"}],userName:[{required:!0,message:"请输入登录账号"}],name:[{required:!0,message:"请输入真实姓名"}],password:[{required:!0,message:"请输入登录密码"},{validator:(e,a,l)=>{""!==this.form.password2&&this.$refs.dialogForm.validateField("password2"),l()}}],password2:[{required:!0,message:"请再次输入密码"},{validator:(e,a,l)=>{a!==this.form.password?l(new Error("两次输入密码不一致!")):l()}}],dept:[{required:!0,message:"请选择所属部门"}],group:[{required:!0,message:"请选择所属角色",trigger:"change"}]},groups:[],groupsProps:{value:"id",multiple:!0,checkStrictly:!0},depts:[],deptsProps:{value:"id",checkStrictly:!0}}},mounted(){this.getGroup(),this.getDept()},methods:{open(e="add"){return this.mode=e,this.visible=!0,this},async getGroup(){var e=await this.$api.system.role.list.get();this.groups=e.data.rows},async getDept(){var e=await this.$api.system.dept.list.get();this.depts=e.data},submit(){this.$refs.dialogForm.validate((async e=>{if(!e)return!1;this.isSaveing=!0;var a=await this.$api.demo.post.post(this.form);this.isSaveing=!1,200==a.code?(this.$emit("success",this.form,this.mode),this.visible=!1,this.$message.success("操作成功")):this.$alert(a.message,"提示",{type:"error"})}))},setData(e){this.form.id=e.id,this.form.userName=e.userName,this.form.avatar=e.avatar,this.form.name=e.name,this.form.group=e.group,this.form.dept=e.dept}}},r=l(3744);const d=(0,r.Z)(t,[["render",o]]);var i=d}}]);
|
@ -1 +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
1
dist/static/js/590.7868e220.js
vendored
Normal 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/600.cc36e98c.js
vendored
1
dist/static/js/600.cc36e98c.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/633.e35e0313.js
vendored
Normal file
1
dist/static/js/633.e35e0313.js
vendored
Normal 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}}]);
|
1
dist/static/js/649.f564c1ea.js
vendored
Normal file
1
dist/static/js/649.f564c1ea.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/650.d3587226.js
vendored
1
dist/static/js/650.d3587226.js
vendored
@ -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}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[467],{2467:function(e,l,a){a.r(l),a.d(l,{default:function(){return n}});var u=a(6252);const m=(0,u._)("div",{class:"el-form-item-msg"},"账号信息用于登录,系统不允许修改",-1);function o(e,l,a,o,t,d){const r=(0,u.up)("el-input"),n=(0,u.up)("el-form-item"),s=(0,u.up)("x-upload"),p=(0,u.up)("el-option"),i=(0,u.up)("el-select"),f=(0,u.up)("x-item"),c=(0,u.up)("el-button"),b=(0,u.up)("el-form"),V=(0,u.up)("el-card");return(0,u.wg)(),(0,u.j4)(V,{shadow:"never",header:"个人信息",style:{margin:"10px"}},{default:(0,u.w5)((()=>[(0,u.Wm)(b,{ref:"form",model:t.user,"label-width":"120px",style:{"margin-top":"10px"}},{default:(0,u.w5)((()=>[(0,u.Wm)(n,{label:"账号"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.username,"onUpdate:modelValue":l[0]||(l[0]=e=>t.user.username=e),disabled:""},null,8,["modelValue"]),m])),_:1}),(0,u.Wm)(n,{label:"头像"},{default:(0,u.w5)((()=>[(0,u.Wm)(s,{modelValue:t.user.avatar,"onUpdate:modelValue":l[1]||(l[1]=e=>t.user.avatar=e),icon:"el-icon-avatar",cropper:!0,compress:1,aspectRatio:1},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"姓名"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.nickname,"onUpdate:modelValue":l[2]||(l[2]=e=>t.user.nickname=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"邮箱"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.email,"onUpdate:modelValue":l[3]||(l[3]=e=>t.user.email=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"手机号"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.mobile,"onUpdate:modelValue":l[4]||(l[4]=e=>t.user.mobile=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"性别"},{default:(0,u.w5)((()=>[(0,u.Wm)(i,{modelValue:t.user.gender,"onUpdate:modelValue":l[5]||(l[5]=e=>t.user.gender=e),placeholder:"请选择"},{default:(0,u.w5)((()=>[(0,u.Wm)(p,{label:"保密",value:"0"}),(0,u.Wm)(p,{label:"男",value:"1"}),(0,u.Wm)(p,{label:"女",value:"2"})])),_:1},8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"个性签名"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.about,"onUpdate:modelValue":l[6]||(l[6]=e=>t.user.about=e),type:"textarea"},null,8,["modelValue"])])),_:1}),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(t.form,((e,a)=>((0,u.wg)(),(0,u.j4)(n,{label:e.label,key:a},{default:(0,u.w5)((()=>[(0,u.Wm)(f,{item:e,modelValue:t.user,"onUpdate:modelValue":l[7]||(l[7]=e=>t.user=e)},null,8,["item","modelValue"])])),_:2},1032,["label"])))),128)),(0,u.Wm)(n,null,{default:(0,u.w5)((()=>[(0,u.Wm)(c,{type:"primary",onClick:d.submit},{default:(0,u.w5)((()=>[(0,u.Uk)("保存")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])])),_:1})}var t={props:{data:{type:Object,default:()=>({})}},components:{},data(){return{user:{},form:[],token:null}},watch:{},mounted(){},methods:{updateParentValue(e){console.log(e),alert("fdsafa")},submit(){alert(1)}}},d=a(3744);const r=(0,d.Z)(t,[["render",o]]);var n=r}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[715],{2715:function(e,l,a){a.r(l),a.d(l,{default:function(){return n}});var u=a(6808);const m=(0,u._)("div",{class:"el-form-item-msg"},"账号信息用于登录,系统不允许修改",-1);function o(e,l,a,o,t,d){const r=(0,u.up)("el-input"),n=(0,u.up)("el-form-item"),s=(0,u.up)("x-upload"),p=(0,u.up)("el-option"),i=(0,u.up)("el-select"),f=(0,u.up)("x-item"),c=(0,u.up)("el-button"),b=(0,u.up)("el-form"),V=(0,u.up)("el-card");return(0,u.wg)(),(0,u.j4)(V,{shadow:"never",header:"个人信息",style:{margin:"10px"}},{default:(0,u.w5)((()=>[(0,u.Wm)(b,{ref:"form",model:t.user,"label-width":"120px",style:{"margin-top":"10px"}},{default:(0,u.w5)((()=>[(0,u.Wm)(n,{label:"账号"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.username,"onUpdate:modelValue":l[0]||(l[0]=e=>t.user.username=e),disabled:""},null,8,["modelValue"]),m])),_:1}),(0,u.Wm)(n,{label:"头像"},{default:(0,u.w5)((()=>[(0,u.Wm)(s,{modelValue:t.user.avatar,"onUpdate:modelValue":l[1]||(l[1]=e=>t.user.avatar=e),icon:"el-icon-avatar",cropper:!0,compress:1,aspectRatio:1},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"姓名"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.nickname,"onUpdate:modelValue":l[2]||(l[2]=e=>t.user.nickname=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"邮箱"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.email,"onUpdate:modelValue":l[3]||(l[3]=e=>t.user.email=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"手机号"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.mobile,"onUpdate:modelValue":l[4]||(l[4]=e=>t.user.mobile=e)},null,8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"性别"},{default:(0,u.w5)((()=>[(0,u.Wm)(i,{modelValue:t.user.gender,"onUpdate:modelValue":l[5]||(l[5]=e=>t.user.gender=e),placeholder:"请选择"},{default:(0,u.w5)((()=>[(0,u.Wm)(p,{label:"保密",value:"0"}),(0,u.Wm)(p,{label:"男",value:"1"}),(0,u.Wm)(p,{label:"女",value:"2"})])),_:1},8,["modelValue"])])),_:1}),(0,u.Wm)(n,{label:"个性签名"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:t.user.about,"onUpdate:modelValue":l[6]||(l[6]=e=>t.user.about=e),type:"textarea"},null,8,["modelValue"])])),_:1}),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(t.form,((e,a)=>((0,u.wg)(),(0,u.j4)(n,{label:e.label,key:a},{default:(0,u.w5)((()=>[(0,u.Wm)(f,{item:e,modelValue:t.user,"onUpdate:modelValue":l[7]||(l[7]=e=>t.user=e)},null,8,["item","modelValue"])])),_:2},1032,["label"])))),128)),(0,u.Wm)(n,null,{default:(0,u.w5)((()=>[(0,u.Wm)(c,{type:"primary",onClick:d.submit},{default:(0,u.w5)((()=>[(0,u.Uk)("保存")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])])),_:1})}var t={props:{data:{type:Object,default:()=>({})}},components:{},data(){return{user:{},form:[],token:null}},watch:{},mounted(){},methods:{updateParentValue(e){console.log(e),alert("fdsafa")},submit(){alert(1)}}},d=a(8700);const r=(0,d.Z)(t,[["render",o]]);var n=r}}]);
|
@ -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}}]);
|
@ -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}}]);
|
@ -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}}]);
|
1
dist/static/js/78.7c44b2f2.js
vendored
1
dist/static/js/78.7c44b2f2.js
vendored
@ -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(2871),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}}]);
|
1
dist/static/js/798.4ad58f24.js
vendored
1
dist/static/js/798.4ad58f24.js
vendored
@ -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 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[872],{9872:function(e,l,n){n.r(l),n.d(l,{default:function(){return C}});var t=n(6252);const a={class:"message-body"},s={class:"message-content"},o={class:"message-body-side"},i={class:"message-body-flexbox"},c={class:"message-body-item"},r={class:"message-body-content"};function d(e,l,n,d,u,m){const g=(0,t.up)("x-page-header"),b=(0,t.up)("x-menu-item"),h=(0,t.up)("table2"),p=(0,t.Q2)("loading");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",s,[(0,t._)("div",o,[(0,t._)("div",i,[(0,t.Wm)(g,{title:u.title,icon:u.icon},null,8,["title","icon"])]),(0,t._)("div",c,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(u.items,((e,l)=>((0,t.wg)(),(0,t.j4)(b,{key:l,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:u.search[u.key]==e.value,onClick:l=>m.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])]),(0,t._)("div",r,[(0,t.Wm)(h,{ref:"table",onChildLoaded:m.getChildData},null,8,["onChildLoaded"])])])),[[p,u.loading]])])}var u=n(3577);const m={class:"x-menu-item__label"};function g(e,l,n,a,s,o){const i=(0,t.up)("el-icon"),c=(0,t.up)("el-badge");return(0,t.wg)(),(0,t.iD)("div",{class:(0,u.C_)([{"is-select":n.select},"x-menu-item"]),style:(0,u.j5)(s.beforeStyles)},[(0,t.Wm)(i,{style:(0,u.j5)({backgroundColor:n.select?n.iconColor||"var(--el-color-primary)":"#edf2f6"}),class:(0,u.C_)(["x-menu-item__icon",e.iconClass])},{default:(0,t.w5)((()=>[((0,t.wg)(),(0,t.j4)((0,t.LL)(n.icon)))])),_:1},8,["style","class"]),(0,t._)("span",m,(0,u.zw)(n.label),1),n.num>0?((0,t.wg)(),(0,t.j4)(c,{key:0,max:999,value:n.num},null,8,["value"])):(0,t.kq)("",!0)],6)}var b={name:"xMenuItem",components:{},props:{icon:String,iconColor:String,label:String,name:String,num:[String,Number],select:Boolean},data(){return{beforeStyles:{"--background-color":this.iconColor||"var(--el-color-primary)"}}},computed:{},watch:{},mounted(){},methods:{}},h=n(3744);const p=(0,h.Z)(b,[["render",g],["__scopeId","data-v-6f16ea6a"]]);var _=p,f=n(2871),v={name:"table_3",components:{table2:f["default"],xMenuItem:_},data(){return{loading:!0,icon:"",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}}};const y=(0,h.Z)(v,[["render",d],["__scopeId","data-v-dcd32f46"]]);var C=y}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[823],{2823:function(e,l,n){n.r(l),n.d(l,{default:function(){return C}});var t=n(6808);const a={class:"message-body"},s={class:"message-content"},o={class:"message-body-side"},i={class:"message-body-flexbox"},c={class:"message-body-item"},r={class:"message-body-content"};function d(e,l,n,d,u,m){const g=(0,t.up)("x-page-header"),b=(0,t.up)("x-menu-item"),h=(0,t.up)("table2"),p=(0,t.Q2)("loading");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",s,[(0,t._)("div",o,[(0,t._)("div",i,[(0,t.Wm)(g,{title:u.title,icon:u.icon},null,8,["title","icon"])]),(0,t._)("div",c,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(u.items,((e,l)=>((0,t.wg)(),(0,t.j4)(b,{key:l,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:u.search[u.key]==e.value,onClick:l=>m.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])]),(0,t._)("div",r,[(0,t.Wm)(h,{ref:"table",onChildLoaded:m.getChildData},null,8,["onChildLoaded"])])])),[[p,u.loading]])])}var u=n(9511);const m={class:"x-menu-item__label"};function g(e,l,n,a,s,o){const i=(0,t.up)("el-icon"),c=(0,t.up)("el-badge");return(0,t.wg)(),(0,t.iD)("div",{class:(0,u.C_)([{"is-select":n.select},"x-menu-item"]),style:(0,u.j5)(s.beforeStyles)},[(0,t.Wm)(i,{style:(0,u.j5)({backgroundColor:n.select?n.iconColor||"var(--el-color-primary)":"#edf2f6"}),class:(0,u.C_)(["x-menu-item__icon",e.iconClass])},{default:(0,t.w5)((()=>[((0,t.wg)(),(0,t.j4)((0,t.LL)(n.icon)))])),_:1},8,["style","class"]),(0,t._)("span",m,(0,u.zw)(n.label),1),n.num>0?((0,t.wg)(),(0,t.j4)(c,{key:0,max:999,value:n.num},null,8,["value"])):(0,t.kq)("",!0)],6)}var b={name:"xMenuItem",components:{},props:{icon:String,iconColor:String,label:String,name:String,num:[String,Number],select:Boolean},data(){return{beforeStyles:{"--background-color":this.iconColor||"var(--el-color-primary)"}}},computed:{},watch:{},mounted(){},methods:{}},h=n(8700);const p=(0,h.Z)(b,[["render",g],["__scopeId","data-v-6f16ea6a"]]);var _=p,f=n(1910),v={name:"table_3",components:{table2:f["default"],xMenuItem:_},data(){return{loading:!0,icon:"",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}}};const y=(0,h.Z)(v,[["render",d],["__scopeId","data-v-dcd32f46"]]);var C=y}}]);
|
1
dist/static/js/824.f2d17b91.js
vendored
Normal file
1
dist/static/js/824.f2d17b91.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[824],{4824:function(n,e,t){t.r(e),t.d(e,{default:function(){return p}});var a=t(6808);function u(n,e,t,u,r,i){const o=(0,a.up)("xTable");return(0,a.wg)(),(0,a.j4)(o,{name:"weixin"})}var r=t(9378),i={name:"weixin",components:{xTable:r["default"]},data(){return{loading:!1,leftType:"",info:{}}},computed:{},mounted(){},methods:{}},o=t(8700);const d=(0,o.Z)(i,[["render",u]]);var p=d}}]);
|
1
dist/static/js/853.70c605d9.js
vendored
Normal file
1
dist/static/js/853.70c605d9.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/873.efb8c8d1.js
vendored
Normal file
1
dist/static/js/873.efb8c8d1.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[873],{6149:function(e,l,t){t.r(l),t.d(l,{default:function(){return p}});var a=t(6808),u=t(1441);function o(e,l,t,o,n,d){const m=(0,a.up)("el-input"),p=(0,a.up)("el-form-item"),r=(0,a.up)("el-button"),i=(0,a.up)("el-form"),c=(0,a.up)("el-table-column"),s=(0,a.up)("x-table-select");return(0,a.wg)(),(0,a.j4)(s,(0,a.dG)({modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e)},t.item.options,{style:{width:"100%"}}),{header:(0,a.w5)((({data:e,form:l,submit:t})=>[l&&l.length>0?((0,a.wg)(),(0,a.j4)(i,{key:0,inline:!0,model:e,onKeyup:(0,u.D2)(t,["enter"])},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(l,((l,t)=>((0,a.wg)(),(0,a.j4)(p,{style:{"margin-bottom":"0px"},key:t},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{modelValue:e[l.name],"onUpdate:modelValue":t=>e[l.name]=t,placeholder:l.placeholder},null,8,["modelValue","onUpdate:modelValue","placeholder"])])),_:2},1024)))),128)),(0,a.Wm)(p,{style:{"margin-bottom":"0px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{type:"primary",onClick:t},{default:(0,a.w5)((()=>[(0,a.Uk)("查询")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1032,["model","onKeyup"])):(0,a.kq)("",!0)])),default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.item.options.column,((e,l)=>((0,a.wg)(),(0,a.j4)(c,(0,a.dG)({key:l},e),null,16)))),128))])),_:1},16,["modelValue"])}var n={name:"tableselectRender",props:{modelValue:[String,Number,Boolean,Date,Object,Array],item:{type:Object,default:()=>{}}},data(){return{value:this.modelValue}},watch:{value(e){this.$emit("update:modelValue",e)}},mounted(){},methods:{}},d=t(8700);const m=(0,d.Z)(n,[["render",o]]);var p=m}}]);
|
@ -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
1
dist/static/js/966.4ddce099.js
vendored
Normal 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
1
dist/static/js/app.09556da4.js
vendored
Normal file
1
dist/static/js/app.09556da4.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/app.14247ec5.js
vendored
1
dist/static/js/app.14247ec5.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/codemirror.028dbdf2.js
vendored
Normal file
1
dist/static/js/codemirror.028dbdf2.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/codemirror.06c9c9e9.js
vendored
1
dist/static/js/codemirror.06c9c9e9.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/echarts.54f8b643.js
vendored
Normal file
1
dist/static/js/echarts.54f8b643.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/echarts.b3e550c9.js
vendored
1
dist/static/js/echarts.b3e550c9.js
vendored
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
91
dist/static/js/modules.38cafffe.js
vendored
Normal file
File diff suppressed because one or more lines are too long
91
dist/static/js/modules.4fd5df59.js
vendored
91
dist/static/js/modules.4fd5df59.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/tinymce.48a3b38f.js
vendored
Normal file
1
dist/static/js/tinymce.48a3b38f.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/tinymce.beda3ab5.js
vendored
1
dist/static/js/tinymce.beda3ab5.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/xChunks.a83e2bcc.js
vendored
1
dist/static/js/xChunks.a83e2bcc.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/xChunks.b2ca2685.js
vendored
Normal file
1
dist/static/js/xChunks.b2ca2685.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -14,7 +14,7 @@
|
||||
<el-tooltip v-if="item.tips" :content="item.tips">
|
||||
<el-icon><el-icon-question-filled /></el-icon>
|
||||
</el-tooltip>
|
||||
<el-badge v-if="item.status && item.status.key && form[item.status.key]" is-dot class="item" :type="item.status.type || 'success'"></el-badge>
|
||||
<el-badge v-if="item.status && item.status.key && form[item.status.key]" is-dot class="item" :type="item.status.type || 'primary'"></el-badge>
|
||||
</template>
|
||||
<x-item :item="item" v-model="form"></x-item>
|
||||
</el-form-item>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-badge v-if="item.status && item.status.key && row[item.status.key]" is-dot class="item" :type="item.status.type || 'primary'" style="height: 14px;cursor: pointer;"></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)" :type="item.options.type || 'warning'"></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])">
|
||||
@ -54,8 +55,12 @@
|
||||
</slot>
|
||||
</div>
|
||||
</template>
|
||||
<style scoped>
|
||||
.el-input__inner{
|
||||
width: auto;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'XTableColumnItem',
|
||||
props: {
|
||||
|
@ -2,7 +2,7 @@
|
||||
<el-container>
|
||||
<el-main>
|
||||
<ContentWrap style="margin-bottom: 10px;" v-if="filter && filter.length > 0">
|
||||
<el-form ref="queryFormRef" :inline="true" :model="search" class="-mb-15px" label-width="68" @keyup.enter="filterChange">
|
||||
<el-form ref="queryFormRef" :inline="true" :model="search" class="-mb-15px" label-width="80" @keyup.enter="filterChange">
|
||||
<el-form-item :label="i.label" :style="{ 'white-space': 'nowrap', 'width': getWidth(i) }" :prop="i.name" v-for="(i, index) in filter" :key="index">
|
||||
<x-item :item="i" v-model="search"></x-item>
|
||||
</el-form-item>
|
||||
|
Loading…
Reference in New Issue
Block a user