chunk-0ec810dc.828b6c4f.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ec810dc","chunk-b7b74f52","chunk-4aaf9a2f","chunk-b7b74f52","chunk-f6657b32","chunk-2d0ac361","chunk-2d0cc0e0","chunk-2d216ba7","chunk-2d0a4474","chunk-2d0c5139","chunk-2d0c5139"],{"0680":function(t,e,n){"use strict";n.r(e),n.d(e,"getDict",(function(){return o}));var a=n("1da1"),r=(n("96cf"),n("4360")),o=function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,r["store"].dispatch("dictionary/getDictionary",e);case 2:return t.abrupt("return",r["store"].getters["dictionary/getDictionary"][e]);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},1925:function(t,e,n){"use strict";n.r(e),n.d(e,"searchApi",(function(){return r}));var a=n("b775"),r=function(t){return Object(a["default"])({url:"/admin/search",method:"post",data:t})}},"3e0a":function(t,e){t.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDAAQDAwQDAwQEBAQFBQQFBwsHBwYGBw4KCggLEA4RERAOEA8SFBoWEhMYEw8QFh8XGBsbHR0dERYgIh8cIhocHRz/2wBDAQUFBQcGBw0HBw0cEhASHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBz/wAARCAClAHEDASIAAhEBAxEB/8QAGwABAAMBAQEBAAAAAAAAAAAAAAECAwQFBgj/xAA6EAABAwIBBwsDAwMFAAAAAAABAAIDBBESBRMUIVJxsSIjMTIzQVFikqHRYYHBBkJyFTRTQ5Gi4fH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/dNPTxyxY34i4k3OI+J+q00OHZd6z8qtJ2I3u4ldKDDQ4dl3rd8poc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f)},"4bfb":function(t,e,n){"use strict";n.r(e),n.d(e,"getUserList",(function(){return r})),n.d(e,"getUserCourseList",(function(){return o})),n.d(e,"finishDownload",(function(){return i})),n.d(e,"getUserFinishList",(function(){return c})),n.d(e,"getIdentifyList",(function(){return s})),n.d(e,"getUnRegisterList",(function(){return u})),n.d(e,"resetUserPass",(function(){return l})),n.d(e,"updateUserInfo",(function(){return d})),n.d(e,"getCertificateList",(function(){return f})),n.d(e,"getWxpaylogList",(function(){return h})),n.d(e,"buyCourseList",(function(){return p})),n.d(e,"postData",(function(){return g}));var a=n("b775"),r=function(t){return Object(a["default"])({url:"/admin/getUserList",method:"post",data:t})},o=function(t){return Object(a["default"])({url:"/admin/getUserCourseList",method:"post",data:t})},i=function(t){return Object(a["default"])({url:"/admin/finishDownload",method:"post",data:t})},c=function(t){return Object(a["default"])({url:"/admin/getUserFinishList",method:"post",data:t})},s=function(t){return Object(a["default"])({url:"/admin/getIdentifyList",method:"post",data:t})},u=function(t){return Object(a["default"])({url:"/admin/getUnRegisterList",method:"post",data:t})},l=function(t){return Object(a["default"])({url:"/admin/resetUserPass",method:"post",data:t})},d=function(t){return Object(a["default"])({url:"/admin/updateUserInfo",method:"post",data:t})},f=function(t){return Object(a["default"])({url:"/admin/getCertificateList",method:"post",data:t})},h=function(t){return Object(a["default"])({url:"/admin/getWxpaylogList",method:"post",data:t})},p=function(t){return Object(a["default"])({url:"/admin/buyCourseList",method:"post",data:t})},g=function(t,e){return Object(a["default"])({url:"/admin/".concat(t),method:"post",data:e})}},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var a=n("e330"),r=n("1d80"),o=n("577e"),i=n("5899"),c=a("".replace),s="["+i+"]",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),d=function(t){return function(e){var n=o(r(e));return 1&t&&(n=c(n,u,"")),2&t&&(n=c(n,l,"")),n}};t.exports={start:d(1),end:d(2),trim:d(3)}},"783b":function(t,e,n){"use strict";n("df77")},a4a2:function(t,e,n){"use strict";n.r(e);var a=n("5530"),r=n("1da1"),o=(n("96cf"),n("4de4"),n("d3b7"),n("159b"),n("d81d"),n("0680"));n("c466"),n("ed08");e["default"]={data:function(){return{page:1,total:10,size:10,tableData:[],searchInfo:{isFinish:0}}},watch:{},methods:{filterDict:function(t,e){var n=this[e+"Options"]&&this[e+"Options"].filter((function(e){return e.value==t}));return n&&n[0]&&n[0].label},getDict:function(t){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["getDict"])(t);case 2:return a=n.sent,e[t+"Options"]=a,n.abrupt("return",a);case 5:case"end":return n.stop()}}),n)})))()},handleSizeChange:function(t){this.size=t,this.getTableData()},handleCurrentChange:function(t){this.page=t,this.getTableData()},handleSelectAll:function(t){console.log("handleSelectAll",t),this[t].forEach((function(t){t._selected=!0}))},handleSelectNull:function(t){console.log("handleSelectNull",t),this[t].forEach((function(t){t._selected=!1}))},handleChangeItem:function(t,e,n){this[t][e]=n(this[t][e])},getAllTableData:function(t){var e=Object(a["a"])({size:1e4,from:0},this.searchInfo);this.listApi(e).then((function(e){t(e)}))},getTableData:function(){var t=arguments,e=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var r,o,i,c,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:e.page,o=t.length>1&&void 0!==t[1]?t[1]:e.size,i=(r-1)*o,c=Object(a["a"])({size:o,from:i},e.searchInfo),n.next=6,e.listApi(c);case 6:s=n.sent,200==s.code&&(e.tableData=s.data.list.map((function(t){return t.edit=!1,t._selected=!1,t})),e.total=s.data.total);case 8:case"end":return n.stop()}}),n)})))()}}}},a9e3:function(t,e,n){"use strict";var a=n("83ab"),r=n("da84"),o=n("e330"),i=n("94ca"),c=n("6eeb"),s=n("1a2d"),u=n("7156"),l=n("3a9b"),d=n("d9b5"),f=n("c04e"),h=n("d039"),p=n("241c").f,g=n("06cf").f,m=n("9bf2").f,A=n("408a"),b=n("58a8").trim,I="Number",w=r[I],D=w.prototype,v=r.TypeError,y=o("".slice),E=o("".charCodeAt),x=function(t){var e=f(t,"number");return"bigint"==typeof e?e:B(e)},B=function(t){var e,n,a,r,o,i,c,s,u=f(t,"number");if(d(u))throw v("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=b(u),e=E(u,0),43===e||45===e){if(n=E(u,2),88===n||120===n)return NaN}else if(48===e){switch(E(u,1)){case 66:case 98:a=2,r=49;break;case 79:case 111:a=8,r=55;break;default:return+u}for(o=y(u,2),i=o.length,c=0;c<i;c++)if(s=E(o,c),s<48||s>r)return NaN;return parseInt(o,a)}return+u};if(i(I,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var R,k=function(t){var e=arguments.length<1?0:w(x(t)),n=this;return l(D,n)&&h((function(){A(n)}))?u(Object(e),n,k):e},S=a?p(w):"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(","),H=0;S.length>H;H++)s(w,R=S[H])&&!s(k,R)&&m(k,R,g(w,R));k.prototype=D,D.constructor=k,c(r,I,k)}},c466:function(t,e,n){"use strict";n.r(e),n.d(e,"curDate",(function(){return a})),n.d(e,"formatTimeToStr",(function(){return r})),n.d(e,"toDatetime",(function(){return o})),n.d(e,"toDate",(function(){return i})),n.d(e,"toDateShow",(function(){return c})),n.d(e,"getDate",(function(){return s}));n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0");function a(){var t=(new Date).Format("yyyy-MM-dd");return t.toLocaleString()}function r(t,e){var n=new Date(t).Format("yyyy-MM-dd hh:mm:ss");return e&&(n=new Date(t).Format(e)),n.toLocaleString()}function o(t){if(!t)return"2020-01-01 00:00:00";var e=new Date(t).Format("yyyy-MM-dd hh:mm:ss");return e.toLocaleString()}function i(t){if(!t)return"2020-01-01";var e=new Date(t).Format("yyyy-MM-dd");return e.toLocaleString()}function c(t){if(!t)return"---";var e=new Date(t).Format("yyyy-MM-dd");return e.toLocaleString()}function s(t){var e=new Date;return e.setDate(e.getDate()+t),i(e)}Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr((""+e[n]).length)));return t}},d7d9:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"search-term"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.searchInfo}},[n("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[n("el-input",{staticClass:"user-form-item",attrs:{placeholder:"请输入手机号码",type:"text",clearable:""},model:{value:t.searchInfo.phone,callback:function(e){t.$set(t.searchInfo,"phone",e)},expression:"searchInfo.phone"}})],1),n("el-form-item",{attrs:{label:"姓名",prop:"phone"}},[n("el-input",{staticClass:"user-form-item",attrs:{placeholder:"请输入姓名",type:"text",clearable:""},model:{value:t.searchInfo.nickname,callback:function(e){t.$set(t.searchInfo,"nickname",e)},expression:"searchInfo.nickname"}})],1),n("el-form-item",{attrs:{label:"身份证",prop:"cardId"}},[n("el-input",{staticClass:"user-form-item",attrs:{placeholder:"请输入身份证",type:"text",clearable:""},model:{value:t.searchInfo.cardId,callback:function(e){t.$set(t.searchInfo,"cardId",e)},expression:"searchInfo.cardId"}})],1),n("el-form-item",{attrs:{label:"是否新培",prop:"type"}},[n("el-switch",{attrs:{"active-value":"新培","inactive-value":"继续教育"},model:{value:t.searchInfo.type,callback:function(e){t.$set(t.searchInfo,"type",e)},expression:"searchInfo.type"}})],1),n("el-form-item",{attrs:{label:"是否测试",prop:"isTest"}},[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.searchInfo.qa,callback:function(e){t.$set(t.searchInfo,"qa",e)},expression:"searchInfo.qa"}})],1),n("el-form-item",{attrs:{label:"学习完成",prop:"isOk"}},[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.searchInfo.isFinish,callback:function(e){t.$set(t.searchInfo,"isFinish",e)},expression:"searchInfo.isFinish"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.download}},[t._v(" 导出excel ")])],1)],1)],1),n("el-table",{attrs:{data:t.tableData,border:"",stripe:""}},[n("el-table-column",{attrs:{label:"ID",width:"70",prop:"id"}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phone"}}),n("el-table-column",{attrs:{label:"身份证",prop:"cardId"}}),n("el-table-column",{attrs:{label:"姓名",prop:"nickname"}}),n("el-table-column",{attrs:{label:"分类",prop:"type"}}),n("el-table-column",{attrs:{label:"课程",prop:"name"}}),n("el-table-column",{attrs:{label:"获得学时",prop:"getXs"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.totalXs>a.getXs?a.getXs/10:a.totalXs/10)+"/"+t._s(a.totalXs/10))])]}}])}),n("el-table-column",{attrs:{label:"学习时间",prop:"createAt"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.startDate)+"到 "+t._s(a.endDate||"至今"))])]}}])})],1),n("el-pagination",{style:{float:"right",padding:"20px"},attrs:{"current-page":t.page,"page-size":t.pageSize,"page-sizes":[10,30,50,100,1e3],total:t.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)},r=[],o=(n("d3b7"),n("3ca3"),n("ddb0"),n("d81d"),n("99af"),n("4bfb")),i=n("c466"),c=n("a4a2"),s=(n("ed08"),n("5f17")),u=n("ceea"),l={name:"Api",data:function(){return{listApi:o["getUserCourseList"],page:1,total:10,pageSize:10,tableData:[]}},watch:{"searchInfo.phone":function(t){this.page=1,""!=t&&11!=t.length||this.getTableData()},"searchInfo.cardId":function(t){this.page=1,""!=t&&18!=t.length||this.getTableData()},"searchInfo.isFinish":function(t){this.page=1,this.getTableData()},"searchInfo.type":function(t){this.page=1,this.getTableData()},"searchInfo.qa":function(t){this.page=1,this.getTableData()},"searchInfo.nickname":function(t){this.page=1,this.getTableData()}},components:{DropSearch:s["default"],ShowImg:u["default"]},mixins:[c["default"]],methods:{validatePass:function(t,e,n){e==this.form.password?n():n(new Error("两次密码不服"))},download:function(){var t=this;this.downloadLoading=!0,this.total<1?this.$message.errorMsg("未搜到数据",1):Promise.all([n.e("chunk-0b34d52f"),n.e("chunk-53ec1ae2"),n.e("chunk-5164a781"),n.e("chunk-2cf91894")]).then(n.bind(null,"4bf8")).then((function(e){var n=["序号","姓名","性别","身份证","手机","学历","工作单位","岗位名称","学时数","完成培训时间","证书编号","企业注册地","备注"],a=["id","nickname","gender","cardId","phone","education","company","name","totalXs","endDate","rzCode","companyAddress","marks"],r=t.tableData,o=t.formatJson(a,r);e.export_json_to_excel({header:n,data:o,filename:Date.now(),autoWidth:!0,bookType:"xlsx"}),t.downloadLoading=!1}))},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){if("marks"===t){var n="";return e.getXs>=e.totalXs?n+="完成课程":n+="完成".concat(e.getXs/10,"学时"),n+=",成绩".concat(e.score," ").concat(e.score>=60?"合格":"不合格"),n}return"totalXs"==t?e.totalXs/10:e[t]}))}))}},filters:{toDatetime:i["toDatetime"],toDate:i["toDate"]},created:function(){this.getTableData()}},d=l,f=(n("783b"),n("2877")),h=Object(f["a"])(d,a,r,!1,null,"a3ff1056",null);e["default"]=h.exports},df77:function(t,e,n){}}]);