index-75ac89c8.js 2.8 KB

1
  1. /* empty css *//* empty css */import{_ as e}from"./index.vue_vue_type_script_setup_true_lang-69646451.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as a}from"./add.vue_vue_type_script_setup_true_lang-de1bbcae.js";import{_ as t}from"./search.vue_vue_type_script_setup_true_lang-c1f07328.js";/* empty css *//* empty css */import s from"./create-36b8707f.js";import{u as l}from"./useGetList-6e0ee96a.js";import{c as o}from"./createGears-0070ba43.js";/* empty css */import{d as r,q as i,n as p,z as m,ao as n,f as u,o as d,c,a as _,w as j,e as v,Z as h,l as y,b as f,a7 as b,a5 as g,a6 as V,aa as k,as as w,X as x,ab as C,a2 as T}from"./index-9d63ae19.js";/* empty css */import"./index-537afe47.js";import"./index-09d53675.js";/* empty css *//* empty css *//* empty css */import"./http-41948287.js";/* empty css */const G={key:0},U={class:"table-default"},q={class:"pt-5 pl-2"},z=r({__name:"index",setup(r){let z=i(!1);const{data:L,query:S,search:X,reset:D,loading:E}=l("channel/paytemplate/list",!0),F=p((()=>{var e;return null==(e=L.value)?void 0:e.data})),H=i({}),J=e=>{z.value=!0,H.value=e?e.id:e};return m((()=>{X()})),(l,r)=>{const i=g,p=V,m=t,L=a,K=k,N=w,O=x,Q=C,W=e,Y=n("action"),Z=T;return u(z)?(d(),y(s,{key:1,onClose:r[2]||(r[2]=e=>(u(X),z.value=!1,void X())),primary:H.value,api:u("system/notices/notice/edit")},null,8,["primary","api"])):(d(),c("div",G,[_(m,{search:u(X),reset:u(D)},{body:j((()=>[_(p,{label:"模板名称"},{default:j((()=>[_(i,{modelValue:u(S).name,"onUpdate:modelValue":r[0]||(r[0]=e=>u(S).name=e),clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),v("div",U,[v("div",q,[h(_(L,{onClick:r[1]||(r[1]=e=>J(null))},null,512),[[Y,"channel.payTemplate.store"]])]),h((d(),y(Q,{data:u(F),class:"mt-3"},{default:j((()=>[_(K,{prop:"name",label:"模板名称"}),h((d(),y(K,{label:"状态"},{default:j((e=>[_(N,{modelValue:e.row.status,"onUpdate:modelValue":a=>e.row.status=a,onChange:a=>{return t=a,s=e.row,void o(s.id,{status:t}).then((e=>{b.success(e.message),X()}));var t,s},"active-value":1,"inactive-value":0},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:1})),[[Y,"channel.payTemplate.updateStatus"]]),_(K,{label:"操作",width:"200"},{default:j((e=>[h((d(),y(O,{link:"",type:"primary",size:"small",onClick:a=>J(e.row)},{default:j((()=>[f("编辑")])),_:2},1032,["onClick"])),[[Y,"channel.payTemplate.update"]])])),_:1})])),_:1},8,["data"])),[[Z,u(E)]]),_(W)])]))}}});export{z as default};