12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a912e88"],{"042f":function(t,e,i){},"0bfe":function(t,e,i){},"10e2":function(t,e,i){"use strict";i("a053")},"13da":function(t,e,i){"use strict";i("042f")},2394:function(t,e,i){"use strict";i.r(e);i("d25f");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[e("div",{staticClass:"wrap-title"},[e("TitleControl",{attrs:{title:"学习历史"},on:{handleChange:t.handleSearch}},[e("div",{staticClass:"control-btn",attrs:{slot:"control"},slot:"control"},[t.manageType?e("div",{staticClass:"manage cancel",on:{click:function(e){t.manageType=!1}}},[t._v("\n 取消\n ")]):e("div",{staticClass:"manage",on:{click:function(e){t.manageType=!0}}},[t._v("\n 管理\n ")])])])],1),e("div",{staticClass:"wrap-content"},[t.manageType?e("div",{staticClass:"del-box"},[e("div",{staticClass:"radio"},[e("el-checkbox",{on:{change:t.changeAllChecked},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}})],1),e("div",{staticClass:"btn",on:{click:function(e){t.handleDelete(t.list.filter((function(t){return t.checked})),0)}}},[t._v("\n 删除\n ")])]):t._e(),e("div",{staticClass:"list"},[t._l(t.list,(function(i){return e("div",{key:i.id,staticClass:"list-item"},[i.time?e("div",{staticClass:"time",style:t.manageType?{marginLeft:"60px"}:""},[t._v("\n "+t._s(i.time.slice(0,10))+"\n ")]):t._e(),e("div",{staticClass:"item-box"},[t.manageType?e("div",{staticClass:"radio"},[e("el-checkbox",{model:{value:i.checked,callback:function(e){t.$set(i,"checked",e)},expression:"item.checked"}})],1):t._e(),e("div",{staticClass:"card",style:t.manageType?{width:"calc(100% - 60px)"}:""},[e("StudyHistoryCard",{attrs:{info:i,manageType:t.manageType},on:{handleDelete:function(e){return t.handleDelete([i])},handleToDetail:function(e){return t.handleToDetail(i,{id:"url_id",datum_id:"datum_id"})}}})],1)])])})),t.finished?e("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],2)])])},a=[],s=(i("1c01"),i("58b2"),i("8e6e"),i("456d"),i("28a5"),i("2909")),c=i("ade3"),r=(i("6762"),i("2fdb"),i("6d67"),i("ac6a"),i("f3e2"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"card"},[e("CardBox",t._g({staticStyle:{padding:"15px 20px"},attrs:{btnList:t.btnList}},t.$listeners),[e("div",{staticClass:"video",on:{click:function(e){return t.$emit("handleToDetail")}}},[e("CardFileDetail",{attrs:{info:t.info}})],1)])],1)}),o=[],l=i("c191"),u=i("4e8f"),d={name:"StudyHistoryCard",components:{CardBox:l["a"],CardFileDetail:u["a"]},props:{info:{type:Object},manageType:{type:Boolean,default:!1}},data:function(){return{}},computed:{btnList:function(){var t=["del"];return this.manageType?[]:t},userInfo:function(){return this.$store.state.userInfo}}},f=d,p=(i("10e2"),i("2877")),h=Object(p["a"])(f,r,o,!1,null,"1f4d7c56",null),m=h.exports,b=i("7e74"),g=i("f523");function A(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function v(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?A(Object(i),!0).forEach((function(e){Object(c["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var C={components:{StudyHistoryCard:m,TitleControl:b["a"]},data:function(){return{list:[],params:{page:1,page_num:20,sort_type:1},finished:!1,manageType:!1,allChecked:!1,type:0,dateArr:[],list_copy:""}},watch:{manageType:function(t){!t&&(this.allChecked=!1),this.list.forEach((function(t){return t.checked=!1}))}},mounted:function(){this.getList()},methods:{TouchBottom:function(){this.finished||this.getList()},changeAllChecked:function(t){this.list.map((function(e){return e.checked=t}))},getList:function(){var t=this;g["d"].getLearnHistory(this.params).then((function(e){var i=e.data,n=i.list.map((function(e){var i=e.time.slice(0,10);return t.dateArr.includes(i)?e.time="":t.dateArr.push(i),v({checked:!1},e)}));t.list=1===t.params.page?n:[].concat(Object(s["a"])(t.list),Object(s["a"])(n)),n.length<t.params.page_num?t.finished=!0:t.params.page++}))},handleDelete:function(t){var e=this;this.showConfirmPopup("确定要删除该信息?").then((function(){var i={id:""};i.id=t.map((function(t){return t.id})).join(","),i.id&&g["f"].delTrack(i).then((function(t){t.data;var n=e.list.map((function(t){return i.id.split(",").includes(t.id+"")?"":t})).filter((function(t){return t}));e.list=n,e.$message.success("删除成功!"),e.manageType=!1}))})).catch((function(t){}))},handleToDetail:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:"id",datum_id:"datum_id"};if(Object.keys(t).includes("is_normal")&&!t.is_normal)return this.$message.error("该资料已下架");this.$router.push({path:"/information-details",query:{url_id:t[e.id],id:t[e.datum_id]}})},handleSearch:function(t){this.list_copy||(this.list_copy=this.list),t?this.list=this.list_copy.filter((function(e){return e.title.includes(t)||e.series_title.includes(t)})):(this.list=this.list_copy,this.list_copy="")}}},y=C,O=(i("13da"),Object(p["a"])(y,n,a,!1,null,"4889a640",null));e["default"]=O.exports},"33a9":function(t,e,i){"use strict";i("fe27")},"4e8f":function(t,e,i){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-file-detail"},[e("div",{staticClass:"file-box"},[t.is_normal?e("img",{staticClass:"file-icon",attrs:{src:t.fileIcon,alt:""}}):e("div",{staticClass:"is_normal"},[e("img",{attrs:{src:i("780b"),alt:""}})]),t.is_normal?t._e():e("div",{staticClass:"type"},[t._v(t._s("已失效"))])]),t.is_normal?e("div",{staticClass:"info-box"},[e("div",{staticClass:"title-box"},[e("div",{staticClass:"series-title"},[t._v(t._s(t.info.series_title))]),e("div",{staticClass:"title"},[t._v(t._s(t.info.title))])]),e("div",{staticClass:"footer"},[e("img",{staticClass:"app-logo",attrs:{src:t.info.app_logo,alt:""}}),e("div",{staticClass:"app-name"},[t._v(t._s(t.info.app_name))]),e("img",{staticClass:"icon",attrs:{src:i("565b")}}),e("div",{staticClass:"read-num"},[t._v(t._s(t.info.read_num||0))])])]):e("div",{staticClass:"info-box"},[e("div",{staticClass:"is_normal"},[t._v("已失效")])])])},a=[],s=(i("f6b3"),i("325c")),c={name:"CardFileDetail",props:{info:{type:Object}},computed:{is_normal:function(){return!Reflect.has(this.info,"is_normal")||!!this.info.is_normal},fileType:function(){return Object(s["d"])(this.info.url||"")},fileIcon:function(){return Object(s["c"])("".concat(this.fileType,"_bg"))}}},r=c,o=(i("82b7"),i("2877")),l=Object(o["a"])(r,n,a,!1,null,"3c968450",null);e["a"]=l.exports},"565b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAPxJREFUSEvNlTFuwkAQRf+4iZALLhCJg4RDhJYWyWPRBokqIVDR4DZe25wBR6EMh8oB1j8ykotESNjYa7H1zH/7Z79mBY6PONZHf4AkSXYkZwCGLV39iMg+CIKXUufswBjzDODQUvh/+0RV8zMgjuM3EVl3CSC5CsNwUzlYAXjvElDqqer6bgBfJD89z3slOarptJGDuap+RFE08H1/AWAJwL8Cag6oBNM0fSS5JTmtkngBdjugEjPGjAF8A3hwAsiy7Mlae+ocUI7IWrsVkW5H5OyRReRYFEXuMqY1o/+nrFGK2gH6WHZu13Xp3+mHc8uA6/b09yfXvVHTul9MCqIZAaJnUgAAAABJRU5ErkJggg=="},"780b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABi9JREFUWEfNmV1sVEUUx/9nt7ZWW00RjLyIX6gPJKCSKAYVFcqHgIBJJYjRSndmJYYQkQcFP4H6gARDTLozLZaIEmyi8qViFUUlIgmoJCSigIovGsCQWgRLe+8xZ3PvZnrdbXfbbnXe9u6Z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Ah02GJJq6NdHV0dFQsWrSo4/8A3dzcfOH58+f/BCAJvrRtciFc6fv+Msc5351IJHb3F3ggNG2MGQ/gS4elXiLdJCJqDT8SUa+huZDF9MflRUOz7/tTqKWlpfz06dPiiy8KQI4rpa4u9Pre0yL6Ah0kPxI0rpWxmflce3v7sDC9fAuAFDjSzc3wC9HmQEJba6dKgcYZ822t9dw0sLV2IjN/7Py5T2t920DBhuMUomljzFcAxoV9mXlqMpncmbkipVIpKczd4gg8nEwm3/wvoK21UhltduY+qLUek9798GOWDP8EgDFa698GEzoej//ued5B99JLRHOUUhLxupdbrbXbmXm6o+XdRFSttZbK5IC2XOZBREeZObPTAFq11pMz58ulaGpqGuF53rcAqpwDuFEp9Ygc1AElzn1HdKdp8zzv5oULF/6UFVg+NjU1zfI8T+oTGXMhoo3MvGAQNS2eShQ0VynV4q4gVzFQ7nSrXEFmFvOYN9A2Lbvq+/47ETOQqZ/TWq+I7mrO+rAx5hUASyIdTjDzkoHyHoE3eDVayyOitUqpJ7OZYG8FbdH0yujhBLCPiFYmEon3C42IQUF7CjNLSTfjZ9MegIjlDSWbZnPacHRVgU1LKTRzEB2Z40S0yfO81s7Ozr25srwg6xpLRNOYWcq56XAbaVIsV1Gbzdskot7D9/3XXJeXZcIueZQhovSjjKhKHmUAhI8yYYqYbadbS0pKHl+wYEHGG+TySL0+yrgdJbj4vv+CGxH76eoOBs9e6aCQTysIOBwwyD1qg7tWmOXlM1866yKibcy8QXKDvDo5Qn0CDvtLatrW1iZJ9l3MPIqZbwjuh2IK0qQIIndGueYc8n3/izNnzuxZunTpX4WChvL/AMzbHPzNssRpAAAAAElFTkSuQmCC"},"7e74":function(t,e,i){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("div",{staticClass:"top"},[e("div",{staticClass:"left"},[t._v(t._s(t.title))]),e("div",{staticClass:"center"},[t.showSearch?e("el-input",{attrs:{clearable:"",placeholder:"搜索"},on:{change:function(e){return t.$emit("handleChange",e)}},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}},[e("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]):t._e()],1),e("div",{staticClass:"right"},[t._t("control")],2)]),e("div",{staticClass:"bottom"},[t._t("bottom")],2)])},a=[],s={name:"TitleControl",props:{title:{type:String,required:!0},showSearch:{type:Boolean,default:!0}},data:function(){return{content:""}}},c=s,r=(i("e6d2"),i("2877")),o=Object(r["a"])(c,n,a,!1,null,"52e2b05d",null);e["a"]=o.exports},"82b7":function(t,e,i){"use strict";i("96b9")},"96b9":function(t,e,i){},a053:function(t,e,i){},c191:function(t,e,i){"use strict";i("6762"),i("2fdb");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-box"},[t._t("default"),e("div",{staticClass:"btn-box"},[t.del_Btn.show?e("div",{staticClass:"del-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleDelete")}}},[e("span",[t._v(t._s(t.del_Btn.value||"删除"))])]):t._e(),t.btnList.includes("isRead")?e("div",{staticClass:"mark-read-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleRead")}}},[e("span",[t._v("标记已读")])]):t._e(),t.btnList.includes("unRead")?e("div",{staticClass:"mark-unread-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleRead")}}},[e("span",[t._v("标记未读")])]):t._e()])],2)},a=[],s=(i("1c01"),i("58b2"),i("8e6e"),i("d25f"),i("456d"),i("ade3")),c=i("53ca");i("ac6a"),i("f3e2");function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l={name:"CardBox",props:{btnList:{type:Array,default:function(t){return[]}}},data:function(){return{}},computed:{del_Btn:function(){var t={show:!1};return this.btnList.forEach((function(e){"string"==typeof e&&"del"==e?t.show=!0:"object"==Object(c["a"])(e)&&"del"==e.type&&(t=o(o({},e),{},{show:!0}))})),t}}},u=l,d=(i("33a9"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"1bcf8517",null);e["a"]=f.exports},e6d2:function(t,e,i){"use strict";i("0bfe")},f6b3:function(t,e,i){var n=i("5ca1");n(n.S,"Reflect",{has:function(t,e){return e in t}})},fe27:function(t,e,i){}}]);
- //# sourceMappingURL=chunk-7a912e88.32dcb5d8.js.map
|