You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virtual-patient/docker/nginx/html/dist/static/js/InspectHistory-995da8e6.js

2 lines
1.6 KiB
JavaScript

import{d as k,r as g,u as w,a as v,o as H,b as q,g as o,c as n,e as t,F as z,k as S,Z as h,t as c,H as b,af as x,f as m,j as B,B as N,_ as D}from"./index-93dfb385.js";import{f as L}from"./inquiry-8a7adca2.js";import{C as P}from"./check-fab236e0.js";const T={class:"InspectHistory"},V={class:"record_list"},F=["onClick"],Z={class:"type"},j={class:"name"},E={class:"answer"},M={class:"time"},R={key:0},U={class:"page_footer"},$=k({name:"InspectHistory",__name:"InspectHistory",setup(A){const r=g([]),y=w(),l=g(""),_=v({question:"",answer:""}),d=async()=>{const e=await L({processId:y.query.processId,pageSize:a.pageSize,pageNum:a.currentPage});a.total=e.data.total,r.value=e.data.records},f=(e,p)=>{_.question=e.question,_.answer=e.answer,l.value=p},a=v({total:0,pageSize:15,currentPage:1}),I=e=>{a.currentPage=e,d()};return H(()=>{d()}),(e,p)=>{const C=q("el-pagination");return o(),n("div",T,[t("div",V,[(o(!0),n(z,null,S(r.value,(s,i)=>{var u;return o(),n("div",{class:h(["record_list_item",[l.value===i?"actived":""]]),key:i,onClick:G=>f(s,i)},[t("div",{class:h([[s.answerType==="patient"?"check":""],"title"])},[t("span",Z,c(((u=s.commonDic)==null?void 0:u.nameZh)||"一般症状"),1),t("span",j,c(s.question),1),b(m(B(P),{class:"icon"},null,512),[[x,s.answerType==="patient"]])],2),t("div",E,c(s.answer),1),t("div",M,c(s.createTime),1)],10,F)}),128)),r.value.length===0?(o(),n("div",R,"暂无数据")):N("",!0)]),t("div",U,[m(C,{onCurrentChange:I,"hide-on-single-page":!0,background:"","default-page-size":15,layout:"prev, pager, next",total:a.total,class:"mt-4"},null,8,["total"])])])}}});const Q=D($,[["__scopeId","data-v-3ac382bf"]]);export{Q as default};