chunk-81aeaf6a.c8c2b4be.js 7.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-81aeaf6a"],{"027b":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"resource"},[a("div",{staticClass:"wo_padding"},[a("div",{staticClass:"wo_list"},[t._m(0),t._v(" "),a("div",{staticClass:"wo_right"},[a("el-button",{attrs:{type:"danger",plain:""}},[t._v("危险按钮")])],1)])]),t._v(" "),a("el-table",{ref:"tableda",attrs:{stripe:"",size:"small",height:"80%",data:t.tableData,"element-loading-text":"拼命加载中"},on:{"selection-change":t.selectionLineChangeHandle,"row-click":t.handle}},[t._l(t.headerData,(function(t,e){return a("el-table-column",{key:e,attrs:{align:"center",prop:t.prop,label:t.label,sortable:t.sortable,width:"index"==t.prop?60:""}})})),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return t.particulars(e.row["id"])}}},[t._v("查看题目")])]}}])})],2),t._v(" "),a("div",{staticClass:"pagination"},[a("Pagination",{attrs:{"pagination-config":t.paginationConfig},on:{putPagination:t.getPagination}})],1),t._v(" "),a("el-dialog",{staticClass:"dialog lg-dialog-2",attrs:{"close-on-click-modal":!1,title:"大赛列表",width:"80%",visible:t.dialog.xq},on:{"update:visible":function(e){return t.$set(t.dialog,"xq",e)}}},[a("div",{staticClass:"cq_content"},[a("el-table",{ref:"table",attrs:{stripe:"",size:"small",height:"100%",data:t.dstable,"element-loading-text":"拼命加载中"}},t._l(t.dsheaderData,(function(t,e){return a("el-table-column",{key:e,attrs:{align:"center",prop:t.prop,label:t.label,sortable:t.sortable,width:"index"==t.prop?70:""}})})),1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialog.xq=!1}}},[t._v("取消")])],1)])],1)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list_left"},[a("h4",[t._v("智博杯")]),t._v(" "),a("p",{staticClass:"time"},[t._v("2021年03月12日")])])}],s=(a("ac6a"),a("333d")),i=(a("ed08"),a("b775")),l={name:"IndexLayout",components:{Pagination:s["a"]},data:function(){return{paginationConfig:{hideSinglePage:!1,page:1,size:15,sizeList:[10,15,30,50],layout:"total, sizes, prev, pager, next, jumper",total:0},dataonLineListSelections:[],tableData:[],dstable:[],dsheaderData:[],headerData:[],xqobjct:{},dialog:{xq:!1}}},created:function(){},mounted:function(){this.addHeader(),this.getResource()},methods:{addHeader:function(){var t=[];t.push({label:"用户ID",prop:"uid"}),t.push({label:"id",prop:"id",sortable:"custom"}),t.push({label:"标题",prop:"title",sortable:"custom"}),t.push({label:"状态",prop:"status",sortable:"custom"}),t.push({label:"开始报名时间",prop:"appleStime",sortable:"custom"}),t.push({label:"结束报名时间",prop:"appleEtime",sortable:"custom"}),t.push({label:"答题结束时间",prop:"answerEtime",sortable:"custom"}),t.push({label:"评审开始时间",prop:"reviewStime",sortable:"custom"}),t.push({label:"评审结束时间",prop:"reviewEtime",sortable:"custom"}),t.push({label:"简要说明",prop:"content",sortable:"custom"}),t.push({label:"地址",prop:"addr",sortable:"custom"}),t.push({label:"备注",prop:"remark",sortable:"custom"}),this.headerData=t},dsHeader:function(){var t=[];t.push({label:"id",prop:"id",sortable:"custom"}),t.push({label:"用户ID",prop:"uid"}),t.push({label:"状态",prop:"status",sortable:"custom"}),t.push({label:"标题",prop:"title",sortable:"custom"}),t.push({label:"简要说明",prop:"content",sortable:"custom"}),t.push({label:"备注",prop:"remark",sortable:"custom"}),t.push({label:"求解器类型",width:200,prop:"solverType",sortable:"custom"}),t.push({label:"难度级别",prop:"rank",sortable:"custom"}),t.push({label:"业务类型",prop:"businessType",sortable:"custom"}),t.push({label:"选题方式",prop:"selectionWay",sortable:"custom"}),t.push({label:"分值",prop:"score",sortable:"custom"}),t.push({label:"大赛id",prop:"megagameId",sortable:"custom"}),t.push({label:"题目类型",prop:"type",sortable:"custom"}),t.push({label:"创建时间",prop:"createTime",sortable:"custom"}),t.push({label:"更新时间",prop:"updateTime",sortable:"custom"}),this.dsheaderData=t},getPagination:function(t){this.paginationConfig=t},getResource:function(){var t=this,e={transCode:"D00006",page:this.paginationConfig.page,count:this.paginationConfig.size,uid:this.$store.getters.userId};Object(i["c"])(e).then((function(e){e.rows.forEach((function(t){switch(t.status){case"0":t.status="新增";break;case"1":t.status="发布";break;default:}})),t.paginationConfig.total=e.total,t.tableData=e.rows})).catch((function(t){}))},selectionLineChangeHandle:function(t){},handle:function(t){console.log(t)},particulars:function(t){var e=this;this.dsHeader(),this.dialog.xq=!0;var a={transCode:"D00008",megaganmeId:t};Object(i["c"])(a).then((function(t){t.rows.forEach((function(t){switch(t.status){case"0":t.status="新增";break;case"1":t.status="发布";break;default:}switch(t.rank){case"1":t.rank="普通";break;case"2":t.rank="一般";break;case"3":t.rank="困难";break;case"4":t.rank="发布";break;case"5":t.rank="地狱)";break;default:}switch(t.businessType){case"1":t.businessType="航天";break;case"2":t.businessType="船舶";break;default:}switch(t.selectionWay){case"1":t.selectionWay="必选题";break;case"2":t.selectionWay="选做题";break;default:}switch(t.type){case"1":t.type="普通任务";break;case"2":t.type="大赛任务";break;default:}})),e.dstable=t.rows,console.log(t)})).catch((function(t){}))}}},r=l,c=(a("6bf7"),a("2877")),u=Object(c["a"])(r,o,n,!1,null,"6aa005ee",null);e["default"]=u.exports},"333d":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-content"},[a("el-pagination",{attrs:{background:"","hide-on-single-page":t.paginationConfig.hideSinglePage,"current-page":t.paginationConfig.page,"page-size":t.paginationConfig.size,"page-sizes":t.paginationConfig.sizeList,layout:t.paginationConfig.layout,"pager-count":5,total:t.paginationConfig.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}}),t._v(" "),a("el-button",{attrs:{size:"mini",icon:"el-icon-refresh"},nativeOn:{click:function(e){return e.preventDefault(),t.refresh(e)}}},[t._v("刷新")])],1)},n=[],s=(a("c5f6"),{name:"Pagination",props:{paginationConfig:{hideSinglePage:{type:Boolean,default:function(){return!1}},page:{type:Number,default:function(){return 1}},size:{type:Number,default:function(){return 15}},sizeList:{type:Array,default:function(){return[10,15,30,50]}},layout:{type:String,default:function(){return"total, sizes, prev, pager, next, jumper"}},total:{type:Number,default:function(){return 0}}}},data:function(){return{}},created:function(){},methods:{handleCurrentChange:function(t){this.paginationConfig.page=t,this.$emit("putPagination",this.paginationConfig)},handleSizeChange:function(t){this.paginationConfig.size=t,this.$emit("putPagination",this.paginationConfig)},refresh:function(){this.$emit("putPagination",this.paginationConfig)}}}),i=s,l=(a("5f6c"),a("2877")),r=Object(l["a"])(i,o,n,!1,null,null,null);e["a"]=r.exports},3548:function(t,e,a){},"5f6c":function(t,e,a){"use strict";a("ed77")},"6bf7":function(t,e,a){"use strict";a("3548")},ed77:function(t,e,a){t.exports={color_0:"#000",color_1:"#111",color_2:"#222",color_3:"#333",color_4:"#444",color_5:"#555",color_6:"#666",color_7:"#777",color_8:"#888",color_9:"#999",color_a:"#aaa",color_b:"#bbb",color_c:"#ccc",color_d:"#ddd",color_e:"#eee",color_f2:"#f2f2f2",color_f5:"#f5f5f5",color_fa:"#fafafa",color_fc:"#fcfcfc",color_f:"#fff",color_on:"#F66420",pad:"20px"}}}]);