1 |
- import{d as ce,b as R,r as S,aP as ne,am as oe,o as c,c as s,g as u,i as r,w as _,j as X,a,F as se,k as _e,l as Y,a2 as p,y as ie,v as L,J as de,U as pe,D as me,G as ye,s as ve,E as he,cu as fe,ac as Ve,ad as ge,_ as be,__tla as we}from"./index-b2b3c6c4.js";import ke,{__tla as Ue}from"./main-2142c07e.js";import Pe,{__tla as xe}from"./main-9ec062cd.js";import{W as Ie,__tla as Ae}from"./main-2c41dec3.js";import{u as Ee,__tla as Ke}from"./useMessage-a5edbb0f.js";import{__tla as Me}from"./TabNews-099983d7.js";import{__tla as je}from"./TabText-f0a7a63a.js";import{__tla as qe}from"./TabImage-d6d8e825.js";import{__tla as Ce}from"./useUpload-fb27bbcc.js";import{__tla as De}from"./index-341fc94c.js";import{__tla as We}from"./index-2d76a87c.js";import{__tla as ze}from"./el-image-d434829d.js";import{__tla as Be}from"./el-image-viewer-b5664270.js";import{__tla as Fe}from"./main-a3bf7529.js";import{__tla as Ge}from"./main-5cbc3cda.js";import{__tla as He}from"./index-23a6a8c6.js";import{__tla as Je}from"./index-9fa58f2e.js";import{__tla as Ne}from"./formatTime-7e07ce72.js";import{__tla as Re}from"./TabVoice-bab68bae.js";import{__tla as Se}from"./TabVideo-9ac2b7e8.js";import{__tla as Xe}from"./TabMusic-01c37607.js";let O,Ye=Promise.all([(()=>{try{return we}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Xe}catch{}})()]).then(async()=>{let V,n,g,b,w,k,U,P,x,I,A,E,K,M,j,q,C,D,W,z,B,F,G,H;V=[{value:"view",label:"\u8DF3\u8F6C\u7F51\u9875"},{value:"miniprogram",label:"\u8DF3\u8F6C\u5C0F\u7A0B\u5E8F"},{value:"click",label:"\u70B9\u51FB\u56DE\u590D"},{value:"article_view_limited",label:"\u8DF3\u8F6C\u56FE\u6587\u6D88\u606F"},{value:"scancode_push",label:"\u626B\u7801\u76F4\u63A5\u8FD4\u56DE\u7ED3\u679C"},{value:"scancode_waitmsg",label:"\u626B\u7801\u56DE\u590D"},{value:"pic_sysphoto",label:"\u7CFB\u7EDF\u62CD\u7167\u53D1\u56FE"},{value:"pic_photo_or_album",label:"\u62CD\u7167\u6216\u8005\u76F8\u518C"},{value:"pic_weixin",label:"\u5FAE\u4FE1\u76F8\u518C"},{value:"location_select",label:"\u9009\u62E9\u5730\u7406\u4F4D\u7F6E"}],n=m=>(Ve("data-v-4a32e789"),m=m(),ge(),m),g={class:"configure_page"},b={class:"delete_btn"},w=n(()=>u("span",null,"\u83DC\u5355\u540D\u79F0\uFF1A",-1)),k={key:0},U={class:"menu_content"},P=n(()=>u("span",null,"\u83DC\u5355\u6807\u8BC6\uFF1A",-1)),x={class:"menu_content"},I=n(()=>u("span",null,"\u83DC\u5355\u5185\u5BB9\uFF1A",-1)),A={key:0,class:"configur_content"},E=n(()=>u("span",null,"\u8DF3\u8F6C\u94FE\u63A5\uFF1A",-1)),K={key:1,class:"configur_content"},M={class:"applet"},j=n(()=>u("span",null,"\u5C0F\u7A0B\u5E8F\u7684 appid \uFF1A",-1)),q={class:"applet"},C=n(()=>u("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u9875\u9762\u8DEF\u5F84\uFF1A",-1)),D={class:"applet"},W=n(()=>u("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u5907\u7528\u7F51\u9875\uFF1A",-1)),z=n(()=>u("p",{class:"blue"},"tips:\u9700\u8981\u548C\u516C\u4F17\u53F7\u8FDB\u884C\u5173\u8054\u624D\u53EF\u4EE5\u628A\u5C0F\u7A0B\u5E8F\u7ED1\u5B9A\u5E26\u5FAE\u4FE1\u83DC\u5355\u4E0A\u54DF\uFF01",-1)),B={key:2,class:"configur_content"},F={key:0,class:"select-item"},G={key:1},H={key:3,class:"configur_content"},O=be(ce({__name:"MenuEditor",props:{accountId:{type:Number,required:!0},modelValue:{type:null,required:!0},isParent:{type:Boolean,required:!0}},emits:["delete","update:modelValue"],setup(m,{emit:Q}){const T=Ee(),J=m,N=Q,e=R({get:()=>J.modelValue,set(o){N("update:modelValue",o)}}),y=S(!1),h=S(!1),Z=R(()=>{var o;return!(((o=e.value.children)==null?void 0:o.length)>0)});ne(e,()=>{h.value=!1,oe(()=>{h.value=!0})});const $=o=>{const l=o.articleId,v=o.content.newsItem;v.length>1&&T.alertWarning("\u60A8\u9009\u62E9\u7684\u662F\u591A\u56FE\u6587\uFF0C\u5C06\u9ED8\u8BA4\u8DF3\u8F6C\u7B2C\u4E00\u7BC7"),y.value=!1,e.value.articleId=l,e.value.replyArticles=[],v.forEach(i=>{e.value.replyArticles.push({title:i.title,description:i.digest,picUrl:i.picUrl,url:i.url})})},ee=()=>{delete e.value.articleId,delete e.value.replyArticles};return(o,l)=>{const v=L,i=de,d=pe,ae=me,le=ye,te=L,f=ve,re=he,ue=fe;return c(),s("div",null,[u("div",g,[u("div",b,[r(i,{type:"danger",onClick:l[0]||(l[0]=t=>N("delete"))},{default:_(()=>[r(v,{icon:"ep:delete"}),X(" \u5220\u9664\u5F53\u524D\u83DC\u5355 ")]),_:1})]),u("div",null,[w,r(d,{class:"input_width",modelValue:a(e).name,"onUpdate:modelValue":l[1]||(l[1]=t=>a(e).name=t),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0",maxlength:o.isParent?4:7,clearable:""},null,8,["modelValue","maxlength"])]),a(Z)?(c(),s("div",k,[u("div",U,[P,r(d,{class:"input_width",modelValue:a(e).menuKey,"onUpdate:modelValue":l[2]||(l[2]=t=>a(e).menuKey=t),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355 KEY",clearable:""},null,8,["modelValue"])]),u("div",x,[I,r(le,{modelValue:a(e).type,"onUpdate:modelValue":l[3]||(l[3]=t=>a(e).type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9",class:"menu_option"},{default:_(()=>[(c(!0),s(se,null,_e(a(V),t=>(c(),Y(ae,{label:t.label,value:t.value,key:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a(e).type==="view"?(c(),s("div",A,[E,r(d,{class:"input_width",modelValue:a(e).url,"onUpdate:modelValue":l[4]||(l[4]=t=>a(e).url=t),placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5",clearable:""},null,8,["modelValue"])])):p("",!0),a(e).type==="miniprogram"?(c(),s("div",K,[u("div",M,[j,r(d,{class:"input_width",modelValue:a(e).miniProgramAppId,"onUpdate:modelValue":l[5]||(l[5]=t=>a(e).miniProgramAppId=t),placeholder:"\u8BF7\u8F93\u5165\u5C0F\u7A0B\u5E8F\u7684appid",clearable:""},null,8,["modelValue"])]),u("div",q,[C,r(d,{class:"input_width",modelValue:a(e).miniProgramPagePath,"onUpdate:modelValue":l[6]||(l[6]=t=>a(e).miniProgramPagePath=t),placeholder:"\u8BF7\u8F93\u5165\u5C0F\u7A0B\u5E8F\u7684\u9875\u9762\u8DEF\u5F84\uFF0C\u5982\uFF1Apages/index",clearable:""},null,8,["modelValue"])]),u("div",D,[W,r(d,{class:"input_width",modelValue:a(e).url,"onUpdate:modelValue":l[7]||(l[7]=t=>a(e).url=t),placeholder:"\u4E0D\u652F\u6301\u5C0F\u7A0B\u5E8F\u7684\u8001\u7248\u672C\u5BA2\u6237\u7AEF\u5C06\u6253\u5F00\u672C\u7F51\u9875",clearable:""},null,8,["modelValue"])]),z])):p("",!0),a(e).type==="article_view_limited"?(c(),s("div",B,[r(f,null,{default:_(()=>[a(e)&&a(e).replyArticles?(c(),s("div",F,[r(a(Pe),{articles:a(e).replyArticles},null,8,["articles"]),r(f,{class:"ope-row",justify:"center",align:"middle"},{default:_(()=>[r(i,{type:"danger",circle:"",onClick:ee},{default:_(()=>[r(te,{icon:"ep:delete"})]),_:1})]),_:1})])):(c(),s("div",G,[r(f,{justify:"center"},{default:_(()=>[r(re,{span:24,style:{"text-align":"center"}},{default:_(()=>[r(i,{type:"success",onClick:l[8]||(l[8]=t=>y.value=!0)},{default:_(()=>[X(" \u7D20\u6750\u5E93\u9009\u62E9 "),r(v,{icon:"ep:circle-check"})]),_:1})]),_:1})]),_:1})])),r(ue,{title:"\u9009\u62E9\u56FE\u6587",modelValue:a(y),"onUpdate:modelValue":l[9]||(l[9]=t=>ie(y)?y.value=t:null),width:"80%","destroy-on-close":""},{default:_(()=>[r(a(Ie),{type:"news","account-id":J.accountId,onSelectMaterial:$},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1})])):p("",!0),a(e).type==="click"||a(e).type==="scancode_waitmsg"?(c(),s("div",H,[a(h)?(c(),Y(a(ke),{key:0,modelValue:a(e).reply,"onUpdate:modelValue":l[10]||(l[10]=t=>a(e).reply=t)},null,8,["modelValue"])):p("",!0)])):p("",!0)])):p("",!0)])])}}}),[["__scopeId","data-v-4a32e789"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/menu/components/MenuEditor.vue"]])});export{Ye as __tla,O as default};
|