index-79503239.js 3.9 KB

1
  1. /* empty css *//* empty css */import{u as e,_ as a}from"./useOpen-a24750bc.js";import{_ as l}from"./index.vue_vue_type_script_setup_true_lang-8d4d2c2d.js";import{u as p}from"./useGetList-10bd17fb.js";/* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css */import{_ as s}from"./operate.vue_vue_type_script_setup_true_lang-e1034c0d.js";import{_ as t}from"./search.vue_vue_type_script_setup_true_lang-5fdc06f2.js";/* empty css *//* empty css */import{d as o,n as r,z as i,ar as c,o as n,c as m,a as u,w as _,f as d,e as b,Z as j,l as y,b as g,a9 as f,a7 as v,as as h,v as k,a5 as w,a6 as x,aa as C,X as V,ab as M,a2 as L}from"./index-fe6c8641.js";import{_ as z}from"./create.vue_vue_type_script_setup_true_lang-e6847e49.js";import{u as U}from"./useDestroy-ee426241.js";import{c as S}from"./index-aef7c7a3.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7cd89372.js";/* empty css */import"./add.vue_vue_type_script_setup_true_lang-ff3ef2bf.js";import"./useCreate-21e18dc5.js";import"./useShow-401252b0.js";import"./http-3c23965b.js";const q={class:"table-default"},G=b("br",null,null,-1),O=b("br",null,null,-1),P=b("br",null,null,-1),T=o({__name:"index",setup(o){const T="cpManage/cp/manage/cp_list",{data:Z,query:D,search:F,reset:H,loading:I}=p(T),{deleted:K}=U(),R=r((()=>{var e;return null==(e=Z.value)?void 0:e.data})),{open:W,close:X,title:Y,visible:$,id:A}=e();return i((()=>{F(),K(F)})),(e,p)=>{const o=w,r=x,i=t,U=s,Z=C,K=V,B=M,E=l,J=a,N=c("action"),Q=L;return n(),m("div",null,[u(i,{search:d(F),reset:d(H)},{body:_((()=>[u(r,{label:"cp名称",prop:"cp_name"},{default:_((()=>[u(o,{modelValue:d(D).cp_name,"onUpdate:modelValue":p[0]||(p[0]=e=>d(D).cp_name=e),name:"cp_name",clearable:""},null,8,["modelValue"])])),_:1}),u(r,{label:"所属公司",prop:"cp_company"},{default:_((()=>[u(o,{modelValue:d(D).cp_company,"onUpdate:modelValue":p[1]||(p[1]=e=>d(D).cp_company=e),name:"cp_company",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),b("div",q,[j(u(U,{show:d(W)},null,8,["show"]),[[N,"cpManage.cpList.store"]]),j((n(),y(B,{data:d(R),class:"mt-3"},{default:_((()=>[u(Z,{type:"index",width:"100",label:"序号"}),u(Z,{prop:"cp_id",label:"cp_id"}),u(Z,{prop:"cp_name",label:"cp名称"}),u(Z,{prop:"cp_nick",label:"cp简称"}),u(Z,{prop:"cp_company",label:"所属公司"}),u(Z,{prop:"book_count",label:"采集数量"}),u(Z,{prop:"share_per",label:"结算比例"}),u(Z,{prop:"created_at",label:"创建时间"}),u(Z,{label:"操作",width:"200"},{default:_((e=>[j((n(),y(K,{onClick:a=>(e=>{const a={cp_id:e.cp_id,cp_name:e.cp_name};S(a).then((e=>{v.success(e.message);const a=setTimeout((()=>{h({title:"提示",message:"同步cp书籍任务已经建立,因书籍数量不同,执行时间有几分钟到几十分钟的延迟进入书籍列表!",type:"warning"}),clearTimeout(a)}),500)}))})(e.row),type:"primary",link:"",size:"small"},{default:_((()=>[g("同步CP书籍")])),_:2},1032,["onClick"])),[[N,"cpManage.cpList.cpCollection"]]),G,j((n(),y(K,{onClick:a=>d(W)(e.row.cp_id),type:"primary",link:"",size:"small"},{default:_((()=>[g("编辑")])),_:2},1032,["onClick"])),[[N,"cpManage.cpList.update"]]),O,j((n(),y(K,{onClick:a=>((e=0,a="")=>{k.push({path:"/cpManage/cpSettle",params:{cp_id:e,cp_name:a}})})(e.row.cp_id,e.row.cp_name),type:"primary",link:"",size:"small"},{default:_((()=>[g("结算列表")])),_:2},1032,["onClick"])),[[N,"cpManage.cpSettle.index"]]),P])),_:1})])),_:1},8,["data"])),[[Q,d(I)]]),u(E)]),u(J,{modelValue:d($),"onUpdate:modelValue":p[3]||(p[3]=e=>f($)?$.value=e:null),title:d(Y),"destroy-on-close":""},{default:_((()=>[u(z,{onClose:p[2]||(p[2]=e=>d(X)(d(F))),primary:d(A),api:T},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{T as default};