mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
2 lines
7.1 KiB
JavaScript
2 lines
7.1 KiB
JavaScript
import{a1 as l,k as a,e as r,g as o,ag as g,aZ as i,a as f,r as v,m as b,f as s,aR as w,j as x,h as L}from"./index-DMqaFtX4.js";function c(t,e){return Math.floor(Math.random()*(e-t+1))+t}const M={viewBox:"0 0 24 24",width:"1em",height:"1em"};function C(t,e){return r(),a("svg",M,e[0]||(e[0]=[o("path",{fill:"currentColor",d:"M2 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m8.284 3.703A8 8 0 0 1 23 22h-2a6 6 0 0 0-3.537-5.473zm-.688-11.29A5.5 5.5 0 0 1 21 8.5a5.5 5.5 0 0 1-5 5.478v-2.013a3.5 3.5 0 0 0 1.041-6.609z"},null,-1)]))}const _=l({name:"ri-group-line",render:C}),z={viewBox:"0 0 24 24",width:"1em",height:"1em"};function y(t,e){return r(),a("svg",z,e[0]||(e[0]=[o("path",{fill:"currentColor",d:"M5.455 15L1 18.5V3a1 1 0 0 1 1-1h15a1 1 0 0 1 1 1v12zm-.692-2H16V4H3v10.385zM8 17h10.237L20 18.385V8h1a1 1 0 0 1 1 1v13.5L17.546 19H9a1 1 0 0 1-1-1z"},null,-1)]))}const $=l({name:"ri-question-answer-line",render:y}),k={viewBox:"0 0 24 24",width:"1em",height:"1em"};function D(t,e){return r(),a("svg",k,e[0]||(e[0]=[o("path",{fill:"currentColor",d:"M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1zm-.692-2H20V5H4v13.385zm5.53-4.879l4.243-4.242l1.414 1.414l-5.657 5.657l-3.89-3.89l1.415-1.414z"},null,-1)]))}const H=l({name:"ri-chat-check-line",render:D}),V={viewBox:"0 0 24 24",width:"1em",height:"1em"};function B(t,e){return r(),a("svg",V,e[0]||(e[0]=[o("path",{fill:"currentColor",d:"m12 .5l4.226 6.183l7.186 2.109l-4.575 5.93l.216 7.486L12 19.69l-7.054 2.518l.216-7.486l-4.575-5.93l7.187-2.109zm0 3.544L9.022 8.402L3.957 9.887l3.225 4.179l-.153 5.274l4.97-1.774l4.97 1.774l-.151-5.274l3.224-4.179l-5.065-1.485zM10 12a2 2 0 1 0 4 0h2a4 4 0 0 1-8 0z"},null,-1)]))}const N=l({name:"ri-star-smile-line",render:B}),q=["周日","周一","周二","周三","周四","周五","周六"],Q=[{icon:_,bgColor:"#effaff",color:"#41b6ff",duration:2200,name:"需求人数",value:36e3,percent:"+88%",data:[2101,5288,4239,4962,6752,5208,7450]},{icon:$,bgColor:"#fff5f4",color:"#e85f33",duration:1600,name:"提问数量",value:16580,percent:"+70%",data:[2216,1148,1255,788,4821,1973,4379]},{icon:H,bgColor:"#eff8f4",color:"#26ce83",duration:1500,name:"解决数量",value:16499,percent:"+99%",data:[861,1002,3195,1715,3666,2415,3645]},{icon:N,bgColor:"#f6f4fe",color:"#7846e5",duration:100,name:"用户满意度",value:100,percent:"+100%",data:[100]}],U=[{requireData:[2101,5288,4239,4962,6752,5208,7450],questionData:[2216,1148,1255,1788,4821,1973,4379]},{requireData:[2101,3280,4400,4962,5752,6889,7600],questionData:[2116,3148,3255,3788,4821,4970,5390]}],W=[{week:"周一",percentage:85,duration:110,color:"#41b6ff"},{week:"周二",percentage:86,duration:105,color:"#41b6ff"},{week:"周三",percentage:88,duration:100,color:"#41b6ff"},{week:"周四",percentage:89,duration:95,color:"#41b6ff"},{week:"周五",percentage:94,duration:90,color:"#26ce83"},{week:"周六",percentage:96,duration:85,color:"#26ce83"},{week:"周日",percentage:100,duration:80,color:"#26ce83"}].reverse(),m=Array.from({length:30}).map((t,e)=>({id:e+1,requiredNumber:c(13500,19999),questionNumber:c(12600,16999),resolveNumber:c(13500,17999),satisfaction:c(95,100),date:i().subtract(e,"day").format("YYYY-MM-DD")})),Z=g(m).slice(0,14).map((t,e)=>Object.assign(t,{date:`${i().subtract(e,"day").format("YYYY-MM-DD")} ${q[i().subtract(e,"day").day()]}`})),Y={viewBox:"0 0 24 24",width:"1em",height:"1em"};function j(t,e){return r(),a("svg",Y,e[0]||(e[0]=[o("path",{fill:"currentColor",d:"M14.6 8H21a2 2 0 0 1 2 2v2.105c0 .26-.051.52-.15.761l-3.095 7.515a1 1 0 0 1-.925.62H2a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1h3.482a1 1 0 0 0 .817-.424L11.752.851a.5.5 0 0 1 .632-.159l1.814.908a2.5 2.5 0 0 1 1.305 2.852zM7 10.588V19h11.16L21 12.105V10h-6.4a2 2 0 0 1-1.938-2.493l.903-3.548a.5.5 0 0 0-.261-.57l-.661-.331l-4.71 6.672c-.25.354-.57.645-.933.858M5 11H3v8h2z"},null,-1)]))}const A=l({name:"ri-thumb-up-line",render:j}),O={viewBox:"0 0 24 24",width:"1em",height:"1em"};function R(t,e){return r(),a("svg",O,e[0]||(e[0]=[o("path",{fill:"currentColor",d:"M19.243 4.757a6 6 0 0 1 1.65 5.38c.568.16 1.106.463 1.554.908a3.55 3.55 0 0 1 0 5.047L17 21.5l-3.022-3L11 21.485l-8.48-8.492A6 6 0 0 1 11 4.529a6 6 0 0 1 8.242.228m-6.281 7.708a1.55 1.55 0 0 0 0 2.208L17 18.682l4.038-4.009a1.55 1.55 0 0 0 0-2.208a1.614 1.614 0 0 0-2.268.002l-1.772 1.754l-1.407-1.396l-.363-.36a1.613 1.613 0 0 0-2.266 0m-8.79-6.293a4 4 0 0 0-.192 5.451L11 18.654l1.559-1.562l-1.006-1a3.55 3.55 0 0 1 0-5.047a3.614 3.614 0 0 1 5.084 0l.363.36l.363-.36a3.6 3.6 0 0 1 1.465-.882a4 4 0 0 0-1.001-3.993a4 4 0 0 0-5.49-.153l-1.335 1.198l-1.336-1.197a4 4 0 0 0-5.494.154"},null,-1)]))}const S=l({name:"ri-hearts-line",render:R}),T={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",class:"empty-icon",viewBox:"0 0 1024 1024"};function E(t,e){return r(),a("svg",T,e[0]||(e[0]=[o("path",{d:"M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18M673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4zm146.5-486.1c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8m-444.5 51.6L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4M512 239.3h2.5c19.5.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1z"},null,-1)]))}const I={render:E};function P(){const t=f([]),e=f(!0),h=[{sortable:!0,label:"序号",prop:"id"},{sortable:!0,label:"需求人数",prop:"requiredNumber",filterMultiple:!1,filterClassName:"pure-table-filter",filters:[{text:"≥16000",value:"more"},{text:"<16000",value:"less"}],filterMethod:(n,{requiredNumber:d})=>n==="more"?d>=16e3:d<16e3},{sortable:!0,label:"提问数量",prop:"questionNumber"},{sortable:!0,label:"解决数量",prop:"resolveNumber"},{sortable:!0,label:"用户满意度",minWidth:100,prop:"satisfaction",cellRenderer:({row:n})=>s("div",{class:"flex justify-center w-full"},[s("span",{class:"flex items-center w-[60px]"},[s("span",{class:"ml-auto mr-2"},[n.satisfaction,x("%")]),s(L("iconifyIconOffline"),{icon:n.satisfaction>98?S:A,color:"#e85f33"},null)])])},{sortable:!0,label:"统计日期",prop:"date"},{label:"操作",fixed:"right",slot:"operation"}],u=v({pageSize:10,currentPage:1,layout:"prev, pager, next",total:0,align:"center"});function p(n){e.value=!0,w(300).then(()=>{e.value=!1})}return b(()=>{t.value=m,u.total=t.value.length,e.value=!1}),{Empty:I,loading:e,columns:h,dataList:t,pagination:u,onCurrentChange:p}}const F=Object.freeze(Object.defineProperty({__proto__:null,useColumns:P},Symbol.toStringTag,{value:"Module"}));export{F as a,U as b,Q as c,Z as l,W as p,P as u};
|