/* empty css */import{n as i}from"./vueComponentNormalizer.9ef17bb1.js";import{F as l}from"./FormLayout.c7820bdd.js";import{T as s}from"./TableLayout.05a39499.js";/* empty css */import{Q as p}from"./QueryInput.7afa399e.js";/* empty css *//* empty css */import{p as u,a as c}from"./humanEval.e7206f1d.js";/* empty css *//* empty css */import"./index.f5168bf8.js";var g=function(){var e=this,n=e.$createElement,o=e._self._c||n;return o("div",{staticClass:"v-page classify_page"},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.paper_list_loading,expression:"paper_list_loading"}],staticClass:"v-ctx"},[o("FormLayout",{ref:"formLayoutRef",attrs:{items:e.formItems,model:e.form,rules:e.rules,"label-width":"70px","label-position":"right",inline:!0},scopedSlots:e._u([{key:"title",fn:function(){return[o("QueryInput",{on:{query:e.pagingFindList},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})]},proxy:!0},{key:"year",fn:function(){return[o("el-date-picker",{attrs:{type:"year",placeholder:"\u9009\u62E9\u5E74\u4EFD"},on:{change:e.pagingFindList},model:{value:e.current_query_year,callback:function(t){e.current_query_year=t},expression:"current_query_year"}})]},proxy:!0},{key:"btns",fn:function(){},proxy:!0}])}),o("TableLayout",{attrs:{column:e.column,data:e.table_data,pageInfo:e.page_info},on:{"current-change":function(t){return e.pagingChange({currentPage:t})},"size-change":function(t){return e.pagingChange({pageSize:t})}},scopedSlots:e._u([{key:"status",fn:function(t){return[o("el-switch",{staticStyle:{"margin-left":"10px"},attrs:{"active-value":1,"inactive-value":0},on:{change:function(r){return e.changeItemIsAnonymous(r,t.row)}},model:{value:t.row.isAnonymous,callback:function(r){e.$set(t.row,"isAnonymous",r)},expression:"props.row.isAnonymous"}})]}},{key:"gradeMode",fn:function(t){return[o("el-tag",{attrs:{type:t.row.gradeMode===1?"success":"info"}},[e._v(e._s(t.row.gradeMode===1?"\u4EBA\u5DE5":"\u673A\u5668"))])]}},{key:"action",fn:function(t){return[o("el-button",{attrs:{type:"text",icon:"i-j-rgpj-xiangqing"},on:{click:function(r){return e.toDetails(t.row)}}},[e._v("\u67E5\u770B\u8BE6\u60C5 ")])]}}])})],1)])},f=[];const m={components:{TableLayout:s,FormLayout:l,QueryInput:p},data:()=>({table_data:[],page_info:{currentPage:1,pageSize:10,total:0},paper_list_loading:!1,form:{title:"",isPractive:1},is_show_info:!1,exam_info_dialog_show:!1,current_exam:null,current_query_year:null}),created(){this.formItems=[{prop:"title"},{prop:"year"},{prop:"btns",model:{class:"gy-btns"}}],this.column=[{prop:"title",label:"\u8003\u8BD5\u540D\u79F0","min-width":125,align:"center","show-overflow-tooltip":!0},{prop:"examStartTime",label:"\u5F00\u59CB\u65F6\u95F4","min-width":130,align:"center","show-overflow-tooltip":!0},{prop:"examEndTime",label:"\u7ED3\u675F\u65F6\u95F4","min-width":130,align:"center","show-overflow-tooltip":!0},{prop:"totalScore",label:"\u8003\u8BD5\u603B\u5206","min-width":80,align:"center","show-overflow-tooltip":!0},{prop:"passScore",label:"\u53CA\u683C\u5206","min-width":80,align:"center","show-overflow-tooltip":!0},{prop:"gradeMode",label:"\u5224\u5377\u65B9\u5F0F","min-width":80,align:"center","show-overflow-tooltip":!0},{prop:"gradedCount",label:"\u5DF2\u8BC4\u5206\u4EBA\u6570","min-width":80,align:"center","show-overflow-tooltip":!0},{prop:"ungradedCount",label:"\u672A\u8BC4\u5206\u4EBA\u6570","min-width":80,align:"center","show-overflow-tooltip":!0},{prop:"status",label:"\u533F\u540D\u5224\u5377",width:100,align:"center","show-overflow-tooltip":!0},{prop:"action",label:"\u64CD\u4F5C",width:120,align:"center","show-overflow-tooltip":!0}]},activated(){this.pagingFindList()},methods:{toDetails(e){this.$router.push({path:"/assessment-evaluation/human-evaluation/eval-details/"+e.examId})},changeItemIsAnonymous(e,n){const o={id:n.examId,isAnonymous:e};u(o).then(t=>{t.code!==0&&(paperItem.isAnonymous=e===1?0:1,this.$message.error("\u4FEE\u6539\u5931\u8D25"))})},formatTime(e){const n=e/1e3;let o=Math.floor(n/60/60);o=o.toString().padStart(2,"0");let t=Math.floor(n/60)%60;t=t.toString().padStart(2,"0");let r=Math.floor(n)%60;return r=r.toString().padStart(2,"0"),`${o}:${t}:${r}`},pagingChange(e){typeof e.currentPage!="number"&&typeof e.pageSize!="number"||(this.page_info={...this.page_info,...e},this.pagingFindList())},initPageInfo(){this.page_info={currentPage:1,pageSize:this.page_info.pageSize,total:0}},pagingFindList(e){e instanceof PointerEvent&&this.initPageInfo(),this.current_query_year?this.form.year=this.current_query_year.format("yyyy-MM-dd hh:mm:ss"):this.form.year=null,this.paper_list_loading=!0,c({...this.page_info,...this.form}).then(n=>{const{currentPage:o,pageSize:t,total:r}=n.data;this.table_data=n.data.data,this.table_data.length===0&&this.page_info.currentPage!=1&&(this.initPageInfo(),this.pagingFindList()),this.page_info={currentPage:o,pageSize:t,total:r}}).finally(n=>{this.paper_list_loading=!1})}}},a={};var d=i(m,g,f,!1,_,"9460d740",null,null);function _(e){for(let n in a)this[n]=a[n]}const M=function(){return d.exports}();export{M as default};