ERP-admin/build/admin/assets/index.9ba7316c.js

2 lines
5.4 KiB
JavaScript

import{C as A,D as I,w as Q,F as q,T as K,O as M,Q as O,R as Z}from"./element-plus.bccb9376.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{f as G,b as H}from"./index.68fb39c6.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.a4142f6d.js";import{_ as X,a as Y,b as ee}from"./edit.vue_vue_type_script_setup_true_name_userFeedbackEdit_lang.e08d2ede.js";import"./lodash.466e9fe4.js";import{d as V,s as te,r as D,Z as oe,ap as ae,o as r,c as le,U as e,L as a,u as t,R as p,M as _,K as d,a as h,j as ie,Q as ne,n as g}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.49b5f729.js";const re={class:"mt-4"},ue={class:"flex mt-4 justify-end"},se=V({name:"userFeedbackLists"}),ct=V({...se,setup(me){const f=te(),F=D(!1),n=oe({uid:"",name:"",contact:""}),k=D([]),y=i=>{k.value=i.map(({id:o})=>o)},{dictData:E}=W(""),{pager:c,getLists:b,resetParams:x,resetPage:U}=J({fetchFun:ee,params:n}),$=async()=>{var i;F.value=!0,await g(),(i=f.value)==null||i.open("add")},R=async i=>{var o,u;F.value=!0,await g(),(o=f.value)==null||o.open("edit"),(u=f.value)==null||u.setFormData(i)},w=async i=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Y({id:i}),b()};return b(),(i,o)=>{const u=A,C=I,s=Q,L=q,B=K,P=H,m=M,T=O,N=z,v=ae("perms"),S=Z;return r(),le("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(L,{class:"mb-[-16px]",model:t(n),inline:""},{default:a(()=>[e(C,{label:"\u7528\u6237id",prop:"uid"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:t(n).uid,"onUpdate:modelValue":o[0]||(o[0]=l=>t(n).uid=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237id"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u8054\u7CFB\u59D3\u540D",prop:"name"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:t(n).name,"onUpdate:modelValue":o[1]||(o[1]=l=>t(n).name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"contact"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:t(n).contact,"onUpdate:modelValue":o[2]||(o[2]=l=>t(n).contact=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),e(C,null,{default:a(()=>[e(s,{type:"primary",onClick:t(U)},{default:a(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(s,{onClick:t(x)},{default:a(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((r(),d(B,{class:"!border-none",shadow:"never"},{default:a(()=>[_((r(),d(s,{type:"primary",onClick:$},{icon:a(()=>[e(P,{name:"el-icon-Plus"})]),default:a(()=>[p(" \u65B0\u589E ")]),_:1})),[[v,["user.user_feedback/add"]]]),_((r(),d(s,{disabled:!t(k).length,onClick:o[3]||(o[3]=l=>w(t(k)))},{default:a(()=>[p(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["user.user_feedback/delete"]]]),h("div",re,[e(T,{data:t(c).lists,onSelectionChange:y},{default:a(()=>[e(m,{type:"selection",width:"55"}),e(m,{label:"\u7528\u6237id",prop:"uid","show-overflow-tooltip":""}),e(m,{label:"\u53CD\u9988\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(m,{label:"\u8054\u7CFB\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(m,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"contact","show-overflow-tooltip":""}),e(m,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[_((r(),d(s,{type:"primary",link:"",onClick:j=>R(l)},{default:a(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["user.user_feedback/edit"]]]),_((r(),d(s,{type:"danger",link:"",onClick:j=>w(l.id)},{default:a(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["user.user_feedback/delete"]]])]),_:1})]),_:1},8,["data"])]),h("div",ue,[e(N,{modelValue:t(c),"onUpdate:modelValue":o[4]||(o[4]=l=>ie(c)?c.value=l:null),onChange:t(b)},null,8,["modelValue","onChange"])])]),_:1})),[[S,t(c).loading]]),t(F)?(r(),d(X,{key:0,ref_key:"editRef",ref:f,"dict-data":t(E),onSuccess:t(b),onClose:o[5]||(o[5]=l=>F.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{ct as default};