chunk-f9c32e5a.5d878cff.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f9c32e5a","chunk-b7b74f52","chunk-4aaf9a2f","chunk-b7b74f52","chunk-f6657b32","chunk-2d0bb266","chunk-2d0ac361","chunk-2d216ba7","chunk-2d0a4474"],{"0680":function(t,e,r){"use strict";r.r(e),r.d(e,"getDict",(function(){return o}));var n=r("1da1"),a=(r("96cf"),r("4360")),o=function(){var t=Object(n["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)}}()},1925:function(t,e,r){"use strict";r.r(e),r.d(e,"searchApi",(function(){return a}));var n=r("b775"),a=function(t){return Object(n["default"])({url:"/admin/search",method:"post",data:t})}},"2f65":function(t,e,r){},"39f0":function(t,e,r){"use strict";r.r(e),r.d(e,"findExam",(function(){return a})),r.d(e,"addExam",(function(){return o})),r.d(e,"getWxGroupList",(function(){return i})),r.d(e,"getWxUserGroupList",(function(){return s})),r.d(e,"getWxAnswerList",(function(){return u})),r.d(e,"postData",(function(){return c}));var n=r("b775"),a=function(t){return Object(n["default"])({url:"/admin/findExam",method:"post",data:t})},o=function(t){return Object(n["default"])({url:"/admin/addExam",method:"post",data:t})},i=function(t){return Object(n["default"])({url:"/admin/getWxGroupList",method:"post",data:t})},s=function(t){return Object(n["default"])({url:"/admin/getWxUserGroupList",method:"post",data:t})},u=function(t){return Object(n["default"])({url:"/admin/getWxAnswerList",method:"post",data:t})},c=function(t,e){return Object(n["default"])({url:"/admin/".concat(t),method:"post",data:e})}},"408a":function(t,e,r){var n=r("e330");t.exports=n(1..valueOf)},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,r){var n=r("e330"),a=r("1d80"),o=r("577e"),i=r("5899"),s=n("".replace),u="["+i+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var r=o(a(e));return 1&t&&(r=s(r,c,"")),2&t&&(r=s(r,l,"")),r}};t.exports={start:f(1),end:f(2),trim:f(3)}},a434:function(t,e,r){"use strict";var n=r("23e7"),a=r("da84"),o=r("23cb"),i=r("5926"),s=r("07fa"),u=r("7b0b"),c=r("65f0"),l=r("8418"),f=r("1dde"),d=f("splice"),p=a.TypeError,h=Math.max,g=Math.min,m=9007199254740991,b="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var r,n,a,f,d,v,x=u(this),y=s(x),w=o(t,y),D=arguments.length;if(0===D?r=n=0:1===D?(r=0,n=y-w):(r=D-2,n=g(h(i(e),0),y-w)),y+r-n>m)throw p(b);for(a=c(x,n),f=0;f<n;f++)d=w+f,d in x&&l(a,f,x[d]);if(a.length=n,r<n){for(f=w;f<y-n;f++)d=f+n,v=f+r,d in x?x[v]=x[d]:delete x[v];for(f=y;f>y-n+r;f--)delete x[f-1]}else if(r>n)for(f=y-n;f>w;f--)d=f+n-1,v=f+r-1,d in x?x[v]=x[d]:delete x[v];for(f=0;f<r;f++)x[f+w]=arguments[f+2];return x.length=y-n+r,a}})},a4a2:function(t,e,r){"use strict";r.r(e);var n=r("5530"),a=r("1da1"),o=(r("96cf"),r("4de4"),r("d3b7"),r("159b"),r("d81d"),r("0680"));r("c466"),r("ed08");e["default"]={data:function(){return{page:1,total:10,size:10,tableData:[],searchInfo:{isFinish:0}}},watch:{},methods:{filterDict:function(t,e){var r=this[e+"Options"]&&this[e+"Options"].filter((function(e){return e.value==t}));return r&&r[0]&&r[0].label},getDict:function(t){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(o["getDict"])(t);case 2:return n=r.sent,e[t+"Options"]=n,r.abrupt("return",n);case 5:case"end":return r.stop()}}),r)})))()},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,r){this[t][e]=r(this[t][e])},getAllTableData:function(t){var e=Object(n["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 r(){var a,o,i,s,u;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.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,s=Object(n["a"])({size:o,from:i},e.searchInfo),r.next=6,e.listApi(s);case 6:u=r.sent,200==u.code&&(e.tableData=u.data.list.map((function(t){return t.edit=!1,t._selected=!1,t})),e.total=u.data.total);case 8:case"end":return r.stop()}}),r)})))()}}}},a9e3:function(t,e,r){"use strict";var n=r("83ab"),a=r("da84"),o=r("e330"),i=r("94ca"),s=r("6eeb"),u=r("1a2d"),c=r("7156"),l=r("3a9b"),f=r("d9b5"),d=r("c04e"),p=r("d039"),h=r("241c").f,g=r("06cf").f,m=r("9bf2").f,b=r("408a"),v=r("58a8").trim,x="Number",y=a[x],w=y.prototype,D=a.TypeError,I=o("".slice),k=o("".charCodeAt),E=function(t){var e=d(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,r,n,a,o,i,s,u,c=d(t,"number");if(f(c))throw D("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=v(c),e=k(c,0),43===e||45===e){if(r=k(c,2),88===r||120===r)return NaN}else if(48===e){switch(k(c,1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+c}for(o=I(c,2),i=o.length,s=0;s<i;s++)if(u=k(o,s),u<48||u>a)return NaN;return parseInt(o,n)}return+c};if(i(x,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var M,N=function(t){var e=arguments.length<1?0:y(E(t)),r=this;return l(w,r)&&p((function(){b(r)}))?c(Object(e),r,N):e},_=n?h(y):"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(","),A=0;_.length>A;A++)u(y,M=_[A])&&!u(N,M)&&m(N,M,g(y,M));N.prototype=w,w.constructor=N,s(a,x,N)}},c466:function(t,e,r){"use strict";r.r(e),r.d(e,"curDate",(function(){return n})),r.d(e,"formatTimeToStr",(function(){return a})),r.d(e,"toDatetime",(function(){return o})),r.d(e,"toDate",(function(){return i})),r.d(e,"toDateShow",(function(){return s})),r.d(e,"getDate",(function(){return u}));r("ac1f"),r("00b4"),r("5319"),r("4d63"),r("c607"),r("2c3e"),r("25f0");function n(){var t=(new Date).Format("yyyy-MM-dd");return t.toLocaleString()}function a(t,e){var r=new Date(t).Format("yyyy-MM-dd hh:mm:ss");return e&&(r=new Date(t).Format(e)),r.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 s(t){if(!t)return"---";var e=new Date(t).Format("yyyy-MM-dd");return e.toLocaleString()}function u(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 r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[r]:("00"+e[r]).substr((""+e[r]).length)));return t}},ccc5:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"button-box clearflex"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogFormVisible=!0}}},[t._v("新增")])],1),r("div",{staticClass:"search-term"},[r("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.searchInfo}},[r("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[r("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)],1)],1),r("el-table",{attrs:{data:t.tableData,border:"",stripe:""}},[r("el-table-column",{attrs:{label:"ID",width:"70",prop:"groupId"}}),r("el-table-column",{attrs:{label:"手机号码",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[n.edit?r("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:n.phone,callback:function(e){t.$set(n,"phone",e)},expression:"row.phone"}}):r("span",[t._v(t._s(n.phone))])]}}])}),r("el-table-column",{attrs:{label:"考题组",prop:"marks"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[n.edit?r("el-input",{attrs:{type:"number",size:"small"},model:{value:n.groupName,callback:function(e){t.$set(n,"groupName",e)},expression:"row.groupName"}}):r("span",[t._v(t._s(n.groupName))])]}}])}),r("el-table-column",{attrs:{align:"center",width:"160px",label:"操作","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row,a=e.$index;return[r("el-button",{attrs:{type:"danger",size:"small",icon:"el-icon-delete"},on:{click:function(e){return t.deleteRow(n,a)}}},[t._v("删除")])]}}])})],1),r("el-pagination",{style:{float:"right",padding:"20px"},attrs:{"current-page":t.page,"page-size":t.pageSize,"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}}),r("el-dialog",{attrs:{title:"新增题库",center:"",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[r("el-form",{ref:"elForm",attrs:{model:t.form,rules:t.rules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"选择题组",prop:"title"}},[r("drop-search",{attrs:{placeholder:"请选择组",type:"wxGroup",attr:"title"},on:{select:t.okPhone}})],1),r("el-form-item",{attrs:{label:"手机号码",prop:"phones"}},[r("el-input",{attrs:{placeholder:"多个手机用空格分割",type:"textarea",clearable:""},model:{value:t.form.phones,callback:function(e){t.$set(t.form,"phones",e)},expression:"form.phones"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.doAddAction}},[t._v("确 定")])],1)],1)],1)},a=[],o=(r("ac1f"),r("1276"),r("4de4"),r("d3b7"),r("a434"),r("39f0")),i=r("c466"),s=r("a4a2"),u=(r("ed08"),r("5f17")),c={name:"Api",data:function(){return{listApi:o["getWxUserGroupList"],dialogFormVisible:!1,dialogTitle:"新增广告",boolVal:[0,1],form:{groupId:0,phones:""},page:1,total:10,pageSize:10,tableData:[],rules:{title:[{required:!0,message:"请输入标题",trigger:"blur"}],counter:[{required:!0,message:"请输入题数",trigger:"blur"}],fromDate:[{required:!0,message:"请输入开始时间",trigger:"blur"}],toDate:[{required:!0,message:"请输入结束时间",trigger:"blur"}],duration:[{required:!0,message:"请输入时长",trigger:"blur"}]}}},watch:{"searchInfo.phone":function(t){this.page=1,this.getTableData()}},components:{DropSearch:u["default"]},mixins:[s["default"]],methods:{doAddAction:function(){var t=this,e={groupId:this.form.groupId},r=this.form.phones.split(/[\s \n]/);e.phones=r.filter((function(t){return 11==t.length})),console.log("phones",r),Object(o["postData"])("AddWxGroupUser",e).then((function(e){t.$message.successMsg("新增成功",1),t.dialogFormVisible=!1,t.getTableData()}))},okPhone:function(t){this.form.groupId=+t.group_id},deleteRow:function(t,e){var r=this,n={id:t.id};Object(o["postData"])("delWxUserGroup",n).then((function(t){200==t.code&&(r.$message.successMsg("删除成功",1),r.tableData.splice(e,1))}))}},filters:{toDatetime:i["toDatetime"]},created:function(){this.getTableData()}},l=c,f=(r("d43f"),r("2877")),d=Object(f["a"])(l,n,a,!1,null,"ec69e7b0",null);e["default"]=d.exports},d43f:function(t,e,r){"use strict";r("2f65")}}]);