(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[915],{1396:function(e,l,t){"use strict";t.r(l),t.d(l,{urlPrefix:function(){return o}});var a=t(4471);const o="/tenement/apartment/";l["default"]={get:async function(e,l){return await a.Z.get(o+e,l)},post:async function(e,l){return await a.Z.post(o+e,l)},list:async function(e){return await a.Z.get(o+"lists",e)},room:{submit:async function(e){return await a.Z.post(o+"roomSubmit",e)},get:async function(e){return await a.Z.get(o+"roomGet",e)}}}},2856:function(e,l,t){"use strict";t.r(l);var a=t(2262);const o={};let i=t(1783);i.keys().forEach((e=>{let l=i(e);o[e.replace(/^\.\/(.*)\.\w+$/,"$1")]=l.default})),l["default"]=(0,a.Xl)(o)},7015:function(e,l,t){"use strict";t.d(l,{Z:function(){return c}});var a=t(6252),o=t(3577);function i(e,l,t,i,n,d){return(0,a.wg)(),(0,a.iD)("div",{ref:"xEcharts",style:(0,o.j5)({height:t.height,width:t.width})},null,4)}var n=t(1788);const d={color:["#409EFF","#36CE9E","#f56e6a","#626c91","#edb00d","#909399"],grid:{left:"3%",right:"3%",bottom:"10",top:"40",containLabel:!0},legend:{textStyle:{color:"#999"},inactiveColor:"rgba(128,128,128,0.4)"},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(128,128,128,0.2)",width:1}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{color:"#999"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(255,255,255,0.01)","rgba(0,0,0,0.01)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#999"}},splitLine:{show:!0,lineStyle:{color:"rgba(128,128,128,0.2)"}}}};var s=d;n.registerTheme("T",s);const u=e=>e&&(e.__v_raw||e.valueOf()||e);var r={...n,name:"xEcharts",props:{height:{type:String,default:"100%"},width:{type:String,default:"100%"},nodata:{type:Boolean,default:!1},option:{type:Object,default:()=>{}}},data(){return{isActivat:!1,myChart:null}},watch:{option:{deep:!0,handler(e){u(this.myChart)&&u(this.myChart).setOption(e)}}},computed:{myOptions:function(){return this.option||{}}},activated(){this.isActivat||this.$nextTick((()=>{this.myChart.resize()}))},deactivated(){this.isActivat=!1},mounted(){this.isActivat=!0,this.$nextTick((()=>{this.draw()}))},methods:{draw(){var e=n.init(this.$refs.xEcharts,"T");e.setOption(this.myOptions),this.myChart=e,window.addEventListener("resize",(()=>e.resize()))},setEchartOption(){var e=n.init(this.$refs.xEcharts,"T");e.setOption(this.myOptions)},setSize(){(0,a.Y3)((()=>this.myChart.resize()))}}},m=t(3744);const p=(0,m.Z)(r,[["render",i]]);var c=p},9501:function(e,l,t){"use strict";t.d(l,{Z:function(){return r}});var a=t(6252),o=t(3577);const i={class:"x-menu-item__label"};function n(e,l,t,n,d,s){const u=(0,a.up)("el-icon"),r=(0,a.up)("el-badge");return(0,a.wg)(),(0,a.iD)("div",{class:(0,o.C_)([{"is-select":t.select},"x-menu-item"]),style:(0,o.j5)(d.beforeStyles)},[(0,a.Wm)(u,{style:(0,o.j5)({backgroundColor:t.select?t.iconColor||"var(--el-color-primary)":"#edf2f6"}),class:(0,o.C_)(["x-menu-item__icon",e.iconClass])},{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(t.icon)))])),_:1},8,["style","class"]),(0,a._)("span",i,(0,o.zw)(t.label),1),t.num>0?((0,a.wg)(),(0,a.j4)(r,{key:0,max:999,value:t.num},null,8,["value"])):(0,a.kq)("",!0)],6)}var d={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:{}},s=t(3744);const u=(0,s.Z)(d,[["render",n],["__scopeId","data-v-6ade8566"]]);var r=u},8872:function(e,l,t){"use strict";t.d(l,{Z:function(){return g}});var a=t(6252),o=t(3577);const i={class:"x-statistic"},n={class:"x-statistic-title"},d={style:{width:"200px","line-height":"2"}},s={class:"x-statistic-content"},u={key:0,class:"x-statistic-content-prefix"},r={class:"x-statistic-content-value"},m={key:1,class:"x-statistic-content-suffix"},p={key:0,class:"x-statistic-description"};function c(e,l,t,c,f,h){const w=(0,a.up)("el-icon-question-filled"),g=(0,a.up)("el-icon"),b=(0,a.up)("el-tooltip");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",n,[(0,a.Uk)((0,o.zw)(t.title)+" ",1),t.tips?((0,a.wg)(),(0,a.j4)(b,{key:0,effect:"light"},{content:(0,a.w5)((()=>[(0,a._)("div",d,(0,o.zw)(t.tips),1)])),default:(0,a.w5)((()=>[(0,a.Wm)(g,{class:"x-statistic-tips"},{default:(0,a.w5)((()=>[(0,a.Wm)(w)])),_:1})])),_:1})):(0,a.kq)("",!0)]),(0,a._)("div",s,[t.prefix?((0,a.wg)(),(0,a.iD)("span",u,(0,o.zw)(t.prefix),1)):(0,a.kq)("",!0),(0,a._)("span",r,(0,o.zw)(h.cmtValue),1),t.suffix?((0,a.wg)(),(0,a.iD)("span",m,(0,o.zw)(t.suffix),1)):(0,a.kq)("",!0)]),t.description||e.$slots.default?((0,a.wg)(),(0,a.iD)("div",p,[(0,a.WI)(e.$slots,"default",{},(()=>[(0,a.Uk)((0,o.zw)(t.description),1)]),!0)])):(0,a.kq)("",!0)])}var f={props:{title:{type:String,required:!0,default:""},value:{type:String,required:!0,default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},description:{type:String,default:""},tips:{type:String,default:""},groupSeparator:{type:Boolean,default:!1}},data(){return{}},computed:{cmtValue(){return this.groupSeparator?this.$tool.groupSeparator(this.value):this.value}}},h=t(3744);const w=(0,h.Z)(f,[["render",c],["__scopeId","data-v-ba3a0106"]]);var g=w},8782:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return s}});var a=t(6252);function o(e,l,t,o,i,n){const d=(0,a.up)("x-upload-multiple"),s=(0,a.up)("el-main"),u=(0,a.up)("el-button"),r=(0,a.up)("el-footer"),m=(0,a.up)("el-container"),p=(0,a.up)("el-drawer");return(0,a.wg)(),(0,a.j4)(p,{title:"图片组(支持拖拽排序)",size:670,modelValue:i.visible,"onUpdate:modelValue":l[1]||(l[1]=e=>i.visible=e),"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",onClosed:l[2]||(l[2]=l=>e.$emit("closed"))},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a.Wm)(s,{style:{padding:"0 20px 20px 20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{modelValue:i.data.images,"onUpdate:modelValue":l[0]||(l[0]=e=>i.data.images=e),draggable:"",width:120,height:90,limit:20,tip:"最多上传20个文件,单个文件不要超过10M,请上传图像格式文件"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(r,null,{default:(0,a.w5)((()=>[(0,a.Wm)(u,{type:"primary",onClick:n.submit},{default:(0,a.w5)((()=>[(0,a.Uk)("提交")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["modelValue"])}var i={emits:["success","closed"],data(){return{visible:!1,issave:!1,data:[]}},mounted(){},methods:{open(){return this.visible=!0,this},close(){this.visible=!1},submit(){this.$emit("success",this.data,this)},setData(e){this.data=e},remoteData(e){setTimeout((async()=>{var l=await this.$http.get("tenement/apartment/getAttachment",{id:e.id});this.loading=!1,this.issave=!0,this.data=l.data}),400)}}},n=t(3744);const d=(0,n.Z)(i,[["render",o]]);var s=d},1369:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return m}});var a=t(6252);const o={style:{padding:"10px 0px 0 0px"}};function i(e,l,t,i,n,d){const s=(0,a.up)("el-input"),u=(0,a.up)("el-table-column"),r=(0,a.up)("el-button"),m=(0,a.up)("x-upload"),p=(0,a.up)("x-form-table"),c=(0,a.up)("el-upload"),f=(0,a.up)("el-main"),h=(0,a.up)("el-footer"),w=(0,a.up)("el-container"),g=(0,a.up)("el-drawer"),b=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(g,{size:800,onClosed:l[1]||(l[1]=l=>e.$emit("closed",n.data)),"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",title:"直播列表",modelValue:n.visible,"onUpdate:modelValue":l[2]||(l[2]=e=>n.visible=e)},{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(w,null,{default:(0,a.w5)((()=>[(0,a.Wm)(f,{style:{padding:"0 6px 6px 6px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{addtemplate:n.filtersAddTemplate,hideAdd:!0,class:"lives","drag-sort":"",placeholder:"暂无数据",ref:"livestable",modelValue:n.data.lives,"onUpdate:modelValue":l[0]||(l[0]=e=>n.data.lives=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{label:"视频ID",prop:"text",width:"100"},{default:(0,a.w5)((e=>[(0,a.Wm)(s,{placeholder:"视频ID",modelValue:e.row.videoid,"onUpdate:modelValue":l=>e.row.videoid=l},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(u,{label:"视频链接",prop:"text"},{default:(0,a.w5)((e=>[(0,a.Wm)(s,{placeholder:"视频链接",modelValue:e.row.videourl,"onUpdate:modelValue":l=>e.row.videourl=l},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(u,{label:"视频图片",prop:"value",width:"150"},{default:(0,a.w5)((e=>[(0,a.Wm)(s,{class:"input-with-select",placeholder:"视频图片",modelValue:e.row.imageid,"onUpdate:modelValue":l=>e.row.imageid=l},{append:(0,a.w5)((()=>[(0,a.Wm)(m,{height:30,multiple:!1,"on-success":function(l){e.row.imageid=l.aid,e.row.imageurl=l.url},showfilelist:0,width:30,modelValue:e.row.imageurl,"onUpdate:modelValue":l=>e.row.imageurl=l},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{icon:"el-icon-upload",type:"danger"})])),_:2},1032,["on-success","modelValue","onUpdate:modelValue"])])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:1})])),_:1},8,["addtemplate","modelValue"]),(0,a._)("div",o,[(0,a.Wm)(c,{action:n.fileConfig.api,"file-list":n.fileList,"on-success":d.pushRow,name:"files"},{default:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"default",{},(()=>[(0,a.Wm)(r,{style:{width:"100%"},type:"danger"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 点击上传视频文件 ")])),_:1})]))])),_:3},8,["action","file-list","on-success"])])])),_:3}),(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(r,{onClick:d.submit,type:"primary"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 提交 ")])),_:1},8,["onClick"])])),_:1})])),_:3})),[[b,e.loading]])])),_:3},8,["modelValue"])}var n=t(1073),d=t(1396),s={emits:["success","closed"],data(){return{visible:!1,issave:!1,data:[],filtersAddTemplate:{imageid:null,videoid:null,videourl:"",imageurl:""},fileList:[],fileConfig:{api:n.Z.API_URL+this.$api.common.upload.url}}},mounted(){},methods:{pushRow(e){this.fileList=[],200!=e.code?this.$message.warning(e.message):this.$refs.livestable.pushRow({imageid:null,videoid:e.data.aid,videourl:e.data.url,imageurl:""})},close(){this.visible=!1},submit(){this.$emit("success",this.data,this)},open(){return this.visible=!0,this},setData(e){this.data=e},remoteData(e){setTimeout((async()=>{var l=await d["default"].get("getAttachment",{id:e.id});this.loading=!1,this.data=l.data,this.issave=!0}),400)}}},u=t(3744);const r=(0,u.Z)(s,[["render",i]]);var m=r},4590:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return m}});var a=t(6252);function o(e,l,t,o,i,n){const d=(0,a.up)("el-input"),s=(0,a.up)("el-form-item"),u=(0,a.up)("el-col"),r=(0,a.up)("el-row"),m=(0,a.up)("x-title"),p=(0,a.up)("el-table-column"),c=(0,a.up)("el-option"),f=(0,a.up)("el-select"),h=(0,a.up)("el-switch"),w=(0,a.up)("el-badge"),g=(0,a.up)("el-button"),b=(0,a.up)("x-form-table"),y=(0,a.up)("el-form"),v=(0,a.up)("el-main"),_=(0,a.up)("el-footer"),k=(0,a.up)("el-container"),W=(0,a.up)("images"),V=(0,a.up)("videos"),x=(0,a.up)("el-drawer"),U=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(x,{title:i.titleMap[i.mode],modelValue:i.visible,"onUpdate:modelValue":l[6]||(l[6]=e=>i.visible=e),size:1200,"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",onClosed:l[7]||(l[7]=l=>e.$emit("closed"))},{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(k,null,{default:(0,a.w5)((()=>[(0,a.Wm)(v,{style:{padding:"0 20px 20px 20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{ref:"dialogForm",model:i.form,"label-width":"100px","label-position":"top"},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{gutter:20},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{span:16},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{label:"公寓名称",prop:"title"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{modelValue:i.form.title,"onUpdate:modelValue":l[0]||(l[0]=e=>i.form.title=e),readonly:"",placeholder:"请输入中文描述标题"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(u,{span:8},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{label:"标识",prop:"uniqid"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{modelValue:i.form.uniqid,"onUpdate:modelValue":l[1]||(l[1]=e=>i.form.uniqid=e),readonly:"",placeholder:"请输入唯一标识"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.Wm)(m,{title:"房间类型"}),(0,a.Wm)(b,{modelValue:i.form.room,"onUpdate:modelValue":l[2]||(l[2]=e=>i.form.room=e),addTemplate:i.addTemplate,"drag-sort":"",placeholder:"暂无数据"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{prop:"name",label:"名称"},{default:(0,a.w5)((e=>[(0,a.Wm)(d,{modelValue:e.row.name,"onUpdate:modelValue":l=>e.row.name=l,placeholder:"请输入名称"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(p,{prop:"tags",label:"标签"},{default:(0,a.w5)((e=>[(0,a.Wm)(d,{modelValue:e.row.tags,"onUpdate:modelValue":l=>e.row.tags=l,placeholder:"多个标签,号隔开"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(p,{prop:"allowance",label:"可预定数量",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(d,{modelValue:e.row.allowance,"onUpdate:modelValue":l=>e.row.allowance=l,placeholder:"可预定数量"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(p,{prop:"allowance",label:"房型",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(f,{modelValue:e.row.type,"onUpdate:modelValue":l=>e.row.type=l,placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{key:"1",label:"单人间",value:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 单人间")])),_:1}),(0,a.Wm)(c,{key:"2",label:"双人间",value:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 双人间")])),_:1}),(0,a.Wm)(c,{key:"3",label:"三人间",value:"3"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 三人间")])),_:1}),(0,a.Wm)(c,{key:"4",label:"独卫套间",value:"4"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 独卫套间")])),_:1}),(0,a.Wm)(c,{key:"5",label:"双人套间",value:"5"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 双人套间")])),_:1}),(0,a.Wm)(c,{key:"7",label:"studio",value:"7"},{default:(0,a.w5)((()=>[(0,a.Uk)(" studio")])),_:1}),(0,a.Wm)(c,{key:"6",label:"其他",value:"6"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 其他")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(p,{prop:"price",label:"价格",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(d,{modelValue:e.row.price,"onUpdate:modelValue":l=>e.row.price=l,placeholder:"价格"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(p,{prop:"discountprice",label:"特价",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(d,{modelValue:e.row.discountprice,"onUpdate:modelValue":l=>e.row.discountprice=l,placeholder:"房间特价"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(p,{prop:"status",label:"可预定",width:"70",align:"center"},{default:(0,a.w5)((e=>[(0,a.Wm)(h,{modelValue:e.row.status,"onUpdate:modelValue":l=>e.row.status=l,"active-value":"1","inactive-value":"0"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(p,{prop:"videos",label:"视频",width:"100",align:"center"},{default:(0,a.w5)((e=>[(0,a.Wm)(g,{text:"",size:"small",type:0==e.row.videos.length?"":"primary",onClick:l=>n.setVideo(e.row)},{default:(0,a.w5)((()=>[(0,a.Uk)(" 视频 "),(0,a.Wm)(w,{hidden:0==e.row.videos.length,value:e.row.videos.length,class:"badge",type:"danger"},null,8,["hidden","value"])])),_:2},1032,["type","onClick"])])),_:1}),(0,a.Wm)(p,{prop:"images",label:"图片组",width:"100",align:"center"},{default:(0,a.w5)((e=>[(0,a.Wm)(g,{text:"",size:"small",type:0==e.row.images.length?"":"primary",onClick:l=>n.setImage(e.row)},{default:(0,a.w5)((()=>[(0,a.Uk)(" 图片 "),(0,a.Wm)(w,{hidden:0==e.row.images.length,value:e.row.images.length,class:"badge",type:"danger"},null,8,["hidden","value"])])),_:2},1032,["type","onClick"])])),_:1})])),_:1},8,["modelValue","addTemplate"])])),_:1},8,["model"])])),_:1}),(0,a.Wm)(_,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,{type:"primary",loading:e.isSaveing,onClick:n.submit},{default:(0,a.w5)((()=>[(0,a.Uk)("保存")])),_:1},8,["loading","onClick"]),(0,a.Wm)(g,{onClick:l[3]||(l[3]=e=>i.visible=!1)},{default:(0,a.w5)((()=>[(0,a.Uk)("取消")])),_:1})])),_:1})])),_:1})),[[U,i.loading]]),(0,a.Wm)(W,{ref:"images",onSuccess:l[4]||(l[4]=function(e,l){l.close()})},null,512),(0,a.Wm)(V,{ref:"videos",onSuccess:l[5]||(l[5]=function(e,l){l.close()})},null,512)])),_:1},8,["title","modelValue"])}var i=t(8782),n=t(8597),d=t(1396),s={emits:["success","closed"],components:{images:i["default"],videos:n["default"]},data(){return{token:null,loading:!1,mode:"add",titleMap:{add:"新增",edit:"公寓房间类型"},form:{room:[],title:"",uniqid:""},addTemplate:{name:null,tags:null,type:null,allowance:0,price:0,discountprice:0,status:0,videos:[],images:[]},visible:!1}},mounted(){},methods:{open(e="add"){return this.mode=e,this.visible=!0,this},close(){this.visible=!1},submit(){this.$refs.dialogForm.validate((async e=>{if(e){this.isSaveing=!0;var l=await d["default"].room.submit({room:this.form.room,token:this.token});this.isSaveing=!1,200==l.code?(this.visible=!1,this.$message.success("操作成功")):this.$alert(l.message,"提示",{type:"error"})}}))},setData(e){this.loading=!0;const l={id:e.id,uniqid:e.uniqid};this.form.title=e.title,this.form.uniqid=e.uniqid,setTimeout((async()=>{var e=await d["default"].room.get(l);this.loading=!1,this.form.room=e.data.data,this.token=e.data.token}),400)},setVideo(e){this.$nextTick((()=>{this.$refs.videos.open().setData(e)}))},setImage(e){this.$nextTick((()=>{this.$refs.images.open().setData(e)}))}}},u=t(3744);const r=(0,u.Z)(s,[["render",o]]);var m=r},1738:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return r}});var a=t(6252),o=t(3577);function i(e,l,t,i,n,d){const s=(0,a.up)("x-form"),u=(0,a.up)("el-main"),r=(0,a.up)("el-button"),m=(0,a.up)("el-drawer");return(0,a.wg)(),(0,a.j4)(m,{title:n.titleMap[n.mode],modelValue:n.visible,"onUpdate:modelValue":l[2]||(l[2]=e=>n.visible=e),size:1e3,"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",onClosed:l[3]||(l[3]=l=>e.$emit("closed")),class:"xdrawer"},{footer:(0,a.w5)((()=>[(0,a.Wm)(r,{type:"primary",loading:e.isSaveing,onClick:d.submit},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(n.config.submitname||"保存"),1)])),_:1},8,["loading","onClick"]),(0,a.Wm)(r,{onClick:l[1]||(l[1]=e=>n.visible=!1)},{default:(0,a.w5)((()=>[(0,a.Uk)("取消")])),_:1})])),default:(0,a.w5)((()=>[(0,a.Wm)(u,{style:{padding:"0 20px 0px 20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{ref:"formref",config:n.config,modelValue:n.info,"onUpdate:modelValue":l[0]||(l[0]=e=>n.info=e),loading:n.loading},null,8,["config","modelValue","loading"])])),_:1})])),_:1},8,["title","modelValue"])}var n=t(1396),d={emits:["success","closed"],data(){return{loading:!1,visible:!1,mode:"add",titleMap:{add:"新增公寓",edit:"编辑公寓"},info:{},id:0,token:null,config:{}}},mounted(){},methods:{submit(){this.$refs.formref.validate((async(e,l)=>{if(!e)return this.$refs.formref.scrollToField(Object.keys(l)[0]),!1;var t=await n["default"].post("submit",{info:this.info,id:this.id,token:this.token});if(200==t.code)return this.close(),this.$emit("success",this.info,this.mode),void this.$message.success("操作成功");this.$alert(t.message,"提示",{type:"error"})}))},close(){this.visible=!1},open(e="add"){return this.mode=e,this.visible=!0,this},setConfig(){var e=this;return n["default"].get("config",{}).then((l=>{e.config=l.data})),this},setData(e){this.loading=!0;const l={id:e.id,uniqid:e.uniqid};this.id=e.id,setTimeout((async()=>{var e=await n["default"].get("info",l);if(200==e.code)return this.loading=!1,this.info=e.data.info,void(this.token=e.data.token);this.$message.warning(e.message),this.visible=!1}),400)}}},s=t(3744);const u=(0,s.Z)(d,[["render",i]]);var r=u},8597:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return m}});var a=t(6252);const o={style:{padding:"10px 0px 0 0px"}};function i(e,l,t,i,n,d){const s=(0,a.up)("el-input"),u=(0,a.up)("el-table-column"),r=(0,a.up)("el-button"),m=(0,a.up)("x-upload"),p=(0,a.up)("x-form-table"),c=(0,a.up)("el-upload"),f=(0,a.up)("el-main"),h=(0,a.up)("el-footer"),w=(0,a.up)("el-container"),g=(0,a.up)("el-drawer"),b=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(g,{size:800,onClosed:l[1]||(l[1]=l=>e.$emit("closed",n.data)),"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",title:"视频组",modelValue:n.visible,"onUpdate:modelValue":l[2]||(l[2]=e=>n.visible=e)},{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(w,null,{default:(0,a.w5)((()=>[(0,a.Wm)(f,{style:{padding:"0 6px 6px 6px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{addtemplate:n.filtersAddTemplate,hideAdd:!0,class:"videos","drag-sort":"",placeholder:"暂无数据",ref:"videostable",modelValue:n.data.videos,"onUpdate:modelValue":l[0]||(l[0]=e=>n.data.videos=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{label:"视频ID",prop:"text",width:"100"},{default:(0,a.w5)((e=>[(0,a.Wm)(s,{placeholder:"视频ID",modelValue:e.row.videoid,"onUpdate:modelValue":l=>e.row.videoid=l},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(u,{label:"视频链接",prop:"text"},{default:(0,a.w5)((e=>[(0,a.Wm)(s,{placeholder:"视频链接",modelValue:e.row.videourl,"onUpdate:modelValue":l=>e.row.videourl=l},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(u,{label:"视频图片",prop:"value",width:"150"},{default:(0,a.w5)((e=>[(0,a.Wm)(s,{class:"input-with-select",placeholder:"视频图片",modelValue:e.row.imageid,"onUpdate:modelValue":l=>e.row.imageid=l},{append:(0,a.w5)((()=>[(0,a.Wm)(m,{height:30,multiple:!1,"on-success":function(l){e.row.imageid=l.aid,e.row.imageurl=l.url},showfilelist:0,width:30,modelValue:e.row.imageurl,"onUpdate:modelValue":l=>e.row.imageurl=l},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{icon:"el-icon-upload",type:"danger"})])),_:2},1032,["on-success","modelValue","onUpdate:modelValue"])])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:1})])),_:1},8,["addtemplate","modelValue"]),(0,a._)("div",o,[(0,a.Wm)(c,{action:n.fileConfig.api,"file-list":n.fileList,"on-success":d.pushRow,name:"files"},{default:(0,a.w5)((()=>[(0,a.WI)(e.$slots,"default",{},(()=>[(0,a.Wm)(r,{style:{width:"100%"},type:"danger"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 点击上传视频文件 ")])),_:1})]))])),_:3},8,["action","file-list","on-success"])])])),_:3}),(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(r,{onClick:d.submit,type:"primary"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 提交 ")])),_:1},8,["onClick"])])),_:1})])),_:3})),[[b,e.loading]])])),_:3},8,["modelValue"])}var n=t(1073),d=t(1396),s={emits:["success","closed"],data(){return{visible:!1,issave:!1,data:[],filtersAddTemplate:{imageid:null,videoid:null,videourl:"",imageurl:""},fileList:[],fileConfig:{api:n.Z.API_URL+this.$api.common.upload.url}}},mounted(){},methods:{pushRow(e){this.fileList=[],200!=e.code?this.$message.warning(e.message):this.$refs.videostable.pushRow({imageid:null,videoid:e.data.aid,videourl:e.data.url,imageurl:""})},close(){this.visible=!1},submit(){this.$emit("success",this.data,this)},open(){return this.visible=!0,this},setData(e){this.data=e},remoteData(e){setTimeout((async()=>{var l=await d["default"].get("getAttachment",{id:e.id});this.loading=!1,this.data=l.data,this.issave=!0}),400)}}},u=t(3744);const r=(0,u.Z)(s,[["render",i]]);var m=r},3389:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return g}});var a=t(6252),o=t(3577);const i={class:"card-item"},n={class:"tab-box"},d={class:"tab-echart"},s={class:"text"},u={class:"num"},r={style:{height:"30px",width:"30px","margin-left":"15px",position:"relative"}},m={class:"data-echart-box"};function p(e,l,t,p,c,f){const h=(0,a.up)("xEcharts"),w=(0,a.up)("el-tab-pane"),g=(0,a.up)("el-tabs");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a.Wm)(g,{modelValue:c.activeName,"onUpdate:modelValue":l[0]||(l[0]=e=>c.activeName=e),class:"demo-tabs"},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(c.storeList,((e,l)=>((0,a.wg)(),(0,a.j4)(w,{stretch:!0,label:c.storeList[0].title+l,name:l,key:l},{label:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a.Uk)((0,o.zw)(e.title)+" ",1),(0,a._)("div",d,[(0,a._)("div",s,[(0,a.Uk)(" 转化率 "),(0,a._)("div",u,(0,o.zw)(e.num)+"% ",1)]),(0,a._)("div",r,[(0,a._)("div",{class:(0,o.C_)(["echart-pop",{"echart-pop-tran":c.activeName==l}])},null,2),(0,a.Wm)(h,{ref_for:!0,ref:"topInfo",option:e.saleOption},null,8,["option"])])])])])),_:2},1032,["label","name"])))),128))])),_:1},8,["modelValue"]),(0,a._)("div",m,[(0,a.Wm)(h,{ref:"c1",option:c.storeOption},null,8,["option"])])])}t(7658);var c=t(7015),f={title:"门店转化率",icon:"el-icon-switch",description:"门店转化率数据",minWidth:8,components:{xEcharts:c.Z},data(){return{activeName:0,storeList:[{title:"门店"}],saleOption:{tooltip:{trigger:"item"},legend:{top:"5%",left:"center"},series:[{name:"Access From",type:"pie",radius:["60%","100%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},labelLine:{show:!1},itemStyle:{normal:{color:function(e){var l=["#5470c6"];return l[e.dataIndex]}}},data:[{value:80,name:""},{value:20,name:""}]}]},storeOption:{tooltip:{trigger:"axis"},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},dataZoom:[{startValue:"Mon"},{type:"inside"}],series:[{name:"Email",type:"line",data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",data:[820,932,901,934,1290,1330,1320]}]}}},methods:{setOption(e){let l={};return this.saleOption.series[0].data=e||[{value:80,name:""},{value:20,name:""}],l=JSON.parse(JSON.stringify(this.saleOption)),l},setList(e=[1,2,3,4,5,6,7,8,9,10]){let l=[];e.map((e=>{let t={};t["title"]=e.title?e.title:`门店${e}`,t["num"]=e%2?80:60,t["saleOption"]=this.setOption([{value:e%2?80:60,name:""},{value:e%2?20:40,name:""}]),l.push(t)})),this.storeList=l},setStoreOption(e={}){this.storeOption.series=e.list?e.list:this.storeOption.series,this.storeOption.dataZoom=[{startValue:"Mon"},{type:"inside"}]},setStoreSeries(e){let l=[];return e.map((e=>{let t={name:"",type:"line",data:[]};t["type"]=e.title,t["data"]=e.data,l.push(t)})),l},refView(){this.$refs.c1.setSize()}},mounted(){this.setList()}},h=t(3744);const w=(0,h.Z)(f,[["render",p],["__scopeId","data-v-e6a2ebd4"]]);var g=w},7348:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return h}});var a=t(6252),o=t(3577);const i={class:"card-item",ref:"storeDataDom"},n={class:"dis-f jus-bet al-item",style:{position:"relative"}},d=["onClick"],s={class:"time-mg"};function u(e,l,t,u,r,m){const p=(0,a.up)("el-date-picker"),c=(0,a.up)("el-tab-pane"),f=(0,a.up)("storeInfo"),h=(0,a.up)("el-tabs");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",n,[(0,a._)("div",{class:(0,o.C_)(["date-tool",{"dis-n":r.hidTool}])},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(r.dateList,((e,l)=>((0,a.wg)(),(0,a.iD)("span",{key:l,class:(0,o.C_)(["date-tool-title",[{"mg-l-24":l>0},{"date-tool-title-check":e.type===r.dateTab},{"dis-n":r.dateBtn}]]),onClick:l=>m.dateTabCheck(e.type)},(0,o.zw)(e.title),11,d)))),128)),(0,a._)("div",s,[(0,a.Wm)(p,{modelValue:r.dateData,"onUpdate:modelValue":l[0]||(l[0]=e=>r.dateData=e),type:"daterange","range-separator":"To","start-placeholder":"Start date","value-format":"YYYY-MM-DD","end-placeholder":"End date"},null,8,["modelValue"])])],2),(0,a.Wm)(h,{modelValue:r.activeName,"onUpdate:modelValue":l[1]||(l[1]=e=>r.activeName=e),class:"tabs-box"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{label:"销售量",name:"sales"}),(0,a.Wm)(c,{label:"访问量",name:"access"}),(0,a.Wm)(f,{ref:"c1","data-type":r.activeName,storeType:r.cardTabNum,"list-data":"access"===r.activeName?[900,852,563,875,705,1120,980,952,621,548,600,1100]:[952,852,563,875,705,1120,980,952,621,548,658,1165]},null,8,["data-type","storeType","list-data"])])),_:1},8,["modelValue"])])],512)}var r=t(7015),m=t(9192),p={title:"门店数据",icon:"el-icon-data-board",description:"门店销售/访问量数据",minWidth:10,components:{xEcharts:r.Z,storeInfo:m["default"]},data(){return{activeName:"sales",dateList:[{title:"今日",type:"day"},{title:"本周",type:"week"},{title:"本月",type:"month"},{title:"全年",type:"year"}],dateData:["",""],dateTab:"",resize:"",dateBtn:!1,cardTabNum:0,hidTool:!1}},methods:{dateTabCheck(e){e!==this.dateTab&&(this.dateTab=e,this.dateData=this.getDate(e))},getDate(e){let l=new Date,t=l.getTime(),a="day"===e?0:"week"===e?6048e5:"month"===e?2592e6:"year"===e?31536e6:0,o=new Date(t-a);return"day"===e?[`${o.getFullYear()}-${this.determineNum(o.getMonth()+1)}-${this.determineNum(o.getDate())}`,`${o.getFullYear()}-${this.determineNum(o.getMonth()+1)}-${this.determineNum(o.getDate())}`]:[`${o.getFullYear()}-${this.determineNum(o.getMonth()+1)}-${this.determineNum(o.getDate())}`,`${l.getFullYear()}-${this.determineNum(l.getMonth()+1)}-${this.determineNum(l.getDate())}`]},determineNum(e){return e<10?"0"+e:e},refView(){this.$refs.c1.setSize()}},mounted(){this.resize=new ResizeObserver((e=>{let l=e[0].contentRect.width;this.dateBtn=l<850,this.hidTool=l<=450,this.cardTabNum=l<=470?1:0})),this.resize.observe(this.$refs.storeDataDom)},beforeUnmount(){this.resize.unobserve(this.$refs.storeDataDom)}},c=t(3744);const f=(0,c.Z)(p,[["render",u],["__scopeId","data-v-00d3e656"]]);var h=f},7011:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return r}});var a=t(6252);const o=e=>((0,a.dD)("data-v-264b79f6"),e=e(),(0,a.Cn)(),e),i=o((()=>(0,a._)("p",null,"高性能 / 精致 / 优雅。基于Vue3 + Element-Plus 的中后台前端解决方案,如果喜欢就点个星星支持一下。",-1)));function n(e,l,t,o,n,d){const s=(0,a.up)("el-card");return(0,a.wg)(),(0,a.j4)(s,{shadow:"hover",header:"关于项目",class:"item-background",style:{height:"381px"}},{default:(0,a.w5)((()=>[i])),_:1})}var d={title:"关于项目",icon:"el-icon-setting",description:"点个星星支持一下",data(){return{}}},s=t(3744);const u=(0,s.Z)(d,[["render",n],["__scopeId","data-v-264b79f6"]]);var r=u},4793:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return M}});var a=t(6252),o=t(3577);const i=e=>((0,a.dD)("data-v-020b250a"),e=e(),(0,a.Cn)(),e),n={class:"item-text dis-f al-item jus-bet"},d={class:"item-price mg-t-10 mg-b-3"},s={key:0},u=i((()=>(0,a._)("span",{style:{"margin-right":"2px"}},"¥",-1))),r={key:1},m={key:2},p={key:3},c={key:0},f={class:"dis-f al-item item-text color-000"},h=i((()=>(0,a._)("span",{class:"mg-l-10"},"12%",-1))),w={class:"dis-f al-item item-text color-000"},g=i((()=>(0,a._)("span",{class:"mg-l-10"},"11%",-1))),b={key:1},y={key:2},v={key:3},_={class:"progress-box"},k={class:"dis-f al-item pos-r"},W=i((()=>(0,a._)("div",{class:"line-box",style:{left:"80%"}},[(0,a._)("div",{class:"line"}),(0,a._)("div",{class:"line"})],-1))),V=i((()=>(0,a._)("div",{class:"bor-b"},null,-1))),x={key:0},U=i((()=>(0,a._)("span",{style:{"margin-right":"2px"}},"¥",-1))),D={key:1},$=i((()=>(0,a._)("span",{style:{"margin-right":"2px"}},"¥",-1))),C={key:2},j={key:3,class:"dis-f al-item item-text color-000"},S=i((()=>(0,a._)("span",{class:"mg-l-10"},"12%",-1)));function z(e,l,t,i,z,T){const q=(0,a.up)("el-icon-caret-top"),N=(0,a.up)("el-icon"),O=(0,a.up)("el-icon-caret-bottom"),M=(0,a.up)("xEcharts"),I=(0,a.up)("el-progress"),L=(0,a.up)("el-card"),E=(0,a.up)("el-col"),F=(0,a.up)("el-row");return(0,a.wg)(),(0,a.j4)(F,{gutter:10},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(z.list,((e,l)=>((0,a.wg)(),(0,a.j4)(E,{xs:12,sm:6,md:4,xl:4,key:l},{default:(0,a.w5)((()=>[(0,a.Wm)(L,{shadow:"hover",class:"card-item"},{default:(0,a.w5)((()=>[(0,a._)("div",null,[(0,a._)("div",n,(0,o.zw)(e.title),1),(0,a._)("div",d,["sale"==e.type?((0,a.wg)(),(0,a.iD)("span",s,[u,(0,a.Uk)((0,o.zw)(T.setNumMark("12345")),1)])):(0,a.kq)("",!0),"access"==e.type?((0,a.wg)(),(0,a.iD)("span",r,(0,o.zw)(T.setNumMark("12345")),1)):(0,a.kq)("",!0),"payment"==e.type?((0,a.wg)(),(0,a.iD)("span",m,(0,o.zw)(T.setNumMark("12345")),1)):(0,a.kq)("",!0),"operate"==e.type?((0,a.wg)(),(0,a.iD)("span",p,"78%")):(0,a.kq)("",!0)]),"sale"==e.type?((0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",f,[(0,a.Uk)(" 同比周 "),h,(0,a.Wm)(N,{size:10,color:"#f5222d",class:"mg-l-5"},{default:(0,a.w5)((()=>[(0,a.Wm)(q)])),_:1})]),(0,a._)("div",w,[(0,a.Uk)(" 同比日 "),g,(0,a.Wm)(N,{size:10,color:"#52c41a",class:"mg-l-5"},{default:(0,a.w5)((()=>[(0,a.Wm)(O)])),_:1})])])):(0,a.kq)("",!0),"access"==e.type?((0,a.wg)(),(0,a.iD)("div",b,[(0,a.Wm)(M,{ref_for:!0,ref:"c1",height:"44px",option:z.accessOption},null,8,["option"])])):(0,a.kq)("",!0),"payment"==e.type?((0,a.wg)(),(0,a.iD)("div",y,[(0,a.Wm)(M,{ref_for:!0,ref:"c1",height:"44px",option:z.payOption},null,8,["option"])])):(0,a.kq)("",!0),"operate"==e.type?((0,a.wg)(),(0,a.iD)("div",v,[(0,a._)("div",_,[(0,a._)("div",k,[(0,a.Wm)(I,{style:{width:"100%",position:"relative"},percentage:80,format:e=>""},{default:(0,a.w5)((()=>[W])),_:1},8,["format"])])])])):(0,a.kq)("",!0),V,(0,a._)("div",{class:(0,o.C_)(["item-text color-000",{"dis-f al-item jus-bet":"operate"==e.type}])},["sale"==e.type?((0,a.wg)(),(0,a.iD)("span",x,[(0,a.Uk)("日销售额 "),U,(0,a.Uk)((0,o.zw)(T.setNumMark("12345")),1)])):(0,a.kq)("",!0),"access"==e.type?((0,a.wg)(),(0,a.iD)("span",D,[(0,a.Uk)("日访问量 "),$,(0,a.Uk)((0,o.zw)(T.setNumMark("12345")),1)])):(0,a.kq)("",!0),"payment"==e.type?((0,a.wg)(),(0,a.iD)("span",C,"转化率 60%")):(0,a.kq)("",!0),"operate"==e.type?((0,a.wg)(),(0,a.iD)("div",j,[(0,a.Uk)(" 同比周 "),S,(0,a.Wm)(N,{size:10,color:"#f5222d",class:"mg-l-5"},{default:(0,a.w5)((()=>[(0,a.Wm)(q)])),_:1}),(0,a.Wm)(N,{size:10,color:"#52c41a",class:"mg-l-5"},{default:(0,a.w5)((()=>[(0,a.Wm)(O)])),_:1})])):(0,a.kq)("",!0)],2)])])),_:2},1024)])),_:2},1024)))),128))])),_:1})}var T=t(7015),q={title:"各项数据",icon:"el-icon-trend-charts",description:"各项数据表格组件",components:{xEcharts:T.Z},data(){return{resizeDom:0,resize:"",list:[{type:"sale",title:"销售总额"},{type:"access",title:"访问总量"},{type:"payment",title:"支付笔数"},{type:"operate",title:"运营活动效果图"},{type:"operate",title:"运营活动效果图"},{type:"operate",title:"运营活动效果图"}],accessOption:{xAxis:{show:!1,splitLine:!1,type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{show:!1,type:"value"},tooltip:{trigger:"axis"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line"}]},payOption:{xAxis:{show:!1,splitLine:!1,type:"category",boundaryGap:!0,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{show:!1,type:"value"},tooltip:{trigger:"axis"},series:[{data:[120,200,150,80,70,110,130],type:"bar"}]}}},methods:{setNumMark(e){return this.$tool.groupSeparator(e)}},mounted(){},beforeUnmount(){}},N=t(3744);const O=(0,N.Z)(q,[["render",z],["__scopeId","data-v-020b250a"]]);var M=O},9192:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return b}});var a=t(6252),o=t(3577);const i={class:"dis-f al-item jus-bet box-pd font"},n={class:"w-65"},d={style:{"margin-bottom":"20px"}},s={class:"w-35"},u={style:{"margin-bottom":"20px"}},r={style:{height:"254px"}},m={class:"dis-f al-item",style:{flex:"1","justify-content":"space-between"}},p={class:"list-title-text"};function c(e,l,t,c,f,h){const w=(0,a.up)("xEcharts");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",n,[(0,a._)("div",d,(0,o.zw)("sales"===t.dataType?"销售趋势":"访问量趋势"),1),(0,a.Wm)(w,{ref:"c1",height:"254px",option:f.payOption},null,8,["option"])]),(0,a._)("div",s,[(0,a._)("div",u,(0,o.zw)("sales"===t.dataType?"门店销售额排名":"门店访问量排名"),1),(0,a._)("div",r,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(f.list,((e,l)=>((0,a.wg)(),(0,a.iD)("div",{class:"dis-f al-item w-100 mg-t-16",key:l},[(0,a._)("div",{class:(0,o.C_)(["list-num",[{"list-top":l<3},{"list-num-s":t.storeType}]])},(0,o.zw)(l+1),3),(0,a._)("div",m,[(0,a._)("div",p,(0,o.zw)(e.title),1),(0,a._)("div",null,(0,o.zw)(h.setNumMark(e.num)),1)])])))),128))])])])}var f=t(7015),h={components:{xEcharts:f.Z},props:{dataType:{type:String,default:"sales"},listData:{type:Array,default:function(){return[]}},storeType:{type:Number,default:0}},watch:{listData(e){this.payOption.series[0].data=e}},data(){return{payOption:{xAxis:{splitLine:!1,type:"category",boundaryGap:!0,data:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},yAxis:{min:0,splitNumber:3,type:"value"},tooltip:{trigger:"axis"},series:[{data:this.listData,type:"bar"}]},list:[{title:"123",num:"123456789"},{title:"123",num:"123456789"},{title:"123",num:"123456789"},{title:"123",num:"123456789"},{title:"123",num:"123456789"},{title:"123",num:"123456789"},{title:"123",num:"123456789"}]}},methods:{setNumMark(e){return this.$tool.groupSeparator(e)},setSize(){this.$refs.c1.setSize()}},mounted(){}},w=t(3744);const g=(0,w.Z)(h,[["render",c],["__scopeId","data-v-62237c4d"]]);var b=g},2749:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return u}});var a=t(6252);function o(e,l,t,o,i,n){const d=(0,a.up)("xEcharts"),s=(0,a.up)("el-card"),u=(0,a.Q2)("loading");return(0,a.wy)(((0,a.wg)(),(0,a.j4)(s,{shadow:"hover",header:"实时收入",style:{height:"382px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{ref:"c1",height:"300px",option:i.option},null,8,["option"])])),_:1})),[[u,i.loading]])}t(7658);var i=t(7015),n={title:"实时收入",icon:"el-icon-data-line",description:"Echarts组件演示",components:{xEcharts:i.Z},data(){return{loading:!0,option:{}}},created(){var e=this;setTimeout((function(){e.loading=!1}),500);var l={tooltip:{trigger:"axis"},xAxis:{boundaryGap:!1,type:"category",data:function(){var e=new Date,l=[],t=30;while(t--)l.unshift(e.toLocaleTimeString().replace(/^\D*/,"")),e=new Date(e-2e3);return l}()},yAxis:[{type:"value",name:"价格",splitLine:{show:!1}}],series:[{name:"收入",type:"line",symbol:"none",lineStyle:{width:1,color:"#409EFF"},areaStyle:{opacity:.1,color:"#79bbff"},data:function(){var e=[],l=30;while(l--)e.push(Math.round(0*Math.random()));return e}()}]};this.option=l},mounted(){var e=this;setInterval((function(){var l=e.option;l.series[0].data.shift(),l.series[0].data.push(Math.round(100*Math.random())),l.xAxis.data.shift(),l.xAxis.data.push((new Date).toLocaleTimeString().replace(/^\D*/,""))}),2100)}},d=t(3744);const s=(0,d.Z)(n,[["render",o]]);var u=s},9973:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return $}});var a=t(6252),o=t(3577);const i=e=>((0,a.dD)("data-v-2f908333"),e=e(),(0,a.Cn)(),e),n={class:"card-item"},d={class:"dis-f al-item jus-bet box-text",style:{padding:"0 24px 10px"}},s={class:"el-dropdown-link"},u=i((()=>(0,a._)("div",{class:"line"},null,-1))),r={class:"info-box"},m={class:"dis-f al-item jus-bet"},p={style:{flex:"0.5"}},c={class:"dis-f al-item"},f={class:"el-dropdown-link"},h={class:"info-num-text dis-f al-item"},w={style:{"font-size":"16px","margin-left":"30px"}},g={style:{flex:"0.5"}},b={class:"dis-f al-item"},y={class:"el-dropdown-link"},v={class:"info-num-text dis-f al-item"},_={style:{"font-size":"16px","margin-left":"30px"}},k={class:"dis-f",style:{"justify-content":"flex-end","margin-top":"16px",padding:"0 24px"}};function W(e,l,t,i,W,V){const x=(0,a.up)("el-icon-More"),U=(0,a.up)("el-icon"),D=(0,a.up)("el-dropdown-item"),$=(0,a.up)("el-dropdown-menu"),C=(0,a.up)("el-dropdown"),j=(0,a.up)("el-icon-Warning"),S=(0,a.up)("el-icon-caret-bottom"),z=(0,a.up)("el-icon-caret-top"),T=(0,a.up)("xEcharts"),q=(0,a.up)("el-table-column"),N=(0,a.up)("el-table"),O=(0,a.up)("el-pagination");return(0,a.wg)(),(0,a.iD)("div",n,[(0,a._)("div",d,[(0,a.Uk)(" 线上热门搜索 "),(0,a.Wm)(C,null,{dropdown:(0,a.w5)((()=>[(0,a.Wm)($,null,{default:(0,a.w5)((()=>[(0,a.Wm)(D,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Action 1")])),_:1}),(0,a.Wm)(D,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Action 2")])),_:1})])),_:1})])),default:(0,a.w5)((()=>[(0,a._)("span",s,[(0,a.Wm)(U,{size:15},{default:(0,a.w5)((()=>[(0,a.Wm)(x)])),_:1})])])),_:1})]),u,(0,a._)("div",r,[(0,a._)("div",m,[(0,a._)("div",p,[(0,a._)("div",c,[(0,a.Uk)(" 搜索用户数 "),(0,a.Wm)(C,{style:{"margin-left":"15px"}},{dropdown:(0,a.w5)((()=>[(0,a.Wm)($,null,{default:(0,a.w5)((()=>[(0,a.Wm)(D,null,{default:(0,a.w5)((()=>[(0,a.Uk)("指标说明")])),_:1})])),_:1})])),default:(0,a.w5)((()=>[(0,a._)("span",f,[(0,a.Wm)(U,{size:15},{default:(0,a.w5)((()=>[(0,a.Wm)(j)])),_:1})])])),_:1})]),(0,a._)("div",h,[(0,a.Uk)((0,o.zw)(V.setNumMark("12321"))+" ",1),(0,a._)("span",w,[(0,a.Uk)(" 17.1 "),(0,a.Wm)(U,{size:10,color:"#52c41a"},{default:(0,a.w5)((()=>[(0,a.Wm)(S)])),_:1}),(0,a.Wm)(U,{size:10,color:"#f5222d"},{default:(0,a.w5)((()=>[(0,a.Wm)(z)])),_:1})])]),(0,a._)("div",null,[(0,a.Wm)(T,{ref:"use",height:"45px",option:W.seachOption},null,8,["option"])])]),(0,a._)("div",g,[(0,a._)("div",b,[(0,a.Uk)(" 人均搜索次数 "),(0,a.Wm)(C,{style:{"margin-left":"15px"}},{dropdown:(0,a.w5)((()=>[(0,a.Wm)($,null,{default:(0,a.w5)((()=>[(0,a.Wm)(D,null,{default:(0,a.w5)((()=>[(0,a.Uk)("指标说明")])),_:1})])),_:1})])),default:(0,a.w5)((()=>[(0,a._)("span",y,[(0,a.Wm)(U,{size:15},{default:(0,a.w5)((()=>[(0,a.Wm)(j)])),_:1})])])),_:1})]),(0,a._)("div",v,[(0,a.Uk)(" 2.7 "),(0,a._)("span",_,[(0,a.Uk)(" 17.1 "),(0,a.Wm)(U,{size:10,color:"#52c41a"},{default:(0,a.w5)((()=>[(0,a.Wm)(S)])),_:1}),(0,a.Wm)(U,{size:10,color:"#f5222d"},{default:(0,a.w5)((()=>[(0,a.Wm)(z)])),_:1})])]),(0,a._)("div",null,[(0,a.Wm)(T,{ref:"person",height:"45px",option:W.seachOption},null,8,["option"])])])]),(0,a._)("div",null,[(0,a.Wm)(N,{data:W.tableData,style:{width:"100%"}},{default:(0,a.w5)((()=>[(0,a.Wm)(q,{prop:"id",label:"排名"}),(0,a.Wm)(q,{prop:"seachKey",label:"搜索关键词"}),(0,a.Wm)(q,{prop:"userNum",label:"用户数",sortable:""}),(0,a.Wm)(q,{prop:"Increase",label:"周涨幅",sortable:""},{default:(0,a.w5)((e=>[(0,a.Uk)((0,o.zw)(e.row.Increase)+" ",1),(0,a.Wm)(U,{size:10,color:"#52c41a"},{default:(0,a.w5)((()=>[(0,a.Wm)(S)])),_:1}),(0,a.Wm)(U,{size:10,color:"#f5222d"},{default:(0,a.w5)((()=>[(0,a.Wm)(z)])),_:1})])),_:1})])),_:1},8,["data"])])]),(0,a._)("div",k,[(0,a.Wm)(O,{layout:"prev, pager, next",total:50})])])}var V=t(7015),x={title:"线上热门搜索",icon:"el-icon-search",description:"热门搜索数据",minWidth:8,components:{xEcharts:V.Z},data(){return{seachOption:{xAxis:{show:!1,type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{show:!1,type:"value"},tooltip:{trigger:"axis"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0}]},tableData:[{id:1,seachKey:"搜索1231111111111111111111111111111111111111111111",userNum:158,Increase:"4%"}]}},methods:{setNumMark(e){return this.$tool.groupSeparator(e)},refView(){this.$refs.use.setSize(),this.$refs.person.setSize()}},mounted(){}},U=t(3744);const D=(0,U.Z)(x,[["render",W],["__scopeId","data-v-2f908333"]]);var $=D},1419:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return c}});var a=t(6252),o=t(3577);const i=e=>((0,a.dD)("data-v-02bc7e68"),e=e(),(0,a.Cn)(),e),n={class:"progress"},d={class:"percentage-value"},s=i((()=>(0,a._)("div",{class:"percentage-label"},"当前进度",-1)));function u(e,l,t,i,u,r){const m=(0,a.up)("el-progress"),p=(0,a.up)("el-card");return(0,a.wg)(),(0,a.j4)(p,{shadow:"hover",header:"进度环"},{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a.Wm)(m,{type:"dashboard",percentage:85.5,width:160},{default:(0,a.w5)((({percentage:e})=>[(0,a._)("div",d,(0,o.zw)(e)+"%",1),s])),_:1},8,["percentage"])])])),_:1})}var r={title:"进度环",icon:"el-icon-odometer",description:"进度环原子组件演示",data(){return{}}},m=t(3744);const p=(0,m.Z)(r,[["render",u],["__scopeId","data-v-02bc7e68"]]);var c=p},4723:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return b}});var a=t(6252);const o=e=>((0,a.dD)("data-v-31babe48"),e=e(),(0,a.Cn)(),e),i={class:"card-item"},n={class:"dis-f al-item jus-bet box-text pd-24"},d={class:"el-dropdown-link"},s=o((()=>(0,a._)("div",{class:"line",style:{"margin-top":"16px"}},null,-1))),u={class:"info-box pd-24"},r=o((()=>(0,a._)("div",{class:"mg-tb-32"},"销售额",-1))),m={class:"dis-f al-item"},p={style:{width:"100%",height:"228px"}};function c(e,l,t,o,c,f){const h=(0,a.up)("el-icon-More"),w=(0,a.up)("el-icon"),g=(0,a.up)("el-dropdown-item"),b=(0,a.up)("el-dropdown-menu"),y=(0,a.up)("el-dropdown"),v=(0,a.up)("xEcharts");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",n,[(0,a.Uk)(" 销售额类别占比 "),(0,a.Wm)(y,null,{dropdown:(0,a.w5)((()=>[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Action 1")])),_:1}),(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Action 2")])),_:1})])),_:1})])),default:(0,a.w5)((()=>[(0,a._)("span",d,[(0,a.Wm)(w,{size:15},{default:(0,a.w5)((()=>[(0,a.Wm)(h)])),_:1})])])),_:1})]),s,(0,a._)("div",u,[r,(0,a._)("div",m,[(0,a._)("div",p,[(0,a.Wm)(v,{ref:"c1",option:c.saleOption},null,8,["option"])])])])])}var f=t(7015),h={title:"销售额类别占比",icon:"el-icon-help-filled",description:"销售额类别",minWidth:9,components:{xEcharts:f.Z},data(){return{list:[{value:1048,name:"123"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],saleOption:{}}},methods:{setSaleOption(){this.saleOption={tooltip:{trigger:"item"},legend:{left:"60%",top:"center",width:50,formatter:e=>{let l,t=0;for(let i=0;i[(0,a._)("div",o,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.briefList,((e,l)=>((0,a.wg)(),(0,a.iD)("div",{class:"item",key:l},[(0,a.Wm)(u,{title:e.label,value:e.num,description:e.status,tips:e.rate,groupSeparator:""},{default:(0,a.w5)((()=>[e.rate?((0,a.wg)(),(0,a.j4)(s,{key:0,modelValue:e.rate,"onUpdate:modelValue":l=>e.rate=l},null,8,["modelValue","onUpdate:modelValue"])):(0,a.kq)("",!0)])),_:2},1032,["title","value","description","tips"])])))),128))])])),_:1})),[[m,n.loading]])}var n=t(8872),d={title:"统计",icon:"el-icon-data-line",description:"实时统计",components:{xStatistic:n.Z},data(){return{loading:!0,briefList:[{color:"#fdsfdsf",icon:0,label:"fdsafafa",num:100,rate:10,status:"fdsafa"},{color:"#fdsfdsf",icon:0,label:"fdsafafa",num:100,rate:10,status:"fdsafa"},{color:"#fdsfdsf",icon:0,label:"fdsafafa",num:100,rate:10,status:"fdsafa"},{color:"#fdsfdsf",icon:0,label:"fdsafafa",num:100,rate:10,status:"fdsafa"},{color:"#fdsfdsf",icon:0,label:"fdsafafa",num:100,rate:10,status:"fdsafa"}]}},created(){this.loading=!1},methods:{reportClick(){alert(1)}}},s=t(3744);const u=(0,s.Z)(d,[["render",i],["__scopeId","data-v-2ea3715c"]]);var r=u},3416:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return r}});var a=t(6252),o=t(3577);const i={class:"time"};function n(e,l,t,n,d,s){const u=(0,a.up)("el-card");return(0,a.wg)(),(0,a.j4)(u,{shadow:"hover",header:"时钟",class:"item-background"},{default:(0,a.w5)((()=>[(0,a._)("div",i,[(0,a._)("h2",null,(0,o.zw)(d.time),1),(0,a._)("p",null,(0,o.zw)(d.day),1)])])),_:1})}var d={title:"时钟",icon:"el-icon-clock",description:"演示部件效果",data(){return{time:"",day:""}},mounted(){this.showTime(),setInterval((()=>{this.showTime()}),1e3)},methods:{showTime(){this.time=this.$tool.dateFormat(new Date,"hh:mm:ss"),this.day=this.$tool.dateFormat(new Date,"yyyy年MM月dd日")}}},s=t(3744);const u=(0,s.Z)(d,[["render",n],["__scopeId","data-v-62779c0b"]]);var r=u},5840:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return f}});var a=t(6252),o=t(3577),i=t.p+"static/img/ver.58fa1a41.svg";const n={style:{height:"210px","text-align":"center"}},d=(0,a._)("img",{src:i,style:{height:"140px"}},null,-1),s={style:{"margin-top":"15px"}},u={style:{"margin-top":"5px"}};function r(e,l,t,i,r,m){const p=(0,a.up)("el-card");return(0,a.wg)(),(0,a.j4)(p,{shadow:"hover",header:"版本信息"},{default:(0,a.w5)((()=>[(0,a._)("div",n,[d,(0,a._)("h2",s,"X-PHP "+(0,o.zw)(e.$config.CORE_VER),1),(0,a._)("p",u,"最新版本 "+(0,o.zw)(r.ver),1)])])),_:1})}var m={title:"版本信息",icon:"el-icon-monitor",description:"当前项目版本信息",data(){return{ver:"loading..."}},mounted(){this.getVer()},methods:{async getVer(){}}},p=t(3744);const c=(0,p.Z)(m,[["render",r]]);var f=c},9804:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return k}});var a=t(6252),o=t(5080);const i=e=>((0,a.dD)("data-v-f0ab555c"),e=e(),(0,a.Cn)(),e),n={class:"welcome"},d=i((()=>(0,a._)("div",{class:"logo"},[(0,a._)("img",{src:o}),(0,a._)("h2",null,"欢迎体验 X-PHP")],-1))),s={class:"tips"},u={class:"tips-item"},r={class:"tips-item-icon"},m=i((()=>(0,a._)("div",{class:"tips-item-message"},"这里是项目控制台,你可以点击右上方的“自定义”按钮来添加移除或者移动部件。",-1))),p={class:"tips-item"},c={class:"tips-item-icon"},f=i((()=>(0,a._)("div",{class:"tips-item-message"},"在提高前端算力、减少带宽请求和代码执行力上多次优化,并且持续着。",-1))),h={class:"tips-item"},w={class:"tips-item-icon"},g=i((()=>(0,a._)("div",{class:"tips-item-message"},"项目目的:让前端工作更快乐",-1)));function b(e,l,t,o,i,b){const y=(0,a.up)("el-icon-menu"),v=(0,a.up)("el-icon"),_=(0,a.up)("el-icon-promotion"),k=(0,a.up)("el-icon-milk-tea"),W=(0,a.up)("el-card");return(0,a.wg)(),(0,a.j4)(W,{shadow:"hover",header:"欢迎"},{default:(0,a.w5)((()=>[(0,a._)("div",n,[d,(0,a._)("div",s,[(0,a._)("div",u,[(0,a._)("div",r,[(0,a.Wm)(v,null,{default:(0,a.w5)((()=>[(0,a.Wm)(y)])),_:1})]),m]),(0,a._)("div",p,[(0,a._)("div",c,[(0,a.Wm)(v,null,{default:(0,a.w5)((()=>[(0,a.Wm)(_)])),_:1})]),f]),(0,a._)("div",h,[(0,a._)("div",w,[(0,a.Wm)(v,null,{default:(0,a.w5)((()=>[(0,a.Wm)(k)])),_:1})]),g])])])])),_:1})}var y={title:"欢迎",icon:"el-icon-present",description:"项目特色以及文档链接",data(){return{}},methods:{}},v=t(3744);const _=(0,v.Z)(y,[["render",b],["__scopeId","data-v-f0ab555c"]]);var k=_},9895:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return w}});var a=t(6252),o=t(3577);const i={class:"myMods"},n=["href"],d={href:"javascript:void(0)"},s={class:"setMods"},u={class:"setMods"};function r(e,l,t,r,m,p){const c=(0,a.up)("el-icon"),f=(0,a.up)("router-link"),h=(0,a.up)("el-icon-plus"),w=(0,a.up)("draggable"),g=(0,a.up)("el-button"),b=(0,a.up)("el-drawer"),y=(0,a.up)("el-card");return(0,a.wg)(),(0,a.j4)(y,{shadow:"never",header:"我的常用"},{default:(0,a.w5)((()=>[(0,a._)("ul",i,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(m.myMods,(l=>((0,a.wg)(),(0,a.iD)("li",{key:l.path,style:(0,o.j5)({background:l.meta.color||"#909399"})},["link"==l.meta.type?((0,a.wg)(),(0,a.iD)("a",{key:0,href:l.path,target:"_blank"},[(0,a.Wm)(c,null,{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(l.meta.icon||e.el-e.icon-e.menu)))])),_:2},1024),(0,a._)("p",null,(0,o.zw)(l.meta.title),1)],8,n)):((0,a.wg)(),(0,a.j4)(f,{key:1,to:{path:l.path}},{default:(0,a.w5)((()=>[(0,a.Wm)(c,null,{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(l.meta.icon||e.el-e.icon-e.menu)))])),_:2},1024),(0,a._)("p",null,(0,o.zw)(l.meta.title),1)])),_:2},1032,["to"]))],4)))),128)),(0,a._)("li",{class:"modItem-add",onClick:l[0]||(l[0]=(...e)=>p.addMods&&p.addMods(...e))},[(0,a._)("a",d,[(0,a.Wm)(c,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h)])),_:1})])])]),(0,a.Wm)(b,{title:"添加应用",modelValue:m.modsDrawer,"onUpdate:modelValue":l[4]||(l[4]=e=>m.modsDrawer=e),"append-to-body":!0,size:570,"destroy-on-close":""},{footer:(0,a.w5)((()=>[(0,a.Wm)(g,{onClick:l[3]||(l[3]=e=>m.modsDrawer=!1)},{default:(0,a.w5)((()=>[(0,a.Uk)("取消")])),_:1}),(0,a.Wm)(g,{type:"primary",onClick:p.saveMods},{default:(0,a.w5)((()=>[(0,a.Uk)("保存")])),_:1},8,["onClick"])])),default:(0,a.w5)((()=>[(0,a._)("div",s,[(0,a._)("h4",null,"我的常用 ( "+(0,o.zw)(m.myMods.length)+" )",1),(0,a.Wm)(w,{tag:"ul",modelValue:m.myMods,"onUpdate:modelValue":l[1]||(l[1]=e=>m.myMods=e),animation:"200","item-key":"path",group:"people"},{item:(0,a.w5)((({element:l})=>[(0,a._)("li",{style:(0,o.j5)({background:l.meta.color||"#909399"})},[(0,a.Wm)(c,null,{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(l.meta.icon||e.el-e.icon-e.menu)))])),_:2},1024),(0,a._)("p",null,(0,o.zw)(l.meta.title),1)],4)])),_:1},8,["modelValue"])]),(0,a._)("div",u,[(0,a._)("h4",null,"全部应用 ( "+(0,o.zw)(m.filterMods.length)+" )",1),(0,a.Wm)(w,{tag:"ul",modelValue:m.filterMods,"onUpdate:modelValue":l[2]||(l[2]=e=>m.filterMods=e),animation:"200","item-key":"path",sort:!1,group:"people"},{item:(0,a.w5)((({element:l})=>[(0,a._)("li",{style:(0,o.j5)({background:l.meta.color||"#909399"})},[(0,a.Wm)(c,null,{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(l.meta.icon||e.el-e.icon-e.menu)))])),_:2},1024),(0,a._)("p",null,(0,o.zw)(l.meta.title),1)],4)])),_:1},8,["modelValue"])])])),_:1},8,["modelValue"])])),_:1})}t(7658);var m=t(9980),p=t.n(m),c={title:"我的常用",icon:"el-icon-menu",description:"常用的菜单导航",components:{draggable:p()},data(){return{mods:[],myMods:[],myModsName:[],filterMods:[],modsDrawer:!1}},mounted(){this.getMods()},methods:{addMods(){this.modsDrawer=!0},getMods(){this.myModsName=this.$tool.data.get("commonlyused")||[];var e=this.$tool.data.get("menu");this.filterMenu(e),this.myMods=this.mods.filter((e=>this.myModsName.includes(e.name))),this.filterMods=this.mods.filter((e=>!this.myModsName.includes(e.name)))},filterMenu(e){e.forEach((e=>{if(e.meta.hidden||"button"==e.meta.type)return!1;"iframe"==e.meta.type&&(e.path=`/i/${e.name}`),e.children&&e.children.length>0?this.filterMenu(e.children):this.mods.push(e)}))},saveMods(){const e=this.myMods.map((e=>e.name));this.$http.post("widgets",{name:"work",event:"update",data:e}).then((l=>{if(200==l.code)return this.$tool.data.set("commonlyused",e),this.$message.success(l.message||"操作成功"),void(this.modsDrawer=!1);this.$alert(l.message,"提示",{type:"error"})}))}}},f=t(3744);const h=(0,f.Z)(c,[["render",r],["__scopeId","data-v-1dc67f1f"]]);var w=h},6874:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return u}});var a=t(6252),o=t(9963);function i(e,l,t,i,n,d){const s=(0,a.up)("el-input"),u=(0,a.up)("el-form-item"),r=(0,a.up)("el-button"),m=(0,a.up)("el-form");return(0,a.wg)(),(0,a.j4)(m,{ref:"loginForm",model:n.form,rules:n.rules,"label-width":"0",size:"large",onKeyup:(0,o.D2)(d.login,["enter"])},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{prop:"user"},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{modelValue:n.form.account,"onUpdate:modelValue":l[0]||(l[0]=e=>n.form.account=e),"prefix-icon":"el-icon-user",clearable:"",placeholder:"用户名 / 手机 / 邮箱"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(u,{prop:"password"},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{modelValue:n.form.password,"onUpdate:modelValue":l[1]||(l[1]=e=>n.form.password=e),"prefix-icon":"el-icon-lock",clearable:"","show-password":"",placeholder:"请输入密码"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(u,null,{default:(0,a.w5)((()=>[(0,a.Wm)(r,{type:"primary",style:{width:"100%"},loading:n.islogin,round:"",onClick:d.login},{default:(0,a.w5)((()=>[(0,a.Uk)("登录")])),_:1},8,["loading","onClick"])])),_:1})])),_:1},8,["model","rules","onKeyup"])}var n={data(){return{form:{account:"",password:"",autologin:!0},rules:{account:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},islogin:!1}},watch:{},mounted(){},methods:{async login(){var e=await this.$refs.loginForm.validate().catch((()=>{}));if(!e)return!1;this.islogin=!0;var l={account:this.form.account,password:this.$tool.crypto.BASE64.encrypt(this.$tool.crypto.BASE64.encrypt(this.form.password)+this.$tool.crypto.BASE64.encrypt(this.form.account))},t=await this.$api.auth.token.post(l);if(this.islogin=!1,200!==t.code)return this.$message.warning(t.message),!1;this.$tool.cookie.set(this.$config.SESSIONNAME,t.data.token,{expires:31104e3});const a=this.$route.query.redirect||"/";return this.$router.replace({path:a}),this.$message.success("Login Success 登录成功"),this.islogin=!1,!1}}},d=t(3744);const s=(0,d.Z)(n,[["render",i]]);var u=s},2247:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return c}});var a=t(6252),o=t(9963),i=t(3577);const n={class:"login-msg-yzm"},d={key:0},s=(0,a._)("div",{class:"login-reg"},null,-1);function u(e,l,t,u,r,m){const p=(0,a.up)("el-input"),c=(0,a.up)("el-form-item"),f=(0,a.up)("el-button"),h=(0,a.up)("el-form");return(0,a.wg)(),(0,a.j4)(h,{ref:"loginForm",model:r.form,rules:r.rules,"label-width":"0",size:"large",onKeyup:(0,o.D2)(m.login,["enter"])},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{prop:"phone"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{modelValue:r.form.phone,"onUpdate:modelValue":l[0]||(l[0]=e=>r.form.phone=e),"prefix-icon":"el-icon-iphone",clearable:"",placeholder:"手机号码"},{prepend:(0,a.w5)((()=>[(0,a.Uk)("+86")])),_:1},8,["modelValue"])])),_:1}),(0,a.Wm)(c,{prop:"yzm",style:{"margin-bottom":"35px"}},{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a.Wm)(p,{modelValue:r.form.yzm,"onUpdate:modelValue":l[1]||(l[1]=e=>r.form.yzm=e),"prefix-icon":"el-icon-unlock",clearable:"",placeholder:"短信验证码"},null,8,["modelValue"]),(0,a.Wm)(f,{onClick:m.getYzm,disabled:r.disabled},{default:(0,a.w5)((()=>[(0,a.Uk)("获取验证码"),r.disabled?((0,a.wg)(),(0,a.iD)("span",d," ("+(0,i.zw)(r.time)+")",1)):(0,a.kq)("",!0)])),_:1},8,["onClick","disabled"])])])),_:1}),(0,a.Wm)(c,null,{default:(0,a.w5)((()=>[(0,a.Wm)(f,{type:"primary",style:{width:"100%"},loading:r.islogin,round:"",onClick:m.login},{default:(0,a.w5)((()=>[(0,a.Uk)("登录")])),_:1},8,["loading","onClick"])])),_:1}),s])),_:1},8,["model","rules","onKeyup"])}var r={data(){return{form:{phone:"",yzm:""},rules:{phone:[{required:!0,message:"请输入手机号码"}],yzm:[{required:!0,message:"请输入短信验证码"}]},disabled:!1,time:0,islogin:!1}},mounted(){},methods:{async getYzm(){var e=await this.$refs.loginForm.validateField("phone").catch((()=>{}));if(!e)return!1;this.$message.success("已发送短信至手机号码"),this.disabled=!0,this.time=60;var l=setInterval((()=>{this.time-=1,this.time<1&&(clearInterval(l),this.disabled=!1,this.time=0)}),1e3)},async login(){var e=await this.$refs.loginForm.validate().catch((()=>{}));if(!e)return!1}}},m=t(3744);const p=(0,m.Z)(r,[["render",u]]);var c=p},8084:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return g}});var a=t(6252),o=t(3577);const i={class:"dis-f warp pos-r",ref:"tabBox",style:{width:"100%"}},n={class:"tab-box dis-f al-item"},d=["onClick","src"],s=["onClick","src"],u={class:"info-box"},r={key:0,class:"pop-box"};function m(e,l,t,m,p,c){const f=(0,a.up)("el-text"),h=(0,a.up)("el-table-column"),w=(0,a.up)("el-switch"),g=(0,a.up)("el-button"),b=(0,a.up)("el-badge"),y=(0,a.up)("el-table"),v=(0,a.up)("pop-info"),_=(0,a.Q2)("time"),k=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a._)("div",i,[(0,a.wy)(((0,a.wg)(),(0,a.j4)(y,{data:p.data,style:{width:"100%"}},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{label:""},{default:(0,a.w5)((e=>[(0,a._)("div",n,[e.row.upgradeicon?((0,a.wg)(),(0,a.iD)("img",{key:0,onClick:l=>c.installPlugin(e.row),src:e.row.upgradeicon,class:"img",alt:""},null,8,d)):e.row.icon?((0,a.wg)(),(0,a.iD)("img",{key:1,onClick:l=>c.installPlugin(e.row),src:e.row.icon,class:"img",alt:""},null,8,s)):(0,a.kq)("",!0),(0,a._)("div",u,[(0,a.Wm)(f,{tag:1==e.row.isdelete?"del":"info",class:"title"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.row.name),1)])),_:2},1032,["tag"]),(0,a._)("div",null,[(0,a.Wm)(f,{tag:1==e.row.isdelete?"del":"info",class:"info-text"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.row.description),1)])),_:2},1032,["tag"])])])])])),_:1}),(0,a.Wm)(h,{label:"版本",width:"100"},{default:(0,a.w5)((e=>[(0,a._)("span",null,(0,o.zw)(e.row.version),1)])),_:1}),(0,a.Wm)(h,{label:"目录",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(f,{tag:1==e.row.isdelete?"del":"b",type:"danger"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.row.app),1)])),_:2},1032,["tag"])])),_:1}),(0,a.Wm)(h,{label:"安装时间",width:"180"},{default:(0,a.w5)((e=>[(0,a.wy)((0,a._)("span",null,null,512),[[_,e.row.timestamp]])])),_:1}),(0,a.Wm)(h,{label:"状态",width:"80"},{default:(0,a.w5)((e=>[e.row.disabled?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(w,{key:0,modelValue:e.row.status,"onUpdate:modelValue":l=>e.row.status=l,"before-change":()=>c.changeStatus(e.row),loading:e.row.changeStatusloading||!1},null,8,["modelValue","onUpdate:modelValue","before-change","loading"]))])),_:1}),(0,a.Wm)(h,{label:"操作",width:"200",fixed:"right",align:"right"},{default:(0,a.w5)((e=>[e.row.upgrade?((0,a.wg)(),(0,a.j4)(b,{key:0,value:e.row.upgradeversion,style:{"margin-top":"10px","margin-right":"40px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{onClick:l=>c.upgrade(e.row),icon:"x-icon-upgrade",style:{"font-size":"22px",padding:"10px 6px"}},null,8,["onClick"])])),_:2},1032,["value"])):(0,a.kq)("",!0),e.row.disabled?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(b,{key:1,style:{"margin-top":"10px","margin-right":"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{onClick:l=>c.uninstall(e.row,e.$index),icon:"el-icon-delete",style:{padding:"10px"}},null,8,["onClick"])])),_:2},1024)),(0,a.Wm)(b,{style:{"margin-top":"10px","margin-right":"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{onClick:l=>c.installPlugin(e.row),icon:"el-icon-setting",style:{padding:"10px"}},null,8,["onClick"])])),_:2},1024)])),_:1})])),_:1},8,["data"])),[[k,p.loading]])],512),p.popShow?((0,a.wg)(),(0,a.iD)("div",r,[(0,a.Wm)(v,{showPop:c.closePlugin,item:p.info},null,8,["showPop","item"])])):(0,a.kq)("",!0)],64)}var p=t(4867),c=t(9737),f={components:{popInfo:p["default"]},data(){return{data:[],loading:!1,popShow:!1,info:{}}},mounted(){this.loaddata()},methods:{installPlugin(e){this.info=e,this.popShow=!0},closePlugin(e=!1){this.info={},this.popShow=!1,!0===e&&this.loaddata()},loaddata(){this.loading=!0,this.$http.get("admin/application/installedApplist").then((e=>{this.loading=!1,200==e.code&&(this.data=e.data)}))},upgrade(e){return c.T.confirm("正在将应用<"+e.name+">升级到"+e.upgradeversion,"此操作不可逆, 如已二次开发请谨慎操作",{type:"info",closeOnClickModal:!1,confirmButtonText:"确认操作"}).then((()=>(e.changeStatusloading=!0,this.$http.post("admin/application/upgrade",{app:e.app,upgradeversion:e.upgradeversion}).then((l=>(e.changeStatusloading=!1,205==l.code?(this.$message.warning(l.message||"请前往在线升级频道登录X-PHP后进行升级"),l.url&&this.$router.replace({path:l.url}),!1):200==l.code?(this.loaddata(),this.$message.success(l.message||"操作成功"),!0):(this.$alert(l.message,"提示",{type:"error"}),!1))))))).catch((()=>{}))},changeStatus(e){return c.T.confirm((e.status?"关闭应用会导致相关调用失效":"打开应用("+e.name+")")+", 确认执行?","正在"+(e.status?"关闭":"打开")+"应用",{type:"error",closeOnClickModal:!1,confirmButtonText:"确认操作"}).then((()=>(e.changeStatusloading=!0,this.$http.post("admin/application/status",{app:e.app,status:e.status?0:1}).then((l=>(e.changeStatusloading=!1,200==l.code?(this.$message.success(l.message||"操作成功"),!0):(this.$alert(l.message,"提示",{type:"error"}),!1))))))).catch((()=>{}))},uninstall(e,l){c.T.confirm("当前操作不可逆,可能会造成无法访问或数据清空.","正在卸载应用",{type:"error",closeOnClickModal:!1,confirmButtonText:"确认卸载"}).then((()=>{this.$http.post("admin/application/uninstall",{app:e.app}).then((e=>{if(200==e.code)return this.data.splice(l,1),this.$message.success(e.message||"操作成功"),!0;this.$alert(e.message,"提示",{type:"error"})}))})).catch((()=>{}))}}},h=t(3744);const w=(0,h.Z)(f,[["render",m],["__scopeId","data-v-4840a705"]]);var g=w},7760:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return h}});var a=t(6252),o=t(3577),i=t(2262);const n=["src"],d={class:"info-box"},s={class:"title"},u={class:"tag-box"},r={class:"info-text"},m={key:0,class:"installed"};var p={__name:"pluginBox",props:{item:Object,installPlugin:Function,windowType:Number,tabI:Number},setup(e){const l=e;return(t,p)=>{const c=(0,a.up)("el-tag"),f=(0,a.up)("el-icon");return(0,a.wg)(),(0,a.iD)("div",{class:(0,o.C_)(["tab-box dis-f al-item",[1===(0,i.SU)(l).windowType?"tab-box-two":2===(0,i.SU)(l).windowType?"tab-box-one":"",1===(0,i.SU)(l).windowType?((0,i.SU)(l).tabI+1)%2?"mg-r-25":"":2===(0,i.SU)(l).windowType?"":((0,i.SU)(l).tabI+1)%3?"mg-r-25":""]]),onClick:p[0]||(p[0]=(...e)=>(0,i.SU)(l).installPlugin&&(0,i.SU)(l).installPlugin(...e))},[(0,a._)("img",{src:e.item.icon,class:"img",alt:""},null,8,n),(0,a._)("div",d,[(0,a._)("div",s,(0,o.zw)(e.item.name),1),(0,a._)("div",u,[(0,a.Wm)(c,{class:"tag-mg",type:"danger"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.item.app),1)])),_:1}),(0,a.Wm)(c,{class:"tag-mg",type:"danger"},{default:(0,a.w5)((()=>[(0,a.Uk)("V "+(0,o.zw)(e.item.version),1)])),_:1}),(0,a.Wm)(c,{class:"tag-mg",type:"info"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.item.author),1)])),_:1})]),(0,a._)("div",r,(0,o.zw)(e.item.description),1)]),e.item.installed?((0,a.wg)(),(0,a.iD)("div",m,[(0,a._)("span",null,[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)("el-icon-Select")))])),_:1})])])):(0,a.kq)("",!0)],2)}}},c=t(3744);const f=(0,c.Z)(p,[["__scopeId","data-v-7ee64400"]]);var h=f},7440:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return p}});var a=t(6252);const o={class:"dis-f warp pd-15 pos-r",ref:"tabBox"},i={key:0,class:"pop-box"};function n(e,l,t,n,d,s){const u=(0,a.up)("pop-info"),r=(0,a.up)("plugin-box"),m=(0,a.Q2)("loading");return(0,a.wy)(((0,a.wg)(),(0,a.iD)("div",o,[d.popShow?((0,a.wg)(),(0,a.iD)("div",i,[(0,a.Wm)(u,{showPop:s.closePlugin,item:d.info},null,8,["showPop","item"])])):(0,a.kq)("",!0),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(d.list,((e,l)=>((0,a.wg)(),(0,a.j4)(r,{onClick:l=>s.installPlugin(e),windowType:d.windowType,tabI:l,item:e,key:l},null,8,["onClick","windowType","tabI","item"])))),128))])),[[m,d.loading]])}var d=t(4867),s=t(7760),u={name:"YourComponentName",components:{popInfo:d["default"],PluginBox:s["default"]},props:{title:{type:String,required:!0,default:""}},data(){return{windowType:0,list:[],tabBox:null,popShow:!1,loading:!1,resize:null,info:{}}},computed:{},methods:{setWindowType(){this.resize=new ResizeObserver((e=>{let l=e[0].contentRect.width;this.windowType=l<=800&&l>500?1:l<=500?2:0})),this.tabBox&&this.resize.observe(this.tabBox)},installPlugin(e){this.info=e,this.popShow=!0},closePlugin(e=!1){this.info={},this.popShow=!1,!0===e&&this.loaddata()},unObserve(){this.resize.unobserve(this.tabBox)},loaddata(){this.loading=!0,this.$http.get("admin/application/lists").then((e=>{this.loading=!1,200==e.code&&(this.list=e.data)}))}},mounted(){this.tabBox=this.$refs.tabBox,this.$nextTick((()=>this.setWindowType())),this.loaddata()},beforeUnmount(){this.unObserve()}},r=t(3744);const m=(0,r.Z)(u,[["render",n],["__scopeId","data-v-2fe35598"]]);var p=m},4867:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return B}});var a=t(6252),o=t(3577);const i=e=>((0,a.dD)("data-v-3f92f5ee"),e=e(),(0,a.Cn)(),e),n={class:"dis-f jus-x pop-bg"},d={class:"info-box dis-f jus-x al-item text-f pos-r"},s={class:"title"},u={class:"info-data-box"},r={class:"dis-f al-item jus-bet"},m={class:"dis-f al-item",style:{flex:"0.75"}},p=["src"],c={style:{flex:"1"}},f={class:"data-title"},h={class:"data-info-text"},w={class:"data-info-type data-info-type-m jus-x"},g=i((()=>(0,a._)("span",{class:"data-info-type data-info-type-m jus-x",style:{"margin-left":"5px",color:"#fff","background-color":"#67c23a"}}," 免费 ",-1))),b=i((()=>(0,a._)("div",{class:"plugin-tag-title"}," 插件详情 ",-1))),y={class:"plugin-introduce"},v={key:0,style:{padding:"10px 0"}},_=i((()=>(0,a._)("p",null,"当前应用需要第三方组件支持请使用命令行先安装",-1))),k={style:{background:"#848484",padding:"15px",color:"#fff","font-size":"13px","border-radius":"4px","margin-top":"20px"}},W=i((()=>(0,a._)("div",{class:"plugin-tag-title"}," 相关详情 ",-1))),V={class:"related-details"},x={class:"box"},U=i((()=>(0,a._)("div",{style:{"margin-bottom":"8px"}}," 版本 ",-1))),D={class:"text"},$=i((()=>(0,a._)("span",{class:"history-text"},"版本历史",-1))),C=i((()=>(0,a._)("div",{class:"line"},null,-1))),j={class:"box"},S=i((()=>(0,a._)("div",{style:{"margin-bottom":"8px"}},"开发者",-1))),z={class:"text"},T={key:0,class:"line"},q={key:1,class:"box"},N=i((()=>(0,a._)("div",{style:{"margin-bottom":"8px"}},"数据表",-1))),O={class:"dis-f",style:{"flex-wrap":"wrap"}},M={class:"business-type"},I=i((()=>(0,a._)("div",{class:"line"},null,-1))),L={class:"box"},E=i((()=>(0,a._)("div",{style:{"margin-bottom":"8px"}}," 帮助 ",-1))),F={class:"dis-f al-item help-btn jus-x"},Z=i((()=>(0,a._)("span",{class:"text-mg"}," 使用说明 ",-1)));function A(e,l,t,i,A,Y){const P=(0,a.up)("el-icon-close-bold"),H=(0,a.up)("el-icon"),K=(0,a.up)("el-icon-collection");return(0,a.wg)(),(0,a.iD)("div",n,[(0,a._)("div",d,[(0,a._)("div",s,[(0,a.Uk)((0,o.zw)(A.info.name)+" ",1),(0,a._)("div",{class:"close",onClick:l[0]||(l[0]=(...e)=>Y.closePop&&Y.closePop(...e))},[(0,a.Wm)(H,null,{default:(0,a.w5)((()=>[(0,a.Wm)(P)])),_:1})])]),(0,a._)("div",u,[(0,a._)("div",r,[(0,a._)("div",m,[(0,a._)("img",{src:A.info.icon,class:"img",alt:""},null,8,p),(0,a._)("div",c,[(0,a._)("div",f,(0,o.zw)(A.info.name),1),(0,a._)("div",h,[(0,a.Uk)("目录:"),(0,a._)("code",null,(0,o.zw)(A.info.app),1)]),(0,a._)("span",w,(0,o.zw)(A.info.islocal?"本地插件":"线上插件"),1),g])]),A.info.installed?((0,a.wg)(),(0,a.iD)("div",{key:1,class:"install-btn",onClick:l[2]||(l[2]=(...e)=>Y.uninstall&&Y.uninstall(...e)),style:{flex:"0.2",background:"#9E9E9E","border-color":"#9E9E9E"}}," 卸载 ")):((0,a.wg)(),(0,a.iD)("div",{key:0,class:"install-btn",onClick:l[1]||(l[1]=(...e)=>Y.install&&Y.install(...e)),style:{flex:"0.2"}}," 安装 "))]),b,(0,a._)("div",y,[(0,a.Uk)((0,o.zw)(A.info.description)+" ",1),A.info.exec?((0,a.wg)(),(0,a.iD)("div",v,[_,(0,a._)("pre",k,(0,o.zw)(A.info.exec)+"\n\n\n或手动安装组件后再来操作安装\n\n\n"+(0,o.zw)(A.info.otherexec),1)])):(0,a.kq)("",!0)]),W,(0,a._)("div",V,[(0,a._)("div",x,[U,(0,a._)("div",D,[(0,a.Uk)((0,o.zw)(A.info.version)+" ",1),$])]),C,(0,a._)("div",j,[S,(0,a._)("div",z,(0,o.zw)(A.info.author),1)]),A.info.tables?((0,a.wg)(),(0,a.iD)("div",T)):(0,a.kq)("",!0),A.info.tables?((0,a.wg)(),(0,a.iD)("div",q,[N,(0,a._)("div",O,[(0,a._)("div",M,(0,o.zw)(A.info.tables),1)])])):(0,a.kq)("",!0),I,(0,a._)("div",L,[E,(0,a._)("div",F,[(0,a.Wm)(H,null,{default:(0,a.w5)((()=>[(0,a.Wm)(K)])),_:1}),Z])])])])])])}var Y=t(9737),P={props:{showPop:{type:Function,required:!0},item:{type:Object,required:!0}},data(){return{info:this.item,isupdate:!1}},mounted(){this.info=this.item},methods:{closePop(){this.showPop(this.isupdate)},uninstall(){Y.T.confirm("当前操作不可逆,可能会造成无法访问或数据清空.","正在卸载应用",{type:"error",closeOnClickModal:!1,confirmButtonText:"确认卸载"}).then((()=>{this.$http.post("admin/application/uninstall",{app:this.info.app}).then((e=>{if(200==e.code)return this.info.installed=!1,this.isupdate=!0,this.$message.success(e.message||"操作成功"),!0;this.$alert(e.message,"提示",{type:"error"})}))})).catch((()=>{}))},install(){Y.T.confirm(this.info.islocal?"在安装插件之前,请阅读插件的使用说明。":"此插件为远程应用, 如安装失败请确认是否有写入权限.或前往应用中心下载至本地再进行安装","安装应用",{type:"warning",closeOnClickModal:!1,confirmButtonText:"确认安装"}).then((()=>{this.$http.post("admin/application/install",{app:this.info.app}).then((e=>205==e.code?(this.$message.warning(e.message||"请前往在线升级频道登录X-PHP后进行安装"),e.url&&this.$router.replace({path:e.url}),!1):200==e.code?(this.info.installed=!0,this.isupdate=!0,this.$message.success(e.message||"操作成功"),!0):void this.$alert(e.message,"提示",{type:"error"})))})).catch((()=>{}))}}},H=t(3744);const K=(0,H.Z)(P,[["render",A],["__scopeId","data-v-3f92f5ee"]]);var B=K},2953:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return p}});var a=t(6252),o=t(3577);const i={key:0,style:{color:"#67C23A"}},n={key:1,style:{color:"#F56C6C"}},d={style:{"font-size":"12px",color:"#999",padding:"20px",background:"#333","font-family":"consolas","line-height":"1.5",overflow:"auto"}};function s(e,l,t,s,u,r){const m=(0,a.up)("el-table-column"),p=(0,a.up)("el-icon-success-filled"),c=(0,a.up)("el-icon"),f=(0,a.up)("el-icon-circle-close-filled"),h=(0,a.up)("el-button"),w=(0,a.up)("xTable"),g=(0,a.up)("el-main"),b=(0,a.up)("el-container"),y=(0,a.up)("el-drawer");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,{style:{padding:"0 20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{ref:"table",data:u.data,api:u.api,stripe:""},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{label:"ID",prop:"id",width:"80"}),(0,a.Wm)(m,{label:"执行时间",prop:"createtime",width:"180"}),(0,a.Wm)(m,{label:"耗时",prop:"consumingtime",width:"100"}),(0,a.Wm)(m,{label:"结果",prop:"state",width:"80"},{default:(0,a.w5)((e=>[1==e.row.status?((0,a.wg)(),(0,a.iD)("span",i,[(0,a.Wm)(c,null,{default:(0,a.w5)((()=>[(0,a.Wm)(p)])),_:1})])):((0,a.wg)(),(0,a.iD)("span",n,[(0,a.Wm)(c,null,{default:(0,a.w5)((()=>[(0,a.Wm)(f)])),_:1})]))])),_:1}),(0,a.Wm)(m,{label:"执行日志",prop:"logs",width:"100",fixed:"right"},{default:(0,a.w5)((e=>[(0,a.Wm)(h,{size:"small",onClick:l=>r.show(e.row),type:"text"},{default:(0,a.w5)((()=>[(0,a.Uk)("日志")])),_:2},1032,["onClick"])])),_:1})])),_:1},8,["data","api"])])),_:1})])),_:1}),(0,a.Wm)(y,{title:"日志",modelValue:u.logsVisible,"onUpdate:modelValue":l[0]||(l[0]=e=>u.logsVisible=e),size:500,direction:"rtl","destroy-on-close":""},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{style:{padding:"0 20px 20px 20px"}},{default:(0,a.w5)((()=>[(0,a._)("pre",d,(0,o.zw)(u.demoLog),1)])),_:1})])),_:1},8,["modelValue"])],64)}var u={data(){return{logsVisible:!1,data:[],api:null,demoLog:""}},mounted(){},methods:{show(e){this.logsVisible=!0,this.demoLog=e.content},setApi(e){this.api=e}}},r=t(3744);const m=(0,r.Z)(u,[["render",s]]);var p=m},1005:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return P}});var a=t(6252);function o(e,l,t,o,i,n){const d=(0,a.up)("el-input"),s=(0,a.up)("el-form-item"),u=(0,a.up)("el-option"),r=(0,a.up)("el-select"),m=(0,a.up)("x-cron"),p=(0,a.up)("el-radio"),c=(0,a.up)("el-radio-group"),f=(0,a.up)("el-form"),h=(0,a.up)("el-button"),w=(0,a.up)("el-dialog");return(0,a.wg)(),(0,a.j4)(w,{title:i.titleMap[i.mode],modelValue:i.visible,"onUpdate:modelValue":l[7]||(l[7]=e=>i.visible=e),width:600,"destroy-on-close":"",onClosed:l[8]||(l[8]=l=>e.$emit("closed"))},{footer:(0,a.w5)((()=>[(0,a.Wm)(h,{onClick:l[5]||(l[5]=e=>i.visible=!1)},{default:(0,a.w5)((()=>[(0,a.Uk)("取 消")])),_:1}),(0,a.Wm)(h,{type:"primary",loading:i.isSaveing,onClick:l[6]||(l[6]=e=>n.submit())},{default:(0,a.w5)((()=>[(0,a.Uk)("保 存")])),_:1},8,["loading"])])),default:(0,a.w5)((()=>[(0,a.Wm)(f,{model:i.form,rules:i.rules,ref:"dialogForm","label-width":"100px","label-position":"left"},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{label:"描述",prop:"title"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{modelValue:i.form.title,"onUpdate:modelValue":l[0]||(l[0]=e=>i.form.title=e),placeholder:"计划任务标题",clearable:""},null,8,["modelValue"])])),_:1}),(0,a.Wm)(s,{label:"执行类",prop:"handler"},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{modelValue:i.form.type,"onUpdate:modelValue":l[1]||(l[1]=e=>i.form.type=e)},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(i.options,(e=>((0,a.wg)(),(0,a.j4)(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),(0,a.Wm)(s,{label:"执行内容",prop:"content"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{modelValue:i.form.content,"onUpdate:modelValue":l[2]||(l[2]=e=>i.form.content=e),placeholder:"计划任务执行内容",clearable:"",type:"textarea"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(s,{label:"定时规则",prop:"schedule"},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{modelValue:i.form.schedule,"onUpdate:modelValue":l[3]||(l[3]=e=>i.form.schedule=e),placeholder:"请输入Cron定时规则",clearable:"",shortcuts:i.shortcuts},null,8,["modelValue","shortcuts"])])),_:1}),(0,a.Wm)(s,{label:"是否启用",prop:"status"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:i.form.status,"onUpdate:modelValue":l[4]||(l[4]=e=>i.form.status=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{label:1},{default:(0,a.w5)((()=>[(0,a.Uk)("开启")])),_:1}),(0,a.Wm)(p,{label:0},{default:(0,a.w5)((()=>[(0,a.Uk)("关闭")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["title","modelValue"])}var i=t(3577);const n=e=>((0,a.dD)("data-v-2bb90fad"),e=e(),(0,a.Cn)(),e),d={class:"x-cron"},s={class:"x-cron-num"},u=n((()=>(0,a._)("h2",null,"分钟",-1))),r=n((()=>(0,a._)("span",{style:{padding:"0 15px"}},"-",-1))),m=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"分钟开始,每",-1))),p=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"分钟执行一次",-1))),c={class:"x-cron-num"},f=n((()=>(0,a._)("h2",null,"小时",-1))),h=n((()=>(0,a._)("span",{style:{padding:"0 15px"}},"-",-1))),w=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"小时开始,每",-1))),g=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"小时执行一次",-1))),b={class:"x-cron-num"},y=n((()=>(0,a._)("h2",null,"日",-1))),v=n((()=>(0,a._)("span",{style:{padding:"0 15px"}},"-",-1))),_=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"号开始,每",-1))),k=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"天执行一次",-1))),W={class:"x-cron-num"},V=n((()=>(0,a._)("h2",null,"月",-1))),x=n((()=>(0,a._)("span",{style:{padding:"0 15px"}},"-",-1))),U=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"月开始,每",-1))),D=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"月执行一次",-1))),$={class:"x-cron-num"},C=n((()=>(0,a._)("h2",null,"周",-1))),j=n((()=>(0,a._)("span",{style:{padding:"0 15px"}},"-",-1))),S=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"周的星期",-1))),z=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"执行一次",-1))),T={class:"x-cron-num"},q=n((()=>(0,a._)("h2",null,"年",-1))),N=n((()=>(0,a._)("span",{style:{padding:"0 15px"}},"-",-1))),O=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"年开始,每",-1))),M=n((()=>(0,a._)("span",{style:{padding:"0 6px"}},"年执行一次",-1)));function I(e,l,t,o,n,I){const L=(0,a.up)("el-button"),E=(0,a.up)("el-dropdown-item"),F=(0,a.up)("el-dropdown-menu"),Z=(0,a.up)("el-dropdown"),A=(0,a.up)("el-input"),Y=(0,a.up)("el-radio-button"),P=(0,a.up)("el-radio-group"),H=(0,a.up)("el-form-item"),K=(0,a.up)("el-input-number"),B=(0,a.up)("el-option"),R=(0,a.up)("el-select"),G=(0,a.up)("el-form"),J=(0,a.up)("el-tab-pane"),Q=(0,a.up)("el-tabs"),X=(0,a.up)("el-dialog");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(A,(0,a.dG)({modelValue:n.defaultValue,"onUpdate:modelValue":l[0]||(l[0]=e=>n.defaultValue=e)},e.$attrs),{append:(0,a.w5)((()=>[(0,a.Wm)(Z,{size:"medium",onCommand:I.handleShortcuts},{dropdown:(0,a.w5)((()=>[(0,a.Wm)(F,null,{default:(0,a.w5)((()=>[(0,a.Wm)(E,{command:"* * * * *"},{default:(0,a.w5)((()=>[(0,a.Uk)("每分钟")])),_:1}),(0,a.Wm)(E,{command:"0 * * * *"},{default:(0,a.w5)((()=>[(0,a.Uk)("每小时")])),_:1}),(0,a.Wm)(E,{command:"0 0 * * *"},{default:(0,a.w5)((()=>[(0,a.Uk)("每天零点")])),_:1}),(0,a.Wm)(E,{command:"0 0 1 * *"},{default:(0,a.w5)((()=>[(0,a.Uk)("每月一号零点")])),_:1}),(0,a.Wm)(E,{command:"0 0 L * *"},{default:(0,a.w5)((()=>[(0,a.Uk)("每月最后一天零点")])),_:1}),(0,a.Wm)(E,{command:"0 0 * * 1"},{default:(0,a.w5)((()=>[(0,a.Uk)("每周星期日零点")])),_:1}),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.shortcuts,((e,l)=>((0,a.wg)(),(0,a.j4)(E,{key:e.value,divided:0==l,command:e.value},{default:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(e.text),1)])),_:2},1032,["divided","command"])))),128)),(0,a.Wm)(E,{icon:"el-icon-plus",divided:"",command:"custom"},{default:(0,a.w5)((()=>[(0,a.Uk)("自定义")])),_:1})])),_:1})])),default:(0,a.w5)((()=>[(0,a.Wm)(L,{icon:"el-icon-arrow-down"})])),_:1},8,["onCommand"])])),_:1},16,["modelValue"]),(0,a.Wm)(X,{title:"cron规则生成器",modelValue:n.dialogVisible,"onUpdate:modelValue":l[40]||(l[40]=e=>n.dialogVisible=e),width:580,"destroy-on-close":"","append-to-body":""},{footer:(0,a.w5)((()=>[(0,a.Wm)(L,{onClick:l[38]||(l[38]=e=>n.dialogVisible=!1)},{default:(0,a.w5)((()=>[(0,a.Uk)("取 消")])),_:1}),(0,a.Wm)(L,{type:"primary",onClick:l[39]||(l[39]=e=>I.submit())},{default:(0,a.w5)((()=>[(0,a.Uk)("确 认")])),_:1})])),default:(0,a.w5)((()=>[(0,a._)("div",d,[(0,a.Wm)(Q,null,{default:(0,a.w5)((()=>[(0,a.Wm)(J,null,{label:(0,a.w5)((()=>[(0,a._)("div",s,[u,(0,a._)("h4",null,(0,i.zw)(I.value_minute),1)])])),default:(0,a.w5)((()=>[(0,a.Wm)(G,null,{default:(0,a.w5)((()=>[(0,a.Wm)(H,{label:"类型"},{default:(0,a.w5)((()=>[(0,a.Wm)(P,{modelValue:n.value.minute.type,"onUpdate:modelValue":l[1]||(l[1]=e=>n.value.minute.type=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(Y,{label:"0"},{default:(0,a.w5)((()=>[(0,a.Uk)("任意值")])),_:1}),(0,a.Wm)(Y,{label:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("范围")])),_:1}),(0,a.Wm)(Y,{label:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("间隔")])),_:1}),(0,a.Wm)(Y,{label:"3"},{default:(0,a.w5)((()=>[(0,a.Uk)("指定")])),_:1})])),_:1},8,["modelValue"])])),_:1}),1==n.value.minute.type?((0,a.wg)(),(0,a.j4)(H,{key:0,label:"范围"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.minute.range.start,"onUpdate:modelValue":l[2]||(l[2]=e=>n.value.minute.range.start=e),min:0,max:59,"controls-position":"right"},null,8,["modelValue"]),r,(0,a.Wm)(K,{modelValue:n.value.minute.range.end,"onUpdate:modelValue":l[3]||(l[3]=e=>n.value.minute.range.end=e),min:0,max:59,"controls-position":"right"},null,8,["modelValue"])])),_:1})):(0,a.kq)("",!0),2==n.value.minute.type?((0,a.wg)(),(0,a.j4)(H,{key:1,label:"间隔"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.minute.loop.start,"onUpdate:modelValue":l[4]||(l[4]=e=>n.value.minute.loop.start=e),min:0,max:59,"controls-position":"right"},null,8,["modelValue"]),m,(0,a.Wm)(K,{modelValue:n.value.minute.loop.end,"onUpdate:modelValue":l[5]||(l[5]=e=>n.value.minute.loop.end=e),min:0,max:59,"controls-position":"right"},null,8,["modelValue"]),p])),_:1})):(0,a.kq)("",!0),3==n.value.minute.type?((0,a.wg)(),(0,a.j4)(H,{key:2,label:"指定"},{default:(0,a.w5)((()=>[(0,a.Wm)(R,{modelValue:n.value.minute.appoint,"onUpdate:modelValue":l[6]||(l[6]=e=>n.value.minute.appoint=e),multiple:"",style:{width:"100%"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.minute,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e,value:e},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})):(0,a.kq)("",!0)])),_:1})])),_:1}),(0,a.Wm)(J,null,{label:(0,a.w5)((()=>[(0,a._)("div",c,[f,(0,a._)("h4",null,(0,i.zw)(I.value_hour),1)])])),default:(0,a.w5)((()=>[(0,a.Wm)(G,null,{default:(0,a.w5)((()=>[(0,a.Wm)(H,{label:"类型"},{default:(0,a.w5)((()=>[(0,a.Wm)(P,{modelValue:n.value.hour.type,"onUpdate:modelValue":l[7]||(l[7]=e=>n.value.hour.type=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(Y,{label:"0"},{default:(0,a.w5)((()=>[(0,a.Uk)("任意值")])),_:1}),(0,a.Wm)(Y,{label:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("范围")])),_:1}),(0,a.Wm)(Y,{label:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("间隔")])),_:1}),(0,a.Wm)(Y,{label:"3"},{default:(0,a.w5)((()=>[(0,a.Uk)("指定")])),_:1})])),_:1},8,["modelValue"])])),_:1}),1==n.value.hour.type?((0,a.wg)(),(0,a.j4)(H,{key:0,label:"范围"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.hour.range.start,"onUpdate:modelValue":l[8]||(l[8]=e=>n.value.hour.range.start=e),min:0,max:23,"controls-position":"right"},null,8,["modelValue"]),h,(0,a.Wm)(K,{modelValue:n.value.hour.range.end,"onUpdate:modelValue":l[9]||(l[9]=e=>n.value.hour.range.end=e),min:0,max:23,"controls-position":"right"},null,8,["modelValue"])])),_:1})):(0,a.kq)("",!0),2==n.value.hour.type?((0,a.wg)(),(0,a.j4)(H,{key:1,label:"间隔"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.hour.loop.start,"onUpdate:modelValue":l[10]||(l[10]=e=>n.value.hour.loop.start=e),min:0,max:23,"controls-position":"right"},null,8,["modelValue"]),w,(0,a.Wm)(K,{modelValue:n.value.hour.loop.end,"onUpdate:modelValue":l[11]||(l[11]=e=>n.value.hour.loop.end=e),min:0,max:23,"controls-position":"right"},null,8,["modelValue"]),g])),_:1})):(0,a.kq)("",!0),3==n.value.hour.type?((0,a.wg)(),(0,a.j4)(H,{key:2,label:"指定"},{default:(0,a.w5)((()=>[(0,a.Wm)(R,{modelValue:n.value.hour.appoint,"onUpdate:modelValue":l[12]||(l[12]=e=>n.value.hour.appoint=e),multiple:"",style:{width:"100%"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.hour,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e,value:e},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})):(0,a.kq)("",!0)])),_:1})])),_:1}),(0,a.Wm)(J,null,{label:(0,a.w5)((()=>[(0,a._)("div",b,[y,(0,a._)("h4",null,(0,i.zw)(I.value_day),1)])])),default:(0,a.w5)((()=>[(0,a.Wm)(G,null,{default:(0,a.w5)((()=>[(0,a.Wm)(H,{label:"类型"},{default:(0,a.w5)((()=>[(0,a.Wm)(P,{modelValue:n.value.day.type,"onUpdate:modelValue":l[13]||(l[13]=e=>n.value.day.type=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(Y,{label:"0"},{default:(0,a.w5)((()=>[(0,a.Uk)("任意值")])),_:1}),(0,a.Wm)(Y,{label:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("范围")])),_:1}),(0,a.Wm)(Y,{label:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("间隔")])),_:1}),(0,a.Wm)(Y,{label:"3"},{default:(0,a.w5)((()=>[(0,a.Uk)("指定")])),_:1}),(0,a.Wm)(Y,{label:"4"},{default:(0,a.w5)((()=>[(0,a.Uk)("本月最后一天")])),_:1})])),_:1},8,["modelValue"])])),_:1}),1==n.value.day.type?((0,a.wg)(),(0,a.j4)(H,{key:0,label:"范围"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.day.range.start,"onUpdate:modelValue":l[14]||(l[14]=e=>n.value.day.range.start=e),min:1,max:31,"controls-position":"right"},null,8,["modelValue"]),v,(0,a.Wm)(K,{modelValue:n.value.day.range.end,"onUpdate:modelValue":l[15]||(l[15]=e=>n.value.day.range.end=e),min:1,max:31,"controls-position":"right"},null,8,["modelValue"])])),_:1})):(0,a.kq)("",!0),2==n.value.day.type?((0,a.wg)(),(0,a.j4)(H,{key:1,label:"间隔"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.day.loop.start,"onUpdate:modelValue":l[16]||(l[16]=e=>n.value.day.loop.start=e),min:1,max:31,"controls-position":"right"},null,8,["modelValue"]),_,(0,a.Wm)(K,{modelValue:n.value.day.loop.end,"onUpdate:modelValue":l[17]||(l[17]=e=>n.value.day.loop.end=e),min:1,max:31,"controls-position":"right"},null,8,["modelValue"]),k])),_:1})):(0,a.kq)("",!0),3==n.value.day.type?((0,a.wg)(),(0,a.j4)(H,{key:2,label:"指定"},{default:(0,a.w5)((()=>[(0,a.Wm)(R,{modelValue:n.value.day.appoint,"onUpdate:modelValue":l[18]||(l[18]=e=>n.value.day.appoint=e),multiple:"",style:{width:"100%"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.day,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e,value:e},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})):(0,a.kq)("",!0)])),_:1})])),_:1}),(0,a.Wm)(J,null,{label:(0,a.w5)((()=>[(0,a._)("div",W,[V,(0,a._)("h4",null,(0,i.zw)(I.value_month),1)])])),default:(0,a.w5)((()=>[(0,a.Wm)(G,null,{default:(0,a.w5)((()=>[(0,a.Wm)(H,{label:"类型"},{default:(0,a.w5)((()=>[(0,a.Wm)(P,{modelValue:n.value.month.type,"onUpdate:modelValue":l[19]||(l[19]=e=>n.value.month.type=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(Y,{label:"0"},{default:(0,a.w5)((()=>[(0,a.Uk)("任意值")])),_:1}),(0,a.Wm)(Y,{label:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("范围")])),_:1}),(0,a.Wm)(Y,{label:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("间隔")])),_:1}),(0,a.Wm)(Y,{label:"3"},{default:(0,a.w5)((()=>[(0,a.Uk)("指定")])),_:1})])),_:1},8,["modelValue"])])),_:1}),1==n.value.month.type?((0,a.wg)(),(0,a.j4)(H,{key:0,label:"范围"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.month.range.start,"onUpdate:modelValue":l[20]||(l[20]=e=>n.value.month.range.start=e),min:1,max:12,"controls-position":"right"},null,8,["modelValue"]),x,(0,a.Wm)(K,{modelValue:n.value.month.range.end,"onUpdate:modelValue":l[21]||(l[21]=e=>n.value.month.range.end=e),min:1,max:12,"controls-position":"right"},null,8,["modelValue"])])),_:1})):(0,a.kq)("",!0),2==n.value.month.type?((0,a.wg)(),(0,a.j4)(H,{key:1,label:"间隔"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.month.loop.start,"onUpdate:modelValue":l[22]||(l[22]=e=>n.value.month.loop.start=e),min:1,max:12,"controls-position":"right"},null,8,["modelValue"]),U,(0,a.Wm)(K,{modelValue:n.value.month.loop.end,"onUpdate:modelValue":l[23]||(l[23]=e=>n.value.month.loop.end=e),min:1,max:12,"controls-position":"right"},null,8,["modelValue"]),D])),_:1})):(0,a.kq)("",!0),3==n.value.month.type?((0,a.wg)(),(0,a.j4)(H,{key:2,label:"指定"},{default:(0,a.w5)((()=>[(0,a.Wm)(R,{modelValue:n.value.month.appoint,"onUpdate:modelValue":l[24]||(l[24]=e=>n.value.month.appoint=e),multiple:"",style:{width:"100%"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.month,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e,value:e},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})):(0,a.kq)("",!0)])),_:1})])),_:1}),(0,a.Wm)(J,null,{label:(0,a.w5)((()=>[(0,a._)("div",$,[C,(0,a._)("h4",null,(0,i.zw)(I.value_week),1)])])),default:(0,a.w5)((()=>[(0,a.Wm)(G,null,{default:(0,a.w5)((()=>[(0,a.Wm)(G,null,{default:(0,a.w5)((()=>[(0,a.Wm)(H,{label:"类型"},{default:(0,a.w5)((()=>[(0,a.Wm)(P,{modelValue:n.value.week.type,"onUpdate:modelValue":l[25]||(l[25]=e=>n.value.week.type=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(Y,{label:"0"},{default:(0,a.w5)((()=>[(0,a.Uk)("任意值")])),_:1}),(0,a.Wm)(Y,{label:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("范围")])),_:1}),(0,a.Wm)(Y,{label:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("间隔")])),_:1}),(0,a.Wm)(Y,{label:"3"},{default:(0,a.w5)((()=>[(0,a.Uk)("指定")])),_:1}),(0,a.Wm)(Y,{label:"4"},{default:(0,a.w5)((()=>[(0,a.Uk)("本月最后一周")])),_:1})])),_:1},8,["modelValue"])])),_:1}),1==n.value.week.type?((0,a.wg)(),(0,a.j4)(H,{key:0,label:"范围"},{default:(0,a.w5)((()=>[(0,a.Wm)(R,{modelValue:n.value.week.range.start,"onUpdate:modelValue":l[26]||(l[26]=e=>n.value.week.range.start=e)},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.week,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"]),j,(0,a.Wm)(R,{modelValue:n.value.week.range.end,"onUpdate:modelValue":l[27]||(l[27]=e=>n.value.week.range.end=e)},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.week,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})):(0,a.kq)("",!0),2==n.value.week.type?((0,a.wg)(),(0,a.j4)(H,{key:1,label:"间隔"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 第 "),(0,a.Wm)(K,{modelValue:n.value.week.loop.start,"onUpdate:modelValue":l[28]||(l[28]=e=>n.value.week.loop.start=e),min:1,max:4,"controls-position":"right"},null,8,["modelValue"]),S,(0,a.Wm)(R,{modelValue:n.value.week.loop.end,"onUpdate:modelValue":l[29]||(l[29]=e=>n.value.week.loop.end=e)},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.week,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"]),z])),_:1})):(0,a.kq)("",!0),3==n.value.week.type?((0,a.wg)(),(0,a.j4)(H,{key:2,label:"指定"},{default:(0,a.w5)((()=>[(0,a.Wm)(R,{modelValue:n.value.week.appoint,"onUpdate:modelValue":l[30]||(l[30]=e=>n.value.week.appoint=e),multiple:"",style:{width:"100%"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.week,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})):(0,a.kq)("",!0),4==n.value.week.type?((0,a.wg)(),(0,a.j4)(H,{key:3,label:"最后一周"},{default:(0,a.w5)((()=>[(0,a.Wm)(R,{modelValue:n.value.week.last,"onUpdate:modelValue":l[31]||(l[31]=e=>n.value.week.last=e)},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.week,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})):(0,a.kq)("",!0)])),_:1})])),_:1})])),_:1}),(0,a.Wm)(J,null,{label:(0,a.w5)((()=>[(0,a._)("div",T,[q,(0,a._)("h4",null,(0,i.zw)(I.value_year),1)])])),default:(0,a.w5)((()=>[(0,a.Wm)(G,null,{default:(0,a.w5)((()=>[(0,a.Wm)(H,{label:"类型"},{default:(0,a.w5)((()=>[(0,a.Wm)(P,{modelValue:n.value.year.type,"onUpdate:modelValue":l[32]||(l[32]=e=>n.value.year.type=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(Y,{label:"-1"},{default:(0,a.w5)((()=>[(0,a.Uk)("忽略")])),_:1}),(0,a.Wm)(Y,{label:"0"},{default:(0,a.w5)((()=>[(0,a.Uk)("任意值")])),_:1}),(0,a.Wm)(Y,{label:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("范围")])),_:1}),(0,a.Wm)(Y,{label:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("间隔")])),_:1}),(0,a.Wm)(Y,{label:"3"},{default:(0,a.w5)((()=>[(0,a.Uk)("指定")])),_:1})])),_:1},8,["modelValue"])])),_:1}),1==n.value.year.type?((0,a.wg)(),(0,a.j4)(H,{key:0,label:"范围"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.year.range.start,"onUpdate:modelValue":l[33]||(l[33]=e=>n.value.year.range.start=e),"controls-position":"right"},null,8,["modelValue"]),N,(0,a.Wm)(K,{modelValue:n.value.year.range.end,"onUpdate:modelValue":l[34]||(l[34]=e=>n.value.year.range.end=e),"controls-position":"right"},null,8,["modelValue"])])),_:1})):(0,a.kq)("",!0),2==n.value.year.type?((0,a.wg)(),(0,a.j4)(H,{key:1,label:"间隔"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{modelValue:n.value.year.loop.start,"onUpdate:modelValue":l[35]||(l[35]=e=>n.value.year.loop.start=e),"controls-position":"right"},null,8,["modelValue"]),O,(0,a.Wm)(K,{modelValue:n.value.year.loop.end,"onUpdate:modelValue":l[36]||(l[36]=e=>n.value.year.loop.end=e),min:1,"controls-position":"right"},null,8,["modelValue"]),M])),_:1})):(0,a.kq)("",!0),3==n.value.year.type?((0,a.wg)(),(0,a.j4)(H,{key:2,label:"指定"},{default:(0,a.w5)((()=>[(0,a.Wm)(R,{modelValue:n.value.year.appoint,"onUpdate:modelValue":l[37]||(l[37]=e=>n.value.year.appoint=e),multiple:"",style:{width:"100%"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data.year,((e,l)=>((0,a.wg)(),(0,a.j4)(B,{key:l,label:e,value:e},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})):(0,a.kq)("",!0)])),_:1})])),_:1})])),_:1})])])),_:1},8,["modelValue"])],64)}t(7658);var L={props:{modelValue:{type:String,default:"* * * * *"},shortcuts:{type:Array,default:()=>[]}},data(){return{type:"0",defaultValue:"",dialogVisible:!1,value:{minute:{type:"0",range:{start:1,end:2},loop:{start:0,end:1},appoint:[]},hour:{type:"0",range:{start:1,end:2},loop:{start:0,end:1},appoint:[]},day:{type:"0",range:{start:1,end:2},loop:{start:1,end:1},appoint:[]},month:{type:"0",range:{start:1,end:2},loop:{start:1,end:1},appoint:[]},week:{type:"5",range:{start:"2",end:"3"},loop:{start:0,end:"2"},last:"2",appoint:[]},year:{type:"-1",range:{start:this.getYear()[0],end:this.getYear()[1]},loop:{start:this.getYear()[0],end:1},appoint:[]}},data:{minute:["0","5","15","20","25","30","35","40","45","50","55","59"],hour:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],day:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],month:["1","2","3","4","5","6","7","8","9","10","11","12"],week:[{value:"1",label:"周日"},{value:"2",label:"周一"},{value:"3",label:"周二"},{value:"4",label:"周三"},{value:"5",label:"周四"},{value:"6",label:"周五"},{value:"7",label:"周六"}],year:this.getYear()}}},watch:{"value.week.type"(e){"0"!=e&&(this.value.day.type="0")},"value.day.type"(e){"0"!=e&&(this.value.week.type="0")},modelValue(){this.defaultValue=this.modelValue}},computed:{value_minute(){let e=this.value.minute;return 0==e.type?"*":1==e.type?e.range.start+"-"+e.range.end:2==e.type?e.loop.start+"/"+e.loop.end:3==e.type&&e.appoint.length>0?e.appoint.join(","):"*"},value_hour(){let e=this.value.hour;return 0==e.type?"*":1==e.type?e.range.start+"-"+e.range.end:2==e.type?e.loop.start+"/"+e.loop.end:3==e.type&&e.appoint.length>0?e.appoint.join(","):"*"},value_day(){let e=this.value.day;return 0==e.type?"*":1==e.type?e.range.start+"-"+e.range.end:2==e.type?e.loop.start+"/"+e.loop.end:3==e.type?e.appoint.length>0?e.appoint.join(","):"*":4==e.type?"L":5==e.type?"?":"*"},value_month(){let e=this.value.month;return 0==e.type?"*":1==e.type?e.range.start+"-"+e.range.end:2==e.type?e.loop.start+"/"+e.loop.end:3==e.type&&e.appoint.length>0?e.appoint.join(","):"*"},value_week(){let e=this.value.week;return 0==e.type?"*":1==e.type?e.range.start+"-"+e.range.end:2==e.type?e.loop.end+"#"+e.loop.start:3==e.type?e.appoint.length>0?e.appoint.join(","):"*":4==e.type?e.last+"L":5==e.type?"?":"*"},value_year(){let e=this.value.year;return-1==e.type?"":0==e.type?"*":1==e.type?e.range.start+"-"+e.range.end:2==e.type?e.loop.start+"/"+e.loop.end:3==e.type&&e.appoint.length>0?e.appoint.join(","):""}},mounted(){this.defaultValue=this.modelValue},methods:{handleShortcuts(e){"custom"==e?this.open():(this.defaultValue=e,this.$emit("update:modelValue",this.defaultValue))},open(){this.set(),this.dialogVisible=!0},set(){this.defaultValue=this.modelValue;let e=(this.modelValue||"* * * * *").split(" ");e.length<5&&(this.$message.warning("cron表达式错误,已转换为默认表达式"),e="* * * * *".split(" ")),"*"==e[0]?this.value.minute.type="0":e[0].includes("-")?(this.value.minute.type="1",this.value.minute.range.start=Number(e[0].split("-")[0]),this.value.minute.range.end=Number(e[0].split("-")[1])):e[0].includes("/")?(this.value.minute.type="2",this.value.minute.loop.start=Number(e[0].split("/")[0]),this.value.minute.loop.end=Number(e[0].split("/")[1])):(this.value.minute.type="3",this.value.minute.appoint=e[0].split(",")),"*"==e[1]?this.value.hour.type="0":e[1].includes("-")?(this.value.hour.type="1",this.value.hour.range.start=Number(e[1].split("-")[0]),this.value.hour.range.end=Number(e[1].split("-")[1])):e[1].includes("/")?(this.value.hour.type="2",this.value.hour.loop.start=Number(e[1].split("/")[0]),this.value.hour.loop.end=Number(e[1].split("/")[1])):(this.value.hour.type="3",this.value.hour.appoint=e[1].split(",")),"*"==e[2]?this.value.day.type="0":"L"==e[2]?this.value.day.type="4":"?"==e[2]?this.value.day.type="5":e[2].includes("-")?(this.value.day.type="1",this.value.day.range.start=Number(e[2].split("-")[0]),this.value.day.range.end=Number(e[2].split("-")[1])):e[2].includes("/")?(this.value.day.type="2",this.value.day.loop.start=Number(e[2].split("/")[0]),this.value.day.loop.end=Number(e[2].split("/")[1])):(this.value.day.type="3",this.value.day.appoint=e[2].split(",")),"*"==e[3]?this.value.month.type="0":e[3].includes("-")?(this.value.month.type="1",this.value.month.range.start=Number(e[3].split("-")[0]),this.value.month.range.end=Number(e[3].split("-")[1])):e[3].includes("/")?(this.value.month.type="2",this.value.month.loop.start=Number(e[3].split("/")[0]),this.value.month.loop.end=Number(e[3].split("/")[1])):(this.value.month.type="3",this.value.month.appoint=e[3].split(",")),"*"==e[4]?this.value.week.type="0":"?"==e[4]?this.value.week.type="5":e[4].includes("-")?(this.value.week.type="1",this.value.week.range.start=e[4].split("-")[0],this.value.week.range.end=e[4].split("-")[1]):e[4].includes("#")?(this.value.week.type="2",this.value.week.loop.start=Number(e[4].split("#")[1]),this.value.week.loop.end=e[4].split("#")[0]):e[4].includes("L")?(this.value.week.type="4",this.value.week.last=e[4].split("L")[0]):(this.value.week.type="3",this.value.week.appoint=e[4].split(",")),e[5]?"*"==e[5]?this.value.year.type="0":e[5].includes("-")?(this.value.year.type="1",this.value.year.range.start=Number(e[5].split("-")[0]),this.value.year.range.end=Number(e[5].split("-")[1])):e[5].includes("/")?(this.value.year.type="2",this.value.year.loop.start=Number(e[5].split("/")[1]),this.value.year.loop.end=Number(e[5].split("/")[0])):(this.value.year.type="3",this.value.year.appoint=e[5].split(",")):this.value.year.type="-1"},getYear(){let e=[],l=(new Date).getFullYear();for(let t=0;t<11;t++)e.push(l+t);return e},submit(){let e=this.value_year?" "+this.value_year:"";this.defaultValue=this.value_minute+" "+this.value_hour+" "+this.value_day+" "+this.value_month+" "+this.value_week+e,this.$emit("update:modelValue",this.defaultValue),this.dialogVisible=!1}}},E=t(3744);const F=(0,E.Z)(L,[["render",I],["__scopeId","data-v-2bb90fad"]]);var Z=F,A={components:{xCron:Z},emits:["success","closed"],data(){return{mode:"add",titleMap:{add:"新增计划任务",edit:"编辑计划任务"},options:[{value:"url",label:"访问URL"},{value:"sql",label:"执行SQL"},{value:"shell",label:"执行Shell"},{value:"hook",label:"执行本系统函数或钩子"}],form:{title:"",type:"",content:"",schedule:"",status:1},rules:{title:[{required:!0,message:"请填写标题"}],type:[{required:!0,message:"请选择执行类"}],content:[{required:!0,message:"请填写执行内容"}],schedule:[{required:!0,message:"请填写定时规则"}]},visible:!1,isSaveing:!1,shortcuts:[{text:"每天8点和12点",value:"0 8,12 * * *"}]}},mounted(){},methods:{open(e="add"){return this.mode=e,this.visible=!0,this},submit(){this.$refs.dialogForm.validate((e=>{e&&(this.isSaveing=!0,this.$emit("success",this.form,this.mode))}))},setData(e){this.form=Object.assign({},e)}}};const Y=(0,E.Z)(A,[["render",o]]);var P=Y},6359:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return r}});var a=t(6252),o=t(3577);const i={key:0};function n(e,l,t,n,d,s){const u=(0,a.up)("el-descriptions-item"),r=(0,a.up)("el-descriptions"),m=(0,a.up)("el-collapse-item"),p=(0,a.up)("el-collapse"),c=(0,a.up)("el-main");return(0,a.wg)(),(0,a.j4)(c,{style:{padding:"0 20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{modelValue:d.activeNames,"onUpdate:modelValue":l[0]||(l[0]=e=>d.activeNames=e),style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{title:"详细",name:"2"},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{border:"",column:1},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(d.data,((e,l)=>((0,a.wg)(),(0,a.j4)(u,{key:l,label:l},{default:(0,a.w5)((()=>["object"===typeof e?((0,a.wg)(),(0,a.iD)("pre",i,(0,o.zw)(JSON.stringify(e,null,2)),1)):((0,a.wg)(),(0,a.iD)(a.HY,{key:1},[(0,a.Uk)((0,o.zw)(e),1)],64))])),_:2},1032,["label"])))),128))])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1})}var d={data(){return{data:{},activeNames:["1","2"],typeMap:{info:"info",warn:"warning",error:"error"}}},methods:{setData(e){this.data=e}}},s=t(3744);const u=(0,s.Z)(d,[["render",n],["__scopeId","data-v-1e0ba117"]]);var r=u},8480:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return V}});var a=t(6252),o=t(3577);const i=e=>((0,a.dD)("data-v-3fa428c7"),e=e(),(0,a.Cn)(),e),n=i((()=>(0,a._)("div",{class:"el-form-item-msg"},"系统唯一且与内置组件名一致,否则导致缓存失效。如类型为Iframe的菜单,别名将代替源地址显示在地址栏",-1))),d=i((()=>(0,a._)("div",{class:"el-form-item-msg"},"子节点或详情页需要高亮的上级菜单路由地址",-1))),s=i((()=>(0,a._)("div",{class:"el-form-item-msg"},"如父节点、链接或Iframe等没有视图的菜单不需要填写",-1))),u=i((()=>(0,a._)("div",{class:"el-form-item-msg"},"菜单不显示在导航中,但用户依然可以访问,例如详情页",-1))),r=i((()=>(0,a._)("h2",null,"接口权限",-1)));function m(e,l,t,i,m,p){const c=(0,a.up)("el-empty"),f=(0,a.up)("el-col"),h=(0,a.up)("el-input"),w=(0,a.up)("el-form-item"),g=(0,a.up)("el-cascader"),b=(0,a.up)("el-radio-button"),y=(0,a.up)("el-radio-group"),v=(0,a.up)("x-icon-select"),_=(0,a.up)("el-color-picker"),k=(0,a.up)("el-checkbox"),W=(0,a.up)("el-switch"),V=(0,a.up)("el-button"),x=(0,a.up)("el-form"),U=(0,a.up)("el-table-column"),D=(0,a.up)("x-form-table"),$=(0,a.up)("el-row");return(0,a.wg)(),(0,a.j4)($,{gutter:40},{default:(0,a.w5)((()=>[m.form.id?((0,a.wg)(),(0,a.iD)(a.HY,{key:1},[(0,a.Wm)(f,{lg:12},{default:(0,a.w5)((()=>[(0,a._)("h2",null,(0,o.zw)(m.form.meta.title||"新增菜单"),1),(0,a.Wm)(x,{model:m.form,rules:m.rules,ref:"dialogForm","label-width":"100px","label-position":"left"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{label:"显示名称",prop:"meta.title"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.meta.title,"onUpdate:modelValue":l[0]||(l[0]=e=>m.form.meta.title=e),clearable:"",placeholder:"菜单显示名字"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,{label:"上级菜单",prop:"parentid"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{modelValue:m.form.parentid,"onUpdate:modelValue":l[1]||(l[1]=e=>m.form.parentid=e),options:m.menuOptions,props:m.menuProps,"show-all-levels":!1,placeholder:"顶级菜单",clearable:"",disabled:""},null,8,["modelValue","options","props"])])),_:1}),(0,a.Wm)(w,{label:"类型",prop:"meta.type"},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{modelValue:m.form.meta.type,"onUpdate:modelValue":l[2]||(l[2]=e=>m.form.meta.type=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(b,{label:"menu"},{default:(0,a.w5)((()=>[(0,a.Uk)("菜单")])),_:1}),(0,a.Wm)(b,{label:"iframe"},{default:(0,a.w5)((()=>[(0,a.Uk)("Iframe")])),_:1}),(0,a.Wm)(b,{label:"link"},{default:(0,a.w5)((()=>[(0,a.Uk)("外链")])),_:1}),(0,a.Wm)(b,{label:"button"},{default:(0,a.w5)((()=>[(0,a.Uk)("按钮")])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,a.Wm)(w,{label:"别名",prop:"name"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.name,"onUpdate:modelValue":l[3]||(l[3]=e=>m.form.name=e),clearable:"",placeholder:"菜单别名"},null,8,["modelValue"]),n])),_:1}),(0,a.Wm)(w,{label:"菜单图标",prop:"meta.icon"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{modelValue:m.form.meta.icon,"onUpdate:modelValue":l[4]||(l[4]=e=>m.form.meta.icon=e),clearable:""},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,{label:"路由地址",prop:"path"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.path,"onUpdate:modelValue":l[5]||(l[5]=e=>m.form.path=e),clearable:"",placeholder:"路由地址"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,{label:"重定向",prop:"redirect"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.redirect,"onUpdate:modelValue":l[6]||(l[6]=e=>m.form.redirect=e),clearable:"",placeholder:"重定向"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,{label:"菜单高亮",prop:"meta.active"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.meta.active,"onUpdate:modelValue":l[7]||(l[7]=e=>m.form.meta.active=e),clearable:"",placeholder:""},null,8,["modelValue"]),d])),_:1}),(0,a.Wm)(w,{label:"视图",prop:"component"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.component,"onUpdate:modelValue":l[8]||(l[8]=e=>m.form.component=e),clearable:"",placeholder:""},{prepend:(0,a.w5)((()=>[(0,a.Uk)("views/")])),_:1},8,["modelValue"]),s])),_:1}),(0,a.Wm)(w,{label:"颜色",prop:"color"},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{modelValue:m.form.meta.color,"onUpdate:modelValue":l[9]||(l[9]=e=>m.form.meta.color=e),predefine:m.predefineColors},null,8,["modelValue","predefine"])])),_:1}),(0,a.Wm)(w,{label:"是否隐藏",prop:"meta.hidden"},{default:(0,a.w5)((()=>[(0,a.Wm)(k,{modelValue:m.form.meta.hidden,"onUpdate:modelValue":l[10]||(l[10]=e=>m.form.meta.hidden=e)},{default:(0,a.w5)((()=>[(0,a.Uk)("隐藏菜单")])),_:1},8,["modelValue"]),(0,a.Wm)(k,{modelValue:m.form.meta.hiddenBreadcrumb,"onUpdate:modelValue":l[11]||(l[11]=e=>m.form.meta.hiddenBreadcrumb=e)},{default:(0,a.w5)((()=>[(0,a.Uk)("隐藏面包屑")])),_:1},8,["modelValue"]),u])),_:1}),(0,a.Wm)(w,{label:"整页路由",prop:"fullpage"},{default:(0,a.w5)((()=>[(0,a.Wm)(W,{modelValue:m.form.meta.fullpage,"onUpdate:modelValue":l[12]||(l[12]=e=>m.form.meta.fullpage=e)},null,8,["modelValue"])])),_:1}),"iframe"==m.form.meta.type?((0,a.wg)(),(0,a.j4)(w,{key:0,label:"最大化打开",prop:"maximize"},{default:(0,a.w5)((()=>[(0,a.Wm)(W,{modelValue:m.form.meta.maximize,"onUpdate:modelValue":l[13]||(l[13]=e=>m.form.meta.maximize=e)},null,8,["modelValue"])])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(w,{label:"表单名称",prop:"tablename"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.meta.tablename,"onUpdate:modelValue":l[14]||(l[14]=e=>m.form.meta.tablename=e),clearable:"",placeholder:"表单名称,读取配置及表头"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,{label:"表头缓存",prop:"tablecache"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.meta.tablecache,"onUpdate:modelValue":l[15]||(l[15]=e=>m.form.meta.tablecache=e),clearable:"",placeholder:"表头缓存时间,留空不缓存"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,{label:"标签",prop:"tag"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.meta.tag,"onUpdate:modelValue":l[16]||(l[16]=e=>m.form.meta.tag=e),clearable:"",placeholder:""},null,8,["modelValue"])])),_:1}),(0,a.Wm)(w,null,{default:(0,a.w5)((()=>[(0,a.Wm)(V,{type:"primary",onClick:p.save,loading:m.loading},{default:(0,a.w5)((()=>[(0,a.Uk)("保 存")])),_:1},8,["onClick","loading"])])),_:1})])),_:1},8,["model","rules"])])),_:1}),(0,a.Wm)(f,{lg:12,class:"apilist"},{default:(0,a.w5)((()=>[r,(0,a.Wm)(D,{modelValue:m.form.apilist,"onUpdate:modelValue":l[17]||(l[17]=e=>m.form.apilist=e),addTemplate:m.apilistAddTemplate,placeholder:"暂无匹配接口权限"},{default:(0,a.w5)((()=>[(0,a.Wm)(U,{prop:"code",label:"标识",width:"150"},{default:(0,a.w5)((e=>[(0,a.Wm)(h,{modelValue:e.row.code,"onUpdate:modelValue":l=>e.row.code=l,placeholder:"请输入内容"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(U,{prop:"url",label:"Api url"},{default:(0,a.w5)((e=>[(0,a.Wm)(h,{modelValue:e.row.url,"onUpdate:modelValue":l=>e.row.url=l,placeholder:"请输入内容"},null,8,["modelValue","onUpdate:modelValue"])])),_:1})])),_:1},8,["modelValue","addTemplate"])])),_:1})],64)):((0,a.wg)(),(0,a.j4)(f,{key:0},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{description:"请选择左侧菜单后操作","image-size":100})])),_:1}))])),_:1})}t(7658);const p={class:"x-icon-select"},c={class:"x-icon-select__dialog",style:{margin:"-20px 0 -10px 0"}},f={class:"x-icon-select__list"},h=["data-icon"];function w(e,l,t,i,n,d){const s=(0,a.up)("el-input"),u=(0,a.up)("el-form-item"),r=(0,a.up)("el-form"),m=(0,a.up)("el-tag"),w=(0,a.up)("el-empty"),g=(0,a.up)("el-icon"),b=(0,a.up)("el-scrollbar"),y=(0,a.up)("el-tab-pane"),v=(0,a.up)("el-tabs"),_=(0,a.up)("el-button"),k=(0,a.up)("el-dialog");return(0,a.wg)(),(0,a.iD)("div",p,[(0,a._)("div",{class:(0,o.C_)(["x-icon-select__wrapper",{hasValue:n.value}]),onClick:l[1]||(l[1]=(...e)=>d.open&&d.open(...e))},[(0,a.Wm)(s,{"prefix-icon":n.value||"el-icon-plus",modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e),disabled:t.disabled,readonly:""},null,8,["prefix-icon","modelValue","disabled"])],2),(0,a.Wm)(k,{title:"图标选择器",modelValue:n.dialogVisible,"onUpdate:modelValue":l[5]||(l[5]=e=>n.dialogVisible=e),width:760,"destroy-on-close":"","append-to-body":""},{footer:(0,a.w5)((()=>[(0,a.Wm)(_,{onClick:d.clear,text:""},{default:(0,a.w5)((()=>[(0,a.Uk)("清除")])),_:1},8,["onClick"]),(0,a.Wm)(_,{onClick:l[4]||(l[4]=e=>n.dialogVisible=!1)},{default:(0,a.w5)((()=>[(0,a.Uk)("取消")])),_:1})])),default:(0,a.w5)((()=>[(0,a._)("div",c,[(0,a.Wm)(r,{rules:{}},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{prop:"searchText"},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{class:"x-icon-select__search-input","prefix-icon":"el-icon-search",modelValue:n.searchText,"onUpdate:modelValue":l[2]||(l[2]=e=>n.searchText=e),placeholder:"搜索",size:"large",clearable:""},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(v,null,{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data,(e=>((0,a.wg)(),(0,a.j4)(y,{key:e.name,lazy:""},{label:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.name)+" ",1),(0,a.Wm)(m,{size:"small",type:"info"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.icons.length),1)])),_:2},1024)])),default:(0,a.w5)((()=>[(0,a._)("div",f,[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("ul",{onClick:l[3]||(l[3]=(...e)=>d.selectIcon&&d.selectIcon(...e))},[0==e.icons.length?((0,a.wg)(),(0,a.j4)(w,{key:0,"image-size":100,description:"未查询到相关图标"})):(0,a.kq)("",!0),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.icons,(e=>((0,a.wg)(),(0,a.iD)("li",{key:e},[(0,a._)("span",{"data-icon":e},null,8,h),(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(e)))])),_:2},1024)])))),128))])])),_:2},1024)])])),_:2},1024)))),128))])),_:1})])])),_:1},8,["modelValue"])])}var g={icons:[{name:"默认",icons:["el-icon-add-location","el-icon-aim","el-icon-alarm-clock","el-icon-apple","el-icon-arrow-down","el-icon-arrow-down-bold","el-icon-arrow-left","el-icon-arrow-left-bold","el-icon-arrow-right","el-icon-arrow-right-bold","el-icon-arrow-up","el-icon-arrow-up-bold","el-icon-avatar","el-icon-back","el-icon-baseball","el-icon-basketball","el-icon-bell","el-icon-bell-filled","el-icon-bicycle","el-icon-bottom","el-icon-bottom-left","el-icon-bottom-right","el-icon-bowl","el-icon-box","el-icon-briefcase","el-icon-brush","el-icon-brush-filled","el-icon-burger","el-icon-calendar","el-icon-camera","el-icon-camera-filled","el-icon-caret-bottom","el-icon-caret-left","el-icon-caret-right","el-icon-caret-top","el-icon-cellphone","el-icon-chat-dot-round","el-icon-chat-dot-square","el-icon-chat-line-round","el-icon-chat-line-square","el-icon-chat-round","el-icon-chat-square","el-icon-check","el-icon-checked","el-icon-cherry","el-icon-chicken","el-icon-circle-check","el-icon-circle-check-filled","el-icon-circle-close","el-icon-circle-close-filled","el-icon-circle-plus","el-icon-circle-plus-filled","el-icon-clock","el-icon-close","el-icon-close-bold","el-icon-cloudy","el-icon-coffee","el-icon-coffee-cup","el-icon-coin","el-icon-cold-drink","el-icon-collection","el-icon-collection-tag","el-icon-comment","el-icon-compass","el-icon-connection","el-icon-coordinate","el-icon-copy-document","el-icon-cpu","el-icon-credit-card","el-icon-crop","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-d-caret","el-icon-data-analysis","el-icon-data-board","el-icon-data-line","el-icon-delete","el-icon-delete-filled","el-icon-delete-location","el-icon-dessert","el-icon-discount","el-icon-dish","el-icon-dish-dot","el-icon-document","el-icon-document-add","el-icon-document-checked","el-icon-document-copy","el-icon-document-delete","el-icon-document-remove","el-icon-download","el-icon-drizzling","el-icon-edit","el-icon-edit-pen","el-icon-eleme","el-icon-eleme-filled","el-icon-element-plus","el-icon-expand","el-icon-failed","el-icon-female","el-icon-files","el-icon-film","el-icon-filter","el-icon-finished","el-icon-first-aid-kit","el-icon-flag","el-icon-fold","el-icon-folder","el-icon-folder-add","el-icon-folder-checked","el-icon-folder-delete","el-icon-folder-opened","el-icon-folder-remove","el-icon-food","el-icon-football","el-icon-fork-spoon","el-icon-fries","el-icon-full-screen","el-icon-goblet","el-icon-goblet-full","el-icon-goblet-square","el-icon-goblet-square-full","el-icon-goods","el-icon-goods-filled","el-icon-grape","el-icon-grid","el-icon-guide","el-icon-headset","el-icon-help","el-icon-help-filled","el-icon-hide","el-icon-histogram","el-icon-home-filled","el-icon-hot-water","el-icon-house","el-icon-ice-cream","el-icon-ice-cream-round","el-icon-ice-cream-square","el-icon-ice-drink","el-icon-ice-tea","el-icon-info-filled","el-icon-iphone","el-icon-key","el-icon-knife-fork","el-icon-lightning","el-icon-link","el-icon-list","el-icon-loading","el-icon-location","el-icon-location-filled","el-icon-location-information","el-icon-lock","el-icon-lollipop","el-icon-magic-stick","el-icon-magnet","el-icon-male","el-icon-management","el-icon-map-location","el-icon-medal","el-icon-menu","el-icon-message","el-icon-message-box","el-icon-mic","el-icon-microphone","el-icon-milk-tea","el-icon-minus","el-icon-money","el-icon-monitor","el-icon-moon","el-icon-moon-night","el-icon-more","el-icon-more-filled","el-icon-mostly-cloudy","el-icon-mouse","el-icon-mug","el-icon-mute","el-icon-mute-notification","el-icon-no-smoking","el-icon-notebook","el-icon-notification","el-icon-odometer","el-icon-office-building","el-icon-open","el-icon-operation","el-icon-opportunity","el-icon-orange","el-icon-paperclip","el-icon-partly-cloudy","el-icon-pear","el-icon-phone","el-icon-phone-filled","el-icon-picture","el-icon-picture-filled","el-icon-picture-rounded","el-icon-pie-chart","el-icon-place","el-icon-platform","el-icon-plus","el-icon-pointer","el-icon-position","el-icon-postcard","el-icon-pouring","el-icon-present","el-icon-price-tag","el-icon-printer","el-icon-promotion","el-icon-question-filled","el-icon-rank","el-icon-reading","el-icon-reading-lamp","el-icon-refresh","el-icon-refresh-left","el-icon-refresh-right","el-icon-refrigerator","el-icon-remove","el-icon-remove-filled","el-icon-right","el-icon-scale-to-original","el-icon-school","el-icon-scissor","el-icon-search","el-icon-select","el-icon-sell","el-icon-semi-select","el-icon-service","el-icon-set-up","el-icon-setting","el-icon-share","el-icon-ship","el-icon-shop","el-icon-shopping-bag","el-icon-shopping-cart","el-icon-shopping-cart-full","el-icon-smoking","el-icon-soccer","el-icon-sold-out","el-icon-sort","el-icon-sort-down","el-icon-sort-up","el-icon-stamp","el-icon-star","el-icon-star-filled","el-icon-stopwatch","el-icon-success-filled","el-icon-sugar","el-icon-suitcase","el-icon-sunny","el-icon-sunrise","el-icon-sunset","el-icon-switch","el-icon-switch-button","el-icon-takeaway-box","el-icon-ticket","el-icon-tickets","el-icon-timer","el-icon-toilet-paper","el-icon-tools","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-trend-charts","el-icon-trophy","el-icon-turn-off","el-icon-umbrella","el-icon-unlock","el-icon-upload","el-icon-upload-filled","el-icon-user","el-icon-user-filled","el-icon-van","el-icon-video-camera","el-icon-video-camera-filled","el-icon-video-pause","el-icon-video-play","el-icon-view","el-icon-wallet","el-icon-wallet-filled","el-icon-warning","el-icon-warning-filled","el-icon-watch","el-icon-watermelon","el-icon-wind-power","el-icon-zoom-in","el-icon-zoom-out"]},{name:"扩展",icons:["x-icon-vue","x-icon-code","x-icon-wechat","x-icon-bug-fill","x-icon-bug-line","x-icon-file-word","x-icon-file-excel","x-icon-file-ppt","x-icon-organization","x-icon-upload","x-icon-download"]}]},b={props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1}},data(){return{value:"",dialogVisible:!1,data:[],searchText:""}},watch:{modelValue(e){this.value=e},value(e){this.$emit("update:modelValue",e)},searchText(e){this.search(e)}},mounted(){this.value=this.modelValue,this.data.push(...g.icons)},methods:{open(){if(this.disabled)return!1;this.dialogVisible=!0},selectIcon(e){if("SPAN"!=e.target.tagName)return!1;this.value=e.target.dataset.icon,this.dialogVisible=!1},clear(){this.value="",this.dialogVisible=!1},search(e){if(e){const l=JSON.parse(JSON.stringify(g.icons));l.forEach((l=>{l.icons=l.icons.filter((l=>l.includes(e)))})),this.data=l}else this.data=JSON.parse(JSON.stringify(g.icons))}}},y=t(3744);const v=(0,y.Z)(b,[["render",w],["__scopeId","data-v-3242ec53"]]);var _=v,k={components:{xIconSelect:_},props:{menu:{type:Object,default:()=>{}}},data(){return{form:{id:"",parentid:"",name:"",path:"",component:"",redirect:"",meta:{title:"",icon:"",active:"",color:"",type:"menu",fullpage:!1,tag:""},apilist:[]},menuOptions:[],menuProps:{value:"id",label:"title",checkStrictly:!0},predefineColors:["#ff4500","#ff8c00","#ffd700","#67C23A","#00ced1","#409EFF","#c71585"],rules:[],apilistAddTemplate:{code:"",url:""},loading:!1}},watch:{menu:{handler(){this.menuOptions=this.treeToMap(this.menu)},deep:!0}},mounted(){},methods:{treeToMap(e){const l=[];return e.forEach((e=>{var t={id:e.id,parentid:e.parentid,title:e.meta.title,children:e.children&&e.children.length>0?this.treeToMap(e.children):null};l.push(t)})),l},async save(){this.loading=!0;let e=Object.assign({},this.form);delete e.children;var l=await this.$http.post("menu/submit",e);this.loading=!1,200==l.code?this.$message.success("保存成功"):this.$message.warning(l.message)},setData(e,l){this.form=e,this.form.apilist=e.apilist||[],this.form.parentid=l}}};const W=(0,y.Z)(k,[["render",m],["__scopeId","data-v-3fa428c7"]]);var V=W},9840:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return c}});var a=t(6252);const o={class:"left-panel"},i={class:"number-data"},n={key:0,class:"chart"};function d(e,l,t,d,s,u){const r=(0,a.up)("el-radio-button"),m=(0,a.up)("el-radio-group"),p=(0,a.up)("el-date-picker"),c=(0,a.up)("el-header"),f=(0,a.up)("x-trend"),h=(0,a.up)("x-statistic"),w=(0,a.up)("xEcharts"),g=(0,a.up)("el-col"),b=(0,a.up)("el-row"),y=(0,a.up)("el-card"),v=(0,a.up)("el-table-column"),_=(0,a.up)("xTable"),k=(0,a.up)("el-main"),W=(0,a.up)("el-container");return(0,a.wg)(),(0,a.j4)(W,null,{default:(0,a.w5)((()=>[this.date||s.dateGroup.length>0?((0,a.wg)(),(0,a.j4)(c,{key:0},{default:(0,a.w5)((()=>[(0,a._)("div",o,[s.dateGroup.length>0?((0,a.wg)(),(0,a.j4)(m,{key:0,modelValue:s.dateType,"onUpdate:modelValue":l[0]||(l[0]=e=>s.dateType=e),onChange:u.changedateGroup,style:{"margin-right":"15px"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.dateGroup,(e=>((0,a.wg)(),(0,a.j4)(r,{key:e.value,label:e.text,name:e.value},null,8,["label","name"])))),128))])),_:1},8,["modelValue","onChange"])):(0,a.kq)("",!0),this.date?((0,a.wg)(),(0,a.j4)(p,{key:1,class:"hidden-sm-and-down",onChange:u.changedate,format:"YYYY-MM-DD HH:mm",modelValue:s.date,"onUpdate:modelValue":l[1]||(l[1]=e=>s.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["onChange","modelValue"])):(0,a.kq)("",!0)])])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(k,null,{default:(0,a.w5)((()=>[s.statistic.length>0?((0,a.wg)(),(0,a.j4)(y,{key:0,shadow:"never"},{default:(0,a.w5)((()=>[(0,a._)("div",i,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.statistic,((e,l)=>((0,a.wg)(),(0,a.iD)("div",{class:"item",key:l},[(0,a.Wm)(h,{title:e.title,value:e.value,description:e.description,tips:e.tips,groupSeparator:""},{default:(0,a.w5)((()=>[e.trend?((0,a.wg)(),(0,a.j4)(f,{key:0,modelValue:e.trend,"onUpdate:modelValue":l=>e.trend=l},null,8,["modelValue","onUpdate:modelValue"])):(0,a.kq)("",!0)])),_:2},1032,["title","value","description","tips"])])))),128))]),s.chartList.length>0?((0,a.wg)(),(0,a.iD)("div",n,[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.chartList,((e,l)=>((0,a.wg)(),(0,a.j4)(g,{span:e.span||12,key:l},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{height:e.height?Number(e.height)?Number(e.height)+"px":e.height:"250px",option:e.option},null,8,["height","option"])])),_:2},1032,["span"])))),128))])),_:1})])):(0,a.kq)("",!0)])),_:1})):(0,a.kq)("",!0),s.table&&s.table.column.length>0?((0,a.wg)(),(0,a.j4)(y,{key:1,shadow:"never",style:{"margin-bottom":"0px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{stripe:"",ref:"table",data:s.table.data,api:s.table.api,tableColumn:s.table.column,hideDo:s.table.hideDo||!0,hidePagination:s.table.hidePagination||!0,"show-summary":"",height:s.table.height||"auto"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{type:"index",width:"50",fixed:""})])),_:1},8,["data","api","tableColumn","hideDo","hidePagination","height"])])),_:1})):(0,a.kq)("",!0)])),_:1})])),_:1})}var s=t(7015),u=t(8872),r={name:"chartlist",components:{xEcharts:s.Z,xStatistic:u.Z},props:{name:{type:String,default:""}},data(){return{dateGroup:[],chartList:[],statistic:[],table:{api:null,height:0,data:[],column:[]},dateType:"",date:null,statName:this.$route.meta.tablename}},watch:{date(){}},mounted(){const e=new Date,l=new Date(e.getFullYear(),e.getMonth()+1,0);l.setHours(23,59,0,0),this.date=[new Date(e.getFullYear(),e.getMonth(),1,0,0),l],this.name&&(this.statName=this.name||this.$route.meta.tablename),this.loaddata()},methods:{changedateGroup(){this.dateGroup.forEach((e=>{this.dateType===e.text&&(this.date=e.value,this.loaddata())}))},changedate(){this.loaddata()},loaddata(){this.statName&&this.$http.get("stat/admin/get",{name:this.statName,date:this.date}).then((e=>{200==e.code&&(Object.assign(this.$data,e.data),this.dateType="",this.dateGroup.forEach((e=>{new Date(e.value[0]).getTime()==new Date(this.date[0]).getTime()&&new Date(e.value[1]).getTime()==new Date(this.date[1]).getTime()&&(this.dateType=e.text)})))}))}}},m=t(3744);const p=(0,m.Z)(r,[["render",d],["__scopeId","data-v-5604e2d2"]]);var c=p},356:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return f}});var a=t(6252),o=t(3577);const i={class:"left-panel"},n={key:0,class:"right-panel"};function d(e,l,t,d,s,u){const r=(0,a.up)("el-input"),m=(0,a.up)("el-header"),p=(0,a.up)("el-tree"),c=(0,a.up)("el-main"),f=(0,a.up)("el-aside"),h=(0,a.up)("el-tab-pane"),w=(0,a.up)("el-tabs"),g=(0,a.up)("el-button"),b=(0,a.up)("xFilterBar"),y=(0,a.up)("xEcharts"),v=(0,a.up)("el-table-column"),_=(0,a.up)("el-popconfirm"),k=(0,a.up)("el-button-group"),W=(0,a.up)("xTable"),V=(0,a.up)("el-container"),x=(0,a.up)("x-update"),U=(0,a.up)("x-stat");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(V,null,{default:(0,a.w5)((()=>[s.aside.items.length>0?((0,a.wg)(),(0,a.j4)(f,{key:0,width:(s.aside.width||160)+"px"},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a.Wm)(r,{placeholder:"输入关键字进行过滤",modelValue:s.groupFilterText,"onUpdate:modelValue":l[0]||(l[0]=e=>s.groupFilterText=e),clearable:""},null,8,["modelValue"])])),_:1}),(0,a.Wm)(c,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{ref:"group",class:"menu","node-key":s.aside.key||"id",data:s.aside.items,"highlight-current":!0,"expand-on-click-node":!1,"filter-node-method":u.groupFilterNode,onNodeClick:u.groupClick},null,8,["node-key","data","filter-node-method","onNodeClick"])])),_:1})])),_:1},8,["width"])):(0,a.kq)("",!0),(0,a.Wm)(V,null,{default:(0,a.w5)((()=>[s.tabs.length>0?((0,a.wg)(),(0,a.j4)(m,{key:0,class:"header-tabs"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{type:"card",modelValue:s.search[s.tabskey],"onUpdate:modelValue":l[1]||(l[1]=e=>s.search[s.tabskey]=e),onTabChange:u.tabChange},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.tabs,(e=>((0,a.wg)(),(0,a.j4)(h,{key:e.value,label:e.label,name:e.value},null,8,["label","name"])))),128))])),_:1},8,["modelValue","onTabChange"])])),_:1})):(0,a.kq)("",!0),s.operation.plus||s.operation.batchdeletion||s.filter.length>0?((0,a.wg)(),(0,a.j4)(m,{key:1},{default:(0,a.w5)((()=>[(0,a._)("div",i,[s.operation.plus?((0,a.wg)(),(0,a.j4)(g,{key:0,type:"primary",icon:"el-icon-plus",onClick:u.plus},null,8,["onClick"])):(0,a.kq)("",!0)]),s.filter.length>0||s.stat.length>0?((0,a.wg)(),(0,a.iD)("div",n,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(s.stat,((e,l)=>((0,a.wg)(),(0,a.j4)(g,(0,a.dG)({key:l,class:"hidden-xs-only",onClick:l=>u.openStat(e)},e),{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.label),1)])),_:2},1040,["onClick"])))),128)),s.filter.length>0?((0,a.wg)(),(0,a.j4)(b,{key:0,modelValue:s.search,"onUpdate:modelValue":l[2]||(l[2]=e=>s.search=e),filterName:e.$route.meta.tablename,options:s.filter,onFilterChange:u.filterChange},null,8,["modelValue","filterName","options","onFilterChange"])):(0,a.kq)("",!0)])):(0,a.kq)("",!0)])),_:1})):(0,a.kq)("",!0),"object"===typeof s.chartoption&&Object.keys(s.chartoption).length>0?((0,a.wg)(),(0,a.j4)(m,{key:2,style:{height:"120px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{height:"100%",option:s.chartoption},null,8,["option"])])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(c,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(W,{ref:"table",tableColumn:s.column,name:s.tablename,params:s.search,operationInfo:s.operation,api:s.api,"row-key":s.key,remoteSort:!0,remoteFilter:!0,stripe:""},{default:(0,a.w5)((()=>[s.isselection?((0,a.wg)(),(0,a.j4)(v,{key:0,type:"selection",width:"48"})):(0,a.kq)("",!0),s.operation.edit||s.operation.delete?((0,a.wg)(),(0,a.j4)(v,{key:1,label:s.operation.label||"操作",width:s.operation.width||124,fixed:s.operation.fixed||"right",align:s.operation.align||"left"},{default:(0,a.w5)((e=>[(0,a.Wm)(k,null,{default:(0,a.w5)((()=>[s.operation.edit?((0,a.wg)(),(0,a.j4)(g,{key:0,type:s.operation.edit.type||"primary",size:s.operation.edit.size||"small",onClick:l=>u.operationEdit(e.row,e.$index)},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(s.operation.edit.label||"编辑"),1)])),_:2},1032,["type","size","onClick"])):(0,a.kq)("",!0),s.operation.delete?((0,a.wg)(),(0,a.j4)(_,{key:1,title:s.operation.delete.title||"确定删除吗?",onConfirm:l=>u.operationDelete(e.row,e.$index)},{reference:(0,a.w5)((()=>[(0,a.Wm)(g,{type:s.operation.delete.type||"info",size:s.operation.delete.size||"small"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(s.operation.delete.label||"删除"),1)])),_:1},8,["type","size"])])),_:2},1032,["title","onConfirm"])):(0,a.kq)("",!0)])),_:2},1024)])),_:1},8,["label","width","fixed","align"])):(0,a.kq)("",!0)])),_:1},8,["tableColumn","name","params","operationInfo","api","row-key"])])),_:1})])),_:1})])),_:1}),s.dialog.save?((0,a.wg)(),(0,a.j4)(x,{key:0,column:s.column,name:s.key,ref:"saveDialog",onSuccess:u.handleSuccess,onClosed:l[3]||(l[3]=e=>s.dialog.save=!1)},null,8,["column","name","onSuccess"])):(0,a.kq)("",!0),s.dialog.stat?((0,a.wg)(),(0,a.j4)(U,{key:1,ref:"xstatdialog",onClosed:l[4]||(l[4]=e=>s.dialog.stat=!1)},null,512)):(0,a.kq)("",!0)],64)}t(7658);var s=t(4129),u=t(7874),r=t(7015),m={name:"table_1",components:{xStat:s["default"],xEcharts:r.Z,xFilterBar:u.Z},props:{name:{type:String,default:""}},data(){return{dialog:{save:!1,stat:!1},isselection:!0,selection:[],column:[],aside:{items:[]},filter:[],api:"",operation:{},key:"id",search:{},tabs:[],stat:[],chartoption:{},tablename:this.$route.meta.tablename,tableurl:this.$route.meta.tableurl,groupFilterText:"",tabskey:"",tabsdefaultvalue:""}},mounted(){if(this.name&&(this.tablename=this.name||this.$route.meta.tablename),this.tablename||this.tableurl){var e=this.tableurl?this.$http.get(this.tableurl,{},{cache:!0}):this.$api.system.table.get(this.tablename,{cache:this.$route.meta.tablecache||0});e.then((e=>{200==e.code&&(Object.assign(this.$data,e.data),e.data.tabsdefaultvalue&&e.data.tabskey&&(this.search[e.data.tabskey]=e.data.tabsdefaultvalue))}))}},computed:{filterObj(){const e=[];return this.filter.forEach((l=>{l.component&&e.push({name:l.value,label:l.label,component:l.component,options:l.options})})),e}},watch:{groupFilterText(e){this.$refs.group.filter(e)}},methods:{groupFilterNode(e,l){return!e||-1!==l.label.indexOf(e)},groupClick(e){this.search[this.aside.searchkey||"groupid"]=e[this.aside.key||"id"],this.$refs.table.reload(this.search)},filterChange(e){var l=Object.assign({},this.search,e);this.$refs.table.reload(l)},tabChange(){this.$refs.table.reload(this.search)},handleSuccess(e,l,t){"edit"==l?e?this.$refs.table.tableData.filter((l=>l[this.key]===e[this.key])).forEach((l=>{Object.assign(l,e,e)})):this.$refs.table.refresh():e?this.$refs.table.tableData.unshift(e):this.$refs.table.reload({}),this.$message.success(t||"操作成功")},plus(){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open("plus").getComponentType(this.operation.plus.component).setData({}).setConfig(this.operation.plus)}))},operationEdit(e){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open("edit").getComponentType(this.operation.edit.component).setData(e).setConfig(this.operation.edit)}))},openStat(e){this.dialog.stat=!0,this.$nextTick((()=>{this.$refs.xstatdialog.open().setData(e)}))},async operationDelete(e,l){const t="undefined"!==typeof this.operation.delete.key&&this.operation.delete.key?this.operation.delete.key:this.key;var a=await this.$http.post(this.operation.delete.url,{[t]:e[t],index:l});200!=a.code?this.$alert(a.message,"提示",{type:"error"}):this.$refs.table.tableData.splice(l,1)},selectionChange(e){this.selection=e}}},p=t(3744);const c=(0,p.Z)(m,[["render",d],["__scopeId","data-v-869eee02"]]);var f=c},4129:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return u}});var a=t(6252);function o(e,l,t,o,i,n){const d=(0,a.up)("stat",!0),s=(0,a.up)("el-drawer");return(0,a.wg)(),(0,a.j4)(s,{title:i.info.title||i.info.label,modelValue:i.visible,"onUpdate:modelValue":l[0]||(l[0]=e=>i.visible=e),size:1e3,"destroy-on-close":"",onClosed:l[1]||(l[1]=l=>e.$emit("closed"))},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{name:i.info.value||i.info.name},null,8,["name"])])),_:1},8,["title","modelValue"])}var i=t(9840),n={emits:["success","closed"],props:{},components:{stat:i["default"]},data(){return{info:{},visible:!1}},methods:{open(){return this.visible=!0,this},setData(e){this.info=e}}},d=t(3744);const s=(0,d.Z)(n,[["render",o]]);var u=s},6941:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return m}});var a=t(6252),o=t(9963);const i={style:{"padding-top":"20px"}};function n(e,l,t,n,d,s){const u=(0,a.up)("el-input"),r=(0,a.up)("el-form-item"),m=(0,a.up)("el-col"),p=(0,a.up)("el-row"),c=(0,a.up)("el-checkbox-button"),f=(0,a.up)("el-checkbox-group"),h=(0,a.up)("el-autocomplete"),w=(0,a.up)("el-option"),g=(0,a.up)("el-select"),b=(0,a.up)("x-title"),y=(0,a.up)("el-table-column"),v=(0,a.up)("x-form-table"),_=(0,a.up)("el-switch"),k=(0,a.up)("el-badge"),W=(0,a.up)("el-button"),V=(0,a.up)("el-form"),x=(0,a.up)("el-main"),U=(0,a.up)("el-footer"),D=(0,a.up)("el-container"),$=(0,a.up)("options"),C=(0,a.up)("el-drawer"),j=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(C,{title:d.titleMap[d.mode],modelValue:d.visible,"onUpdate:modelValue":l[29]||(l[29]=e=>d.visible=e),size:1200,"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",onClosed:l[30]||(l[30]=l=>e.$emit("closed"))},{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(D,null,{default:(0,a.w5)((()=>[(0,a.Wm)(x,{style:{padding:"0 20px 20px 20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(V,{ref:"dialogForm",model:d.form,"label-width":"100px","label-position":"top"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{gutter:10},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{span:20},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"表格标识",prop:"name"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.name,"onUpdate:modelValue":l[0]||(l[0]=e=>d.form.name=e),placeholder:"用于识别"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.Wm)(p,{gutter:10},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{span:8},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"表格名称",prop:"title"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.title,"onUpdate:modelValue":l[1]||(l[1]=e=>d.form.title=e),placeholder:"请输入中文描述标题"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:16},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"数据请求 API",prop:"api"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.api,"onUpdate:modelValue":l[2]||(l[2]=e=>d.form.api=e),placeholder:"数据请求API"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:16},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"主键",prop:"key"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.key,"onUpdate:modelValue":l[3]||(l[3]=e=>d.form.key=e),placeholder:"主键键位, 默认 id"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:24},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"备注",prop:"key"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.remark,"onUpdate:modelValue":l[4]||(l[4]=e=>d.form.remark=e),placeholder:"备注"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.Wm)(p,{gutter:10},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{span:24},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"操作部分",prop:"key"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{modelValue:d.form.operationtype,"onUpdate:modelValue":l[5]||(l[5]=e=>d.form.operationtype=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{label:"plus"},{default:(0,a.w5)((()=>[(0,a.Uk)("添加")])),_:1}),(0,a.Wm)(c,{label:"edit"},{default:(0,a.w5)((()=>[(0,a.Uk)("编辑")])),_:1}),(0,a.Wm)(c,{label:"delete"},{default:(0,a.w5)((()=>[(0,a.Uk)("删除")])),_:1}),(0,a.Wm)(c,{label:"batchdeletion"},{default:(0,a.w5)((()=>[(0,a.Uk)("批量删除")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.wy)((0,a.Wm)(p,{gutter:10},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"添加按钮",prop:"key"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.operation.plus.label,"onUpdate:modelValue":l[6]||(l[6]=e=>d.form.operation.plus.label=e),placeholder:"名称"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"添加请求",prop:"plus"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{style:{width:"100%"},modelValue:d.form.operation.plus.url,"onUpdate:modelValue":l[7]||(l[7]=e=>d.form.operation.plus.url=e),"fetch-suggestions":s.querySearchSubmit,clearable:"",placeholder:"请求 URL"},null,8,["modelValue","fetch-suggestions"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"类型",prop:"type"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{modelValue:d.form.operation.plus.type,"onUpdate:modelValue":l[8]||(l[8]=e=>d.form.operation.plus.type=e),placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"primary",key:"primary",label:"Primary"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Primary ")])),_:1}),(0,a.Wm)(w,{value:"success",key:"success",label:"Success"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Success ")])),_:1}),(0,a.Wm)(w,{value:"warning",key:"warning",label:"Warning"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Warning ")])),_:1}),(0,a.Wm)(w,{value:"danger",key:"danger",label:"Danger"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Danger ")])),_:1}),(0,a.Wm)(w,{value:"info",key:"info",label:"Info"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Info ")])),_:1}),(0,a.Wm)(w,{value:"text",key:"text",label:"Text"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Text ")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"远程链接",prop:"edit"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{style:{width:"100%"},modelValue:d.form.operation.plus.remoteurl,"onUpdate:modelValue":l[9]||(l[9]=e=>d.form.operation.plus.remoteurl=e),"fetch-suggestions":s.querySearchGet,clearable:"",placeholder:"远程链接, 添加此链接由远程配置调用"},null,8,["modelValue","fetch-suggestions"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"弹窗组件",prop:"component"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{modelValue:d.form.operation.plus.component,"onUpdate:modelValue":l[10]||(l[10]=e=>d.form.operation.plus.component=e),placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"drawer",key:"drawer",label:"drawer"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 抽屉 ")])),_:1}),(0,a.Wm)(w,{value:"dialog",key:"dialog",label:"dialog"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 对话框 ")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1},512),[[o.F8,d.form.operationtype.includes("plus")]]),(0,a.wy)((0,a.Wm)(p,{gutter:10},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"编辑按钮",prop:"key"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.operation.edit.label,"onUpdate:modelValue":l[11]||(l[11]=e=>d.form.operation.edit.label=e),placeholder:"名称"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"编辑请求",prop:"edit"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{style:{width:"100%"},modelValue:d.form.operation.edit.url,"onUpdate:modelValue":l[12]||(l[12]=e=>d.form.operation.edit.url=e),"fetch-suggestions":s.querySearchSubmit,clearable:"",placeholder:"请求 URL"},null,8,["modelValue","fetch-suggestions"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"类型",prop:"type"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{modelValue:d.form.operation.edit.type,"onUpdate:modelValue":l[13]||(l[13]=e=>d.form.operation.edit.type=e),placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"primary",key:"primary",label:"Primary"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Primary ")])),_:1}),(0,a.Wm)(w,{value:"success",key:"success",label:"Success"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Success ")])),_:1}),(0,a.Wm)(w,{value:"warning",key:"warning",label:"Warning"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Warning ")])),_:1}),(0,a.Wm)(w,{value:"danger",key:"danger",label:"Danger"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Danger ")])),_:1}),(0,a.Wm)(w,{value:"info",key:"info",label:"Info"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Info ")])),_:1}),(0,a.Wm)(w,{value:"text",key:"text",label:"Text"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Text ")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"远程链接",prop:"edit"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{style:{width:"100%"},modelValue:d.form.operation.edit.remoteurl,"onUpdate:modelValue":l[14]||(l[14]=e=>d.form.operation.edit.remoteurl=e),"fetch-suggestions":s.querySearchGet,clearable:"",placeholder:"远程链接, 添加此链接由远程配置调用"},null,8,["modelValue","fetch-suggestions"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"弹窗组件",prop:"component"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{modelValue:d.form.operation.edit.component,"onUpdate:modelValue":l[15]||(l[15]=e=>d.form.operation.edit.component=e),placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"drawer",key:"drawer",label:"drawer"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 抽屉 ")])),_:1}),(0,a.Wm)(w,{value:"dialog",key:"dialog",label:"dialog"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 对话框 ")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1},512),[[o.F8,d.form.operationtype.includes("edit")]]),(0,a.wy)((0,a.Wm)(p,{gutter:10},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"下架按钮",prop:"key"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.operation.delete.label,"onUpdate:modelValue":l[16]||(l[16]=e=>d.form.operation.delete.label=e),placeholder:"名称"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"下架请求",prop:"delete"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{style:{width:"100%"},modelValue:d.form.operation.delete.url,"onUpdate:modelValue":l[17]||(l[17]=e=>d.form.operation.delete.url=e),"fetch-suggestions":s.querySearchDelete,clearable:"",placeholder:"请求 URL"},null,8,["modelValue","fetch-suggestions"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"类型",prop:"type"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{modelValue:d.form.operation.delete.type,"onUpdate:modelValue":l[18]||(l[18]=e=>d.form.operation.delete.type=e),placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"primary",key:"primary",label:"Primary"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Primary ")])),_:1}),(0,a.Wm)(w,{value:"success",key:"success",label:"Success"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Success ")])),_:1}),(0,a.Wm)(w,{value:"warning",key:"warning",label:"Warning"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Warning ")])),_:1}),(0,a.Wm)(w,{value:"danger",key:"danger",label:"Danger"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Danger ")])),_:1}),(0,a.Wm)(w,{value:"info",key:"info",label:"Info"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Info ")])),_:1}),(0,a.Wm)(w,{value:"text",key:"text",label:"Text"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Text ")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1},512),[[o.F8,d.form.operationtype.includes("delete")]]),(0,a.wy)((0,a.Wm)(p,{gutter:10},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"批量删除按钮",prop:"label"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.operation.batchdeletion.label,"onUpdate:modelValue":l[19]||(l[19]=e=>d.form.operation.batchdeletion.label=e),placeholder:"名称"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"批量删除请求",prop:"url"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{style:{width:"100%"},modelValue:d.form.operation.batchdeletion.url,"onUpdate:modelValue":l[20]||(l[20]=e=>d.form.operation.batchdeletion.url=e),"fetch-suggestions":s.querySearchDelete,clearable:"",placeholder:"请求 URL"},null,8,["modelValue","fetch-suggestions"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:4},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"类型",prop:"type"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{modelValue:d.form.operation.batchdeletion.type,"onUpdate:modelValue":l[21]||(l[21]=e=>d.form.operation.batchdeletion.type=e),placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"primary",key:"primary",label:"Primary"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Primary ")])),_:1}),(0,a.Wm)(w,{value:"success",key:"success",label:"Success"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Success ")])),_:1}),(0,a.Wm)(w,{value:"warning",key:"warning",label:"Warning"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Warning ")])),_:1}),(0,a.Wm)(w,{value:"danger",key:"danger",label:"Danger"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Danger ")])),_:1}),(0,a.Wm)(w,{value:"info",key:"info",label:"Info"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Info ")])),_:1}),(0,a.Wm)(w,{value:"text",key:"text",label:"Text"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Text ")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1},512),[[o.F8,d.form.operationtype.includes("batchdeletion")]]),(0,a.Wm)(b,{title:"统计标签"}),(0,a.Wm)(v,{modelValue:d.form.stat,"onUpdate:modelValue":l[22]||(l[22]=e=>d.form.stat=e),addTemplate:d.addTemplate,"drag-sort":"",placeholder:"暂无数据"},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{prop:"label",label:"名称"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.label,"onUpdate:modelValue":l=>e.row.label=l,placeholder:"名称"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"value",label:"值"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.value,"onUpdate:modelValue":l=>e.row.value=l,disabled:"title"==e.row.component,placeholder:"选中值"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),_:1})])),_:1},8,["modelValue","addTemplate"]),(0,a.Wm)(b,{title:"页头tabs"}),(0,a.Wm)(v,{modelValue:d.form.tabs,"onUpdate:modelValue":l[23]||(l[23]=e=>d.form.tabs=e),addTemplate:d.addTemplate,"drag-sort":"",placeholder:"暂无数据"},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{prop:"label",label:"名称"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.label,"onUpdate:modelValue":l=>e.row.label=l,placeholder:"名称"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"value",label:"值"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.value,"onUpdate:modelValue":l=>e.row.value=l,disabled:"title"==e.row.component,placeholder:"选中值"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),_:1})])),_:1},8,["modelValue","addTemplate"]),(0,a._)("div",i,[d.form.tabs&&d.form.tabs.length>0?((0,a.wg)(),(0,a.j4)(p,{key:0,gutter:10},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{span:6},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"tabs主键",prop:"label"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.tabskey,"onUpdate:modelValue":l[24]||(l[24]=e=>d.form.tabskey=e),placeholder:"名称"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(m,{span:16},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{label:"默认值",prop:"url"},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{modelValue:d.form.tabsdefaultvalue,"onUpdate:modelValue":l[25]||(l[25]=e=>d.form.tabsdefaultvalue=e),placeholder:"默认值"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})):(0,a.kq)("",!0)]),(0,a.Wm)(b,{title:"筛选条件"}),(0,a.Wm)(v,{modelValue:d.form.filter,"onUpdate:modelValue":l[26]||(l[26]=e=>d.form.filter=e),addTemplate:d.addfilterTemplate,"drag-sort":"",placeholder:"暂无数据"},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{prop:"label",label:"名称"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.label,"onUpdate:modelValue":l=>e.row.label=l,placeholder:"名称"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"component",label:"表单组件",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(g,{modelValue:e.row.component,"onUpdate:modelValue":l=>e.row.component=l,placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"input",key:"input",label:"Input"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Input ")])),_:1}),(0,a.Wm)(w,{value:"select",key:"select",label:"下拉"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 下拉 ")])),_:1}),(0,a.Wm)(w,{value:"switch",key:"switch",label:"开关"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 开关 ")])),_:1}),(0,a.Wm)(w,{value:"date",key:"date",label:"日期选择"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 日期选择 ")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"name",label:"字段"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.name,"onUpdate:modelValue":l=>e.row.name=l,placeholder:"字段名"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"selected",label:"置顶",width:"70",align:"center"},{default:(0,a.w5)((e=>[(0,a.Wm)(_,{modelValue:e.row.selected,"onUpdate:modelValue":l=>e.row.selected=l},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"width",label:"宽",width:"80"},{default:(0,a.w5)((e=>[(0,a.wy)((0,a.Wm)(u,{modelValue:e.row.width,"onUpdate:modelValue":l=>e.row.width=l,placeholder:"宽"},null,8,["modelValue","onUpdate:modelValue"]),[[o.F8,e.row.selected]])])),_:1}),(0,a.Wm)(y,{prop:"operator",label:"默认筛选",width:"110"},{default:(0,a.w5)((e=>[(0,a.Wm)(g,{modelValue:e.row.filter,"onUpdate:modelValue":l=>e.row.filter=l,placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"<",key:"<",label:"小于"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 小于 ")])),_:1}),(0,a.Wm)(w,{value:"<=",key:"<=",label:"小于"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 小于等于 ")])),_:1}),(0,a.Wm)(w,{value:">",key:">",label:"大于"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 大于 ")])),_:1}),(0,a.Wm)(w,{value:">=",key:">=",label:"大于等于"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 大于等于 ")])),_:1}),(0,a.Wm)(w,{value:"!=",key:"!=",label:"不等于"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 不等于 ")])),_:1}),(0,a.Wm)(w,{value:"=",key:"=",label:"等于"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 等于 ")])),_:1}),(0,a.Wm)(w,{value:"notin",key:"notin",label:"Input"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 不包含 ")])),_:1}),(0,a.Wm)(w,{value:"in",key:"in",label:"包含"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 包含 ")])),_:1}),(0,a.Wm)(w,{value:"like",key:"like",label:"模糊查询"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 模糊查询 ")])),_:1}),(0,a.Wm)(w,{value:"between",key:"between",label:"区间查询"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 区间查询 ")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"options",label:"选项",width:"80",align:"center"},{default:(0,a.w5)((e=>[(0,a.Wm)(W,{text:"",size:"small",type:0==Object.keys(e.row.options).length?"":"primary",onClick:l=>s.setoptions(e.row)},{default:(0,a.w5)((()=>[(0,a.Uk)(" 选项 "),(0,a.Wm)(k,{hidden:0==Object.keys(e.row.options).length,value:Object.keys(e.row.options).length,class:"badge",type:"danger"},null,8,["hidden","value"])])),_:2},1032,["type","onClick"])])),_:1})])),_:1},8,["modelValue","addTemplate"]),(0,a.Wm)(b,{title:"Column表格"}),(0,a.Wm)(v,{modelValue:d.form.column,"onUpdate:modelValue":l[27]||(l[27]=e=>d.form.column=e),addTemplate:d.addcolumnTemplate,"drag-sort":"",placeholder:"暂无数据"},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{prop:"label",label:"名称"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.label,"onUpdate:modelValue":l=>e.row.label=l,placeholder:"名称"},null,8,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"component",label:"表单组件",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(g,{modelValue:e.row.component,"onUpdate:modelValue":l=>e.row.component=l,placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"",key:"",label:""},{default:(0,a.w5)((()=>[(0,a.Uk)(" 空 ")])),_:1}),(0,a.Wm)(w,{value:"input",key:"input",label:"Input"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Input ")])),_:1}),(0,a.Wm)(w,{value:"title",key:"title",label:"标题占位"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 标题占位 ")])),_:1}),(0,a.Wm)(w,{value:"checkbox",key:"checkbox",label:"复选框"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 复选框 ")])),_:1}),(0,a.Wm)(w,{value:"radio",key:"radio",label:"单选"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 单选 ")])),_:1}),(0,a.Wm)(w,{value:"select",key:"select",label:"下拉"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 下拉 ")])),_:1}),(0,a.Wm)(w,{value:"checkboxGroup",key:"checkboxGroup",label:"复组组合"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 复组组合 ")])),_:1}),(0,a.Wm)(w,{value:"upload",key:"upload",label:"文件上传"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 文件上传 ")])),_:1}),(0,a.Wm)(w,{value:"updatemultiple",key:"updatemultiple",label:"多文件上传"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 多文件上传 ")])),_:1}),(0,a.Wm)(w,{value:"switch",key:"switch",label:"开关"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 开关 ")])),_:1}),(0,a.Wm)(w,{value:"cascader",key:"cascader",label:"级联选择器"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 级联选择器 ")])),_:1}),(0,a.Wm)(w,{value:"date",key:"date",label:"日期选择"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 日期选择 ")])),_:1}),(0,a.Wm)(w,{value:"number",key:"number",label:"数字"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 数字 ")])),_:1}),(0,a.Wm)(w,{value:"color",key:"color",label:"颜色选择"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 颜色选择 ")])),_:1}),(0,a.Wm)(w,{value:"rate",key:"rate",label:"评分"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 评分 ")])),_:1}),(0,a.Wm)(w,{value:"slider",key:"slider",label:"滑块"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 滑块 ")])),_:1}),(0,a.Wm)(w,{value:"tableselect",key:"tableselect",label:"表格选择"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 表格选择 ")])),_:1}),(0,a.Wm)(w,{value:"editor",key:"editor",label:"编辑器"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 编辑器 ")])),_:1}),(0,a.Wm)(w,{value:"text",key:"text",label:"文本"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 文本 ")])),_:1}),(0,a.Wm)(w,{value:"avatar",key:"avatar",label:"头像"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 头像 ")])),_:1}),(0,a.Wm)(w,{value:"formtable",key:"formtable",label:"表单表格"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 表单表格 ")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"span",label:"表单跨度",width:"110"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.span,"onUpdate:modelValue":l=>e.row.span=l,disabled:!e.row.component,placeholder:"表单跨度"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),_:1}),(0,a.Wm)(y,{prop:"name",label:"字段"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.name,"onUpdate:modelValue":l=>e.row.name=l,disabled:"title"==e.row.component,placeholder:"字段名"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),_:1}),(0,a.Wm)(y,{prop:"columntype",label:"表格类型",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(g,{modelValue:e.row.columntype,"onUpdate:modelValue":l=>e.row.columntype=l,placeholder:"选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{value:"avatar",key:"avatar",label:"用户"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 用户 ")])),_:1}),(0,a.Wm)(w,{value:"badge",key:"badge",label:"徽章"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 徽章 ")])),_:1}),(0,a.Wm)(w,{value:"imagegroup",key:"imagegroup",label:"图组"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 图组 ")])),_:1}),(0,a.Wm)(w,{value:"image",key:"image",label:"单图"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 单图 ")])),_:1}),(0,a.Wm)(w,{value:"status",key:"status",label:"状态"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 状态 ")])),_:1}),(0,a.Wm)(w,{value:"input",key:"input",label:"Input"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Input ")])),_:1}),(0,a.Wm)(w,{value:"select",key:"select",label:"下拉选择"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 下拉选择 ")])),_:1}),(0,a.Wm)(w,{value:"tag",key:"tag",label:"时间组件"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 时间组件 ")])),_:1}),(0,a.Wm)(w,{value:"components",key:"components",label:"自定义组件"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 自定义组件 ")])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:1}),(0,a.Wm)(y,{prop:"hide",label:"隐藏",width:"70",align:"center"},{default:(0,a.w5)((e=>[(0,a.Wm)(_,{modelValue:e.row.hide,"onUpdate:modelValue":l=>e.row.hide=l,disabled:"title"==e.row.component},null,8,["modelValue","onUpdate:modelValue","disabled"])])),_:1}),(0,a.Wm)(y,{prop:"width",label:"宽",width:"80"},{default:(0,a.w5)((e=>[(0,a.Wm)(u,{modelValue:e.row.width,"onUpdate:modelValue":l=>e.row.width=l,disabled:"title"==e.row.component,placeholder:"宽"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),_:1})])),_:1},8,["modelValue","addTemplate"])])),_:1},8,["model"])])),_:1}),(0,a.Wm)(U,null,{default:(0,a.w5)((()=>[(0,a.Wm)(W,{type:"primary",loading:e.isSaveing,onClick:s.submit},{default:(0,a.w5)((()=>[(0,a.Uk)("保存")])),_:1},8,["loading","onClick"]),(0,a.Wm)(W,{onClick:l[28]||(l[28]=e=>d.visible=!1)},{default:(0,a.w5)((()=>[(0,a.Uk)("取消")])),_:1})])),_:1})])),_:1})),[[j,d.loading]]),(0,a.Wm)($,{ref:"options"},null,512)])),_:1},8,["title","modelValue"])}var d=t(339),s={emits:["success","closed"],components:{options:d["default"]},data(){return{token:null,loading:!1,mode:"add",titleMap:{add:"新增",edit:"编辑"},form:{operationtype:[],stat:[],tabs:[],column:[],filter:[],title:"",name:"",api:"",key:"",operation:{plus:{label:"",url:""},delete:{label:"",url:""},edit:{label:"",url:""},batchdeletion:{label:"",url:""}}},addTemplate:{label:"",value:""},addcolumnTemplate:{component:"",columntype:"",label:"",name:"",width:"",hide:"",span:"",options:{}},addfilterTemplate:{label:"",name:"",selected:!1,component:"",operator:"",options:{},operators:[]},visible:!1,dialog:!1}},mounted(){},methods:{querySearchSubmit(e,l){if(this.form.api){var t=this.form.api.lastIndexOf("/"),a=this.form.api.substring(0,t+1)+"submit";l([{value:a}])}},querySearchGet(e,l){if(this.form.api){var t=this.form.api.lastIndexOf("/"),a=this.form.api.substring(0,t+1)+"info";l([{value:a}])}},querySearchDelete(e,l){if(this.form.api){var t=this.form.api.lastIndexOf("/"),a=this.form.api.substring(0,t+1)+"delete";l([{value:a}])}},open(e="add"){return this.mode=e,this.visible=!0,this},dialogclose(){this.dialog=!1},close(){this.visible=!1},submit(){this.$refs.dialogForm.validate((async e=>{if(e){this.isSaveing=!0;var l=await this.$http.post("table/submit",{info:this.form,token:this.token});this.isSaveing=!1,200==l.code?(this.visible=!1,this.$message.success("操作成功"),this.$emit("success",this.form,this)):this.$alert(l.message,"提示",{type:"error"})}}))},setData(e){this.loading=!0;const l={id:e.id,uniqid:e.uniqid};this.form.title=e.title,this.form.uniqid=e.uniqid,setTimeout((async()=>{var e=await this.$http.get("table/info",l);this.loading=!1,this.form=e.data.data,this.token=e.data.token}),400)},setoptions(e){this.dialog=!0,this.$nextTick((()=>{this.$refs.options.open().setData(e)}))}}},u=t(3744);const r=(0,u.Z)(s,[["render",n]]);var m=r},339:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return u}});var a=t(6252);function o(e,l,t,o,i,n){const d=(0,a.up)("el-alert"),s=(0,a.up)("el-input"),u=(0,a.up)("el-main"),r=(0,a.up)("el-button"),m=(0,a.up)("el-footer"),p=(0,a.up)("el-container"),c=(0,a.up)("el-drawer"),f=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.j4)(c,{size:800,onClosed:l[1]||(l[1]=l=>e.$emit("closed",i.data)),"destroy-on-close":!0,title:"选项",modelValue:i.visible,"onUpdate:modelValue":l[2]||(l[2]=e=>i.visible=e)},{default:(0,a.w5)((()=>[(0,a.wy)(((0,a.wg)(),(0,a.j4)(p,null,{default:(0,a.w5)((()=>[(0,a.Wm)(u,{style:{padding:"0 6px 6px 6px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{title:"扩展配置为系统业务所有的配置",type:"warning",style:{"margin-bottom":"15px"}}),(0,a.Wm)(s,{placeholder:"请填写JSON",type:"textarea",rows:"20",modelValue:i.jsonData,"onUpdate:modelValue":l[0]||(l[0]=e=>i.jsonData=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a.Wm)(r,{onClick:n.submit,type:"primary"},{default:(0,a.w5)((()=>[(0,a.Uk)(" 提交 ")])),_:1},8,["onClick"])])),_:1})])),_:1})),[[f,e.loading]])])),_:1},8,["modelValue"])}const i=(0,a.RC)((()=>Promise.all([t.e(528),t.e(54),t.e(321)]).then(t.bind(t,1321))));var n={emits:["success","closed"],data(){return{visible:!1,issave:!1,data:{},jsonData:"",filtersAddTemplate:{key:null,value:null}}},components:{xCodeEditor:i},mounted(){},methods:{close(){this.visible=!1},submit(){try{this.data.options=JSON.parse(this.jsonData),this.close(),this.$emit("success",this.data,this)}catch(e){this.$alert("无效的 JSON 数据: "+e,"提示",{type:"error"})}},open(){return this.visible=!0,this},setData(e){this.data=e,this.jsonData=JSON.stringify(e.options,null,4)}}},d=t(3744);const s=(0,d.Z)(n,[["render",o]]);var u=s},7203:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return u}});var a=t(6252);function o(e,l,t,o,i,n){const d=(0,a.up)("stat",!0),s=(0,a.up)("el-drawer");return(0,a.wg)(),(0,a.j4)(s,{title:i.info.title||i.info.label,modelValue:i.visible,"onUpdate:modelValue":l[0]||(l[0]=e=>i.visible=e),size:1e3,"destroy-on-close":"",onClosed:l[1]||(l[1]=l=>e.$emit("closed"))},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{name:i.info.value||i.info.name},null,8,["name"])])),_:1},8,["title","modelValue"])}var i=t(9840),n={emits:["success","closed"],props:{},components:{stat:i["default"]},data(){return{info:{},visible:!1}},methods:{open(){return this.visible=!0,this},setData(e){this.info=e}}},d=t(3744);const s=(0,d.Z)(n,[["render",o]]);var u=s},5016:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return r}});var a=t(6252),o=t(9963),i=t(3577);function n(e,l,t,n,d,s){const u=(0,a.up)("x-item"),r=(0,a.up)("el-form-item"),m=(0,a.up)("el-iconSearch"),p=(0,a.up)("el-button"),c=(0,a.up)("el-form"),f=(0,a.up)("ContentWrap"),h=(0,a.up)("el-tab-pane"),w=(0,a.up)("el-tabs"),g=(0,a.up)("el-input"),b=(0,a.up)("el-table-column"),y=(0,a.up)("el-popconfirm"),v=(0,a.up)("el-button-group"),_=(0,a.up)("xTable"),k=(0,a.up)("el-main"),W=(0,a.up)("el-container"),V=(0,a.up)("el-affix"),x=(0,a.up)("x-update");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(W,null,{default:(0,a.w5)((()=>[(0,a.Wm)(k,null,{default:(0,a.w5)((()=>[d.filter&&d.filter.length>0?((0,a.wg)(),(0,a.j4)(f,{key:0,style:{"margin-bottom":"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{ref:"queryFormRef",inline:!0,model:d.search,class:"-mb-15px","label-width":"80",onKeyup:(0,o.D2)(s.filterChange,["enter"])},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(d.filter,((e,t)=>((0,a.wg)(),(0,a.j4)(r,{label:e.label,style:(0,i.j5)({"white-space":"nowrap",width:s.getWidth(e)}),prop:e.name,key:t},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{item:e,modelValue:d.search,"onUpdate:modelValue":l[0]||(l[0]=e=>d.search=e)},null,8,["item","modelValue"])])),_:2},1032,["label","style","prop"])))),128)),(0,a.Wm)(r,null,{default:(0,a.w5)((()=>[(0,a.Wm)(p,{onClick:s.filterChange,type:"primary"},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{style:{width:"14px",color:"#fff"}}),(0,a.Uk)(" 搜索 ")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","onKeyup"])])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(f,{class:"xtable"},{default:(0,a.w5)((()=>[d.tabs&&d.tabs.length>0?((0,a.wg)(),(0,a.j4)(w,{key:0,modelValue:d.search[d.tabskey],"onUpdate:modelValue":l[1]||(l[1]=e=>d.search[d.tabskey]=e),onTabChange:s.tabChange},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(d.tabs,(e=>((0,a.wg)(),(0,a.j4)(h,{key:e.value,label:e.label+(e.num?"("+e.num+")":""),name:e.value},null,8,["label","name"])))),128))])),_:1},8,["modelValue","onTabChange"])):(0,a.kq)("",!0),(0,a.Wm)(_,{isselection:d.isselection,batchoperation:d.batch,defaultExpandAll:d.tableexpand,height:"auto",ref:"table",tableColumn:d.column,name:d.tablename,params:d.search,api:d.api,"row-key":d.key,remoteSort:!0,remoteFilter:!0,stripe:""},{default:(0,a.w5)((()=>[d.tableexpand?((0,a.wg)(),(0,a.j4)(b,{key:0,type:"expand"},{default:(0,a.w5)((({row:e})=>[(0,a.Wm)(g,{value:e[d.tableexpandfield],type:"textarea",style:{cursor:"pointer"},class:"expandtextarea",readonly:""},null,8,["value"])])),_:1})):(0,a.kq)("",!0),d.operation.edit||d.operation.delete?((0,a.wg)(),(0,a.j4)(b,{key:1,label:d.operation.label||"操作",width:d.operation.width||124,fixed:d.operation.fixed||"right",align:d.operation.align||"left"},{default:(0,a.w5)((e=>[(0,a.Wm)(v,null,{default:(0,a.w5)((()=>[d.operation.edit?((0,a.wg)(),(0,a.j4)(p,{key:0,type:d.operation.edit.type||"primary",size:d.operation.edit.size||"small",onClick:l=>s.operationEdit(e.row,e.$index),icon:d.operation.edit.icon},{default:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(d.operation.edit.label||"编辑"),1)])),_:2},1032,["type","size","onClick","icon"])):(0,a.kq)("",!0),d.operation.delete?((0,a.wg)(),(0,a.j4)(y,{key:1,title:d.operation.delete.title||"确定删除吗?",onConfirm:l=>s.operationDelete(e.row,e.$index)},{reference:(0,a.w5)((()=>[(0,a.Wm)(p,{type:d.operation.delete.type||"info",size:d.operation.delete.size||"small",icon:d.operation.delete.icon},{default:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(d.operation.delete.label||"删除"),1)])),_:1},8,["type","size","icon"])])),_:2},1032,["title","onConfirm"])):(0,a.kq)("",!0)])),_:2},1024)])),_:1},8,["label","width","fixed","align"])):(0,a.kq)("",!0)])),_:1},8,["isselection","batchoperation","defaultExpandAll","tableColumn","name","params","api","row-key"])])),_:1})])),_:1})])),_:1}),d.operation.plus?((0,a.wg)(),(0,a.j4)(V,{key:0,position:"bottom",offset:200},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{style:{float:"right","border-radius":"100%",width:"56px",height:"56px",padding:"10px","box-shadow":"var(--el-box-shadow-dark)",position:"fixed",right:"30px","font-size":"30px"},type:"success",round:"",icon:"el-icon-plus",onClick:s.plus},null,8,["onClick"])])),_:1})):(0,a.kq)("",!0),d.dialog.save?((0,a.wg)(),(0,a.j4)(x,{key:1,column:d.column,name:d.key,ref:"saveDialog",onSuccess:s.handleSuccess,onClosed:l[2]||(l[2]=e=>d.dialog.save=!1)},null,8,["column","name","onSuccess"])):(0,a.kq)("",!0)],64)}t(7658);var d={name:"table_2",components:{},props:{name:{type:String,default:""}},data(){return{dialog:{save:!1,stat:!1},isselection:!0,tableexpand:!1,tableexpandfield:"content",selection:[],column:[],batch:[],aside:{items:[]},filter:[],api:"",operation:{},key:"id",title:"",search:{},tabs:[],stat:[],chartoption:{},tablename:this.$route.meta.tablename,tableurl:this.$route.meta.tableurl,groupFilterText:"",tabskey:"",tabsdefaultvalue:""}},mounted(){if(this.name&&(this.tablename=this.name||this.$route.meta.tablename),this.tablename||this.tableurl){var e=this.tableurl?this.$http.get(this.tableurl,{},{cache:!0}):this.$api.system.table.get(this.tablename,{cache:this.$route.meta.tablecache||0});e.then((e=>{200==e.code&&(Object.assign(this.$data,e.data),e.data.tabsdefaultvalue&&e.data.tabskey&&(this.search[e.data.tabskey]=e.data.tabsdefaultvalue),this.$emit("child-loaded",Object.assign({},this.$data.aside,{search:this.$data.search})))}))}},computed:{getWidth(){return function(e){return e.width?e.width+"px":"auto"}},filterObj(){const e=[];return this.filter.forEach((l=>{l.component&&e.push({name:l.value,label:l.label,component:l.component,options:l.options})})),e}},watch:{groupFilterText(e){this.$refs.group.filter(e)}},methods:{groupFilterNode(e,l){return!e||-1!==l.label.indexOf(e)},groupClick(e){this.search[this.aside.searchkey||"groupid"]=e[this.aside.key||"id"],this.$refs.table.reload(this.search)},filterChange(e){var l=Object.assign({},this.search,e);this.$refs.table.reload(l)},tabChange(){this.$refs.table.reload(this.search)},handleSuccess(e,l,t){"edit"==l?e?this.$refs.table.tableData.filter((l=>l[this.key]===e[this.key])).forEach((l=>{Object.assign(l,e,e)})):this.$refs.table.refresh():e?this.$refs.table.tableData.unshift(e):this.$refs.table.reload({}),this.$message.success(t||"操作成功")},plus(){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open("plus").getComponentType(this.operation.plus.component).setData(this.operation.plus.data||{}).setConfig(this.operation.plus)}))},operationEdit(e){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open("edit").getComponentType(this.operation.edit.component).setData(e).setConfig(this.operation.edit)}))},openStat(e){this.dialog.stat=!0,this.$nextTick((()=>{this.$refs.xstatdialog.open().setData(e)}))},async operationDelete(e,l){const t="undefined"!==typeof this.operation.delete.key&&this.operation.delete.key?this.operation.delete.key:this.key;var a=await this.$http.post(this.operation.delete.url,{[t]:e[t],index:l});200!=a.code?this.$alert(a.message,"提示",{type:"error"}):this.$refs.table.refresh()},selectionChange(e){this.selection=e}}},s=t(3744);const u=(0,s.Z)(d,[["render",n]]);var r=u},9297:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return h}});var a=t(6252),o=t(9963);const i=e=>((0,a.dD)("data-v-73a81e0a"),e=e(),(0,a.Cn)(),e),n=i((()=>(0,a._)("div",{class:"el-form-item-msg"},"用于权限判断,可以留空; 不可重复",-1))),d={key:2,class:"rolepermission"},s={class:"treeMain"},u={class:"treeMain",style:{width:"100%"}},r={class:"treeMain"};function m(e,l,t,i,m,p){const c=(0,a.up)("el-input"),f=(0,a.up)("el-form-item"),h=(0,a.up)("x-upload"),w=(0,a.up)("el-radio"),g=(0,a.up)("el-radio-group"),b=(0,a.up)("el-tree"),y=(0,a.up)("el-tab-pane"),v=(0,a.up)("el-option"),_=(0,a.up)("el-select"),k=(0,a.up)("el-form"),W=(0,a.up)("el-tabs"),V=(0,a.up)("el-main"),x=(0,a.up)("el-button"),U=(0,a.up)("x-dialog");return(0,a.wg)(),(0,a.j4)(U,{title:m.titleMap[m.mode],modelValue:m.visible,"onUpdate:modelValue":l[10]||(l[10]=e=>m.visible=e),width:900,"destroy-on-close":"",onClosed:l[11]||(l[11]=l=>e.$emit("closed"))},{footer:(0,a.w5)((()=>[(0,a.Wm)(x,{onClick:l[8]||(l[8]=e=>m.visible=!1)},{default:(0,a.w5)((()=>[(0,a.Uk)("取 消")])),_:1}),"show"!=m.mode?((0,a.wg)(),(0,a.j4)(x,{key:0,type:"primary",loading:m.isSaveing,onClick:l[9]||(l[9]=e=>p.submit())},{default:(0,a.w5)((()=>[(0,a.Uk)("保 存")])),_:1},8,["loading"])):(0,a.kq)("",!0)])),default:(0,a.w5)((()=>[(0,a.Wm)(V,{style:{padding:"10px 20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(k,{model:m.form,rules:m.rules,disabled:"show"==m.mode,ref:"dialogForm","label-width":"100px","label-position":"left"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{label:"角色名称",prop:"title"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:m.form.title,"onUpdate:modelValue":l[0]||(l[0]=e=>m.form.title=e),clearable:""},null,8,["modelValue"])])),_:1}),(0,a.Wm)(f,{label:"别名",prop:"title"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:m.form.alias,"onUpdate:modelValue":l[1]||(l[1]=e=>m.form.alias=e),clearable:""},null,8,["modelValue"]),n])),_:1}),"member"==m.form.type?((0,a.wg)(),(0,a.j4)(f,{key:0,label:"升级点数",prop:"anicount"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:m.form.anicount,"onUpdate:modelValue":l[2]||(l[2]=e=>m.form.anicount=e),clearable:""},null,8,["modelValue"])])),_:1})):(0,a.kq)("",!0),"member"==m.form.type?((0,a.wg)(),(0,a.j4)(f,{key:1,label:"等级图片",prop:"anicount"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:m.form.image,"onUpdate:modelValue":l[3]||(l[3]=e=>m.form.image=e),title:"等级图片"},null,8,["modelValue"])])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(f,{label:"是否有效",prop:"status"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{modelValue:m.form.status,"onUpdate:modelValue":l[4]||(l[4]=e=>m.form.status=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{label:"1",size:"large"},{default:(0,a.w5)((()=>[(0,a.Uk)("开启")])),_:1}),(0,a.Wm)(w,{label:"0",size:"large"},{default:(0,a.w5)((()=>[(0,a.Uk)("关闭")])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,a.Wm)(f,{label:"备注",prop:"message"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:m.form.message,"onUpdate:modelValue":l[5]||(l[5]=e=>m.form.message=e),clearable:"",type:"textarea"},null,8,["modelValue"])])),_:1}),"system"==m.form.type?((0,a.wg)(),(0,a.iD)("div",d,[(0,a.Wm)(W,{"tab-position":"top"},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{label:"菜单权限"},{default:(0,a.w5)((()=>[(0,a._)("div",s,[(0,a.Wm)(b,{ref:"menu","node-key":"id",data:m.menu.list,props:m.menu.props,"default-checked-keys":m.menu.checked,"show-checkbox":""},null,8,["data","props","default-checked-keys"])])])),_:1}),(0,a.Wm)(y,{label:"数据权限"},{default:(0,a.w5)((()=>[(0,a.Wm)(k,{"label-width":"100px","label-position":"left"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{label:"规则类型"},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{modelValue:m.form.authority.dataType,"onUpdate:modelValue":l[6]||(l[6]=e=>m.form.authority.dataType=e),placeholder:"请选择"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{label:"全部可见",value:"1"}),(0,a.Wm)(v,{label:"本人可见",value:"2"}),(0,a.Wm)(v,{label:"所在部门可见",value:"3"}),(0,a.Wm)(v,{label:"所在部门及子级可见",value:"4"}),(0,a.Wm)(v,{label:"选择的部门可见",value:"5"}),(0,a.Wm)(v,{label:"自定义",value:"6"})])),_:1},8,["modelValue"])])),_:1}),(0,a.wy)((0,a.Wm)(f,{label:"选择部门"},{default:(0,a.w5)((()=>[(0,a._)("div",u,[(0,a.Wm)(b,{ref:"dept","node-key":"id",data:m.dept.list,props:m.dept.props,"default-checked-keys":m.dept.checked,"show-checkbox":""},null,8,["data","props","default-checked-keys"])])])),_:1},512),[[o.F8,"5"==m.form.dataType]]),(0,a.wy)((0,a.Wm)(f,{label:"规则值"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:m.form.authority.dataRule,"onUpdate:modelValue":l[7]||(l[7]=e=>m.form.authority.dataRule=e),clearable:"",type:"textarea",rows:6,placeholder:"请输入自定义规则代码"},null,8,["modelValue"])])),_:1},512),[[o.F8,"6"==m.form.dataType]])])),_:1})])),_:1}),(0,a.Wm)(y,{label:"控制台模块"},{default:(0,a.w5)((()=>[(0,a._)("div",r,[(0,a.Wm)(b,{ref:"grid","node-key":"key",data:m.grid.list,props:m.grid.props,"default-checked-keys":m.grid.checked,"show-checkbox":""},null,8,["data","props","default-checked-keys"])])])),_:1})])),_:1})])):(0,a.kq)("",!0)])),_:1},8,["model","rules","disabled"])])),_:1})])),_:1},8,["title","modelValue"])}var p={emits:["success","closed"],data(){return{mode:"add",titleMap:{add:"新增",edit:"编辑",show:"查看"},visible:!1,isSaveing:!1,form:{id:"",title:"",alias:"",status:1,message:"",authority:{menu:[],grid:[],dataType:1}},rules:{title:[{required:!0,message:"请填写名称"}],alias:[{required:!0,message:"请填写别名"}]},menu:{list:[],checked:[],props:{label:e=>e.meta.title}},grid:{list:[],checked:[],props:{label:e=>e.title,disabled:e=>e.isFixed}},dept:{list:[],checked:[],props:{label:e=>e.title,disabled:e=>e.isFixed}}}},mounted(){},methods:{open(e="add"){return this.mode=e,this.visible=!0,this},submit(){"system"==this.form.type?(this.form.authority.menu=this.$refs.menu.getCheckedKeys().concat(this.$refs.menu.getHalfCheckedKeys()),this.form.authority.grid=this.$refs.grid.getCheckedKeys().concat(this.$refs.grid.getHalfCheckedKeys())):this.form.authority={menu:[],grid:[]},this.$refs.dialogForm.validate((async e=>{if(e){this.isSaveing=!0;var l=await this.$http.post("user/group/submit",this.form);if(this.isSaveing=!1,200==l.code)return this.$emit("success",this.form,this.mode),this.visible=!1,void this.$message.success("操作成功");this.$alert(l.message,"提示",{type:"error"})}}))},setData(e){Object.assign(this.form,e),this.grid.checked=this.form.authority.grid||[],this.dept.checked=this.form.authority.dept||[],this.menu.checked=this.form.authority.menu||[],"system"==this.form.type&&this.$http.post("user/group/menuSystem",{}).then((e=>{if(200==e.code)return this.menu.list=e.data.menu||[],this.$nextTick((()=>{let e=this.menu.checked.filter((e=>this.$refs.menu.getNode(e).isLeaf));this.$refs.menu.setCheckedKeys(e,!0)})),this.grid.list=e.data.grid||[],this.dept.list=e.data.dept||[],!1;this.$alert(e.message,"提示",{type:"error"})}))}}},c=t(3744);const f=(0,c.Z)(p,[["render",m],["__scopeId","data-v-73a81e0a"]]);var h=f},1783:function(e,l,t){var a={"./StoreConversionData.vue":3389,"./StoreData.vue":7348,"./about.vue":7011,"./allDataFrom.vue":4793,"./echarts.vue":2749,"./hotSearch.vue":9973,"./progress.vue":1419,"./saleInfo.vue":4723,"./stat.vue":3209,"./time.vue":3416,"./ver.vue":5840,"./welcome.vue":9804,"./work.vue":9895};function o(e){var l=i(e);return t(l)}function i(e){if(!t.o(a,e)){var l=new Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=i,e.exports=o,o.id=1783},5747:function(e,l,t){"use strict";e.exports=t.p+"static/img/404.b15c3f38.png"},5080:function(e,l,t){"use strict";e.exports=t.p+"static/img/logo.1294baef.png"}}]);