(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d208a11"],{a639:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("pageGenerator",{attrs:{apiConfig:e.apiConfig,columns:e.columns,pageConfig:e.pageConfig,filterConfig:e.filterConfig,actionConfig:e.actionConfig},scopedSlots:e._u([{key:"status",fn:function(t){var n=t.row;return[e._v(" "+e._s(e.getStatus(n.status))+" ")]}},{key:"scene",fn:function(t){var n=t.row;return[e._v(" "+e._s(1==n.scene?"会话诊断":"快速诊断")+" ")]}},{key:"score",fn:function(t){var i=t.row;return[2==i.status?n("el-tag",{attrs:{type:i.score>=80?"success":i.score>=60?"warning":"danger"}},[e._v(" "+e._s(i.score)+" ")]):n("span",[e._v("--")])]}}])})],1)},o=[],s=(n("e8d6"),{name:"CommonList",components:{},data:function(){return{id:"",pageConfig:{showAdd:!1,showRefresh:!0,showSelection:!1,showBatchDel:!1,showPagination:!0,showExport:!1,listQueryConfig:{page:1,limit:10},actionWidth:"200",actionAlign:"center"},filterConfig:[],apiConfig:{getList:"tongue_diagnosis/diagnose/getList",del:"tongue_diagnosis/diagnose/delete"},columns:[{label:"ID",prop:"id",align:"center",width:60},{label:"用户",prop:"user"},{label:"性别",prop:"gender"},{label:"分数",prop:"score",slot:"score"},{label:"类型",prop:"scene",slot:"scene"},{label:"状态",prop:"status",slot:"status"},{label:"创建时间",prop:"createtime"}],actionConfig:[{label:"删除",type:"danger",size:"mini",icon:"el-icon-delete",click:"del",layout:"table"},{label:"详情",type:"primary",size:"mini",icon:"el-icon-view",click:this.viewDetail,layout:"table"}]}},methods:{viewDetail:function(e){this.id=e.id,this.$router.push({path:"/tongue_diagnosis/detail/"+this.id})},getStatus:function(e){switch(e){case 0:return"待诊断";case 1:return"诊断中";case 2:return"诊断完成"}}}}),a=s,r=n("3d7a"),l=Object(r["a"])(a,i,o,!1,null,"39f61f5e",null);t["default"]=l.exports}}]);