index-51d49f9f.js 11 KB

1
  1. /* empty css *//* empty css */import{_ as e}from"./index-3fa924ea.js";import{_ as l}from"./index.vue_vue_type_script_setup_true_lang-34597802.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as a}from"./operate.vue_vue_type_script_setup_true_lang-34a96b9a.js";import{_ as o}from"./search.vue_vue_type_script_setup_true_lang-a5c33aac.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as t}from"./index-b8a1ff49.js";import{d as s,m as i,p as r,C as p,u,aQ as n,x as d,ao as m,o as c,c as v,a as _,w as b,f as y,F as f,y as j,l as w,a7 as g,e as V,X as h,b as k,t as x,z as C,aE as D,P as U,a3 as z,a4 as L,A as P,B as I,s as O,a8 as S,D as J,aj as N,U as E,ak as q,J as T,a9 as A,a0 as B,av as F,aw as G,_ as M}from"./index-189c105d.js";import{_ as Q}from"./create.vue_vue_type_script_setup_true_lang-b4ffd833.js";import R from"./videoDL-831dda66.js";import X from"./detail-920577f7.js";import{_ as H}from"./subscribeSet.vue_vue_type_script_setup_true_lang-edcd981c.js";import K from"./uploadVideo-79ed232f.js";import{u as W}from"./useGetList-94c461ac.js";import{u as Y}from"./useDestroy-2ab78a9d.js";import{u as Z}from"./useOpen-c14df035.js";import{b as $}from"./index-924af722.js";/* empty css *//* empty css */import"./http-fee0c3f6.js";/* empty css *//* empty css */import"./index-c8211180.js";/* empty css */import"./add.vue_vue_type_script_setup_true_lang-e30581e9.js";import"./myUpload-ca1eae66.js";/* empty css *//* empty css *//* empty css */import"./index-a44a1b10.js";import"./index.vue_vue_type_script_setup_true_lang-2f3331bf.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./detailForm-77e15c39.js";import"./index-8152b22c.js";import"./index-99e8b705.js";const ee=e=>(F("data-v-cf1795e7"),e=e(),G(),e),le={class:"table-default"},ae={class:"flex flex-col items-start justify-center wrapper"},oe=ee((()=>V("br",null,null,-1))),te={class:"wrapper"},se=["onClick"],ie={class:"wrapper"},re=ee((()=>V("span",{class:"label"},"上架时间:",-1))),pe={class:"content"},ue={class:"ml-2"},ne={key:1},de={class:"wrapper"},me=["onClick"],ce={class:"wrapper"},ve=ee((()=>V("span",{class:"label"},"上架时间:",-1))),_e={class:"content"},be={class:"flex wrapper"},ye={key:0},fe={class:"content"},je=ee((()=>V("span",null,"/",-1))),we={class:"content"},ge={class:"flex items-center"},Ve=ee((()=>V("span",null,"定价",-1))),he=ee((()=>V("br",null,null,-1))),ke=ee((()=>V("br",null,null,-1))),xe=ee((()=>V("br",null,null,-1))),Ce=ee((()=>V("br",null,null,-1))),De=ee((()=>V("br",null,null,-1))),Ue=M(s({__name:"index",setup(s){const F=i([]),{data:G,query:M,search:ee,reset:Ue,loading:ze}=W("videoStock/video/list");Y(),i(!1);const Le=i(!1),Pe=i({}),Ie=i(!1),Oe=i({}),Se=i(!1),Je=i({}),Ne=i(!1),Ee=i({}),qe=i({}),Te=i([]),Ae=i([{label:"连载中",value:"1"},{label:"完结",value:"2"}]),Be=i([{label:"未通过",value:0},{label:"已通过",value:1}]),Fe=i([]),Ge=i([]),Me=r((()=>{var e,l,a;return(null==(l=null==(e=JSON.parse(p.get("nav_data")))?void 0:e.advertiser)?void 0:l.miniProgramIds)&&(null==(a=JSON.parse(p.get("nav_data")))?void 0:a.app)})),Qe=u(),Re=e=>{if(e){const l=e[e.length-1];Te.value,M.value.categoryId=l}else delete M.value.categoryId},Xe=()=>{Ue(),Te.value=[]},He=(e,l)=>{switch(qe.value=l,e){case"videoDLVisible":Le.value=!0,Pe.value=l;break;case"takeVisible":Se.value=!0,Je.value=l;break;case"uploadVisible":Ie.value=!0,Oe.value=l;break;case"videoDetailVisible":Ne.value=!0,Ee.value=l}};n("video",qe);const Ke=r((()=>{var e;return null==(e=G.value)?void 0:e.data})),{open:We,close:Ye,title:Ze,visible:$e,id:el}=Z(),ll=e=>{U(e),F.value=e},al=e=>{switch(e){case"videoDLVisible":Le.value=!1;break;case"takeVisible":Se.value=!1;break;case"uploadVisible":Ie.value=!1;break;case"videoDetailVisible":Ne.value=!1}ee()};return d((()=>{var e,l,a,o;Ge.value=null==(e=Qe.getRoles)?void 0:e.map((e=>null==e?void 0:e.identify)),Ge.value,(null==(l=Qe.getRoles)?void 0:l.some((e=>"company"==(null==e?void 0:e.identify))))&&(M.value.operateUserId=null==(o=null==(a=JSON.parse(p.get("nav_data")))?void 0:a.advertiser)?void 0:o.id),$().then((e=>{Fe.value=e.data})),ee()})),(s,i)=>{const r=z,p=L,u=P,n=I,d=O,U=o,F=a,G=S,W=J,Y=N,Z=E,$=q,Ue=T,qe=A,Qe=l,ol=e,tl=m("action"),sl=B;return c(),v("div",null,[_(U,{search:y(ee),reset:Xe},{body:b((()=>[_(p,{label:"短剧",prop:"name"},{default:b((()=>[_(r,{modelValue:y(M).videoName,"onUpdate:modelValue":i[0]||(i[0]=e=>y(M).videoName=e),placeholder:"请输入短剧名称",clearable:""},null,8,["modelValue"])])),_:1}),_(p,{label:"状态",prop:"updateType"},{default:b((()=>[_(n,{modelValue:y(M).updateType,"onUpdate:modelValue":i[1]||(i[1]=e=>y(M).updateType=e),filterable:"",clearable:"",placeholder:"请选择状态"},{default:b((()=>[(c(!0),v(f,null,j(y(Ae),(e=>(c(),w(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),_(p,{label:"频道",prop:"categoryId"},{default:b((()=>[_(d,{modelValue:y(Te),"onUpdate:modelValue":i[2]||(i[2]=e=>g(Te)?Te.value=e:null),options:y(Fe),filterable:"",clearable:"","change-on-select":!0,onChange:Re},null,8,["modelValue","options"])])),_:1}),_(p,{label:"微信审核状态",prop:"wechatPass"},{default:b((()=>[_(n,{modelValue:y(M).wechatPass,"onUpdate:modelValue":i[3]||(i[3]=e=>y(M).wechatPass=e),filterable:"",clearable:"",placeholder:"请选择微信审核状态"},{default:b((()=>[(c(!0),v(f,null,j(y(Be),(e=>(c(),w(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["search"]),V("div",le,[h(_(F,{show:y(We)},null,8,["show"]),[[tl,"video.video.add"]]),h((c(),w(qe,{data:y(Ke),class:"mt-3",onSelectionChange:ll},{default:b((()=>[_(G,{prop:"id",label:"剧号"}),_(G,{label:"封面","show-overflow-tooltip":""},{default:b((e=>[V("div",ae,[_(Y,{placement:"top",width:200,trigger:"click"},{reference:b((()=>[_(W,{src:e.row.cover_image,class:"cursor-pointer",style:{width:"48px",height:"48px"},fit:"contain",lazy:!0},null,8,["src"])])),default:b((()=>[_(W,{src:e.row.cover_image,style:{width:"100%"},fit:"contain"},null,8,["src"])])),_:2},1024),_(Z,{type:"primary",link:"",size:"default",onClick:l=>{return a=e.row,void t(a.cover_image,a.name);var a}},{default:b((()=>[k("下载")])),_:2},1032,["onClick"])])])),_:1}),_(G,{label:"短剧名称","min-width":"250"},{default:b((e=>[e.row.wechat_pass?(c(),w($,{key:0,placement:"top"},{content:b((()=>[k(" 当前短剧已通过微信审核"),oe])),default:b((()=>[V("div",null,[V("div",te,[V("span",{class:"text-lg font-bold text-blue-400 cursor-pointer content",onClick:l=>He("videoDetailVisible",e.row)},x(e.row.name),9,se),V("span",null," 【 "+x(e.row.update_type_str)+" 】 ",1)]),V("div",ie,[re,V("span",pe,x(e.row.shelf_at),1)]),V("div",ue,[_(W,{style:{width:"20px",height:"20px"},class:"mt-1",src:e.row.wechat_pass_img,fit:"contain"},null,8,["src"])])])])),_:2},1024)):(c(),v("div",ne,[V("div",de,[V("span",{class:"text-lg font-bold text-blue-400 cursor-pointer content",onClick:l=>He("videoDetailVisible",e.row)},x(e.row.name),9,me),V("span",null," 【 "+x(e.row.update_type_str)+" 】 ",1)]),V("div",ce,[ve,V("span",_e,x(e.row.shelf_at),1)])]))])),_:1}),_(G,{prop:"total_episode_num",label:"集数"},{default:b((e=>[V("div",be,[1==e.row.update_type?(c(),v("div",ye,[V("span",fe,x(e.row.updated_episode_num),1),je])):C("",!0),V("div",null,[V("span",we,x(e.row.total_episode_num),1)])])])),_:1}),_(G,{prop:"category_str",label:"频道"}),y(Ge).includes("company")?C("",!0):(c(),w(G,{key:0,prop:"shelf_type_str",label:"上架状态"})),y(Ge).includes("company")?C("",!0):(c(),w(G,{key:1,prop:"charge_sequence",label:"起始集"})),y(Ge).includes("company")?C("",!0):(c(),w(G,{key:2,prop:"charge_coin",label:"定价"},{header:b((()=>[V("div",ge,[Ve,_($,{placement:"top"},{content:b((()=>[k(" 定价为所需看剧币"),he,k("1元等于100币 ")])),default:b((()=>[_(Ue,null,{default:b((()=>[_(y(D))])),_:1})])),_:1})])])),default:b((e=>[V("span",null,x(e.row.charge_coin),1)])),_:1})),_(G,{label:"操作"},{default:b((e=>[h((c(),w(Z,{link:"",type:"primary",size:"small",onClick:l=>He("uploadVisible",e.row)},{default:b((()=>[k("上传视频")])),_:2},1032,["onClick"])),[[tl,"video.episode.add"]]),ke,h((c(),w(Z,{onClick:l=>y(We)(e.row),link:"",type:"primary",size:"small"},{default:b((()=>[k("编辑")])),_:2},1032,["onClick"])),[[tl,"video.video.update"]]),xe,h((c(),w(Z,{onClick:l=>He("takeVisible",e.row),link:"",type:"primary",size:"small"},{default:b((()=>[k("订阅设置")])),_:2},1032,["onClick"])),[[tl,"video.video.setChargeConfig"]]),Ce,h((c(),w(Z,{link:"",type:"primary",size:"small",onClick:l=>He("videoDLVisible",e.row)},{default:b((()=>[k("视频下载")])),_:2},1032,["onClick"])),[[tl,"video.episode.downloadList"]]),De,y(Me)?h((c(),w(Z,{key:0,link:"",type:"primary",size:"small",onClick:l=>He("videoDetailVisible",e.row)},{default:b((()=>[k("生成推广链接")])),_:2},1032,["onClick"])),[[tl,"tuiguang.Promotion.add"]]):C("",!0)])),_:1})])),_:1},8,["data"])),[[sl,y(ze)]]),_(Qe)]),_(ol,{modelValue:y($e),"onUpdate:modelValue":i[5]||(i[5]=e=>g($e)?$e.value=e:null),title:y(Ze),"destroy-on-close":""},{default:b((()=>[_(Q,{onClose:i[4]||(i[4]=e=>y(Ye)(y(ee))),primary:y(el)},null,8,["primary"])])),_:1},8,["modelValue","title"]),_(ol,{modelValue:y(Le),"onUpdate:modelValue":i[7]||(i[7]=e=>g(Le)?Le.value=e:null),width:"80%",title:"视频下载","destroy-on-close":""},{default:b((()=>[_(R,{onClose:i[6]||(i[6]=e=>al("videoDLVisible")),primary:y(Pe)},null,8,["primary"])])),_:1},8,["modelValue"]),_(ol,{modelValue:y(Se),"onUpdate:modelValue":i[9]||(i[9]=e=>g(Se)?Se.value=e:null),width:"50%",title:"订阅设置","destroy-on-close":""},{default:b((()=>[_(H,{onClose:i[8]||(i[8]=e=>al("takeVisible")),primary:y(Je)},null,8,["primary"])])),_:1},8,["modelValue"]),_(ol,{modelValue:y(Ie),"onUpdate:modelValue":i[11]||(i[11]=e=>g(Ie)?Ie.value=e:null),width:"50%",title:"上传视频",closeOnClickModal:!1,closeOnPressEscape:!1,"destroy-on-close":""},{default:b((()=>[_(K,{onClose:i[10]||(i[10]=e=>al("uploadVisible")),primary:y(Oe)},null,8,["primary"])])),_:1},8,["modelValue"]),h((c(),w(ol,{alignCenter:!0,modelValue:y(Ne),"onUpdate:modelValue":i[13]||(i[13]=e=>g(Ne)?Ne.value=e:null),width:"50%",title:"短剧详情","destroy-on-close":""},{default:b((()=>[_(X,{onClose:i[12]||(i[12]=e=>al("videoDetailVisible")),primary:y(Ee)},null,8,["primary"])])),_:1},8,["modelValue"])),[[tl,"video.video.list"]])])}}}),[["__scopeId","data-v-cf1795e7"]]);export{Ue as default};