1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-284ddcf3"],{a077:function(t,e,n){},a4ed:function(t,e,n){"use strict";n("a077")},cc0e:function(t,e,n){"use strict";n.d(e,"p",(function(){return r})),n.d(e,"o",(function(){return i})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"m",(function(){return u})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return l})),n.d(e,"q",(function(){return h})),n.d(e,"r",(function(){return g})),n.d(e,"l",(function(){return f})),n.d(e,"n",(function(){return m})),n.d(e,"f",(function(){return p})),n.d(e,"k",(function(){return b})),n.d(e,"j",(function(){return v})),n.d(e,"g",(function(){return j})),n.d(e,"b",(function(){return L})),n.d(e,"e",(function(){return O}));var a=n("b775");function r(t){return Object(a["a"])({url:"/select_techerAllGrade",method:"get",params:t,hideloading:!1})}function i(t){return Object(a["a"])({url:"/select_techerAllClass2",method:"get",params:t,hideloading:!1})}function s(t){return Object(a["a"])({url:"/selectClassStudent2",method:"get",params:t,hideloading:!1})}function c(t){return Object(a["a"])({url:"/selectClassStudent",method:"get",params:t,hideloading:!1})}function u(t){return Object(a["a"])({url:"/selectStudentDetail",method:"get",params:t,hideloading:!1})}function o(t){return Object(a["a"])({url:"/insertRecord",method:"post",data:t,hideloading:!1})}function d(t){return Object(a["a"])({url:"/selectRecord",method:"get",params:t,hideloading:!1})}function l(t){return Object(a["a"])({url:"/selectRecordDetail",method:"get",params:t,hideloading:!1})}function h(t){return Object(a["a"])({url:"/updateRecord",method:"post",data:t,hideloading:!1})}function g(t){return Object(a["a"])({url:"/updateRecordData",method:"post",data:t,hideloading:!1})}function f(t){return Object(a["a"])({url:"/selectSerStudent",method:"get",params:t,hideloading:!1})}function m(t){return Object(a["a"])({url:"/selectTerm",method:"get",params:t,hideloading:!1})}function p(t){return Object(a["a"])({url:"/selectManyClassStudent",method:"get",params:t,hideloading:!1})}function b(t){return Object(a["a"])({url:"/selectSTEType",method:"get",params:t,hideloading:!1})}function v(t){return Object(a["a"])({url:"/selectSTEPlace",method:"get",params:t,hideloading:!1})}function j(t){return Object(a["a"])({url:"/selectMapStuScore",method:"get",params:t,hideloading:!1})}function L(t){return Object(a["a"])({url:"/selectClaAvaScore",method:"get",params:t,hideloading:!1})}function O(t){return Object(a["a"])({url:"/selectHealthRecord",method:"get",params:t,hideloading:!1})}},d438:function(t,e,n){"use strict";n.r(e);n("498a"),n("b0c0");var a=function(){var t=this,e=t._self._c;return e("div",{ref:"tabs",staticClass:"wrapper"},[e("div",{staticClass:"search"},[e("van-search",{attrs:{placeholder:"学生姓名"},model:{value:t.userName,callback:function(e){t.userName="string"===typeof e?e.trim():e},expression:"userName"}})],1),e("div",{staticStyle:{height:"54px",width:"100%"}}),t.searchList.length?e("div",{staticClass:"searchPage"},[e("div",{staticClass:"students"},t._l(t.searchList,(function(n,a){return e("div",{key:a+"p",staticClass:"stuBlock",on:{click:function(e){return t.gotoStudentDetail2(n)}}},[t._v(" "+t._s(n.username)+" ")])})),0)]):t._e(),e("div",[t.searchList.length?t._e():e("van-tabs",{attrs:{swipeable:!1,"lazy-render":!0},on:{change:t.getData,click:t.spread,touchmove:function(e){return e.stopPropagation(),t.handleTouchMove.apply(null,arguments)}}},t._l(t.gradeList,(function(n,a){return e("van-tab",{key:a+"g",attrs:{name:n.id,title:n.name}},[e("van-tabs",{attrs:{swipeable:!0,"lazy-render":!0},on:{change:t.cutPage,click:t.spread,touchmove:function(e){return e.stopPropagation(),t.handleTouchMove.apply(null,arguments)}}},t._l(t.classLists,(function(n,a){return e("van-tab",{key:a+"t",attrs:{name:n.id,title:n.name}},[e("div",{staticClass:"students"},[t._l(t.stuList,(function(a,r){return e("div",{key:r+"p",staticClass:"stuBlock",on:{click:function(e){return t.gotoStudentDetail(a.id,n)}}},[t._v(" "+t._s(a.name)+" ")])})),t.stuList.length?t._e():e("div",{staticClass:"noData"},[t._v("暂无数据")])],2)])})),1)],1)})),1)],1)])},r=[],i=(n("14d9"),n("cc0e")),s={data:function(){return{userName:"",classLists:[],gradeList:[],stuList:[],searchList:[],gid:"",scorllTaps:null}},watch:{userName:function(t){""!==t?this.likeSearch(t):this.searchList=[]}},methods:{handleTouchMove:function(t){t.preventDefault()},likeSearch:function(t){var e=this;console.log(t);var n={id:this.$store.state.user.userinfo.organizeid,txt:t};Object(i["l"])(n).then((function(t){e.searchList=t[0],t[0].length||(e.searchList=[{username:"暂时没有您想要查询的学生"}])}))},cutPage:function(t){var e=this;Object(i["d"])({cid:t,gid:this.gid}).then((function(t){e.stuList=t[0]}))},gotoStudentDetail:function(t,e){localStorage.setItem("userId",t),localStorage.setItem("classId",e.id),this.$router.push("/studentDetail?cid=".concat(e.id))},gotoStudentDetail2:function(t){"暂时没有您想要查询的学生"!==t.username&&(localStorage.setItem("userId",t.userid),localStorage.setItem("classId",""),this.$router.push("/studentDetail"))},spread:function(t,e){},getData:function(t){var e=this,n=this.$store.state.user.userinfo.organizeid;this.gid=t,Object(i["o"])({cid:n,gid:t}).then((function(t){e.classLists=t[0],e.classLists.length?e.cutPage(e.classLists[0].id):e.cutPage("")}))},getGrade:function(){var t=this,e=this.$store.state.user.userinfo.organizeid;Object(i["p"])({cid:e}).then((function(e){t.gradeList=e[0],console.log("gradeList",t.gradeList),t.gradeList.unshift({id:"",name:"全部"}),t.getData(t.gradeList[0].id)}))}},mounted:function(){},created:function(){this.getGrade()}},c=s,u=(n("a4ed"),n("2877")),o=Object(u["a"])(c,a,r,!1,null,"f2114fac",null);e["default"]=o.exports}}]);
|