userAdvice-id0bZwit.js 6.2 KB

1
  1. import{j as A,f as P,R as Z,cx as $,A as B,m as G,k as J,l as L,n as O,o as Q,b as W,p as X,q as ee,E as le,s as ae,v as te}from"./index-CKIhG1T4.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang-DFNSD-eX.js";import{_ as oe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-Dr2ObOZ6.js";import{C as pe,a as d,b as se,v as ue,as as ne,D as n,E as U,$ as e,U as o,u as a,ae as f,K as I,ad as me,T as b,Z as m,V as C,_ as N,F as de,Y as ie}from"./spreadSheetsDesignerVue-MRUT1X_l.js";import{d as ce}from"./formatTime-GfXNJyvM.js";import{a as fe}from"./index-UbfkDtIu.js";import{_ as be}from"./AdivceForm.vue_vue_type_script_setup_true_lang-D4Q8j1LA.js";import{c as H}from"./constants-CsKXDkTX.js";import"./spreadSheetsDesignerResourcesCn-afJmEehS.js";import"./spreadSheetsDesigner-vOnK2KEP.js";import"./spreadSheetsBarcode-0B8Cksr7.js";import"./spreadSheetsCharts-DpwtlVVO.js";import"./spreadExcelio-BZ-mA4Op.js";import"./index-Dszus0mF.js";import"./Dialog.vue_vue_type_style_index_0_lang-pGfk6adK.js";import"./lodash-D2MZWk6W.js";const ye={style:{display:"flex","justify-content":"center"}},_e=pe({__name:"userAdvice",setup(ge){A(),P();const y=d(!0),V=d(0),k=d([]),r=se({pageNo:1,pageSize:10,userId:null,userName:null,replyName:null,replyNickName:null,status:null,feedbackTime:[],replyTime:[]}),v=d(),i=async()=>{y.value=!0;try{const _=await fe(r);k.value=_.list,V.value=_.total}finally{y.value=!1}},u=()=>{r.pageNo=1,i()},M=()=>{v.value.resetFields(),u()},h=d();return ue(async()=>{await i()}),(_,t)=>{const c=B,s=G,K=J,z=L,x=O,D=Q,g=W,F=X,Y=oe,p=ee,S=le,E=ae,R=re,j=ne("hasPermi"),q=te;return n(),U(I,null,[e(Y,null,{default:o(()=>[e(F,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:v,inline:!0,"label-width":"68px"},{default:o(()=>[e(s,{label:"\u7528\u6237ID",prop:"userId"},{default:o(()=>[e(c,{modelValue:a(r).userId,"onUpdate:modelValue":t[0]||(t[0]=l=>a(r).userId=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID",clearable:"",onKeyup:f(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u7528\u6237\u540D",prop:"userName"},{default:o(()=>[e(c,{modelValue:a(r).userName,"onUpdate:modelValue":t[1]||(t[1]=l=>a(r).userName=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",clearable:"",onKeyup:f(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u56DE\u590D\u4EBA",prop:"replyName"},{default:o(()=>[e(c,{modelValue:a(r).replyName,"onUpdate:modelValue":t[2]||(t[2]=l=>a(r).replyName=l),placeholder:"\u8BF7\u8F93\u5165\u56DE\u590D\u4EBA\u540D\u79F0",clearable:"",onKeyup:f(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u56DE\u590D\u4EBA\u6635\u79F0",prop:"replyNickName","label-width":"90px"},{default:o(()=>[e(c,{modelValue:a(r).replyNickName,"onUpdate:modelValue":t[3]||(t[3]=l=>a(r).replyNickName=l),placeholder:"\u8BF7\u8F93\u5165\u56DE\u590D\u4EBA\u6635\u79F0",clearable:"",onKeyup:f(u,["enter"]),class:"!w-260px"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[e(z,{modelValue:a(r).status,"onUpdate:modelValue":t[4]||(t[4]=l=>a(r).status=l),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:o(()=>[(n(!0),U(I,null,me(a(H),(l,w)=>(n(),b(K,{key:w,label:l,value:w},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"feedbackTime"},{default:o(()=>[e(x,{modelValue:a(r).feedbackTime,"onUpdate:modelValue":t[5]||(t[5]=l=>a(r).feedbackTime=l),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(s,{label:"\u56DE\u590D\u65F6\u95F4",prop:"replyTime"},{default:o(()=>[e(x,{modelValue:a(r).replyTime,"onUpdate:modelValue":t[6]||(t[6]=l=>a(r).replyTime=l),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(s,null,{default:o(()=>[e(g,{onClick:u},{default:o(()=>[e(D,{icon:"ep:search",class:"mr-5px"}),t[9]||(t[9]=m(" \u641C\u7D22"))]),_:1}),e(g,{onClick:M},{default:o(()=>[e(D,{icon:"ep:refresh",class:"mr-5px"}),t[10]||(t[10]=m(" \u91CD\u7F6E"))]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(Y,null,{default:o(()=>[C((n(),b(E,{data:a(k)},{default:o(()=>[e(p,{label:"\u7528\u6237ID",align:"center",prop:"userId"}),e(p,{label:"\u7528\u6237\u540D\u79F0",align:"center",prop:"userName"}),e(p,{label:"\u53CD\u9988\u5185\u5BB9",align:"center",prop:"feedbackContent","show-overflow-tooltip":""}),e(p,{label:"\u53CD\u9988\u65F6\u95F4",align:"center"},{default:o(l=>[m(N(a(Z)(l.row.feedbackTime).format("YYYY-MM-DD HH:mm:ss")),1)]),_:1}),e(p,{label:"\u56DE\u590D\u5185\u5BB9",align:"center",prop:"replyContent","show-overflow-tooltip":""}),e(p,{label:"\u56DE\u590D\u4EBA\u540D\u79F0",align:"center",prop:"replyName"}),e(p,{label:"\u56DE\u590D\u4EBA\u6635\u79F0",align:"center",prop:"replyNickName"}),e(p,{label:"\u56DE\u590D\u65F6\u95F4",align:"center",prop:"replyTime",formatter:a(ce)},null,8,["formatter"]),e(p,{label:"\u7528\u6237\u8BC4\u5206",align:"center"},{default:o(l=>[de("div",ye,[m(N(l.row.score)+" ",1),l.row.score?(n(),b(S,{key:0,size:20,color:"#f7ba2a"},{default:o(()=>[e(a($))]),_:1})):ie("",!0)])]),_:1}),e(p,{label:"\u7528\u6237\u8BC4\u4EF7",align:"center",prop:"evaluate","show-overflow-tooltip":""}),e(p,{label:"\u72B6\u6001",align:"center",prop:"status","min-width":"120px"},{default:o(l=>[m(N(a(H)[l.row.status]||"\u65E0"),1)]),_:1}),e(p,{label:"\u64CD\u4F5C",align:"center"},{default:o(l=>[C((n(),b(g,{link:"",type:"primary",onClick:w=>{return T=l.row,void h.value.open("update",T);var T}},{default:o(()=>t[11]||(t[11]=[m(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])),[[j,["bpm:user-group:update"]]])]),_:1})]),_:1},8,["data"])),[[q,a(y)]]),e(R,{total:a(V),page:a(r).pageNo,"onUpdate:page":t[7]||(t[7]=l=>a(r).pageNo=l),limit:a(r).pageSize,"onUpdate:limit":t[8]||(t[8]=l=>a(r).pageSize=l),onPagination:i},null,8,["total","page","limit"])]),_:1}),e(be,{ref_key:"formRef",ref:h,onSuccess:i},null,512)],64)}}});export{_e as default};