extraLessonsStudentList.js 4.6 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesClass/extraLessonsStudentList"],{"00f4":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return i}));var i={uSearch:function(){return n.e("uview-ui/components/u-search/u-search").then(n.bind(null,"e2f4"))},uCheckboxGroup:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(n.bind(null,"9862"))},uCard:function(){return n.e("uview-ui/components/u-card/u-card").then(n.bind(null,"af68"))},uAvatar:function(){return n.e("uview-ui/components/u-avatar/u-avatar").then(n.bind(null,"3479"))},uCheckbox:function(){return n.e("uview-ui/components/u-checkbox/u-checkbox").then(n.bind(null,"b8b9"))},uDivider:function(){return n.e("uview-ui/components/u-divider/u-divider").then(n.bind(null,"fe5c"))},uButton:function(){return n.e("uview-ui/components/u-button/u-button").then(n.bind(null,"0198"))},uTopTips:function(){return n.e("uview-ui/components/u-top-tips/u-top-tips").then(n.bind(null,"14ca"))}},r=function(){var e=this,t=e.$createElement;e._self._c},u=[]},"0ab3":function(e,t,n){"use strict";n.r(t);var i=n("00f4"),r=n("5b04");for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);n("ad73"),n("5963");var c,o=n("f0c5"),s=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"4027a778",null,!1,i["a"],c);t["default"]=s.exports},3311:function(e,t,n){"use strict";(function(e){n("e744");i(n("66fd"));var t=i(n("0ab3"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},5963:function(e,t,n){"use strict";var i=n("dbd4"),r=n.n(i);r.a},"5b04":function(e,t,n){"use strict";n.r(t);var i=n("6259"),r=n.n(i);for(var u in i)"default"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);t["default"]=r.a},6259:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("2f62");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("157c"),s=n("f344"),a={computed:u({},(0,i.mapGetters)(["mainColor","customStyle"])),data:function(){return{filterText:"",triggered:!1,isOver:!1,pageIndex:1,tableList:[],checkedList:e.getStorageSync("extraLessonsUserList").length?e.getStorageSync("extraLessonsUserList"):[]}},onLoad:function(){this.getTableList()},onReady:function(){},methods:{setFilterText:function(e){this.onRefresh()},onRefresh:function(){this.triggered=!0,this.isOver=!1,this.pageIndex=1,this.tableList=[],this.getTableList()},onRestore:function(){this.triggered="restore",this.triggered=!1},handleLoadMore:function(){this.isOver||(this.pageIndex++,this.getTableList())},getTableList:function(){var e=this;o.request(s.getExtraLessonsStudentList,{name:this.filterText,page:this.pageIndex,size:10},"POST").then((function(t){e.triggered=!1,t.data.row.forEach((function(e){return e.checked=!1})),e.tableList=e.tableList.concat(t.data.row),e.isOver=10!=t.data.row.length,e.tableList.forEach((function(t){0!=e.checkedList.filter((function(e){return e.id==t.id})).length&&(t.checked=!0)}))})).catch((function(t){e.triggered=!1,e.$refs.uTips.show({title:t.message,type:"warning"})}))},changeStatus:function(e){e.checked=!e.checked,e.checked?0==this.checkedList.filter((function(t){return t.id==e.id})).length&&this.checkedList.push({id:e.id,name:e.name,url:e.url,hasHead:e.hasUrl,checked:!1}):this.checkedList=this.checkedList.filter((function(t){return t.id!=e.id}))},selectStudent:function(){var t=this,n=this.tableList.filter((function(e){return e.checked})).map((function(e){return{id:e.id,name:e.name,url:e.url,hasHead:e.hasUrl,checked:!1}}));n.forEach((function(e){0==t.checkedList.filter((function(t){return t.id==e.id})).length&&t.checkedList.push(e)})),e.setStorage({key:"extraLessonsUserList",data:this.checkedList}),e.navigateBack()}}};t.default=a}).call(this,n("543d")["default"])},ad73:function(e,t,n){"use strict";var i=n("f0be"),r=n.n(i);r.a},dbd4:function(e,t,n){},f0be:function(e,t,n){}},[["3311","common/runtime","common/vendor"]]]);