1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d915579","chunk-866d2fa0","chunk-b7b74f52","chunk-b7b74f52"],{1:function(t,e){},2:function(t,e){},3:function(t,e){},"33fb":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("upload-excel-component",{attrs:{"on-success":t.handleSuccess,"before-upload":t.beforeUpload,range:2}}),a("div",{staticStyle:{width:"220px",margin:"20px auto"}},[a("el-button",{staticClass:"p10",staticStyle:{width:"200px",padding:"10px 20px"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(" 提交")])],1),a("h2",{attrs:{align:"center"}},[t._v(" 测试考试时间:"+t._s(t.examAt))]),a("el-table",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:t.tableData,border:"","highlight-current-row":""}},t._l(t.tableHeader,(function(t){return a("el-table-column",{key:t,attrs:{prop:t,label:t}})})),1)],1)},n=[],s=a("3796"),i={name:"UploadExcel",components:{UploadExcelComponent:s["default"]},data:function(){return{examAt:"",tableData:[],tableHeader:[],tableOther:[]}},props:["list"],methods:{beforeUpload:function(t){var e=t.size/1024/1024<1;return!!e||(this.$message({message:"Please do not upload files larger than 1m in size.",type:"warning"}),!1)},onSubmit:function(){var t=this.examAt,e=[];for(var a in this.tableData){var r=this.tableData[a],n=r["考生身份证号"]||"",s=r["考试成绩"]||0,i=r["证书编码"]||"";if(s>=60&&""==i)return void this.$message.errorMsg("".concat(n," 无证书编码"),2);if(18!=n.length)return void this.$message.errorMsg("".concat(n," 身份证号非法"),2);e.push({cardId:n,score:s,rzCode:i})}e.length<1?this.$message.errorMsg("找不到上传数据",1):this.$emit("uploadOk",t,e)},handleSuccess:function(t){var e=t.results,a=t.header,r=t.other;this.tableData=e,this.tableHeader=a,this.tableOther=r,2!=this.tableOther.length||this.tableOther[1].length<4?this.$message.errorMsg("头部两行丢失",1):(this.examAt=this.tableOther[1][3],console.log(this.examAt,this.tableOther[1]))}}},o=i,l=a("2877"),c=Object(l["a"])(o,r,n,!1,null,null,null);e["default"]=c.exports},"408a":function(t,e,a){var r=a("e330");t.exports=r(1..valueOf)},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,a){var r=a("e330"),n=a("1d80"),s=a("577e"),i=a("5899"),o=r("".replace),l="["+i+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),f=function(t){return function(e){var a=s(n(e));return 1&t&&(a=o(a,c,"")),2&t&&(a=o(a,u,"")),a}};t.exports={start:f(1),end:f(2),trim:f(3)}},a9e3:function(t,e,a){"use strict";var r=a("83ab"),n=a("da84"),s=a("e330"),i=a("94ca"),o=a("6eeb"),l=a("1a2d"),c=a("7156"),u=a("3a9b"),f=a("d9b5"),h=a("c04e"),p=a("d039"),b=a("241c").f,d=a("06cf").f,g=a("9bf2").f,m=a("408a"),v=a("58a8").trim,x="Number",I=n[x],N=I.prototype,E=n.TypeError,S=s("".slice),_=s("".charCodeAt),w=function(t){var e=h(t,"number");return"bigint"==typeof e?e:y(e)},y=function(t){var e,a,r,n,s,i,o,l,c=h(t,"number");if(f(c))throw E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=v(c),e=_(c,0),43===e||45===e){if(a=_(c,2),88===a||120===a)return NaN}else if(48===e){switch(_(c,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+c}for(s=S(c,2),i=s.length,o=0;o<i;o++)if(l=_(s,o),l<48||l>n)return NaN;return parseInt(s,r)}return+c};if(i(x,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var A,O=function(t){var e=arguments.length<1?0:I(w(t)),a=this;return u(N,a)&&p((function(){m(a)}))?c(Object(e),a,O):e},k=r?b(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),M=0;k.length>M;M++)l(I,A=k[M])&&!l(O,A)&&g(O,A,d(I,A));O.prototype=N,N.constructor=O,o(n,x,O)}}}]);
|