multiStoreAdmin/dist/store/assets/keyword_reply.55d3ef64.js

2 lines
4.3 KiB
JavaScript
Raw Permalink Normal View History

2024-08-04 17:55:30 +08:00
import{L as T,J as S,w as N,M as L,t as U,N as O,O as P}from"./element-plus.ab0703f2.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{f as M,b as z}from"./index.ae42b2c0.js";import{o as J,d as Q,e as W}from"./wx_oa.d094c3f6.js";import{u as q}from"./usePaging.fff444fa.js";import{_ as G}from"./edit.vue_vue_type_script_setup_true_lang.9e0db7d2.js";import{d as H,s as I,r as K,b as F,o as f,c as X,W as e,Q as a,a as E,U as r,R as Y,P as h,u as n,V as y,j as Z,T as ee,n as D}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./index.2a3b95e2.js";const te={class:"flex justify-end mt-4"},Me=H({__name:"keyword_reply",setup(ue){const m=I(),p=K(!1),g=F(()=>u=>{switch(u){case 1:return"\u5168\u5339\u914D";case 2:return"\u6A21\u7CCA\u5339\u914D"}}),v=F(()=>u=>{switch(u){case 1:return"\u6587\u672C"}}),{pager:s,getLists:i}=q({fetchFun:W,params:{reply_type:2}}),w=async()=>{var u;p.value=!0,await D(),(u=m.value)==null||u.open("add",2)},b=async u=>{var o,c;p.value=!0,await D(),(o=m.value)==null||o.open("edit",2),(c=m.value)==null||c.getDetail(u)},B=async u=>{await M.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await J({id:u}),i()},k=async u=>{try{await Q({id:u}),i()}catch{i()}};return i(),(u,o)=>{const c=T,C=S,A=z,_=N,l=L,V=U,R=O,$=j,x=P;return f(),X("div",null,[e(C,{class:"!border-none",shadow:"never"},{default:a(()=>[e(c,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A1.\u7C89\u4E1D\u5728\u516C\u4F17\u53F7\u53D1\u9001\u5185\u5BB9\u65F6\uFF0C\u901A\u8FC7\u5173\u952E\u8BCD\u53EF\u89E6\u53D1\u5173\u952E\u8BCD\u56DE\u590D\uFF1B2.\u540C\u65F6\u53EF\u542F\u7528\u591A\u4E2A\u5173\u952E\u8BCD\u56DE\u590D\uFF0C\u6709\u591A\u6761\u5173\u952E\u8BCD\u5339\u914D\u65F6\u4F18\u9009\u9009\u62E9\u6392\u5E8F\u9760\u524D\u7684\u4E00\u6761",closable:!1,"show-icon":""})]),_:1}),e(C,{class:"!border-none mt-4",shadow:"never"},{default:a(()=>[E("div",null,[e(_,{class:"mb-4",type:"primary",onClick:o[0]||(o[0]=t=>w())},{icon:a(()=>[e(A,{name:"el-icon-Plus"})]),default:a(()=>[r(" \u65B0\u589E ")]),_:1})]),Y((f(),h(R,{size:"large",data:n(s).lists},{default:a(()=>[e(l,{label:"\u89C4\u5219\u540D\u79F0",prop:"name","min-width":"120"}),e(l,{label:"\u5173\u952E\u8BCD",prop:"keyword","min-width":"120"}),e(l,{label:"\u5339\u914D\u65B9\u5F0F","min-width":"120"},{default:a(({row:t})=>[r(y(n(g)(t.matching_type)),1)]),_:1}),e(l,{label:"\u56DE\u590D\u7C7B\u578B","min-width":"120"},{default:a(({row:t})=>[r(y(n(v)(t.content_type)),1)]),_:1}),e(l,{label:"\u72B6\u6001","min-width":"120"},{default:a(({row:t})=>[e(V,{modelValue:t.status,"onUpdate:modelValue":d=>t.status=d,"active-value":1,"inactive-value":0,onChange:d=>k(t.id)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(l,{label:"\u6392\u5E8F",prop:"sort","min-width":"120"}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>b(t)},{default:a(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),e(_,{type:"danger",link:"",onClick:d=>B(t.id)},{default:a(()=>[r(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[x,n(s).loading]]),E("div",te,[e($,{mode