chunk-2655e9c0.968581f8.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2655e9c0","chunk-b7b74f52","chunk-4aaf9a2f","chunk-181bbd58","chunk-b7b74f52","chunk-f6657b32","chunk-2d0ac361","chunk-2d0b9d88","chunk-2d216ba7","chunk-2d0a4474","chunk-2d0bcdcc"],{"04d1":function(t,e,n){var r=n("342f"),a=r.match(/firefox\/(\d+)/i);t.exports=!!a&&+a[1]},"0680":function(t,e,n){"use strict";n.r(e),n.d(e,"getDict",(function(){return o}));var r=n("1da1"),a=(n("96cf"),n("4360")),o=function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,a["store"].dispatch("dictionary/getDictionary",e);case 2:return t.abrupt("return",a["store"].getters["dictionary/getDictionary"][e]);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},"09bc":function(t,e,n){"use strict";n("bf54")},"0c40":function(t,e,n){"use strict";n.r(e);var r=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:{prop:"phone"}},[n("el-input",{staticStyle:{width:"120px"},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:{prop:"cardId"}},[n("el-input",{staticStyle:{width:"190px"},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:"courseName"}},[n("DropSearch",{staticStyle:{width:"130px"},attrs:{type:"course",attr:"name",param:{group:"新培"}},on:{select:t.okCourse}},[t._v("</>")])],1),n("el-form-item",{attrs:{label:"分期",prop:"planName"}},[n("DropSearch",{staticStyle:{width:"115px"},attrs:{type:"trainPlan",attr:"name"},on:{select:t.okTrainPlan}})],1),n("el-form-item",{attrs:{label:"报考次数",prop:"resitCount"}},[n("el-select",{staticStyle:{width:"100px"},model:{value:t.searchInfo.resitCount,callback:function(e){t.$set(t.searchInfo,"resitCount",e)},expression:"searchInfo.resitCount"}},[n("el-option",{attrs:{label:"全部",value:-1}}),n("el-option",{attrs:{label:"首次",value:0}}),n("el-option",{attrs:{label:"第一次",value:1}}),n("el-option",{attrs:{label:"第二次",value:2}}),n("el-option",{attrs:{label:"第三次",value:3}}),n("el-option",{attrs:{label:"第四次",value:4}}),n("el-option",{attrs:{label:"五次以上",value:5}})],1)],1),n("el-form-item",{attrs:{label:"是否完成",prop:"isFinish"}},[n("el-select",{staticStyle:{width:"90px"},model:{value:t.searchInfo.isFinish,callback:function(e){t.$set(t.searchInfo,"isFinish",e)},expression:"searchInfo.isFinish"}},[n("el-option",{attrs:{label:"全部",value:0}}),n("el-option",{attrs:{label:"已完成",value:1}}),n("el-option",{attrs:{label:"未完成",value:2}})],1)],1),n("el-form-item",{attrs:{prop:"isFinish"}},[n("el-select",{staticStyle:{width:"110px"},attrs:{placeholder:"用户来源"},model:{value:t.searchInfo.agentId,callback:function(e){t.$set(t.searchInfo,"agentId",e)},expression:"searchInfo.agentId"}},[n("el-option",{attrs:{label:"所有来源",value:0}}),n("el-option",{attrs:{label:"宁德用户",value:1}}),n("el-option",{attrs:{label:"福安用户",value:2}}),n("el-option",{attrs:{label:"柘荣用户",value:3}}),n("el-option",{attrs:{label:"霞浦用户",value:4}})],1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.exportUser}},[t._v("导出excel")])],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.exportHead}},[t._v("导出头像")])],1)],1)],1),n("el-table",{attrs:{data:t.tableData,border:"",stripe:""}},[n("el-table-column",{attrs:{label:"姓名",prop:"nickname",width:"80"}}),n("el-table-column",{attrs:{label:"性别",prop:"gender",align:"center",width:"60"}}),n("el-table-column",{attrs:{label:"身份证",prop:"cardId",width:"165"}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phone",width:"110"}}),n("el-table-column",{attrs:{label:"学历",prop:"education","min-width":"120"}}),n("el-table-column",{attrs:{label:"所在企业",prop:"company","min-width":"120"}}),n("el-table-column",{attrs:{label:"报考岗位",prop:"courseName"}}),n("el-table-column",{attrs:{label:"报考次数",prop:"resitCount",align:"center",width:"60"}}),n("el-table-column",{attrs:{label:"培训开始",prop:"startDate",width:"95",align:"center"}}),n("el-table-column",{attrs:{label:"培训结束",prop:"endDate",width:"95",align:"center"}}),n("el-table-column",{attrs:{label:"学时",prop:"xs",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("span",[t._v(" "+t._s(r.getXs/10)+" / "+t._s(r.totalXs/10))])]}}])}),n("el-table-column",{attrs:{label:"分期",prop:"planName",width:"90",align:"center"}}),n("el-table-column",{attrs:{label:"用户来源",prop:"agentId",width:"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("span",[t._v(" "+t._s(t._f("toAgent")(r.agentId)))])]}}])})],1),n("el-pagination",{style:{float:"right",padding:"20px"},attrs:{"current-page":t.page,"page-size":t.size,"page-sizes":[10,30,50,100],total:t.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)},a=[],o=(n("b0c0"),n("4e82"),n("d3b7"),n("3ca3"),n("ddb0"),n("d81d"),n("354d")),i=n("5f17"),u=n("a4a2"),c=n("2a18"),s={name:"Api",components:{DropSearch:i["default"]},data:function(){return{listApi:o["getUserApplyConfirmList"],tableData:[],courseName:"",searchInfo:{confirm:1,resitCount:-1,isFinish:0,status:2,planId:0,courseId:0}}},watch:{searchInfo:{handler:function(t,e){this.page=1,this.getTableData()},deep:!0}},filters:{toAgent:c["toAgent"]},mixins:[u["default"]],methods:{confirmUser:function(t){this.$router.push({name:"xinpei_student_info",query:{userId:t.userId}})},okTrainPlan:function(t){this.searchInfo.planId=t.plan_id},okCourse:function(t){this.searchInfo.courseId=t.id||0,this.courseName=t.name||""},exportHead:function(){var t=this,e=Object.assign({},this.searchInfo,{size:1e4,from:0});Object(o["getUserApplyConfirmList"])(e).then((function(e){if(200==e.code){var n=[];for(var r in e.data.list)n.push(e.data.list[r].cardId);t.doexportHead(n)}}))},doexportHead:function(t){Object(o["postData"])("downLoadHeadZip",{list:t}).then((function(t){200==t.code&&window.open(t.data.url,"_brank")}))},doexportUser:function(t){t=t.sort((function(t,e){return 0+t.seat>0+e.seat?1:-1}));var e="学员基本信息";this.courseName&&(e+="-"+this.courseName),Promise.all([n.e("chunk-0b34d52f"),n.e("chunk-53ec1ae2"),n.e("chunk-5164a781"),n.e("chunk-309ff02a")]).then(n.bind(null,"4bf8")).then((function(n){var r=["姓名","性别","身份证","手机","学历","工作单位","岗位","开始培训时间","培训结束时间","学时","分期","用户来源"],a=t.map((function(t){return[t.nickname,t.gender,t.cardId,t.phone,t.education,t.company,t.courseName,t.startDate,t.endDate,parseInt(t.getXs/10)+"/"+parseInt(t.totalXs/10),t.planName,Object(c["toAgent"])(t.agentId)]}));n.export_json_to_excel({header:r,data:a,filename:e,autoWidth:!0,bookType:"xlsx"})}))},exportUser:function(){var t=this,e=Object.assign({},this.searchInfo,{size:1e4,from:0});Object(o["getUserApplyConfirmList"])(e).then((function(e){200==e.code&&(t.$message.successMsg("开始生成excel",3),t.doexportUser(e.data.list||[]))}))}},created:function(){this.getTableData()}},l=s,f=(n("09bc"),n("2877")),d=Object(f["a"])(l,r,a,!1,null,"41b076ab",null);e["default"]=d.exports},1925:function(t,e,n){"use strict";n.r(e),n.d(e,"searchApi",(function(){return a}));var r=n("b775"),a=function(t){return Object(r["default"])({url:"/admin/search",method:"post",data:t})}},"2a18":function(t,e,n){"use strict";n.r(e),n.d(e,"toUpperCase",(function(){return r})),n.d(e,"toLowerCase",(function(){return a})),n.d(e,"toSQLLine",(function(){return o})),n.d(e,"toHump",(function(){return i})),n.d(e,"toType",(function(){return u})),n.d(e,"toTaskStatus",(function(){return c})),n.d(e,"toAgent",(function(){return s})),n.d(e,"toStage",(function(){return l})),n.d(e,"getStage",(function(){return f})),n.d(e,"toFee",(function(){return d})),n.d(e,"toStatus",(function(){return p})),n.d(e,"toConfirm",(function(){return h})),n.d(e,"toSupply",(function(){return m})),n.d(e,"toFeeType",(function(){return b})),n.d(e,"toPoint",(function(){return g})),n.d(e,"tow60",(function(){return v})),n.d(e,"toLogStage",(function(){return y}));n("ac1f"),n("5319"),n("1276");var r=function(t){return t[0]?t.replace(t[0],t[0].toUpperCase()):""},a=function(t){return t[0]?t.replace(t[0],t[0].toLowerCase()):""},o=function(t){return"ID"==t?"ID":t.replace(/([A-Z])/g,"_$1").toLowerCase()},i=function(t){return t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()}))},u=function(t){var e={1:"指定任务",2:"委托任务",3:"公开任务"};return e[t]||"---"},c=function(t){var e={1:"编辑",2:"发布",3:"完成",0:"作废"};return e[t]||"---"},s=function(t){return 3==t?"柘荣":4==t?"霞浦":1==t?"宁德":2==t?"福安":"其他"},l=function(t){t&&t.id&&(t=f(t));var e=["未知","审核中","待交付","已交付","已完成"];return e[t]},f=function(t){return t.finish?4:t.deliver_time>1?3:t.confirm?2:1},d=function(t){return"¥"+t/100},p=function(t){return 1==t?"正常":"异常"},h=function(t){return 1==t?"确认":"未确认"},m=function(t){return 1==t?"是":"否"},b=function(t){return 1==t?"按比收费":"税点收费"},g=function(t){return t/100+"%"},v=function(t){return t?t.split("?")[0]+"?x-oss-process=image/resize,m_fill,w_60":""},y=function(t){var e={0:"不变",1:"待接单",2:"待交付",3:"已交付",4:"已完成",5:"删除"};return e[t]||"未知"}},"354d":function(t,e,n){"use strict";n.r(e),n.d(e,"getUserApplyList",(function(){return a})),n.d(e,"getUserApplyConfirmList",(function(){return o})),n.d(e,"getUserApplyInfo",(function(){return i})),n.d(e,"confirmUserApplyImg",(function(){return u})),n.d(e,"confirmUserApplyConfirm",(function(){return c})),n.d(e,"getUserApplyUnConfirmList",(function(){return s})),n.d(e,"getTrainExamList",(function(){return l})),n.d(e,"getTrainPlanList",(function(){return f})),n.d(e,"getUserPlanList",(function(){return d})),n.d(e,"getAdminUserPlanList",(function(){return p})),n.d(e,"getAdminOnPlanUserList",(function(){return h})),n.d(e,"postData",(function(){return m}));var r=n("b775"),a=function(t){return Object(r["default"])({url:"/admin/getUserApplyList",method:"post",data:t})},o=function(t){return Object(r["default"])({url:"/admin/getUserApplyConfirmList",method:"post",data:t})},i=function(t){return Object(r["default"])({url:"/admin/getUserApplyInfo",method:"post",data:t})},u=function(t){return Object(r["default"])({url:"/admin/confirmUserApplyImg",method:"post",data:t})},c=function(t){return Object(r["default"])({url:"/admin/confirmUserApplyConfirm",method:"post",data:t})},s=function(t){return Object(r["default"])({url:"/admin/getUserApplyUnConfirmList",method:"post",data:t})},l=function(t){return Object(r["default"])({url:"/admin/getTrainExamList",method:"post",data:t})},f=function(t){return Object(r["default"])({url:"/admin/getTrainPlanList",method:"post",data:t})},d=function(t){return Object(r["default"])({url:"/admin/getUserPlanList",method:"post",data:t})},p=function(t){return Object(r["default"])({url:"/admin/getAdminUserPlanList",method:"post",data:t})},h=function(t){return Object(r["default"])({url:"/admin/getAdminOnPlanUserList",method:"post",data:t})},m=function(t,e){return Object(r["default"])({url:"/admin/".concat(t),method:"post",data:e})}},"408a":function(t,e,n){var r=n("e330");t.exports=r(1..valueOf)},"4e82":function(t,e,n){"use strict";var r=n("23e7"),a=n("e330"),o=n("59ed"),i=n("7b0b"),u=n("07fa"),c=n("577e"),s=n("d039"),l=n("addb"),f=n("a640"),d=n("04d1"),p=n("d998"),h=n("2d00"),m=n("512c"),b=[],g=a(b.sort),v=a(b.push),y=s((function(){b.sort(void 0)})),I=s((function(){b.sort(null)})),w=f("sort"),x=!s((function(){if(h)return h<70;if(!(d&&d>3)){if(p)return!0;if(m)return m<603;var t,e,n,r,a="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)b.push({k:e+r,v:n})}for(b.sort((function(t,e){return e.v-t.v})),r=0;r<b.length;r++)e=b[r].k.charAt(0),a.charAt(a.length-1)!==e&&(a+=e);return"DGBEFHACIJK"!==a}})),k=y||!I||!w||!x,A=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}};r({target:"Array",proto:!0,forced:k},{sort:function(t){void 0!==t&&o(t);var e=i(this);if(x)return void 0===t?g(e):g(e,t);var n,r,a=[],c=u(e);for(r=0;r<c;r++)r in e&&v(a,e[r]);l(a,A(t)),n=a.length,r=0;while(r<n)e[r]=a[r++];while(r<c)delete e[r++];return e}})},"512c":function(t,e,n){var r=n("342f"),a=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!a&&+a[1]},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("e330"),a=n("1d80"),o=n("577e"),i=n("5899"),u=r("".replace),c="["+i+"]",s=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),f=function(t){return function(e){var n=o(a(e));return 1&t&&(n=u(n,s,"")),2&t&&(n=u(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},a4a2:function(t,e,n){"use strict";n.r(e);var r=n("5530"),a=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(a["a"])(regeneratorRuntime.mark((function n(){var r;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 r=n.sent,e[t+"Options"]=r,n.abrupt("return",r);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(r["a"])({size:1e4,from:0},this.searchInfo);this.listApi(e).then((function(e){t(e)}))},getTableData:function(){var t=arguments,e=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var a,o,i,u,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t.length>0&&void 0!==t[0]?t[0]:e.page,o=t.length>1&&void 0!==t[1]?t[1]:e.size,i=(a-1)*o,u=Object(r["a"])({size:o,from:i},e.searchInfo),n.next=6,e.listApi(u);case 6:c=n.sent,200==c.code&&(e.tableData=c.data.list.map((function(t){return t.edit=!1,t._selected=!1,t})),e.total=c.data.total);case 8:case"end":return n.stop()}}),n)})))()}}}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),a=n("da84"),o=n("e330"),i=n("94ca"),u=n("6eeb"),c=n("1a2d"),s=n("7156"),l=n("3a9b"),f=n("d9b5"),d=n("c04e"),p=n("d039"),h=n("241c").f,m=n("06cf").f,b=n("9bf2").f,g=n("408a"),v=n("58a8").trim,y="Number",I=a[y],w=I.prototype,x=a.TypeError,k=o("".slice),A=o("".charCodeAt),D=function(t){var e=d(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,n,r,a,o,i,u,c,s=d(t,"number");if(f(s))throw x("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=v(s),e=A(s,0),43===e||45===e){if(n=A(s,2),88===n||120===n)return NaN}else if(48===e){switch(A(s,1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+s}for(o=k(s,2),i=o.length,u=0;u<i;u++)if(c=A(o,u),c<48||c>a)return NaN;return parseInt(o,r)}return+s};if(i(y,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var C,_=function(t){var e=arguments.length<1?0:I(D(t)),n=this;return l(w,n)&&p((function(){g(n)}))?s(Object(e),n,_):e},O=r?h(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(","),L=0;O.length>L;L++)c(I,C=O[L])&&!c(_,C)&&b(_,C,m(I,C));_.prototype=w,w.constructor=_,u(a,y,_)}},addb:function(t,e,n){var r=n("f36a"),a=Math.floor,o=function(t,e){var n=t.length,c=a(n/2);return n<8?i(t,e):u(t,o(r(t,0,c),e),o(r(t,c),e),e)},i=function(t,e){var n,r,a=t.length,o=1;while(o<a){r=o,n=t[o];while(r&&e(t[r-1],n)>0)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},u=function(t,e,n,r){var a=e.length,o=n.length,i=0,u=0;while(i<a||u<o)t[i+u]=i<a&&u<o?r(e[i],n[u])<=0?e[i++]:n[u++]:i<a?e[i++]:n[u++];return t};t.exports=o},bf54:function(t,e,n){},c466:function(t,e,n){"use strict";n.r(e),n.d(e,"curDate",(function(){return r})),n.d(e,"formatTimeToStr",(function(){return a})),n.d(e,"toDatetime",(function(){return o})),n.d(e,"toDate",(function(){return i})),n.d(e,"toDateShow",(function(){return u})),n.d(e,"getDate",(function(){return c}));n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0");function r(){var t=(new Date).Format("yyyy-MM-dd");return t.toLocaleString()}function a(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 u(t){if(!t)return"---";var e=new Date(t).Format("yyyy-MM-dd");return e.toLocaleString()}function c(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}},d998:function(t,e,n){var r=n("342f");t.exports=/MSIE|Trident/.test(r)}}]);