12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_manage/statistic"],{303:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(304));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},304:function(e,t,n){"use strict";n.r(t);var o=n(305),i=n(307);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(309);var s,a=n(34),u=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"76d1ba62",null,!1,o["components"],s);u.options.__file="pages_manage/statistic.vue",t["default"]=u.exports},305:function(e,t,n){"use strict";n.r(t);var o=n(306);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},306:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,628))},uCollapse:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-collapse/u-collapse")]).then(n.bind(null,612))},uCollapseItem:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-collapse-item/u-collapse-item")]).then(n.bind(null,620))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,505))},uSearch:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,666))},uButton:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-button/u-button")]).then(n.bind(null,674))},mescrollBody:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(n.bind(null,522))},uAvatar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-avatar/u-avatar")]).then(n.bind(null,514))},uTag:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tag/u-tag")]).then(n.bind(null,543))},uModal:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-modal/u-modal")]).then(n.bind(null,682))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-input/u-input")]).then(n.bind(null,690))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,561))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.formatSeconds(e.info.duration||0,1)),o=0==e.current?e.collapseValue.includes("live"):null,i=0==e.current?e.collapseValue.includes("questions"):null,r=0==e.current?e.collapseValue.includes("funnelplot"):null,s=1==e.current?e.__map(e.dataList,(function(t,n){var o=e.__get_orig(t),i=t.createTime?t.createTime.substring(0,10):null,r=e.$formatSeconds(t.watchTime,1);return{$orig:o,g3:i,m1:r}})):null;e._isMounted||(e.e0=function(t){e.showTagSelect=!e.showTagSelect}),e.$mp.data=Object.assign({},{$root:{m0:n,g0:o,g1:i,g2:r,l0:s}})},r=!1,s=[];i._withStripped=!0},307:function(e,t,n){"use strict";n.r(t);var o=n(308),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},308:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(11)),r=n(274),s=o(n(216));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(){n.e("pages_manage/components/chart").then(function(){return resolve(n(659))}.bind(null,n)).catch(n.oe)},l={mixins:[s.default],components:{funnelChart:c},data:function(){return{modelShow:!1,showTagSelect:!1,changetag:"",modelTitle:"",inputVal:"",info:{},list1:[{name:"课程数据"},{name:"参与记录"}],current:0,list2:[{name:"答题领奖记录",label:"答题领奖记录",value:0},{name:"完播",label:"完播",value:1},{name:"未完播",label:"未完播",value:2}],currentType:0,activeStyle:{color:"#1677ff",fontSize:"14px",fontWeight:"bold"},inactiveStyle:{fontSize:"14px"},collapseValue:["live","questions","funnelplot"],keyword:"",disabled:!1,searchTypeIndex:0,typeArray:["按看课时间从晚到早","按完播时间从晚到早","按注册时间从晚到早","按会员姓名0-9-A-Z"],typeoption:["看课时间","完播时间","注册时间","会员姓名"],typeoptionOrder:["desc","watchDesc","registerDesc","nameDesc"],mescroll:null,downOption:{auto:!1},upOption:{onScroll:!1,use:!0,page:{num:0,size:10},noMoreSize:10,textNoMore:"已经到底了",empty:{icon:this.$store.state.imgpath+"/app/images/empty.png",tip:"暂无数据"}},dataList:[],user:{},todayday:e.$u.timeFormat(new Date,"yyyy-mm-dd"),courseCount:{},courseId:"",chooseUserId:"",companytag:[],selectidtag:[],getrateimg:{},ratelistState:!1,videoId:""}},computed:{imgPath:function(){return this.$store.state.imgpath}},onLoad:function(t){this.info=t.info?JSON.parse(t.info):{},this.videoId=this.info.videoId,console.log(this.info),e.setNavigationBarTitle({title:"数据统计"}),this.user=e.getStorageSync("companyUserInfo")?JSON.parse(e.getStorageSync("companyUserInfo")):{},this.courseId=this.info.courseId||"",this.getrateList(),this.courseId&&this.getCount()},methods:{getkeyword:function(e){this.keyword=e,this.upCallback()},formatSeconds:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=e%60,i=function(e){return e.toString().padStart(2,"0")};return"".concat(i(t),":").concat(i(n),":").concat(i(o))},getrateList:function(){var t=this,n={videoId:this.info.courseId};(0,r.getcourseRates)(n).then((function(n){200==n.code?(t.ratelistState=n.data.every((function(e){return 0===e.value})),t.getrateimg=n,console.log(n)):e.showToast({icon:"none",title:n.msg})}))},suretagchangeAll:function(){this.selectidtag=this.changetag.filter((function(e){return e.checked})).map((function(e){return e.tagId})).join(","),this.changeLabelmore()},changeLabelmore:function(){var t=this,n=[];n[0]=this.chooseUserId;var o={companyId:this.user.companyId,companyUserId:this.user.userId,creatTime:"",createBy:"",createTime:"",id:"",params:{},remark:"",searchValue:"",updateBy:"",tagIds:this.selectidtag,updateTime:"",userId:n};(0,r.changeLable)(o).then((function(n){if(200==n.code){setTimeout((function(){e.showToast({icon:"none",title:"标签更改成功"})}),500);t.showTagSelect=!t.showTagSelect,t.mescroll.resetUpScroll()}else e.showToast({icon:"none",title:n.msg})}))},closetagselect:function(){this.showTagSelect=!this.showTagSelect},choosechangeTag:function(e){this.changetag[e].checked=!this.changetag[e].checked},getcompanyTag:function(){var e=this;(0,r.getcompanyTaglist)().then((function(t){e.showCompanytag=t.data,e.companytag=t.data.map((function(e){return u(u({},e),{},{checked:!1})})),e.changetag=e.companytag}))},copyId:function(t){setTimeout((function(){e.setClipboardData({data:t,success:function(){e.showToast({title:"用户昵称复制成功",icon:"none"})}})}),100)},clickTab:function(e){this.current=e.index},clickTypeTab:function(e){this.currentType=e.index,this.mescroll.resetUpScroll()},bindPickerChange:function(e){console.log("picker发送选择改变,携带值为",e.detail.value),this.searchTypeIndex=e.detail.value},changeCollapse:function(e){this.collapseValue=e.filter((function(e){return"open"==e.status})).map((function(e){return e.name}))},refresh:function(){this.mescroll.resetUpScroll()},mescrollInit:function(e){this.mescroll=e},downCallback:function(e){e.resetUpScroll()},upCallback:function(t){var n=this,o={videoId:this.videoId,type:this.list2[this.currentType].value,pageNum:t.num,pageSize:t.size,keyword:this.keyword};e.showLoading({title:"加载中..."}),(0,r.getUserLogListByCourseId)(o).then((function(o){e.hideLoading(),200==o.code?(1==t.num?n.dataList=o.data.list:n.dataList=n.dataList.concat(o.data.list),n.mescroll.endBySize(o.data.list.length,o.data.total)):(e.showToast({icon:"none",title:"请求失败"}),n.dataList=null,n.mescroll.endErr())}))},getCount:function(){var e={videoId:this.videoId,periodId:this.info.periodId};this.getCourseCount(e)},getCourseCount:function(t){var n=this;(0,r.getshopCoursenum)(t).then((function(t){200==t.code?n.courseCount=t.data:e.showToast({icon:"none",title:t.msg})}))},openModel:function(e,t){this.chooseUserId=t.userId,"name"==e?(this.modelTitle="修改姓名",this.inputVal=t.nickName||"",this.modelShow=!0):"remark"==e?(this.modelTitle="修改备注",this.inputVal=t.remark||"",this.modelShow=!0):(this.getcompanyTag(),this.showTagSelect=!this.showTagSelect)},closeModel:function(){this.modelShow=!1,this.inputVal=""},confirmModel:function(){if(this.modelShow=!1,"修改姓名"==this.modelTitle){var e={userId:this.chooseUserId,nickName:this.inputVal};this.updateFsUser(e)}else if("修改备注"==this.modelTitle){var t={userId:this.chooseUserId,remark:this.inputVal};this.updateFsUser(t)}},updateFsUser:function(t){var n=this;console.log(t),(0,r.updateFsUser)(t).then((function(t){200==t.code?(e.showToast({icon:"none",title:"标签更改成功"}),n.redPacketCount=t.data,n.mescroll.resetUpScroll()):e.showToast({icon:"none",title:t.msg})}))}}};t.default=l}).call(this,n(2)["default"])},309:function(e,t,n){"use strict";n.r(t);var o=n(310),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},310:function(e,t,n){}},[[303,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_manage/statistic.js.map
|