PageSourceSearch

https://www.digiknow.com.tw/_nuxt/BiPfaD9t.js

js digiknow.com.tw collected 2026-09-24 12:16:37 UTC 9,269 bytes, 1 lines download raw bytes

1import{_ as g}from"./D8SjKo9Z.js";import{_ as y,m as n,c as l,i as _,cQ as S,r as c,h as C,a as p,cR as v,cB as A,cp as L,bl as u,a4 as T,cS as E}from"./BWZN0XpW.js";import{A as N,X as w,Z as h,L as m,M as k,a0 as G,W as P,k as $}from"./Ci6hL83t.js";import{_ as M}from"./BV2yydq4.js";import{_ as U}from"./BySO_p1r.js";import{K as d,a as f}from"./Ckb8g3Lx.js";import{u as D}from"./DTKzOwz0.js";import"./B3H6Xsqc.js";import"./lnfQAvBH.js";import"./CCRBlPzv.js";import"./Dc74kpW0.js";import"./6GSr9pnu.js";import"./DOTpFmdT.js";import"./2mTkQZYb.js";import"./z5mXGild.js";import"./ts0cGMbQ.js";import"./DbsvbXiH.js";import"./BWUvGElL.js";import"./ETXWtx5S.js";import"./BBYmY0BZ.js";import"./SMkaoafM.js";import"./CegJpa71.js";import"./BcwhntHt.js";import"./BgAnF75w.js";import"./DE8h-Dm1.js";import"./Ci71py6t.js";import"./Dsd6BBY6.js";import"./BeoDcdzL.js";import"./OLvXCpfx.js";import"./rBTZZaBW.js";import"./C-t4G1qr.js";const I={name:"AuditRecord",props:{uuid:{type:String}},data(){return{list:[],tableSetting:[{label:"時間",componentType:"text",columnSetting:{class:"w-3/12 text-sm text-neutral-70",mobileClass:"col-span-4 text-xxs text-neutral-70"},format:({updated:t=""}={})=>({text:C(t)})},{label:"狀態",componentType:"text",columnSetting:{class:"w-2/12 text-sm text-primary",mobileClass:"col-span-3 text-xxs text-primary"},format:({statusText:t}={})=>({text:t})},{label:"審核人",componentType:"text",columnSetting:{class:"w-2/12 text-sm text-neutral-70",mobileClass:"col-span-4 text-xxs text-neutral-70"},format:({name:t}={})=>({text:t})},{label:"備註",componentType:"text",columnClass:"text-right",columnSetting:{class:"w-3/12 text-sm text-neutral-70 text-right",mobileClass:"col-span-3 text-xxs text-neutral-70"},format:({comment:t}={})=>({text:t})}]}},watch:{uuid(t,e){t!==e&&this.methodGetInfo()}},mounted(){this.methodGetInfo()},methods:{...n(c,{showDevNotifyError:"setDevNotifyError",showLoading:"setIsLoading"}),async methodGetInfo(){if(!this.uuid){this.showDevNotifyError("無此文章編號");return}const t={uuid:this.uuid};this.showLoading(!0);const{status:e,message:s,result:o}=await l("apiArticlesManage.review",t);e?this.list=_(o)?o?.map(S)??[]:[]:(this.list=[],this.showDevNotifyError(`無法取得列表,${s}`)),this.showLoading(!1)}}},R={class:"py-6 px-7"};function F(t,e,s,o,i,a){const r=g;return w(),N("div",R,[e[0]||(e[0]=h("p",{class:"text-2xl mb-5 text-neutral-50"},"審核記錄",-1)),m(r,{setting:i.tableSetting,list:i.list,class:"w-full","show-pagination":!1},null,8,["setting","list"])])}const K=y(I,[["render",F]]),B={name:"CreationManage",inject:["device"],setup(){const t=K,{waitForReady:e,checkLoginStatus:s,executeWhenReady:o}=D();return{auditRecord:t,waitForReady:e,checkLoginStatus:s,executeWhenReady:o}},data(){return{filterList:[E[1]],selectedFilter:{type:"",flag:""},searchText:"",searchbarSetting:{placeholder:"搜尋我的創作"}}},computed:{...p(c,{isLogin:t=>t.isLogin,isAuthor:t=>t.user.author,isActiveAuthor:t=>t?.user?.isActiveAuthor,isActiveCreator:t=>t?.user?.isActiveCreator,havePublishAuthority:t=>t.user.havePublishAuthority,uuid:t=>t?.user?.uuid??"",mobileChildSearchOverlay:t=>t?.mobileChildSearchOverlay??!1,isAdmin:t=>t?.admin&&Object.keys(t?.admin)?.length>0}),...p(u,{list:"manageList",newPagination:"managePagination"}),pagination(){return{...T(),...this.newPagination}},tableSetting(){const t=[{label:"內容資訊",componentType:"listItem",columnSetting:{style:"max-width: 31.25rem",mobileClass:"col-span-6"},format:({image:e="",length:s,type:o="",tag:i=[],title:a=""}={})=>({imgUrl:e,length:s,type:o,tag:i,contentXl:a})},{label:"發佈頻道",componentType:"user",columnSetting:{mobileClass:"col-span-2"},format:({avatar:e,name:s}={})=>({avatar:e,name:s})},{label:"下載權限",componentType:"roleLevelSelect",columnSetting:{mobileClass:"col-span-2"},format:({level:e}={})=>({value:e,permission:!1}),hidden:({type:e=""}={})=>e==="clip"},{label:"狀態",componentType:"auditAndLaunch",columnSetting:{mobileClass:"col-span-3"},format:({id:e="",audit:s="",type:o="",launch:i=!1}={})=>({id:e,audit:s,type:o,audit:s,launch:i,permission:!1})},{label:"日期",componentType:"dates",columnSetting:{mobileClass:"col-span-4"},format:({launchDate:e,auditDate:s,updated:o}={})=>({launchDate:e,created:s,permission:this.havePublishAuthority})},{label:"統計數字",componentType:"counting",columnSetting:{mobileClass:"col-span-3"}
1,format:({messageCount:e="",likeCount:s="",watchedCount:o=""}={})=>({messageCount:e,likeCount:s,watchedCount:o})},{label:"",componentType:"more",columnSetting:{mobileClass:"col-start-7 col-end-8 row-start-1 row-end-2"},format:this.methodGetMoreList}];return this.device.isMobile,t}},activated(){this.checkAuthStatusAndProceed()},methods:{...n(c,{mutationSetModal:"setModal",showNotifySuccess:"setNotifySuccess",showNotifyError:"setNotifyError",showDevNotifyError:"setDevNotifyError",showLoading:"setIsLoading",updateUserProfile:"updateUserProfile",showKpointToast:"setKpointToast",formatToastInfo:"formatToastInfo"}),...n(u,{actionGetList:"getManageList"}),async checkAuthStatusAndProceed(){try{await this.executeWhenReady(async()=>{if(!await this.checkLoginStatus()){this.showNotifyError("請先登入"),this.$router.push({name:"Login"});return}if(!this.isAuthor){this.showNotifyError("您尚未擁有作者身份"),this.$router.push({name:"Home"});return}if(!this.isActiveAuthor){this.showNotifyError("作者狀態已停用!"),this.$router.push({name:"Home"});return}this.methodGetList()})}catch(t){console.warn("Store initialization timeout in creation manage, using fallback check:",t),this.fallbackCheck()}},fallbackCheck(){if(!this.isLogin){this.showNotifyError("請先登入"),this.$router.push({name:"Login"});return}if(!this.isAuthor){this.showNotifyError("您尚未擁有作者身份"),this.$router.push({name:"Home"});return}if(!this.isActiveAuthor){this.showNotifyError("作者狀態已停用!"),this.$router.push({name:"Home"});return}this.methodGetList()},isMobile(){return this.device.isMobile},methodUpdateTag(t){this.selectedFilter.type=t?.type?.value??"",this.selectedFilter.flag=t?.audit?.value??"",this.methodGetList({page:1})},methodUpdateSearch(t){this.searchText=t,this.methodGetList({page:1})},methodGetMoreList(t){const{id:e="",audit:s="0",launch:o=!1,type:i}=t;let a=[];return s===L.trans.value?{list:[]}:(a=a.concat([{label:"編輯內容",icon:"pen",callback:!this.isAdmin&&o?()=>{this.showNotifyError("上架中,請先通知頻道主下架文章,才可進行編輯")}:null,path:!this.isAdmin&&o?null:this.methodGetEditPath(e)},{label:"數據分析",icon:"analytics",path:this.methodGetAnalysisPath(e)},{label:"審核紀錄",icon:"list-ul",callback:()=>this.methodGoRecord(e)},{label:"取得分享連結",icon:"share-alt",callback:()=>this.methodCopyUrl(e,i)},{label:"留言名單下載",icon:"download",callback:()=>this.methodDownloadComment(e,i)},{label:"在分頁中開啟",icon:"share-square",callback:()=>this.methodGoContent(e,i)}]),{list:a})},methodUpdatePagination(t){this.methodGetList(t)},async methodGetList(t={}){const e={...this.pagination,...t},s={...this.selectedFilter,keyword:this.searchText,...e},o=await this.actionGetList(s);o&&!/無.*作者身分/.test(o)&&this.showDevNotifyError(o)},methodGetEditPath(t){return t?{name:"CreationManageEdit",params:{uuid:t}}:""},methodGetAnalysisPath(t){return t?{name:"CreationManageAnalysis",params:{uuid:t}}:""},methodGoRecord(t){this.mutationSetModal({show:!0,width:1100,propsData:{uuid:t},contentComponent:$(this.auditRecord)})},async methodCopyUrl(t,e){if(t)try{if(this.uuid){const i={uuid:t,dgi:this.uuid},{status:a,result:r}=await l("apiArticles.share",i);a&&(this.updateUserProfile(),r?.showGuidance&&this.showKpointToast(this.formatToastInfo("share",r?.expectedExp)))}const s=this.$router.resolve({name:e===d[f.Clip]?"ClipContent":"Content",params:{uuid:t}});let o=`${window.location.origin}${s.href}`;this.uuid&&(o=`${o}?${A?.creation??"dga"}=${this.uuid}`),this.$copy(o),this.showNotifySuccess("複製成功!")}catch{this.showNotifyError("複製失敗")}},async methodDownloadComment(t){if(t)try{if(this.uuid){const e={uuid:t},{status:s,result:o}=await l("apiArticlesManage.rewardList",e);s?await v(o.data,o.cols,"留言名單"):this.showNotifyError("下載失敗")}this.showNotifySuccess("下載成功!")}catch{this.showNotifyError("下載失敗")}},methodGoContent(t,e){if(!t)return;const s=this.$router.resolve({name:e===d[f.Clip]?"ClipContent":"Content",params:{uuid:t}});window.open(s.href,"_blank")},getfilterTags(){}}},z={class:"max-w-1400 mx-auto py-6 px-4 lg:p-8"};function H(t,e,s,o,i,a){const r=M,x=g,b=U;return w(),k(b,null,{default:G(()=>[h("div",z,[h("div",{class:P(["flex flex-col relative",t.mobileChildSearchOverlay?"z-30":"z-0"])},[m(r,{"wrap-class":"max-w-none w-full sm:mx-0 shadow-none sm:p-0 sm:overflow-visible",list:i.filterList,"show-search-btn":!0,"search-setting":i.searchbarSetting,onUpdate:a.methodUpdateTag,onUpdateSearch:a.methodUpdateSearch},null,8,["list","search-setting","onUpdate","onUpdateSearch"])],2),m(x,{setting:a.tableSetting,list:t.list,pagination:a.pagination,class:"w-full",onPagination:a.methodUpdatePagination},null,8,["setting","list","pagination","onPagination"])])]),_:1})}const _t=y(B,[["render",H]]);
1export{_t as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.