1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b34b01bc"],{ad40:function(t,e,n){},cc0e:function(t,e,n){"use strict";n.d(e,"n",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"l",(function(){return c})),n.d(e,"a",(function(){return s})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return o})),n.d(e,"o",(function(){return d})),n.d(e,"p",(function(){return l})),n.d(e,"k",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"e",(function(){return g})),n.d(e,"j",(function(){return m})),n.d(e,"i",(function(){return p})),n.d(e,"f",(function(){return b})),n.d(e,"b",(function(){return v})),n.d(e,"d",(function(){return j}));var a=n("b775");function r(t){return Object(a["a"])({url:"/select_techerAllClass",method:"get",params:t,hideloading:!1})}function i(t){return Object(a["a"])({url:"/selectClassStudent",method:"get",params:t,hideloading:!1})}function c(t){return Object(a["a"])({url:"/selectStudentDetail",method:"get",params:t,hideloading:!1})}function s(t){return Object(a["a"])({url:"/insertRecord",method:"post",data:t,hideloading:!1})}function u(t){return Object(a["a"])({url:"/selectRecord",method:"get",params:t,hideloading:!1})}function o(t){return Object(a["a"])({url:"/selectRecordDetail",method:"get",params:t,hideloading:!1})}function d(t){return Object(a["a"])({url:"/updateRecord",method:"post",data:t,hideloading:!1})}function l(t){return Object(a["a"])({url:"/updateRecordData",method:"post",data:t,hideloading:!1})}function h(t){return Object(a["a"])({url:"/selectSerStudent",method:"get",params:t,hideloading:!1})}function f(t){return Object(a["a"])({url:"/selectTerm",method:"get",params:t,hideloading:!1})}function g(t){return Object(a["a"])({url:"/selectManyClassStudent",method:"get",params:t,hideloading:!1})}function m(t){return Object(a["a"])({url:"/selectSTEType",method:"get",params:t,hideloading:!1})}function p(t){return Object(a["a"])({url:"/selectSTEPlace",method:"get",params:t,hideloading:!1})}function b(t){return Object(a["a"])({url:"/selectMapStuScore",method:"get",params:t,hideloading:!1})}function v(t){return Object(a["a"])({url:"/selectClaAvaScore",method:"get",params:t,hideloading:!1})}function j(t){return Object(a["a"])({url:"/selectHealthRecord",method:"get",params:t,hideloading:!1})}},d438:function(t,e,n){"use strict";n.r(e);n("b0c0"),n("498a");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:!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)+" ")])})),0)])})),1)],1)])},r=[],i=(n("14d9"),n("cc0e")),c={data:function(){return{userName:"",classLists:[],stuList:[],searchList:[],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["k"])(n).then((function(t){e.searchList=t[0],t[0].length||(e.searchList=[{username:"暂时没有您想要查询的学生"}])}))},cutPage:function(t){var e=this;Object(i["c"])({cid:t}).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(){var t=this,e=this.$store.state.user.userinfo.organizeid;Object(i["n"])({cid:e}).then((function(e){t.classLists=e[0],t.cutPage(t.classLists[0].id)}))}},mounted:function(){},created:function(){this.getData()}},s=c,u=(n("f155"),n("2877")),o=Object(u["a"])(s,a,r,!1,null,"c88e6b00",null);e["default"]=o.exports},f155:function(t,e,n){"use strict";n("ad40")}}]);
|