@pangu-backend-ui/apputil-core 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","pinia"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I["pg-user-core"]={},I.Vue,I["element-plus"],I.pinia))})(this,function(I,e,L,M){"use strict";const q=[],$={OPEN_WEB:{name:"打开Web页面"},OPEN_VIEW:{name:"打开内置页面"},API_REQUEST:{name:"请求API"},EXEC_METHOD:{name:"执行方法"},CUSTOM:{name:"自定义"}},O={OPEN_WEB:{name:"打开Web页面"},OPEN_VIEW:{name:"打开内置页面"},API_REQUEST:{name:"请求API"},EXEC_METHOD:{name:"执行方法"},CUSTOM:{name:"自定义"}},j=e.defineComponent({__name:"BannerDialog",emits:["success"],setup(U,{expose:i,emit:s}){const p=e.ref(!1),a=e.ref({sceneCode:null,image:null,targetPath:null,clickEventType:"",params:null,shelfTimeArr:[]}),C=e.ref({sceneCode:[{required:!0,message:"请输入场景代码"}],image:[{required:!0,message:"请上传图片"}],targetPath:[{required:!0,message:"请输入目标地址"}],clickEventType:[{required:!0,message:"请选择点击事件类型"}]}),V=e.ref(!1),n=e.inject("http"),k=e.ref();function y(){var r;(r=k.value)==null||r.validate(t=>{if(t){V.value=!0;let d=`/api/app/banner/${_.value??""}/${_.value?"update":"create"}`,f={...a.value};f.shelfTime=null,f.offShelfTime=null,a.value.shelfTimeArr.length&&(f.shelfTime=a.value.shelfTimeArr[0],f.offShelfTime=a.value.shelfTimeArr[1]),n==null||n.post(d,f).then(m=>{var g;s("success"),(g=k.value)==null||g.resetFields(),p.value=!1}).finally(()=>{V.value=!1})}})}const u=e.ref([]),_=e.ref(null);function w(r,t){u.value=r,_.value=null,p.value=!0,e.nextTick(()=>{t&&(_.value=t.id,Object.assign(a.value,t),t.shelfTime&&t.offShelfTime&&(a.value.shelfTimeArr=[new Date(t.shelfTime),new Date(t.offShelfTime)]))})}function x(){var r;(r=k.value)==null||r.resetFields()}return i({show:w}),(r,t)=>{const d=e.resolveComponent("el-option"),f=e.resolveComponent("el-select"),m=e.resolveComponent("el-form-item"),g=e.resolveComponent("pg-upload"),T=e.resolveComponent("el-input"),l=e.resolveComponent("el-collapse-transition"),E=e.resolveComponent("el-date-picker"),h=e.resolveComponent("el-form"),N=e.resolveComponent("el-button"),A=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(A,{modelValue:p.value,"onUpdate:modelValue":t[6]||(t[6]=c=>p.value=c),width:"400",onClosed:x},{footer:e.withCtx(()=>[e.createVNode(N,{type:"primary",disabled:V.value,loading:V.value,onClick:y},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(h,{ref_key:"form",ref:k,rules:C.value,model:a.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(m,{label:"场景代码",prop:"sceneCode"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=c=>a.value.sceneCode=c),placeholder:"请输入/选择场景代码","allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,c=>(e.openBlock(),e.createBlock(d,{key:c,value:c,label:c},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(m,{label:"图片",prop:"image"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(g,{accept:"jpg,jpeg,png",modelValue:a.value.image,"onUpdate:modelValue":t[1]||(t[1]=c=>a.value.image=c),key:`img_${_.value}`,"list-type":"picture-card","upload-type":"banner",limit:1},null,8,["modelValue"]))]),_:1}),e.createVNode(m,{label:"点击事件类型",prop:"clickEventType"},{default:e.withCtx(()=>[e.createVNode(f,{placeholder:"请选择点击事件类型",modelValue:a.value.clickEventType,"onUpdate:modelValue":t[2]||(t[2]=c=>a.value.clickEventType=c)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref($),(c,B)=>(e.openBlock(),e.createBlock(d,{value:B,label:c.name},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,null,{default:e.withCtx(()=>[["OPEN_WEB","OPEN_VIEW","API_REQUEST"].indexOf(a.value.clickEventType)>=0?(e.openBlock(),e.createBlock(m,{key:0,label:"目标地址",prop:"targetPath"},{default:e.withCtx(()=>[e.createVNode(T,{placeholder:"请输入目标地址",modelValue:a.value.targetPath,"onUpdate:modelValue":t[3]||(t[3]=c=>a.value.targetPath=c)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(m,{label:"目标地址参数",prop:"params"},{default:e.withCtx(()=>[e.createVNode(T,{type:"textarea",modelValue:a.value.params,"onUpdate:modelValue":t[4]||(t[4]=c=>a.value.params=c),placeholder:"请输入JSON格式的参数对象"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"生效时段",prop:"shelfTimeArr"},{default:e.withCtx(()=>[e.createVNode(E,{type:"datetimerange",modelValue:a.value.shelfTimeArr,"onUpdate:modelValue":t[5]||(t[5]=c=>a.value.shelfTimeArr=c),"start-placeholder":"上架时间","end-placeholder":"下架时间","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,1,1,23,59,59)]},null,8,["modelValue","default-time"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["modelValue"])}}}),W=e.defineComponent({__name:"BannerListView",setup(U){const i=e.inject("http"),s=e.ref({sceneCode:null,status:null}),p=e.ref([]);function a(){i==null||i.get("/api/app/banner/all-scene-code").then(r=>{p.value=r.data})}const C=e.ref(),V=e.ref(!1);function n(){V.value=!!s.value.sceneCode,C.value.search()}function k(r){i==null||i.post(`/api/app/banner/${r}/publish`).then(t=>{n()})}function y(r){i==null||i.post(`/api/app/banner/${r}/off-shelf`).then(t=>{n()})}function u(r,t){i==null||i.post(`/api/app/banner/${r}/move-up`).then(d=>{s.value.sceneCode=t,n()})}function _(r,t){i==null||i.post(`/api/app/banner/${r}/move-down`).then(d=>{s.value.sceneCode=t,n()})}e.onBeforeMount(()=>{a()});const w=e.ref();function x(r){w.value.show(p.value,r)}return(r,t)=>{const d=e.resolveComponent("el-option"),f=e.resolveComponent("el-select"),m=e.resolveComponent("el-button"),g=e.resolveComponent("el-space"),T=e.resolveComponent("el-card"),l=e.resolveComponent("el-table-column"),E=e.resolveComponent("el-image"),h=e.resolveComponent("el-descriptions-item"),N=e.resolveComponent("el-descriptions"),A=e.resolveComponent("el-popover"),c=e.resolveComponent("el-tag"),B=e.resolveComponent("el-popconfirm"),D=e.resolveComponent("pg-table"),F=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(f,{modelValue:s.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=o=>s.value.sceneCode=o),placeholder:"场景代码",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,S)=>(e.openBlock(),e.createBlock(d,{label:o,value:o,key:`sc_con_${S}`},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(f,{modelValue:s.value.status,"onUpdate:modelValue":t[1]||(t[1]=o=>s.value.status=o),placeholder:"状态",clearable:"",style:{width:"150px"}},{default:e.withCtx(()=>[e.createVNode(d,{label:"草稿",value:"DRAFT"}),e.createVNode(d,{label:"已发布",value:"PUBLISH"}),e.createVNode(d,{label:"已下架",value:"OFF_SHELF"})]),_:1},8,["modelValue"]),e.createVNode(m,{type:"primary",icon:"search",onClick:n},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(m,{icon:"plus",onClick:t[2]||(t[2]=o=>x())},{default:e.withCtx(()=>[e.createTextVNode("创建Banner")]),_:1})),[[F,"CREATE_BANNER"]])]),_:1})]),_:1}),e.createVNode(D,{ref_key:"table",ref:C,"data-url":"/api/app/banner/page",onRowDbClick:t[3]||(t[3]=o=>r.$hasPer("UPDATE_BANNER")?x(o):null),condition:s.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[V.value&&r.$hasPer("BANNER_SEQ_MOVE_UP_DOWN")?(e.openBlock(),e.createBlock(l,{key:0,align:"center",width:"80"},{default:e.withCtx(({row:o})=>[e.createVNode(g,{direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(m,{icon:"ArrowUpBold",onClick:S=>u(o.id,o.sceneCode)},null,8,["onClick"]),e.createVNode(m,{icon:"ArrowDownBold",onClick:S=>_(o.id,o.sceneCode)},null,8,["onClick"])]),_:2},1024)]),_:1})):e.createCommentVNode("",!0),e.createVNode(l,{label:"场景代码",prop:"sceneCode",width:"150"}),e.createVNode(l,{label:"图片",width:"300",align:"center"},{default:e.withCtx(({row:o})=>[e.createVNode(E,{src:o.image,style:{"max-width":"300px"},"preview-src-list":[o.image],"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),e.createVNode(l,{label:"点击事件类型",prop:"clickEventType",width:"120"},{default:e.withCtx(({row:o})=>[e.createTextVNode(e.toDisplayString(o.clickEventType?e.unref($)[o.clickEventType].name:""),1)]),_:1}),e.createVNode(l,{label:"目标地址",prop:"targetPath","show-overflow-tooltip":""}),e.createVNode(l,{label:"目标参数",width:"120","show-overflow-tooltip":""},{default:e.withCtx(({row:o})=>[o.params?(e.openBlock(),e.createBlock(A,{key:0,trigger:"hover",width:"350"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.params.substring(0,100))+e.toDisplayString(o.params.length>100?"...":""),1)]),default:e.withCtx(()=>[o.params.startsWith("{")?(e.openBlock(),e.createBlock(N,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(o.params),(S,R)=>(e.openBlock(),e.createBlock(h,{label:R,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(o.params),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{label:"上架时间",prop:"shelfTime",width:"180",align:"center"}),e.createVNode(l,{label:"下架时间",prop:"offShelfTime",width:"180",align:"center"}),e.createVNode(l,{label:"状态",align:"center",width:"88"},{default:e.withCtx(({row:o})=>[o.status=="DRAFT"?(e.openBlock(),e.createBlock(c,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("草稿")]),_:1})):e.createCommentVNode("",!0),o.status=="PUBLISH"?(e.openBlock(),e.createBlock(c,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("已发布")]),_:1})):e.createCommentVNode("",!0),o.status=="OFF_SHELF"?(e.openBlock(),e.createBlock(c,{key:2,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("已下架")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{align:"center",width:"90"},{default:e.withCtx(({row:o})=>[["DRAFT","OFF_SHELF"].indexOf(o.status)>=0&&r.$hasPer("BANNER_PUBLISH")?(e.openBlock(),e.createBlock(B,{key:0,onConfirm:S=>k(o.id),title:`确定要${o.status=="DRAFT"?"发布":"上架"}该Banner吗?`},{reference:e.withCtx(()=>[e.createVNode(m,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.status=="DRAFT"?"发布":"上架"),1)]),_:2},1024)]),_:2},1032,["onConfirm","title"])):e.createCommentVNode("",!0),o.status=="PUBLISH"&&r.$hasPer("BANNER_OFF_SHELF")?(e.openBlock(),e.createBlock(B,{key:1,onConfirm:S=>y(o.id),title:"确定要[下架]该Banner吗?"},{reference:e.withCtx(()=>[e.createVNode(m,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(j,{ref_key:"bannerDialog",ref:w,onSuccess:n},null,512)],64)}}}),z=e.defineComponent({__name:"EntranceDialog",emits:["success"],setup(U,{expose:i,emit:s}){const p=e.ref(!1),a=e.ref({sceneCode:null,name:null,iconType:"NAME",icon:null,targetPath:null,clickEventType:"",params:null,shelfTimeArr:[]}),C=e.ref({sceneCode:[{required:!0,message:"请输入场景代码"}],name:[{required:!0,message:"请输入入口名称"}],iconType:[{required:!0,message:"请选择图标类型"}],icon:[{required:!0,message:`请${a.value.iconType=="NAME"?"输入图标名称":"上传图标图片"}`}],targetPath:[{required:!0,message:"请输入目标地址"}],clickEventType:[{required:!0,message:"请选择点击事件类型"}]}),V=e.ref(!1),n=e.inject("http"),k=e.ref();function y(){var r;(r=k.value)==null||r.validate(t=>{if(t){V.value=!0;let d=`/api/app/entrance/${_.value??""}/${_.value?"update":"create"}`,f={...a.value};f.shelfTime=null,f.offShelfTime=null,a.value.shelfTimeArr.length&&(f.shelfTime=a.value.shelfTimeArr[0],f.offShelfTime=a.value.shelfTimeArr[1]),n==null||n.post(d,f).then(m=>{var g;s("success"),(g=k.value)==null||g.resetFields(),p.value=!1}).finally(()=>{V.value=!1})}})}const u=e.ref([]),_=e.ref(null);function w(r,t){u.value=r,_.value=null,p.value=!0,e.nextTick(()=>{t&&(_.value=t.id,Object.assign(a.value,t),t.shelfTime&&t.offShelfTime&&(a.value.shelfTimeArr=[new Date(t.shelfTime),new Date(t.offShelfTime)]))})}function x(){var r;(r=k.value)==null||r.resetFields()}return i({show:w}),(r,t)=>{const d=e.resolveComponent("el-option"),f=e.resolveComponent("el-select"),m=e.resolveComponent("el-form-item"),g=e.resolveComponent("el-input"),T=e.resolveComponent("pg-upload"),l=e.resolveComponent("el-collapse-transition"),E=e.resolveComponent("el-date-picker"),h=e.resolveComponent("el-form"),N=e.resolveComponent("el-button"),A=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(A,{modelValue:p.value,"onUpdate:modelValue":t[9]||(t[9]=c=>p.value=c),width:"400",onClose:x},{footer:e.withCtx(()=>[e.createVNode(N,{type:"primary",disabled:V.value,loading:V.value,onClick:y},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(h,{ref_key:"form",ref:k,rules:C.value,model:a.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(m,{label:"场景代码",prop:"sceneCode"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=c=>a.value.sceneCode=c),placeholder:"请输入/选择场景代码","allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,c=>(e.openBlock(),e.createBlock(d,{key:c,value:c,label:c},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(m,{label:"入口名称",prop:"name"},{default:e.withCtx(()=>[e.createVNode(g,{placeholder:"请输入入口名称",modelValue:a.value.name,"onUpdate:modelValue":t[1]||(t[1]=c=>a.value.name=c)},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"图标类型",prop:"iconType"},{default:e.withCtx(()=>[e.createVNode(f,{placeholder:"请选择图标类型",modelValue:a.value.iconType,"onUpdate:modelValue":t[2]||(t[2]=c=>a.value.iconType=c)},{default:e.withCtx(()=>[e.createVNode(d,{value:"NAME",label:"图标名称"}),e.createVNode(d,{value:"URL",label:"图标URL"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(m,{label:"图标",prop:"icon"},{default:e.withCtx(()=>[a.value.iconType=="URL"?(e.openBlock(),e.createBlock(T,{accept:"jpg,jpeg,png,gif",modelValue:a.value.icon,"onUpdate:modelValue":t[3]||(t[3]=c=>a.value.icon=c),key:`img_${_.value}`,"list-type":"picture-card","upload-type":"entrance",limit:1},null,8,["modelValue"])):(e.openBlock(),e.createBlock(g,{key:1,modelValue:a.value.icon,"onUpdate:modelValue":t[4]||(t[4]=c=>a.value.icon=c),placeholder:"请输入图标名称",clearable:""},null,8,["modelValue"]))]),_:1}),e.createVNode(m,{label:"点击事件类型",prop:"clickEventType"},{default:e.withCtx(()=>[e.createVNode(f,{placeholder:"请选择点击事件类型",modelValue:a.value.clickEventType,"onUpdate:modelValue":t[5]||(t[5]=c=>a.value.clickEventType=c)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(O),(c,B)=>(e.openBlock(),e.createBlock(d,{value:B,label:c.name},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,null,{default:e.withCtx(()=>[["OPEN_WEB","OPEN_VIEW","API_REQUEST"].indexOf(a.value.clickEventType)>=0?(e.openBlock(),e.createBlock(m,{key:0,label:"目标地址",prop:"targetPath"},{default:e.withCtx(()=>[e.createVNode(g,{placeholder:"请输入目标地址",modelValue:a.value.targetPath,"onUpdate:modelValue":t[6]||(t[6]=c=>a.value.targetPath=c)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(m,{label:"目标地址参数",prop:"params"},{default:e.withCtx(()=>[e.createVNode(g,{type:"textarea",modelValue:a.value.params,"onUpdate:modelValue":t[7]||(t[7]=c=>a.value.params=c),placeholder:"请输入JSON格式的参数对象"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"生效时段",prop:"shelfTimeArr"},{default:e.withCtx(()=>[e.createVNode(E,{type:"datetimerange",modelValue:a.value.shelfTimeArr,"onUpdate:modelValue":t[8]||(t[8]=c=>a.value.shelfTimeArr=c),"start-placeholder":"上架时间","end-placeholder":"下架时间","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,1,1,23,59,59)]},null,8,["modelValue","default-time"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["modelValue"])}}}),Q=e.defineComponent({__name:"EntranceListView",setup(U){const i=e.inject("http"),s=e.ref({sceneCode:null,status:null}),p=e.ref([]);function a(){i==null||i.get("/api/app/entrance/all-scene-code").then(r=>{p.value=r.data})}const C=e.ref(),V=e.ref(!1);function n(){V.value=!!s.value.sceneCode,C.value.search()}function k(r){i==null||i.post(`/api/app/entrance/${r}/publish`).then(t=>{n()})}function y(r){i==null||i.post(`/api/app/entrance/${r}/off-shelf`).then(t=>{n()})}function u(r,t){i==null||i.post(`/api/app/entrance/${r}/move-up`).then(d=>{s.value.sceneCode=t,n()})}function _(r,t){i==null||i.post(`/api/app/entrance/${r}/move-down`).then(d=>{s.value.sceneCode=t,n()})}e.onBeforeMount(()=>{a()});const w=e.ref();function x(r){w.value.show(p.value,r)}return(r,t)=>{const d=e.resolveComponent("el-option"),f=e.resolveComponent("el-select"),m=e.resolveComponent("el-button"),g=e.resolveComponent("el-space"),T=e.resolveComponent("el-card"),l=e.resolveComponent("el-table-column"),E=e.resolveComponent("el-image"),h=e.resolveComponent("el-descriptions-item"),N=e.resolveComponent("el-descriptions"),A=e.resolveComponent("el-popover"),c=e.resolveComponent("el-tag"),B=e.resolveComponent("el-popconfirm"),D=e.resolveComponent("pg-table"),F=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(f,{modelValue:s.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=o=>s.value.sceneCode=o),placeholder:"场景代码",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,S)=>(e.openBlock(),e.createBlock(d,{label:o,value:o,key:`sc_con_${S}`},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(f,{modelValue:s.value.status,"onUpdate:modelValue":t[1]||(t[1]=o=>s.value.status=o),placeholder:"状态",clearable:"",style:{width:"150px"}},{default:e.withCtx(()=>[e.createVNode(d,{label:"草稿",value:"DRAFT"}),e.createVNode(d,{label:"已发布",value:"PUBLISH"}),e.createVNode(d,{label:"已下架",value:"OFF_SHELF"})]),_:1},8,["modelValue"]),e.createVNode(m,{type:"primary",icon:"search",onClick:n},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(m,{icon:"plus",onClick:t[2]||(t[2]=o=>x())},{default:e.withCtx(()=>[e.createTextVNode("创建入口")]),_:1})),[[F,"CREATE_ENTRANCE"]])]),_:1})]),_:1}),e.createVNode(D,{ref_key:"table",ref:C,"data-url":"/api/app/entrance/page",onRowDbClick:t[3]||(t[3]=o=>r.$hasPer("UPDATE_ENTRANCE")?x(o):null),condition:s.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[V.value&&r.$hasPer("ENTRANCE_SEQ_MOVE_UP_DOWN")?(e.openBlock(),e.createBlock(l,{key:0,align:"center",width:"80"},{default:e.withCtx(({row:o})=>[e.createVNode(g,{direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(m,{icon:"ArrowUpBold",onClick:S=>u(o.id,o.sceneCode)},null,8,["onClick"]),e.createVNode(m,{icon:"ArrowDownBold",onClick:S=>_(o.id,o.sceneCode)},null,8,["onClick"])]),_:2},1024)]),_:1})):e.createCommentVNode("",!0),e.createVNode(l,{label:"场景代码",prop:"sceneCode",width:"150"}),e.createVNode(l,{label:"图标",width:"200",align:"center"},{default:e.withCtx(({row:o})=>[o.iconType=="URL"?(e.openBlock(),e.createBlock(E,{key:0,src:o.icon,style:{"max-width":"200px"},"preview-src-list":[o.icon],"preview-teleported":""},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(o.icon),1)],64))]),_:1}),e.createVNode(l,{label:"点击事件类型",prop:"clickEventType",width:"120"},{default:e.withCtx(({row:o})=>[e.createTextVNode(e.toDisplayString(o.clickEventType?e.unref(O)[o.clickEventType].name:""),1)]),_:1}),e.createVNode(l,{label:"目标地址",prop:"targetPath","show-overflow-tooltip":""}),e.createVNode(l,{label:"目标参数",width:"120","show-overflow-tooltip":""},{default:e.withCtx(({row:o})=>[o.params?(e.openBlock(),e.createBlock(A,{key:0,trigger:"hover",width:"350"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.params.substring(0,100))+e.toDisplayString(o.params.length>100?"...":""),1)]),default:e.withCtx(()=>[o.params.startsWith("{")?(e.openBlock(),e.createBlock(N,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(o.params),(S,R)=>(e.openBlock(),e.createBlock(h,{label:R,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(o.params),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{label:"上架时间",prop:"shelfTime",width:"180",align:"center"}),e.createVNode(l,{label:"下架时间",prop:"offShelfTime",width:"180",align:"center"}),e.createVNode(l,{label:"状态",align:"center",width:"88"},{default:e.withCtx(({row:o})=>[o.status=="DRAFT"?(e.openBlock(),e.createBlock(c,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("草稿")]),_:1})):e.createCommentVNode("",!0),o.status=="PUBLISH"?(e.openBlock(),e.createBlock(c,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("已发布")]),_:1})):e.createCommentVNode("",!0),o.status=="OFF_SHELF"?(e.openBlock(),e.createBlock(c,{key:2,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("已下架")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{align:"center",width:"90"},{default:e.withCtx(({row:o})=>[["DRAFT","OFF_SHELF"].indexOf(o.status)>=0&&r.$hasPer("ENTRANCE_PUBLISH")?(e.openBlock(),e.createBlock(B,{key:0,onConfirm:S=>k(o.id),title:`确定要${o.status=="DRAFT"?"发布":"上架"}该入口吗?`},{reference:e.withCtx(()=>[e.createVNode(m,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.status=="DRAFT"?"发布":"上架"),1)]),_:2},1024)]),_:2},1032,["onConfirm","title"])):e.createCommentVNode("",!0),o.status=="PUBLISH"&&r.$hasPer("ENTRANCE_OFF_SHELF")?(e.openBlock(),e.createBlock(B,{key:1,onConfirm:S=>y(o.id),title:"确定要[下架]该入口吗?"},{reference:e.withCtx(()=>[e.createVNode(m,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(z,{ref_key:"entranceDialog",ref:w,onSuccess:n},null,512)],64)}}}),P=M.defineStore("pg-app-util-core-config-store",()=>{const U=[];return{defaultTesterUserIds:e.computed(()=>U)}}),_e="",G=(U,i)=>{const s=U.__vccOpts||U;for(const[p,a]of i)s[p]=a;return s},X={class:"dialog-footer"},Y=G({__name:"VersionDialog",emits:["success"],setup(U,{expose:i,emit:s}){const p=e.inject("http"),a=e.ref("CREATE"),C=e.computed(()=>a.value==="EDIT"),V=e.ref(!1),n=e.ref({appCode:null,platform:"ANDROID",versionName:null,versionNumber:null,category:"SELF",isForce:!1,isHot:!0,activationTime:null,pkgUrl:null,wgtUrl:null,description:null,testerIdJsonStr:""}),k=e.ref(),y=P();e.onMounted(()=>{y.defaultTesterUserIds.length&&(n.value.testerIdJsonStr=y.defaultTesterUserIds.join(","))});let u=null;const _=e.ref(!1);async function w(h){V.value=!0,a.value=h?"EDIT":"CREATE",u=h,h&&(_.value=h.status=="RELEASE",console.log(h.status),Object.assign(n.value,h),h.testerIdJsonStr&&(n.value.testerIdJsonStr=JSON.parse(h.testerIdJsonStr).join(",")),k.value=h.isHot?h.wgtUrl:h.pkgUrl),await E(),h&&m(h.appCode)}function x(h){n.value.isHot?n.value.wgtUrl=h.fileUrl:n.value.pkgUrl=h.fileUrl}function r(){n.value={appCode:null,platform:"ANDROID",versionName:null,category:"SELF",isForce:!1,isHot:!0,activationTime:null,pkgUrl:null,wgtUrl:null,testerIdJsonStr:""}}function t(){V.value=!V.value}const d=e.ref();function f(){d.value.validate(h=>{h&&(C.value?p.post(`/api/app/version/${u.id}`,{...n.value,testerIdJsonStr:n.value.testerIdJsonStr?JSON.stringify(JSON.parse("["+n.value.testerIdJsonStr+"]")):null}).then(N=>{t(),s("success")}):p.post("/api/app/version",{...n.value,testerIdJsonStr:n.value.testerIdJsonStr?JSON.stringify(JSON.parse("["+n.value.testerIdJsonStr+"]")):null}).then(N=>{t(),s("success")}))})}function m(h){l.value.find(A=>A.code===h).platform=="IOS"?n.value.platform="IOS":n.value.platform="ANDROID"}const g=e.ref();function T(){n.value.wgtUrl=null,n.value.pkgUrl=null,g.value&&g.value.clearFileList()}const l=e.ref([]);async function E(){if(l.value.length<=0){const h=await p.get("/api/app/all");l.value=h.data}}return i({show:w}),(h,N)=>{const A=e.resolveComponent("el-option"),c=e.resolveComponent("el-select"),B=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),F=e.resolveComponent("el-row"),o=e.resolveComponent("el-input"),S=e.resolveComponent("el-date-picker"),R=e.resolveComponent("el-checkbox"),pe=e.resolveComponent("pg-upload"),me=e.resolveComponent("el-form"),J=e.resolveComponent("el-button"),fe=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(fe,{title:e.unref(C)?"编辑App版本":"发布App版本",modelValue:V.value,"onUpdate:modelValue":N[10]||(N[10]=b=>V.value=b),width:"700px",onClosed:r},{footer:e.withCtx(()=>[e.createElementVNode("div",X,[e.createVNode(J,{onClick:t},{default:e.withCtx(()=>[e.createTextVNode("取 消")]),_:1}),e.createVNode(J,{type:"primary",onClick:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(C)?"提 交":"创 建"),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(me,{model:n.value,ref_key:"publishModalForm",ref:d},{default:e.withCtx(()=>[e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:"应用","label-width":"100px",prop:"appCode",rules:[{required:!0,message:"请选择应用",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:n.value.appCode,"onUpdate:modelValue":N[0]||(N[0]=b=>n.value.appCode=b),disabled:e.unref(C)&&_.value,placeholder:"请选择要发布的平台",style:{width:"100%"},onChange:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,b=>(e.openBlock(),e.createBlock(A,{key:b.code,label:b.name,value:b.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(D,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"版本名称","label-width":"100px",prop:"versionName",rules:[{required:!0,message:"请输入版本名称",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.value.versionName,"onUpdate:modelValue":N[1]||(N[1]=b=>n.value.versionName=b),disabled:e.unref(C)&&_.value,placeholder:"例: 1.1.2"},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e.createVNode(D,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"版本编号","label-width":"100px",prop:"versionNumber",rules:[{required:!0,message:"请输入版本编号",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.value.versionNumber,"onUpdate:modelValue":N[2]||(N[2]=b=>n.value.versionNumber=b),disabled:e.unref(C)&&_.value,type:"number",min:"1",placeholder:"例: 112"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(D,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"启用时间","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:n.value.activationTime,"onUpdate:modelValue":N[3]||(N[3]=b=>n.value.activationTime=b),type:"datetime",placeholder:"选择启用时间",disabled:e.unref(C)&&_.value},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(D,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"是否热更新","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:n.value.isHot,"onUpdate:modelValue":N[4]||(N[4]=b=>n.value.isHot=b),onChange:T,disabled:e.unref(C)&&_.value},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e.createVNode(D,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"是否强制","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:n.value.isForce,"onUpdate:modelValue":N[5]||(N[5]=b=>n.value.isForce=b),placeholder:"请选择是否强制",disabled:e.unref(C)&&_.value},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),n.value.category=="APP_STORE"?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:"市场地址","label-width":"100px",prop:"pkgUrl",rules:[{required:!0,message:"应用市场地址",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.value.pkgUrl,"onUpdate:modelValue":N[6]||(N[6]=b=>n.value.pkgUrl=b),placeholder:"应用市场地址"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:"版本描述","label-width":"100px",prop:"description",rules:[{required:!0,message:"请输入版本描述",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(o,{type:"textarea",modelValue:n.value.description,"onUpdate:modelValue":N[7]||(N[7]=b=>n.value.description=b),autosize:{minRows:4},placeholder:"请输入版本描述"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.unref(C)&&_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F,{key:1},{default:e.withCtx(()=>[e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:"测试用户","label-width":"100px",prop:"testerIdJsonStr"},{default:e.withCtx(()=>[e.createVNode(o,{type:"textarea",modelValue:n.value.testerIdJsonStr,"onUpdate:modelValue":N[8]||(N[8]=b=>n.value.testerIdJsonStr=b),autosize:{minRows:4},placeholder:"请输入测试用户ID。 例子: 10000, 100202, 100203"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})),n.value.platform=="ANDROID"||n.value.platform=="IOS"&&n.value.isHot?(e.openBlock(),e.createBlock(F,{key:2},{default:e.withCtx(()=>[e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:n.value.isHot?"上传更新包":"上传安装包","label-width":"100px",rules:[{required:!0,message:"请上传更新包",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(pe,{ref_key:"appPkgUploader",ref:g,modelValue:k.value,"onUpdate:modelValue":N[9]||(N[9]=b=>k.value=b),drag:!0,multiple:!1,tips:"热更新下只能上传wgt格式的文件,非热更新下只能上传apk格式的文件",autoUpload:!0,uploadType:"appPkg",accept:n.value.isHot?".wgt":"application/vnd.android.package-archive",disabled:e.unref(C)&&_.value,onOnSuccess:x},null,8,["modelValue","accept","disabled"])]),_:1},8,["label"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["title","modelValue"])}}},[["__scopeId","data-v-02170750"]]),K={__name:"VersionListView",setup(U){const i=e.ref({platform:null,isHot:null,status:null}),s=e.inject("http"),p=e.ref();function a(){p.value.search()}const C=e.ref();function V(y){C.value.show(y)}async function n(y){await s.post(`/api/app/version/${y}/publish`),a(),L.ElMessage.success("发布成功")}async function k(y){await s.post(`/api/app/version/${y}/offline`),a(),L.ElMessage.success("下架成功")}return(y,u)=>{const _=e.resolveComponent("el-option"),w=e.resolveComponent("el-select"),x=e.resolveComponent("el-button"),r=e.resolveComponent("el-space"),t=e.resolveComponent("el-card"),d=e.resolveComponent("el-table-column"),f=e.resolveComponent("el-tag"),m=e.resolveComponent("el-popconfirm"),g=e.resolveComponent("pg-table"),T=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(t,null,{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(w,{modelValue:i.value.isHot,"onUpdate:modelValue":u[0]||(u[0]=l=>i.value.isHot=l),placeholder:"热更新/整包更新",style:{width:"180px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(_,{label:"热更新",value:"true"}),e.createVNode(_,{label:"整包更新",value:"false"})]),_:1},8,["modelValue"]),e.createVNode(w,{modelValue:i.value.status,"onUpdate:modelValue":u[1]||(u[1]=l=>i.value.status=l),placeholder:"状态",style:{width:"120px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(_,{label:"测试",value:"TEST"}),e.createVNode(_,{label:"发布",value:"RELEASE"}),e.createVNode(_,{label:"下架",value:"OFFLINE"})]),_:1},8,["modelValue"]),e.createVNode(x,{type:"primary",icon:"search",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(x,{icon:"plus",onClick:u[2]||(u[2]=l=>V())},{default:e.withCtx(()=>[e.createTextVNode("新建版本")]),_:1})),[[T,"CREATE_BANNER"]])]),_:1})]),_:1}),e.createVNode(g,{ref_key:"table",ref:p,"data-url":"/api/app/version/page-search",onRowDbClick:u[3]||(u[3]=l=>V(l)),condition:i.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[e.createVNode(d,{label:"ID",prop:"id",align:"center",width:"60px"}),e.createVNode(d,{label:"应用",prop:"appName",align:"center",width:"120px","show-overflow-tooltip":""}),e.createVNode(d,{label:"应用平台",prop:"appPlatform",align:"center",width:"100px","show-overflow-tooltip":""}),e.createVNode(d,{label:"版本名称",prop:"versionName",align:"center",width:"90","show-overflow-tooltip":""}),e.createVNode(d,{label:"版本编号",prop:"versionNumber",align:"center",width:"90","show-overflow-tooltip":""}),e.createVNode(d,{label:"强制更新",prop:"isForce",align:"center",width:"90","show-overflow-tooltip":""},{default:e.withCtx(({row:l})=>[l.isForce?(e.openBlock(),e.createBlock(f,{key:0,type:"warning",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1})):(e.openBlock(),e.createBlock(f,{key:1,type:"primary",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1}))]),_:1}),e.createVNode(d,{label:"整包更新",prop:"isHot",align:"center",width:"90","show-overflow-tooltip":""},{default:e.withCtx(({row:l})=>[l.isHot?(e.openBlock(),e.createBlock(f,{key:0,type:"warning",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1})):(e.openBlock(),e.createBlock(f,{key:1,type:"primary",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1}))]),_:1}),e.createVNode(d,{label:"启用时间",width:"150px",prop:"activationTime",align:"center","show-overflow-tooltip":""}),e.createVNode(d,{label:"状态",width:"100",align:"center"},{default:e.withCtx(({row:l})=>[e.createVNode(f,{type:l.status=="RELEASE"?"success":l.status=="OFFLINE"?"danger":"warning"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.status=="RELEASE"?"发布":l.status=="OFFLINE"?"下线":"测试"),1)]),_:2},1032,["type"])]),_:1}),e.createVNode(d,{label:"安装包/更新包地址",prop:"pkgUrl",align:"center","show-overflow-tooltip":""},{default:e.withCtx(({row:l})=>[e.createTextVNode(e.toDisplayString(l.isHot?l.wgtUrl:l.pkgUrl),1)]),_:1}),e.createVNode(d,{label:"操作",align:"center",width:"160px"},{default:e.withCtx(({row:l})=>[l.status=="RELEASE"?(e.openBlock(),e.createBlock(m,{key:0,title:`确定下架版本[${l.versionName}]吗?`,onConfirm:E=>k(l.id)},{reference:e.withCtx(()=>[e.createVNode(x,{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["title","onConfirm"])):e.createCommentVNode("",!0),l.status=="TEST"||l.status=="OFFLINE"?(e.openBlock(),e.createBlock(m,{key:1,title:"是否确定发布该版本?",onConfirm:E=>n(l.id)},{reference:e.withCtx(()=>[e.createVNode(x,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode("发布")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(Y,{ref_key:"versionDiloag",ref:C,onSuccess:a},null,512)],64)}}},Z={style:{display:"flex","flex-direction":"column"}},v={style:{display:"flex",gap:"5px","margin-top":"10px"}},ee={__name:"FeedbackDialog",emits:["success"],setup(U,{expose:i,emit:s}){const p=e.inject("http"),a=e.ref(!1),C=e.ref(null),V=e.ref({replyContent:null}),n={replyContent:{required:!0,message:"请输入回复内容"}};function k(w){C.value=w,V.value.replyContent=w.replyContent,a.value=!0}const y=e.ref();function u(){var w;(w=y.value)==null||w.validate(x=>{x&&p.post(`/api/feedback/${C.value.id}/reply`,{content:V.value.replyContent}).then(r=>{var t;s("success"),(t=y.value)==null||t.resetFields(),a.value=!1})})}function _(){V.value.replyContent=null}return i({show:k}),(w,x)=>{const r=e.resolveComponent("el-image"),t=e.resolveComponent("el-form-item"),d=e.resolveComponent("el-input"),f=e.resolveComponent("el-form"),m=e.resolveComponent("el-button"),g=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(g,{title:"回复",modelValue:a.value,"onUpdate:modelValue":x[1]||(x[1]=T=>a.value=T),width:"400",onClose:_},{footer:e.withCtx(()=>[e.createVNode(m,{type:"primary",disabled:w.handling,loading:w.handling,onClick:u},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(f,{ref_key:"form",ref:y,rules:n,model:V.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(t,{label:"反馈内容"},{default:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createTextVNode(e.toDisplayString(C.value.content)+" ",1),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.images,(T,l)=>(e.openBlock(),e.createBlock(r,{key:l,src:T,"preview-teleported":"","preview-src-list":C.value.images,style:{width:"80px"}},null,8,["src","preview-src-list"]))),128))])])]),_:1}),e.createVNode(t,{label:"回复内容",prop:"replyContent"},{default:e.withCtx(()=>[e.createVNode(d,{type:"textarea",modelValue:V.value.replyContent,"onUpdate:modelValue":x[0]||(x[0]=T=>V.value.replyContent=T),placeholder:"请输入要回复的内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},te=e.createElementVNode("br",null,null,-1),le=e.createElementVNode("br",null,null,-1),oe=e.createElementVNode("br",null,null,-1),ae=e.createElementVNode("br",null,null,-1),ne={style:{display:"flex","flex-direction":"column"}},re={style:{display:"flex",gap:"3px","margin-top":"5px"}},ie=e.createElementVNode("br",null,null,-1),ce={__name:"FeedbackListView",setup(U){const i={WAITING_REPLY:{label:"待回复",tagType:"warning"},COMPLETED:{label:"已完成",tagType:"success"}},s=e.ref({userId:null,status:null}),p=e.ref();function a(){p.value.search()}const C=e.ref();function V(n){C.value.show(n)}return(n,k)=>{const y=e.resolveComponent("pg-user-selector"),u=e.resolveComponent("el-option"),_=e.resolveComponent("el-select"),w=e.resolveComponent("el-button"),x=e.resolveComponent("el-space"),r=e.resolveComponent("el-card"),t=e.resolveComponent("el-table-column"),d=e.resolveComponent("el-avatar"),f=e.resolveComponent("el-link"),m=e.resolveComponent("el-image"),g=e.resolveComponent("el-tag"),T=e.resolveComponent("pg-table");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(y,{modelValue:s.value.userId,"onUpdate:modelValue":k[0]||(k[0]=l=>s.value.userId=l),placeholder:"搜索用户",clearable:"",style:{width:"250px"}},null,8,["modelValue"]),e.createVNode(_,{modelValue:s.value.status,"onUpdate:modelValue":k[1]||(k[1]=l=>s.value.status=l),placeholder:"状态",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,(l,E)=>e.createVNode(u,{label:l.name,value:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(w,{type:"primary",icon:"search",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1})]),_:1})]),_:1}),e.createVNode(T,{ref_key:"table",ref:p,style:{"margin-top":"10px"},"data-url":"/api/feedback/page-search",condition:s.value},{default:e.withCtx(()=>[e.createVNode(t,{label:"ID",prop:"id",width:"80",align:"center"}),e.createVNode(t,{label:"用户信息",width:"200"},{default:e.withCtx(({row:l})=>[e.createVNode(d,{src:l.avatar},null,8,["src"]),te,e.createTextVNode(" "+e.toDisplayString(l.nickname),1),le,e.createVNode(f,{type:"primary",onClick:E=>n.showUserDetail(l.userId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.userId),1)]),_:2},1032,["onClick"])]),_:1}),e.createVNode(t,{label:"应用",width:"120"},{default:e.withCtx(({row:l})=>[e.createTextVNode(e.toDisplayString(l.appName),1),oe,e.createTextVNode(" "+e.toDisplayString(l.frontAppVersionName),1),ae,e.createTextVNode(" "+e.toDisplayString(l.frontAppVersionNumber),1)]),_:1}),e.createVNode(t,{label:"反馈内容",prop:"content"},{default:e.withCtx(({row:l})=>[e.createElementVNode("div",ne,[e.createTextVNode(e.toDisplayString(l.content)+" ",1),e.createElementVNode("div",re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.images,(E,h)=>(e.openBlock(),e.createBlock(m,{key:h,src:E,style:{width:"80px"},"preview-teleported":"","preview-src-list":l.images},null,8,["src","preview-src-list"]))),128))])])]),_:1}),e.createVNode(t,{label:"状态",width:"100",align:"center"},{default:e.withCtx(({row:l})=>[e.createVNode(g,{type:i[l.status].tagType},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i[l.status].label),1)]),_:2},1032,["type"])]),_:1}),e.createVNode(t,{label:"回复内容",prop:"replyContent"}),e.createVNode(t,{label:"提交/回复时间",width:"180",align:"center"},{default:e.withCtx(({row:l})=>[e.createTextVNode(e.toDisplayString(l.createdTime),1),ie,e.createTextVNode(" "+e.toDisplayString(l.replyTime??"/"),1)]),_:1}),e.createVNode(t,{label:"操作",width:"120",align:"center"},{default:e.withCtx(({row:l})=>[e.createVNode(w,{onClick:E=>V(l),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.status=="WAITING_REPLY"?"回复":"修改回复"),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["condition"]),e.createVNode(ee,{ref_key:"feedbackDialog",ref:C,onSuccess:a},null,512)],64)}}},se={install:(U,i)=>{let s=i.router,p=s.getRoutes().find(a=>a.path=="/");p&&p.meta&&(s.addRoute({path:"/app/banner",name:"AppBanner",redirect:"/app/banner/list",component:p.meta.commonLayout,children:[{path:"list",name:"BannerListView",component:W}]}),s.addRoute({path:"/app/entrance",name:"AppEntrance",redirect:"/app/entrance/list",component:p.meta.commonLayout,children:[{path:"list",name:"EntranceListView",component:Q}]}),s.addRoute({path:"/app/version",name:"AppVersion",redirect:"/app/version/list",component:p.meta.commonLayout,children:[{path:"list",name:"AppVersionListView",component:K}]}),s.addRoute({path:"/app/feedback",name:"Feedback",redirect:"/app/feedback/list",component:p.meta.commonLayout,children:[{path:"list",name:"FeedbackListView",component:ce}]}))}},H=(U,i)=>{q.forEach(p=>U.use(p)),U.use(se,i);const s=P();if(i.defaultTesterUserIds)for(let p of i.defaultTesterUserIds)s.defaultTesterUserIds.push(p)},de={install:H};I.default=de,I.install=H,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","pinia"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I["pg-user-core"]={},I.Vue,I["element-plus"],I.pinia))})(this,function(I,e,$,J){"use strict";const j=[],P={OPEN_WEB:{name:"打开Web页面"},OPEN_VIEW:{name:"打开内置页面"},API_REQUEST:{name:"请求API"},EXEC_METHOD:{name:"执行方法"},CUSTOM:{name:"自定义"}},R={OPEN_WEB:{name:"打开Web页面"},OPEN_VIEW:{name:"打开内置页面"},API_REQUEST:{name:"请求API"},EXEC_METHOD:{name:"执行方法"},CUSTOM:{name:"自定义"}},q=e.defineComponent({__name:"BannerDialog",emits:["success"],setup(S,{expose:i,emit:d}){const _=e.ref(!1),o=e.ref({sceneCode:null,image:null,targetPath:null,clickEventType:"",params:null,shelfTimeArr:[]}),N=e.ref({sceneCode:[{required:!0,message:"请输入场景代码"}],image:[{required:!0,message:"请上传图片"}],targetPath:[{required:!0,message:"请输入目标地址"}],clickEventType:[{required:!0,message:"请选择点击事件类型"}]}),V=e.ref(!1),n=e.inject("http"),b=e.ref();function u(){var r;(r=b.value)==null||r.validate(t=>{if(t){V.value=!0;let C=`/api/app/banner/${p.value??""}/${p.value?"update":"create"}`,m={...o.value};m.shelfTime=null,m.offShelfTime=null,o.value.shelfTimeArr.length&&(m.shelfTime=o.value.shelfTimeArr[0],m.offShelfTime=o.value.shelfTimeArr[1]),n==null||n.post(C,m).then(f=>{var w;d("success"),(w=b.value)==null||w.resetFields(),_.value=!1}).finally(()=>{V.value=!1})}})}const h=e.ref([]),p=e.ref(null);function g(r,t){h.value=r,p.value=null,_.value=!0,e.nextTick(()=>{t&&(p.value=t.id,Object.assign(o.value,t),t.shelfTime&&t.offShelfTime&&(o.value.shelfTimeArr=[new Date(t.shelfTime),new Date(t.offShelfTime)]))})}function x(){var r;(r=b.value)==null||r.resetFields()}return i({show:g}),(r,t)=>{const C=e.resolveComponent("el-option"),m=e.resolveComponent("el-select"),f=e.resolveComponent("el-form-item"),w=e.resolveComponent("pg-upload"),T=e.resolveComponent("el-input"),a=e.resolveComponent("el-collapse-transition"),E=e.resolveComponent("el-date-picker"),k=e.resolveComponent("el-form"),c=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(D,{modelValue:_.value,"onUpdate:modelValue":t[6]||(t[6]=s=>_.value=s),width:"400",onClosed:x},{footer:e.withCtx(()=>[e.createVNode(c,{type:"primary",disabled:V.value,loading:V.value,onClick:u},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(k,{ref_key:"form",ref:b,rules:N.value,model:o.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(f,{label:"场景代码",prop:"sceneCode"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:o.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=s=>o.value.sceneCode=s),placeholder:"请输入/选择场景代码","allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,s=>(e.openBlock(),e.createBlock(C,{key:s,value:s,label:s},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(f,{label:"图片",prop:"image"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(w,{accept:"jpg,jpeg,png",modelValue:o.value.image,"onUpdate:modelValue":t[1]||(t[1]=s=>o.value.image=s),key:`img_${p.value}`,"list-type":"picture-card","upload-type":"banner",limit:1},null,8,["modelValue"]))]),_:1}),e.createVNode(f,{label:"点击事件类型",prop:"clickEventType"},{default:e.withCtx(()=>[e.createVNode(m,{placeholder:"请选择点击事件类型",modelValue:o.value.clickEventType,"onUpdate:modelValue":t[2]||(t[2]=s=>o.value.clickEventType=s)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),(s,B)=>(e.openBlock(),e.createBlock(C,{value:B,label:s.name},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(a,null,{default:e.withCtx(()=>[["OPEN_WEB","OPEN_VIEW","API_REQUEST"].indexOf(o.value.clickEventType)>=0?(e.openBlock(),e.createBlock(f,{key:0,label:"目标地址",prop:"targetPath"},{default:e.withCtx(()=>[e.createVNode(T,{placeholder:"请输入目标地址",modelValue:o.value.targetPath,"onUpdate:modelValue":t[3]||(t[3]=s=>o.value.targetPath=s)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(f,{label:"目标地址参数",prop:"params"},{default:e.withCtx(()=>[e.createVNode(T,{type:"textarea",modelValue:o.value.params,"onUpdate:modelValue":t[4]||(t[4]=s=>o.value.params=s),placeholder:"请输入JSON格式的参数对象"},null,8,["modelValue"])]),_:1}),e.createVNode(f,{label:"生效时段",prop:"shelfTimeArr"},{default:e.withCtx(()=>[e.createVNode(E,{type:"datetimerange",modelValue:o.value.shelfTimeArr,"onUpdate:modelValue":t[5]||(t[5]=s=>o.value.shelfTimeArr=s),"start-placeholder":"上架时间","end-placeholder":"下架时间","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,1,1,23,59,59)]},null,8,["modelValue","default-time"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["modelValue"])}}}),W=e.defineComponent({__name:"BannerListView",setup(S){const i=e.inject("http"),d=e.ref({sceneCode:null,status:null}),_=e.ref([]);function o(){i==null||i.get("/api/app/banner/all-scene-code").then(r=>{_.value=r.data})}const N=e.ref(),V=e.ref(!1);function n(){V.value=!!d.value.sceneCode,N.value.search()}function b(r){i==null||i.post(`/api/app/banner/${r}/publish`).then(t=>{n()})}function u(r){i==null||i.post(`/api/app/banner/${r}/off-shelf`).then(t=>{n()})}function h(r,t){i==null||i.post(`/api/app/banner/${r}/move-up`).then(C=>{d.value.sceneCode=t,n()})}function p(r,t){i==null||i.post(`/api/app/banner/${r}/move-down`).then(C=>{d.value.sceneCode=t,n()})}e.onBeforeMount(()=>{o()});const g=e.ref();function x(r){g.value.show(_.value,r)}return(r,t)=>{const C=e.resolveComponent("el-option"),m=e.resolveComponent("el-select"),f=e.resolveComponent("el-button"),w=e.resolveComponent("el-space"),T=e.resolveComponent("el-card"),a=e.resolveComponent("el-table-column"),E=e.resolveComponent("el-image"),k=e.resolveComponent("el-descriptions-item"),c=e.resolveComponent("el-descriptions"),D=e.resolveComponent("el-popover"),s=e.resolveComponent("el-tag"),B=e.resolveComponent("el-popconfirm"),A=e.resolveComponent("pg-table"),F=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(m,{modelValue:d.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=l=>d.value.sceneCode=l),placeholder:"场景代码",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,U)=>(e.openBlock(),e.createBlock(C,{label:l,value:l,key:`sc_con_${U}`},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(m,{modelValue:d.value.status,"onUpdate:modelValue":t[1]||(t[1]=l=>d.value.status=l),placeholder:"状态",clearable:"",style:{width:"150px"}},{default:e.withCtx(()=>[e.createVNode(C,{label:"草稿",value:"DRAFT"}),e.createVNode(C,{label:"已发布",value:"PUBLISH"}),e.createVNode(C,{label:"已下架",value:"OFF_SHELF"})]),_:1},8,["modelValue"]),e.createVNode(f,{type:"primary",icon:"search",onClick:n},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(f,{icon:"plus",onClick:t[2]||(t[2]=l=>x())},{default:e.withCtx(()=>[e.createTextVNode("创建Banner")]),_:1})),[[F,"CREATE_BANNER"]])]),_:1})]),_:1}),e.createVNode(A,{ref_key:"table",ref:N,"data-url":"/api/app/banner/page",onRowDbClick:t[3]||(t[3]=l=>r.$hasPer("UPDATE_BANNER")?x(l):null),condition:d.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[V.value&&r.$hasPer("BANNER_SEQ_MOVE_UP_DOWN")?(e.openBlock(),e.createBlock(a,{key:0,align:"center",width:"80"},{default:e.withCtx(({row:l})=>[e.createVNode(w,{direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(f,{icon:"ArrowUpBold",onClick:U=>h(l.id,l.sceneCode)},null,8,["onClick"]),e.createVNode(f,{icon:"ArrowDownBold",onClick:U=>p(l.id,l.sceneCode)},null,8,["onClick"])]),_:2},1024)]),_:1})):e.createCommentVNode("",!0),e.createVNode(a,{label:"场景代码",prop:"sceneCode",width:"150"}),e.createVNode(a,{label:"图片",width:"300",align:"center"},{default:e.withCtx(({row:l})=>[e.createVNode(E,{src:l.image,style:{"max-width":"300px"},"preview-src-list":[l.image],"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),e.createVNode(a,{label:"点击事件类型",prop:"clickEventType",width:"120"},{default:e.withCtx(({row:l})=>[e.createTextVNode(e.toDisplayString(l.clickEventType?e.unref(P)[l.clickEventType].name:""),1)]),_:1}),e.createVNode(a,{label:"目标地址",prop:"targetPath","show-overflow-tooltip":""}),e.createVNode(a,{label:"目标参数",width:"120","show-overflow-tooltip":""},{default:e.withCtx(({row:l})=>[l.params?(e.openBlock(),e.createBlock(D,{key:0,trigger:"hover",width:"350"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.params.substring(0,100))+e.toDisplayString(l.params.length>100?"...":""),1)]),default:e.withCtx(()=>[l.params.startsWith("{")?(e.openBlock(),e.createBlock(c,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(l.params),(U,L)=>(e.openBlock(),e.createBlock(k,{label:L,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.params),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(a,{label:"上架时间",prop:"shelfTime",width:"180",align:"center"}),e.createVNode(a,{label:"下架时间",prop:"offShelfTime",width:"180",align:"center"}),e.createVNode(a,{label:"状态",align:"center",width:"88"},{default:e.withCtx(({row:l})=>[l.status=="DRAFT"?(e.openBlock(),e.createBlock(s,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("草稿")]),_:1})):e.createCommentVNode("",!0),l.status=="PUBLISH"?(e.openBlock(),e.createBlock(s,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("已发布")]),_:1})):e.createCommentVNode("",!0),l.status=="OFF_SHELF"?(e.openBlock(),e.createBlock(s,{key:2,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("已下架")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(a,{align:"center",width:"90"},{default:e.withCtx(({row:l})=>[["DRAFT","OFF_SHELF"].indexOf(l.status)>=0&&r.$hasPer("BANNER_PUBLISH")?(e.openBlock(),e.createBlock(B,{key:0,onConfirm:U=>b(l.id),title:`确定要${l.status=="DRAFT"?"发布":"上架"}该Banner吗?`},{reference:e.withCtx(()=>[e.createVNode(f,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.status=="DRAFT"?"发布":"上架"),1)]),_:2},1024)]),_:2},1032,["onConfirm","title"])):e.createCommentVNode("",!0),l.status=="PUBLISH"&&r.$hasPer("BANNER_OFF_SHELF")?(e.openBlock(),e.createBlock(B,{key:1,onConfirm:U=>u(l.id),title:"确定要[下架]该Banner吗?"},{reference:e.withCtx(()=>[e.createVNode(f,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(q,{ref_key:"bannerDialog",ref:g,onSuccess:n},null,512)],64)}}}),z=e.defineComponent({__name:"EntranceDialog",emits:["success"],setup(S,{expose:i,emit:d}){const _=e.ref(!1),o=e.ref({sceneCode:null,name:null,iconType:"NAME",icon:null,targetPath:null,clickEventType:"",params:null,shelfTimeArr:[]}),N=e.ref({sceneCode:[{required:!0,message:"请输入场景代码"}],name:[{required:!0,message:"请输入入口名称"}],iconType:[{required:!0,message:"请选择图标类型"}],icon:[{required:!0,message:`请${o.value.iconType=="NAME"?"输入图标名称":"上传图标图片"}`}],targetPath:[{required:!0,message:"请输入目标地址"}],clickEventType:[{required:!0,message:"请选择点击事件类型"}]}),V=e.ref(!1),n=e.inject("http"),b=e.ref();function u(){var r;(r=b.value)==null||r.validate(t=>{if(t){V.value=!0;let C=`/api/app/entrance/${p.value??""}/${p.value?"update":"create"}`,m={...o.value};m.shelfTime=null,m.offShelfTime=null,o.value.shelfTimeArr.length&&(m.shelfTime=o.value.shelfTimeArr[0],m.offShelfTime=o.value.shelfTimeArr[1]),n==null||n.post(C,m).then(f=>{var w;d("success"),(w=b.value)==null||w.resetFields(),_.value=!1}).finally(()=>{V.value=!1})}})}const h=e.ref([]),p=e.ref(null);function g(r,t){h.value=r,p.value=null,_.value=!0,e.nextTick(()=>{t&&(p.value=t.id,Object.assign(o.value,t),t.shelfTime&&t.offShelfTime&&(o.value.shelfTimeArr=[new Date(t.shelfTime),new Date(t.offShelfTime)]))})}function x(){var r;(r=b.value)==null||r.resetFields()}return i({show:g}),(r,t)=>{const C=e.resolveComponent("el-option"),m=e.resolveComponent("el-select"),f=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-input"),T=e.resolveComponent("pg-upload"),a=e.resolveComponent("el-collapse-transition"),E=e.resolveComponent("el-date-picker"),k=e.resolveComponent("el-form"),c=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(D,{modelValue:_.value,"onUpdate:modelValue":t[9]||(t[9]=s=>_.value=s),width:"400",onClose:x},{footer:e.withCtx(()=>[e.createVNode(c,{type:"primary",disabled:V.value,loading:V.value,onClick:u},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(k,{ref_key:"form",ref:b,rules:N.value,model:o.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(f,{label:"场景代码",prop:"sceneCode"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:o.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=s=>o.value.sceneCode=s),placeholder:"请输入/选择场景代码","allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,s=>(e.openBlock(),e.createBlock(C,{key:s,value:s,label:s},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(f,{label:"入口名称",prop:"name"},{default:e.withCtx(()=>[e.createVNode(w,{placeholder:"请输入入口名称",modelValue:o.value.name,"onUpdate:modelValue":t[1]||(t[1]=s=>o.value.name=s)},null,8,["modelValue"])]),_:1}),e.createVNode(f,{label:"图标类型",prop:"iconType"},{default:e.withCtx(()=>[e.createVNode(m,{placeholder:"请选择图标类型",modelValue:o.value.iconType,"onUpdate:modelValue":t[2]||(t[2]=s=>o.value.iconType=s)},{default:e.withCtx(()=>[e.createVNode(C,{value:"NAME",label:"图标名称"}),e.createVNode(C,{value:"URL",label:"图标URL"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(f,{label:"图标",prop:"icon"},{default:e.withCtx(()=>[o.value.iconType=="URL"?(e.openBlock(),e.createBlock(T,{accept:"jpg,jpeg,png,gif",modelValue:o.value.icon,"onUpdate:modelValue":t[3]||(t[3]=s=>o.value.icon=s),key:`img_${p.value}`,"list-type":"picture-card","upload-type":"entrance",limit:1},null,8,["modelValue"])):(e.openBlock(),e.createBlock(w,{key:1,modelValue:o.value.icon,"onUpdate:modelValue":t[4]||(t[4]=s=>o.value.icon=s),placeholder:"请输入图标名称",clearable:""},null,8,["modelValue"]))]),_:1}),e.createVNode(f,{label:"点击事件类型",prop:"clickEventType"},{default:e.withCtx(()=>[e.createVNode(m,{placeholder:"请选择点击事件类型",modelValue:o.value.clickEventType,"onUpdate:modelValue":t[5]||(t[5]=s=>o.value.clickEventType=s)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R),(s,B)=>(e.openBlock(),e.createBlock(C,{value:B,label:s.name},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(a,null,{default:e.withCtx(()=>[["OPEN_WEB","OPEN_VIEW","API_REQUEST"].indexOf(o.value.clickEventType)>=0?(e.openBlock(),e.createBlock(f,{key:0,label:"目标地址",prop:"targetPath"},{default:e.withCtx(()=>[e.createVNode(w,{placeholder:"请输入目标地址",modelValue:o.value.targetPath,"onUpdate:modelValue":t[6]||(t[6]=s=>o.value.targetPath=s)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(f,{label:"目标地址参数",prop:"params"},{default:e.withCtx(()=>[e.createVNode(w,{type:"textarea",modelValue:o.value.params,"onUpdate:modelValue":t[7]||(t[7]=s=>o.value.params=s),placeholder:"请输入JSON格式的参数对象"},null,8,["modelValue"])]),_:1}),e.createVNode(f,{label:"生效时段",prop:"shelfTimeArr"},{default:e.withCtx(()=>[e.createVNode(E,{type:"datetimerange",modelValue:o.value.shelfTimeArr,"onUpdate:modelValue":t[8]||(t[8]=s=>o.value.shelfTimeArr=s),"start-placeholder":"上架时间","end-placeholder":"下架时间","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,1,1,23,59,59)]},null,8,["modelValue","default-time"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["modelValue"])}}}),Q=e.defineComponent({__name:"EntranceListView",setup(S){const i=e.inject("http"),d=e.ref({sceneCode:null,status:null}),_=e.ref([]);function o(){i==null||i.get("/api/app/entrance/all-scene-code").then(r=>{_.value=r.data})}const N=e.ref(),V=e.ref(!1);function n(){V.value=!!d.value.sceneCode,N.value.search()}function b(r){i==null||i.post(`/api/app/entrance/${r}/publish`).then(t=>{n()})}function u(r){i==null||i.post(`/api/app/entrance/${r}/off-shelf`).then(t=>{n()})}function h(r,t){i==null||i.post(`/api/app/entrance/${r}/move-up`).then(C=>{d.value.sceneCode=t,n()})}function p(r,t){i==null||i.post(`/api/app/entrance/${r}/move-down`).then(C=>{d.value.sceneCode=t,n()})}e.onBeforeMount(()=>{o()});const g=e.ref();function x(r){g.value.show(_.value,r)}return(r,t)=>{const C=e.resolveComponent("el-option"),m=e.resolveComponent("el-select"),f=e.resolveComponent("el-button"),w=e.resolveComponent("el-space"),T=e.resolveComponent("el-card"),a=e.resolveComponent("el-table-column"),E=e.resolveComponent("el-image"),k=e.resolveComponent("el-descriptions-item"),c=e.resolveComponent("el-descriptions"),D=e.resolveComponent("el-popover"),s=e.resolveComponent("el-tag"),B=e.resolveComponent("el-popconfirm"),A=e.resolveComponent("pg-table"),F=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(m,{modelValue:d.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=l=>d.value.sceneCode=l),placeholder:"场景代码",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,U)=>(e.openBlock(),e.createBlock(C,{label:l,value:l,key:`sc_con_${U}`},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(m,{modelValue:d.value.status,"onUpdate:modelValue":t[1]||(t[1]=l=>d.value.status=l),placeholder:"状态",clearable:"",style:{width:"150px"}},{default:e.withCtx(()=>[e.createVNode(C,{label:"草稿",value:"DRAFT"}),e.createVNode(C,{label:"已发布",value:"PUBLISH"}),e.createVNode(C,{label:"已下架",value:"OFF_SHELF"})]),_:1},8,["modelValue"]),e.createVNode(f,{type:"primary",icon:"search",onClick:n},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(f,{icon:"plus",onClick:t[2]||(t[2]=l=>x())},{default:e.withCtx(()=>[e.createTextVNode("创建入口")]),_:1})),[[F,"CREATE_ENTRANCE"]])]),_:1})]),_:1}),e.createVNode(A,{ref_key:"table",ref:N,"data-url":"/api/app/entrance/page",onRowDbClick:t[3]||(t[3]=l=>r.$hasPer("UPDATE_ENTRANCE")?x(l):null),condition:d.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[V.value&&r.$hasPer("ENTRANCE_SEQ_MOVE_UP_DOWN")?(e.openBlock(),e.createBlock(a,{key:0,align:"center",width:"80"},{default:e.withCtx(({row:l})=>[e.createVNode(w,{direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(f,{icon:"ArrowUpBold",onClick:U=>h(l.id,l.sceneCode)},null,8,["onClick"]),e.createVNode(f,{icon:"ArrowDownBold",onClick:U=>p(l.id,l.sceneCode)},null,8,["onClick"])]),_:2},1024)]),_:1})):e.createCommentVNode("",!0),e.createVNode(a,{label:"场景代码",prop:"sceneCode",width:"150"}),e.createVNode(a,{label:"图标",width:"200",align:"center"},{default:e.withCtx(({row:l})=>[l.iconType=="URL"?(e.openBlock(),e.createBlock(E,{key:0,src:l.icon,style:{"max-width":"200px"},"preview-src-list":[l.icon],"preview-teleported":""},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.icon),1)],64))]),_:1}),e.createVNode(a,{label:"点击事件类型",prop:"clickEventType",width:"120"},{default:e.withCtx(({row:l})=>[e.createTextVNode(e.toDisplayString(l.clickEventType?e.unref(R)[l.clickEventType].name:""),1)]),_:1}),e.createVNode(a,{label:"目标地址",prop:"targetPath","show-overflow-tooltip":""}),e.createVNode(a,{label:"目标参数",width:"120","show-overflow-tooltip":""},{default:e.withCtx(({row:l})=>[l.params?(e.openBlock(),e.createBlock(D,{key:0,trigger:"hover",width:"350"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.params.substring(0,100))+e.toDisplayString(l.params.length>100?"...":""),1)]),default:e.withCtx(()=>[l.params.startsWith("{")?(e.openBlock(),e.createBlock(c,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(l.params),(U,L)=>(e.openBlock(),e.createBlock(k,{label:L,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.params),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(a,{label:"上架时间",prop:"shelfTime",width:"180",align:"center"}),e.createVNode(a,{label:"下架时间",prop:"offShelfTime",width:"180",align:"center"}),e.createVNode(a,{label:"状态",align:"center",width:"88"},{default:e.withCtx(({row:l})=>[l.status=="DRAFT"?(e.openBlock(),e.createBlock(s,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("草稿")]),_:1})):e.createCommentVNode("",!0),l.status=="PUBLISH"?(e.openBlock(),e.createBlock(s,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("已发布")]),_:1})):e.createCommentVNode("",!0),l.status=="OFF_SHELF"?(e.openBlock(),e.createBlock(s,{key:2,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("已下架")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(a,{align:"center",width:"90"},{default:e.withCtx(({row:l})=>[["DRAFT","OFF_SHELF"].indexOf(l.status)>=0&&r.$hasPer("ENTRANCE_PUBLISH")?(e.openBlock(),e.createBlock(B,{key:0,onConfirm:U=>b(l.id),title:`确定要${l.status=="DRAFT"?"发布":"上架"}该入口吗?`},{reference:e.withCtx(()=>[e.createVNode(f,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.status=="DRAFT"?"发布":"上架"),1)]),_:2},1024)]),_:2},1032,["onConfirm","title"])):e.createCommentVNode("",!0),l.status=="PUBLISH"&&r.$hasPer("ENTRANCE_OFF_SHELF")?(e.openBlock(),e.createBlock(B,{key:1,onConfirm:U=>u(l.id),title:"确定要[下架]该入口吗?"},{reference:e.withCtx(()=>[e.createVNode(f,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(z,{ref_key:"entranceDialog",ref:g,onSuccess:n},null,512)],64)}}}),O=J.defineStore("pg-app-util-core-config-store",()=>{const S=[];return{defaultTesterUserIds:e.computed(()=>S)}}),Ne="",X=(S,i)=>{const d=S.__vccOpts||S;for(const[_,o]of i)d[_]=o;return d},G={class:"dialog-footer"},Y=X({__name:"VersionDialog",emits:["success"],setup(S,{expose:i,emit:d}){const _=e.inject("http"),o=e.ref("CREATE"),N=e.computed(()=>o.value==="EDIT"),V=e.ref(!1),n=e.ref({appCode:null,platform:"ANDROID",versionName:null,versionNumber:null,category:"SELF",isForce:!1,isHot:!0,activationTime:null,pkgUrl:null,wgtUrl:null,description:null,testerIdJsonStr:""}),b=e.ref(),u=O();e.onMounted(()=>{u.defaultTesterUserIds.length&&(n.value.testerIdJsonStr=u.defaultTesterUserIds.join(","))});let h=null;const p=e.ref(!1);async function g(k){V.value=!0,o.value=k?"EDIT":"CREATE",h=k,k&&(p.value=k.status=="RELEASE",console.log(k.status),Object.assign(n.value,k),k.testerIdJsonStr&&(n.value.testerIdJsonStr=JSON.parse(k.testerIdJsonStr).join(",")),b.value=k.isHot?k.wgtUrl:k.pkgUrl),await E(),k&&f(k.appCode)}function x(k){n.value.isHot?n.value.wgtUrl=k.fileUrl:n.value.pkgUrl=k.fileUrl}function r(){n.value={appCode:null,platform:"ANDROID",versionName:null,category:"SELF",isForce:!1,isHot:!0,activationTime:null,pkgUrl:null,wgtUrl:null,testerIdJsonStr:""}}function t(){V.value=!V.value}const C=e.ref();function m(){C.value.validate(k=>{k&&(N.value?_.post(`/api/app/version/${h.id}`,{...n.value,testerIdJsonStr:n.value.testerIdJsonStr?JSON.stringify(JSON.parse("["+n.value.testerIdJsonStr+"]")):null}).then(c=>{t(),d("success")}):_.post("/api/app/version",{...n.value,testerIdJsonStr:n.value.testerIdJsonStr?JSON.stringify(JSON.parse("["+n.value.testerIdJsonStr+"]")):null}).then(c=>{t(),d("success")}))})}function f(k){a.value.find(D=>D.code===k).platform=="IOS"?n.value.platform="IOS":n.value.platform="ANDROID"}const w=e.ref();function T(){n.value.wgtUrl=null,n.value.pkgUrl=null,w.value&&w.value.clearFileList()}const a=e.ref([]);async function E(){if(a.value.length<=0){const k=await _.get("/api/app/all");a.value=k.data}}return i({show:g}),(k,c)=>{const D=e.resolveComponent("el-option"),s=e.resolveComponent("el-select"),B=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-col"),F=e.resolveComponent("el-row"),l=e.resolveComponent("el-input"),U=e.resolveComponent("el-date-picker"),L=e.resolveComponent("el-checkbox"),Ce=e.resolveComponent("pg-upload"),Ve=e.resolveComponent("el-form"),H=e.resolveComponent("el-button"),he=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(he,{title:e.unref(N)?"编辑App版本":"发布App版本",modelValue:V.value,"onUpdate:modelValue":c[10]||(c[10]=y=>V.value=y),width:"700px",onClosed:r},{footer:e.withCtx(()=>[e.createElementVNode("div",G,[e.createVNode(H,{onClick:t},{default:e.withCtx(()=>[e.createTextVNode("取 消")]),_:1}),e.createVNode(H,{type:"primary",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)?"提 交":"创 建"),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(Ve,{model:n.value,ref_key:"publishModalForm",ref:C},{default:e.withCtx(()=>[e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(A,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:"应用","label-width":"100px",prop:"appCode",rules:[{required:!0,message:"请选择应用",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.value.appCode,"onUpdate:modelValue":c[0]||(c[0]=y=>n.value.appCode=y),disabled:e.unref(N)&&p.value,placeholder:"请选择要发布的平台",style:{width:"100%"},onChange:f},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,y=>(e.openBlock(),e.createBlock(D,{key:y.code,label:y.name,value:y.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(A,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"版本名称","label-width":"100px",prop:"versionName",rules:[{required:!0,message:"请输入版本名称",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:n.value.versionName,"onUpdate:modelValue":c[1]||(c[1]=y=>n.value.versionName=y),disabled:e.unref(N)&&p.value,placeholder:"例: 1.1.2"},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e.createVNode(A,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"版本编号","label-width":"100px",prop:"versionNumber",rules:[{required:!0,message:"请输入版本编号",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:n.value.versionNumber,"onUpdate:modelValue":c[2]||(c[2]=y=>n.value.versionNumber=y),disabled:e.unref(N)&&p.value,type:"number",min:"1",placeholder:"例: 112"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(A,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"启用时间","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:n.value.activationTime,"onUpdate:modelValue":c[3]||(c[3]=y=>n.value.activationTime=y),type:"datetime",placeholder:"选择启用时间",disabled:e.unref(N)&&p.value},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(A,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"是否热更新","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:n.value.isHot,"onUpdate:modelValue":c[4]||(c[4]=y=>n.value.isHot=y),onChange:T,disabled:e.unref(N)&&p.value},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e.createVNode(A,{span:12},{default:e.withCtx(()=>[e.createVNode(B,{label:"是否强制","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:n.value.isForce,"onUpdate:modelValue":c[5]||(c[5]=y=>n.value.isForce=y),placeholder:"请选择是否强制",disabled:e.unref(N)&&p.value},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),n.value.category=="APP_STORE"?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[e.createVNode(A,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:"市场地址","label-width":"100px",prop:"pkgUrl",rules:[{required:!0,message:"应用市场地址",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:n.value.pkgUrl,"onUpdate:modelValue":c[6]||(c[6]=y=>n.value.pkgUrl=y),placeholder:"应用市场地址"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(A,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:"版本描述","label-width":"100px",prop:"description",rules:[{required:!0,message:"请输入版本描述",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(l,{type:"textarea",modelValue:n.value.description,"onUpdate:modelValue":c[7]||(c[7]=y=>n.value.description=y),autosize:{minRows:4},placeholder:"请输入版本描述"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.unref(N)&&p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F,{key:1},{default:e.withCtx(()=>[e.createVNode(A,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:"测试用户","label-width":"100px",prop:"testerIdJsonStr"},{default:e.withCtx(()=>[e.createVNode(l,{type:"textarea",modelValue:n.value.testerIdJsonStr,"onUpdate:modelValue":c[8]||(c[8]=y=>n.value.testerIdJsonStr=y),autosize:{minRows:4},placeholder:"请输入测试用户ID。 例子: 10000, 100202, 100203"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})),n.value.platform=="ANDROID"||n.value.platform=="IOS"&&n.value.isHot?(e.openBlock(),e.createBlock(F,{key:2},{default:e.withCtx(()=>[e.createVNode(A,{span:24},{default:e.withCtx(()=>[e.createVNode(B,{label:n.value.isHot?"上传更新包":"上传安装包","label-width":"100px",rules:[{required:!0,message:"请上传更新包",trigger:"blur"}]},{default:e.withCtx(()=>[e.createVNode(Ce,{ref_key:"appPkgUploader",ref:w,modelValue:b.value,"onUpdate:modelValue":c[9]||(c[9]=y=>b.value=y),drag:!0,multiple:!1,tips:"热更新下只能上传wgt格式的文件,非热更新下只能上传apk格式的文件",autoUpload:!0,uploadType:"appPkg",accept:n.value.isHot?".wgt":"application/vnd.android.package-archive",disabled:e.unref(N)&&p.value,fileSizeInKb:1024*400,onOnSuccess:x},null,8,["modelValue","accept","disabled"])]),_:1},8,["label"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["title","modelValue"])}}},[["__scopeId","data-v-fc54e5c7"]]),K={__name:"VersionListView",setup(S){const i=e.ref({platform:null,isHot:null,status:null}),d=e.inject("http"),_=e.ref();function o(){_.value.search()}const N=e.ref();function V(u){N.value.show(u)}async function n(u){await d.post(`/api/app/version/${u}/publish`),o(),$.ElMessage.success("发布成功")}async function b(u){await d.post(`/api/app/version/${u}/offline`),o(),$.ElMessage.success("下架成功")}return(u,h)=>{const p=e.resolveComponent("el-option"),g=e.resolveComponent("el-select"),x=e.resolveComponent("el-button"),r=e.resolveComponent("el-space"),t=e.resolveComponent("el-card"),C=e.resolveComponent("el-table-column"),m=e.resolveComponent("el-tag"),f=e.resolveComponent("el-popconfirm"),w=e.resolveComponent("pg-table"),T=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(t,null,{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(g,{modelValue:i.value.isHot,"onUpdate:modelValue":h[0]||(h[0]=a=>i.value.isHot=a),placeholder:"热更新/整包更新",style:{width:"180px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"热更新",value:"true"}),e.createVNode(p,{label:"整包更新",value:"false"})]),_:1},8,["modelValue"]),e.createVNode(g,{modelValue:i.value.status,"onUpdate:modelValue":h[1]||(h[1]=a=>i.value.status=a),placeholder:"状态",style:{width:"120px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"测试",value:"TEST"}),e.createVNode(p,{label:"发布",value:"RELEASE"}),e.createVNode(p,{label:"下架",value:"OFFLINE"})]),_:1},8,["modelValue"]),e.createVNode(x,{type:"primary",icon:"search",onClick:o},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(x,{icon:"plus",onClick:h[2]||(h[2]=a=>V())},{default:e.withCtx(()=>[e.createTextVNode("新建版本")]),_:1})),[[T,"CREATE_BANNER"]])]),_:1})]),_:1}),e.createVNode(w,{ref_key:"table",ref:_,"data-url":"/api/app/version/page-search",onRowDbClick:h[3]||(h[3]=a=>V(a)),condition:i.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[e.createVNode(C,{label:"ID",prop:"id",align:"center",width:"60px"}),e.createVNode(C,{label:"应用",prop:"appName",align:"center",width:"120px","show-overflow-tooltip":""}),e.createVNode(C,{label:"应用平台",prop:"appPlatform",align:"center",width:"100px","show-overflow-tooltip":""}),e.createVNode(C,{label:"版本名称",prop:"versionName",align:"center",width:"90","show-overflow-tooltip":""}),e.createVNode(C,{label:"版本编号",prop:"versionNumber",align:"center",width:"90","show-overflow-tooltip":""}),e.createVNode(C,{label:"强制更新",prop:"isForce",align:"center",width:"90","show-overflow-tooltip":""},{default:e.withCtx(({row:a})=>[a.isForce?(e.openBlock(),e.createBlock(m,{key:0,type:"warning",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1})):(e.openBlock(),e.createBlock(m,{key:1,type:"primary",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1}))]),_:1}),e.createVNode(C,{label:"整包更新",prop:"isHot",align:"center",width:"90","show-overflow-tooltip":""},{default:e.withCtx(({row:a})=>[a.isHot?(e.openBlock(),e.createBlock(m,{key:0,type:"warning",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1})):(e.openBlock(),e.createBlock(m,{key:1,type:"primary",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1}))]),_:1}),e.createVNode(C,{label:"启用时间",width:"150px",prop:"activationTime",align:"center","show-overflow-tooltip":""}),e.createVNode(C,{label:"状态",width:"100",align:"center"},{default:e.withCtx(({row:a})=>[e.createVNode(m,{type:a.status=="RELEASE"?"success":a.status=="OFFLINE"?"danger":"warning"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.status=="RELEASE"?"发布":a.status=="OFFLINE"?"下线":"测试"),1)]),_:2},1032,["type"])]),_:1}),e.createVNode(C,{label:"安装包/更新包地址",prop:"pkgUrl",align:"center","show-overflow-tooltip":""},{default:e.withCtx(({row:a})=>[e.createTextVNode(e.toDisplayString(a.isHot?a.wgtUrl:a.pkgUrl),1)]),_:1}),e.createVNode(C,{label:"操作",align:"center",width:"160px"},{default:e.withCtx(({row:a})=>[a.status=="RELEASE"?(e.openBlock(),e.createBlock(f,{key:0,title:`确定下架版本[${a.versionName}]吗?`,onConfirm:E=>b(a.id)},{reference:e.withCtx(()=>[e.createVNode(x,{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["title","onConfirm"])):e.createCommentVNode("",!0),a.status=="TEST"||a.status=="OFFLINE"?(e.openBlock(),e.createBlock(f,{key:1,title:"是否确定发布该版本?",onConfirm:E=>n(a.id)},{reference:e.withCtx(()=>[e.createVNode(x,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode("发布")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(Y,{ref_key:"versionDiloag",ref:N,onSuccess:o},null,512)],64)}}},Z={style:{display:"flex","flex-direction":"column"}},v={style:{display:"flex",gap:"5px","margin-top":"10px"}},ee={__name:"FeedbackDialog",emits:["success"],setup(S,{expose:i,emit:d}){const _=e.inject("http"),o=e.ref(!1),N=e.ref(null),V=e.ref({replyContent:null}),n={replyContent:{required:!0,message:"请输入回复内容"}};function b(g){N.value=g,V.value.replyContent=g.replyContent,o.value=!0}const u=e.ref();function h(){var g;(g=u.value)==null||g.validate(x=>{x&&_.post(`/api/feedback/${N.value.id}/reply`,{content:V.value.replyContent}).then(r=>{var t;d("success"),(t=u.value)==null||t.resetFields(),o.value=!1})})}function p(){V.value.replyContent=null}return i({show:b}),(g,x)=>{const r=e.resolveComponent("el-image"),t=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-input"),m=e.resolveComponent("el-form"),f=e.resolveComponent("el-button"),w=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(w,{title:"回复",modelValue:o.value,"onUpdate:modelValue":x[1]||(x[1]=T=>o.value=T),width:"400",onClose:p},{footer:e.withCtx(()=>[e.createVNode(f,{type:"primary",disabled:g.handling,loading:g.handling,onClick:h},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(m,{ref_key:"form",ref:u,rules:n,model:V.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(t,{label:"反馈内容"},{default:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createTextVNode(e.toDisplayString(N.value.content)+" ",1),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value.images,(T,a)=>(e.openBlock(),e.createBlock(r,{key:a,src:T,"preview-teleported":"","preview-src-list":N.value.images,style:{width:"80px"}},null,8,["src","preview-src-list"]))),128))])])]),_:1}),e.createVNode(t,{label:"回复内容",prop:"replyContent"},{default:e.withCtx(()=>[e.createVNode(C,{type:"textarea",modelValue:V.value.replyContent,"onUpdate:modelValue":x[0]||(x[0]=T=>V.value.replyContent=T),placeholder:"请输入要回复的内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},te=e.createElementVNode("br",null,null,-1),le=e.createElementVNode("br",null,null,-1),oe=e.createElementVNode("br",null,null,-1),ae=e.createElementVNode("br",null,null,-1),ne={style:{display:"flex","flex-direction":"column"}},re={style:{display:"flex",gap:"3px","margin-top":"5px"}},ie=e.createElementVNode("br",null,null,-1),ce={__name:"FeedbackListView",setup(S){const i={WAITING_REPLY:{label:"待回复",tagType:"warning"},COMPLETED:{label:"已完成",tagType:"success"}},d=e.ref({userId:null,status:null}),_=e.ref();function o(){_.value.search()}const N=e.ref();function V(u){N.value.show(u)}const n=e.ref();function b(u){n.value.show(u)}return(u,h)=>{const p=e.resolveComponent("pg-user-selector"),g=e.resolveComponent("el-option"),x=e.resolveComponent("el-select"),r=e.resolveComponent("el-button"),t=e.resolveComponent("el-space"),C=e.resolveComponent("el-card"),m=e.resolveComponent("el-table-column"),f=e.resolveComponent("el-link"),w=e.resolveComponent("el-avatar"),T=e.resolveComponent("el-image"),a=e.resolveComponent("el-tag"),E=e.resolveComponent("pg-table"),k=e.resolveComponent("PgUserDetailDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(C,null,{default:e.withCtx(()=>[e.createVNode(t,null,{default:e.withCtx(()=>[e.createVNode(p,{modelValue:d.value.userId,"onUpdate:modelValue":h[0]||(h[0]=c=>d.value.userId=c),placeholder:"搜索用户",clearable:"",style:{width:"250px"}},null,8,["modelValue"]),e.createVNode(x,{modelValue:d.value.status,"onUpdate:modelValue":h[1]||(h[1]=c=>d.value.status=c),placeholder:"状态",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,(c,D)=>e.createVNode(g,{label:c.label,value:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",icon:"search",onClick:o},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1})]),_:1})]),_:1}),e.createVNode(E,{ref_key:"table",ref:_,style:{"margin-top":"10px"},"data-url":"/api/feedback/page-search",condition:d.value},{default:e.withCtx(()=>[e.createVNode(m,{label:"ID",prop:"id",width:"80",align:"center"}),e.createVNode(m,{label:"用户信息",width:"200",align:"center"},{default:e.withCtx(({row:c})=>[e.createVNode(f,{type:"primary",onClick:D=>b(c.userId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.userId),1)]),_:2},1032,["onClick"]),te,e.createVNode(w,{src:c.avatar},null,8,["src"]),le,e.createTextVNode(" "+e.toDisplayString(c.nickname),1)]),_:1}),e.createVNode(m,{label:"应用",width:"120"},{default:e.withCtx(({row:c})=>[e.createTextVNode(e.toDisplayString(c.appName),1),oe,e.createTextVNode(" "+e.toDisplayString(c.frontAppVersionName),1),ae,e.createTextVNode(" "+e.toDisplayString(c.frontAppVersionNumber),1)]),_:1}),e.createVNode(m,{label:"反馈内容",prop:"content"},{default:e.withCtx(({row:c})=>[e.createElementVNode("div",ne,[e.createTextVNode(e.toDisplayString(c.content)+" ",1),e.createElementVNode("div",re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.images,(D,s)=>(e.openBlock(),e.createBlock(T,{key:s,src:D,style:{width:"80px"},"preview-teleported":"","preview-src-list":c.images},null,8,["src","preview-src-list"]))),128))])])]),_:1}),e.createVNode(m,{label:"状态",width:"100",align:"center"},{default:e.withCtx(({row:c})=>[e.createVNode(a,{type:i[c.status].tagType},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i[c.status].label),1)]),_:2},1032,["type"])]),_:1}),e.createVNode(m,{label:"回复内容",prop:"replyContent"}),e.createVNode(m,{label:"提交/回复时间",width:"180",align:"center"},{default:e.withCtx(({row:c})=>[e.createTextVNode(e.toDisplayString(c.createdTime),1),ie,e.createTextVNode(" "+e.toDisplayString(c.replyTime??"/"),1)]),_:1}),e.createVNode(m,{label:"操作",width:"120",align:"center"},{default:e.withCtx(({row:c})=>[e.createVNode(r,{onClick:D=>V(c),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.status=="WAITING_REPLY"?"回复":"修改回复"),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["condition"]),e.createVNode(ee,{ref_key:"feedbackDialog",ref:N,onSuccess:o},null,512),e.createVNode(k,{ref_key:"userDetailDialog",ref:n},null,512)],64)}}},se={__name:"PromotionMediaTextDialog",emits:["onSuccess"],setup(S,{expose:i,emit:d}){const _=e.inject("http"),o=e.ref(!1),N=e.ref(null),V=e.ref({content:null,images:null});function n(h,p,g){N.value=h,V.value.content=p,V.value.images=g,o.value=!0}const b=e.ref();function u(){b.value.validate(async h=>{h&&(N.value?await _.post(`/api/promotion-media/${N.value}`,{content:V.value.content,images:V.value.images}):await _.post("/api/promotion-media",{type:"TEXT",content:V.value.content,images:V.value.images}),$.ElMessage.success("保存成功"),o.value=!1,d("onSuccess"))})}return i({show:n}),(h,p)=>{const g=e.resolveComponent("el-input"),x=e.resolveComponent("el-form-item"),r=e.resolveComponent("pg-upload"),t=e.resolveComponent("el-form"),C=e.resolveComponent("el-button"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(m,{modelValue:o.value,"onUpdate:modelValue":p[2]||(p[2]=f=>o.value=f),title:N.value?"编辑推广文案":"创建推广文案",width:"600px","append-to-body":"",onClosed:h.onClose},{footer:e.withCtx(()=>[e.createVNode(C,{type:"primary",size:"mini",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})]),default:e.withCtx(()=>[e.createVNode(t,{ref_key:"formEle",ref:b,model:V.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(x,{label:"推广文案",prop:"content",rules:[{required:!0,message:"请输入文案"}]},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:V.value.content,"onUpdate:modelValue":p[0]||(p[0]=f=>V.value.content=f),type:"textarea",placeholder:"请输入推广文案",rows:5},null,8,["modelValue"])]),_:1}),e.createVNode(x,{label:"图片",prop:"imagesJson"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(r,{accept:"jpg,jpeg,png",modelValue:V.value.images,"onUpdate:modelValue":p[1]||(p[1]=f=>V.value.images=f),key:`img_${N.value}`,"list-type":"picture-card","upload-type":"promotion-media",limit:6},null,8,["modelValue"]))]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title","onClosed"])}}},de={key:1,style:{display:"flex","flex-direction":"column",gap:"5px"}},pe={key:0,style:{display:"flex",gap:"5px"}},me={__name:"PromotionMediaList",setup(S){const i=e.inject("http"),d=e.ref({type:"TEXT",status:"VALID"}),_=e.ref();async function o(){const h=await i.get("/api/promotion-media",d.value);h.data.forEach(p=>{p.images&&(p.images=JSON.parse(p.images))}),_.value.setData(h.data)}const N=e.ref();function V(){N.value.show(null,null)}function n(h){h.type==="TEXT"&&N.value.show(h.id,h.content,h.images)}async function b(h){await i.post(`/api/promotion-media/${h}/invalid`),await o(),$.ElMessage.success("操作成功")}async function u(h){await i.post(`/api/promotion-media/${h}/valid`),await o(),$.ElMessage.success("操作成功")}return e.onMounted(()=>{o()}),(h,p)=>{const g=e.resolveComponent("el-option"),x=e.resolveComponent("el-select"),r=e.resolveComponent("el-button"),t=e.resolveComponent("el-space"),C=e.resolveComponent("el-card"),m=e.resolveComponent("el-table-column"),f=e.resolveComponent("el-image"),w=e.resolveComponent("el-tag"),T=e.resolveComponent("pg-table");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(C,null,{default:e.withCtx(()=>[e.createVNode(t,null,{default:e.withCtx(()=>[e.createVNode(x,{modelValue:d.value.type,"onUpdate:modelValue":p[0]||(p[0]=a=>d.value.type=a),placeholder:"媒体类型",style:{width:"130px"}},{default:e.withCtx(()=>[e.createVNode(g,{value:"TEXT",label:"推广文案"},{default:e.withCtx(()=>[e.createTextVNode("推广文案")]),_:1}),e.createVNode(g,{value:"POSTER",label:"推广海报"},{default:e.withCtx(()=>[e.createTextVNode("推广海报")]),_:1})]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:d.value.status,"onUpdate:modelValue":p[1]||(p[1]=a=>d.value.status=a),placeholder:"状态",clearable:"",style:{width:"130px","margin-left":"10px"}},{default:e.withCtx(()=>[e.createVNode(g,{value:"VALID",label:"生效"},{default:e.withCtx(()=>[e.createTextVNode("生效")]),_:1}),e.createVNode(g,{value:"INVALID",label:"失效"},{default:e.withCtx(()=>[e.createTextVNode("失效")]),_:1})]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",style:{"margin-left":"10px"},onClick:o},{default:e.withCtx(()=>[e.createTextVNode("查询")]),_:1}),e.createVNode(r,{type:"success",icon:"Document",onClick:V},{default:e.withCtx(()=>[e.createTextVNode("创建媒体")]),_:1})]),_:1})]),_:1}),e.createVNode(T,{ref_key:"table",ref:_,"fetch-data":!1,pagination:!1,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[e.createVNode(m,{prop:"id",label:"ID",width:"100",align:"center"}),e.createVNode(m,{label:"内容"},{default:e.withCtx(({row:a})=>[a.type=="POSTER"?(e.openBlock(),e.createBlock(f,{key:0,src:a.content},null,8,["src"])):(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("pre",null,e.toDisplayString(a.content),1),a.images?(e.openBlock(),e.createElementBlock("div",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.images,E=>(e.openBlock(),e.createBlock(f,{style:{width:"100px",height:"100px"},key:E,src:E,"preview-src-list":a.images,fit:"cover"},null,8,["src","preview-src-list"]))),128))])):e.createCommentVNode("",!0)]))]),_:1}),e.createVNode(m,{prop:"params",label:"参数",width:"150",align:"center"}),e.createVNode(m,{label:"状态",width:"80",align:"center"},{default:e.withCtx(({row:a})=>[a.status=="VALID"?(e.openBlock(),e.createBlock(w,{key:0,type:"success",size:"mini"},{default:e.withCtx(()=>[e.createTextVNode("生效")]),_:1})):a.status=="INVALID"?(e.openBlock(),e.createBlock(w,{key:1,type:"warning",size:"mini"},{default:e.withCtx(()=>[e.createTextVNode("失效")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(m,{label:"操作",width:"150",align:"center"},{default:e.withCtx(({row:a})=>[e.createVNode(r,{size:"mini",type:"primary",onClick:E=>n(a)},{default:e.withCtx(()=>[e.createTextVNode("编辑")]),_:2},1032,["onClick"]),a.status=="VALID"?(e.openBlock(),e.createBlock(r,{key:0,size:"mini",type:"warning",onClick:E=>b(a.id)},{default:e.withCtx(()=>[e.createTextVNode("失效")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),a.status=="INVALID"?(e.openBlock(),e.createBlock(r,{key:1,size:"mini",type:"success",onClick:E=>u(a.id)},{default:e.withCtx(()=>[e.createTextVNode("生效")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},512),e.createVNode(se,{ref_key:"promotionMediaTextDialog",ref:N,onOnSuccess:o},null,512)],64)}}},fe={install:(S,i)=>{let d=i.router,_=d.getRoutes().find(o=>o.path=="/");_&&_.meta&&(d.addRoute({path:"/app/banner",name:"AppBanner",redirect:"/app/banner/list",component:_.meta.commonLayout,children:[{path:"list",name:"BannerListView",component:W}]}),d.addRoute({path:"/app/entrance",name:"AppEntrance",redirect:"/app/entrance/list",component:_.meta.commonLayout,children:[{path:"list",name:"EntranceListView",component:Q}]}),d.addRoute({path:"/app/version",name:"AppVersion",redirect:"/app/version/list",component:_.meta.commonLayout,children:[{path:"list",name:"AppVersionListView",component:K}]}),d.addRoute({path:"/app/feedback",name:"Feedback",redirect:"/app/feedback/list",component:_.meta.commonLayout,children:[{path:"list",name:"FeedbackListView",component:ce}]}),d.addRoute({path:"/app/promotion-media",name:"PromotionMedia",redirect:"/app/promotion-media/list",component:_.meta.commonLayout,children:[{path:"list",name:"PromotionMediaListView",component:me}]}))}},M=(S,i)=>{j.forEach(_=>S.use(_)),S.use(fe,i);const d=O();if(i.defaultTesterUserIds)for(let _ of i.defaultTesterUserIds)d.defaultTesterUserIds.push(_)},_e={install:M};I.default=_e,I.install=M,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pangu-backend-ui/apputil-core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
7
7
|
"unpkg": "index.umd.cjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"vue-router": "^4.1.6",
|
|
23
23
|
"pinia": "^2.0.28",
|
|
24
24
|
"@pangu-backend-ui/admin-core": "^0.0.5",
|
|
25
|
-
"@pangu-backend-ui/common": "^0.0.
|
|
25
|
+
"@pangu-backend-ui/common": "^0.0.33",
|
|
26
26
|
"@pangu-backend-ui/user-core": "^0.0.20"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-fc54e5c7] .pg-upload-hidden-upload{width:100%!important}
|
|
@@ -21,6 +21,8 @@ declare namespace _sfc_main {
|
|
|
21
21
|
search: () => void;
|
|
22
22
|
feedbackDialog: import("vue").Ref<any>;
|
|
23
23
|
showFeedbackDialog: (feedback: any) => void;
|
|
24
|
+
userDetailDialog: import("vue").Ref<any>;
|
|
25
|
+
showUserDetailDialog: (userId: any) => void;
|
|
24
26
|
FeedbackDialog: {
|
|
25
27
|
emits: string[];
|
|
26
28
|
setup(__props: any, { expose, emit: emits }: {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export default _sfc_main;
|
|
2
|
+
declare namespace _sfc_main {
|
|
3
|
+
function setup(__props: any, { expose }: {
|
|
4
|
+
expose: any;
|
|
5
|
+
}): {
|
|
6
|
+
http: any;
|
|
7
|
+
condition: import("vue").Ref<{
|
|
8
|
+
type: string;
|
|
9
|
+
status: string;
|
|
10
|
+
}>;
|
|
11
|
+
table: import("vue").Ref<any>;
|
|
12
|
+
getPromotionMedias: () => Promise<void>;
|
|
13
|
+
promotionMediaTextDialog: import("vue").Ref<any>;
|
|
14
|
+
showCreateTextMediaDialog: () => void;
|
|
15
|
+
edit: (row: any) => void;
|
|
16
|
+
invalidMedia: (id: any) => Promise<void>;
|
|
17
|
+
validMedia: (id: any) => Promise<void>;
|
|
18
|
+
PromotionMediaTextDialog: {
|
|
19
|
+
emits: string[];
|
|
20
|
+
setup(__props: any, { expose, emit: emits }: {
|
|
21
|
+
expose: any;
|
|
22
|
+
emit: any;
|
|
23
|
+
}): {
|
|
24
|
+
emits: any;
|
|
25
|
+
http: any;
|
|
26
|
+
visible: import("vue").Ref<boolean>;
|
|
27
|
+
id: import("vue").Ref<null>;
|
|
28
|
+
form: import("vue").Ref<{
|
|
29
|
+
content: null;
|
|
30
|
+
images: null;
|
|
31
|
+
}>;
|
|
32
|
+
show: (idProp: any, content: any, images: any) => void;
|
|
33
|
+
close: () => void;
|
|
34
|
+
formEle: import("vue").Ref<any>;
|
|
35
|
+
save: () => void;
|
|
36
|
+
inject: typeof inject;
|
|
37
|
+
ref: typeof ref;
|
|
38
|
+
readonly ElMessage: import("element-plus/es/utils").SFCInstallWithContext<import("element-plus").Message>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
inject: typeof inject;
|
|
42
|
+
onMounted: (hook: () => any, target?: import("vue").ComponentInternalInstance | null | undefined) => false | Function | undefined;
|
|
43
|
+
ref: typeof ref;
|
|
44
|
+
readonly ElMessage: import("element-plus/es/utils").SFCInstallWithContext<import("element-plus").Message>;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
import { inject } from "@vue/runtime-core";
|
|
48
|
+
import { ref } from "@vue/runtime-core";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default _sfc_main;
|
|
2
|
+
declare namespace _sfc_main {
|
|
3
|
+
const emits: string[];
|
|
4
|
+
function setup(__props: any, { expose, emit: emits }: {
|
|
5
|
+
expose: any;
|
|
6
|
+
emit: any;
|
|
7
|
+
}): {
|
|
8
|
+
emits: any;
|
|
9
|
+
http: any;
|
|
10
|
+
visible: import("vue").Ref<boolean>;
|
|
11
|
+
id: import("vue").Ref<null>;
|
|
12
|
+
form: import("vue").Ref<{
|
|
13
|
+
content: null;
|
|
14
|
+
images: null;
|
|
15
|
+
}>;
|
|
16
|
+
show: (idProp: any, content: any, images: any) => void;
|
|
17
|
+
close: () => void;
|
|
18
|
+
formEle: import("vue").Ref<any>;
|
|
19
|
+
save: () => void;
|
|
20
|
+
inject: typeof inject;
|
|
21
|
+
ref: typeof ref;
|
|
22
|
+
readonly ElMessage: import("element-plus/es/utils").SFCInstallWithContext<import("element-plus").Message>;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
import { inject } from "@vue/runtime-core";
|
|
26
|
+
import { ref } from "@vue/runtime-core";
|