1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f18d565"],{cc0e:function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"g",(function(){return r})),n.d(e,"i",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return d})),n.d(e,"k",(function(){return l})),n.d(e,"l",(function(){return h})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return g})),n.d(e,"c",(function(){return m}));var s=n("b775");function i(t){return Object(s["a"])({url:"/select_techerAllClass",method:"get",params:t,hideloading:!1})}function a(t){return Object(s["a"])({url:"/selectClassStudent",method:"get",params:t,hideloading:!1})}function r(t){return Object(s["a"])({url:"/selectStudentDetail",method:"get",params:t,hideloading:!1})}function c(t){return Object(s["a"])({url:"/selectVeiDoo",method:"get",params:t,hideloading:!1})}function u(t){return Object(s["a"])({url:"/insertRecord",method:"post",data:t,hideloading:!1})}function o(t){return Object(s["a"])({url:"/selectRecord",method:"get",params:t,hideloading:!1})}function d(t){return Object(s["a"])({url:"/selectRecordDetail",method:"get",params:t,hideloading:!1})}function l(t){return Object(s["a"])({url:"/updateRecord",method:"post",data:t,hideloading:!1})}function h(t){return Object(s["a"])({url:"/updateRecordData",method:"post",data:t,hideloading:!1})}function f(t){return Object(s["a"])({url:"/selectSerStudent",method:"get",params:t,hideloading:!1})}function g(t){return Object(s["a"])({url:"/selectTerm",method:"get",params:t,hideloading:!1})}function m(t){return Object(s["a"])({url:"/selectManyClassStudent",method:"get",params:t,hideloading:!1})}},d438:function(t,e,n){"use strict";n.r(e);n("498a"),n("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",[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,s){return e("div",{key:s+"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:""},on:{change:t.ggg,click:t.spread}},t._l(t.classLists,(function(n,s){return e("van-tab",{key:s+"t",attrs:{name:n.id,title:n.name}},[e("div",{staticClass:"students"},t._l(t.stuList,(function(s,i){return e("div",{key:i+"p",staticClass:"stuBlock",on:{click:function(e){return t.gotoStudentDetail(s.id,n)}}},[t._v(" "+t._s(s.name)+" ")])})),0)])})),1)],1)])},i=[],a=(n("14d9"),n("cc0e")),r={data:function(){return{userName:"",classLists:[],stuList:[],searchList:[]}},watch:{userName:function(t){""!==t?this.likeSearch(t):this.searchList=[]}},methods:{likeSearch:function(t){var e=this;console.log(t);var n={id:this.$store.state.user.userinfo.organizeid,txt:t};Object(a["f"])(n).then((function(t){console.log("res",t),e.searchList=t[0],t[0].length||(e.searchList=[{username:"暂时没有您想要查询的学生"}])}))},ggg:function(t){var e=this;Object(a["b"])({cid:t}).then((function(t){console.log("res",t),e.stuList=t[0]}))},gotoStudentDetail:function(t,e){localStorage.setItem("userId",t),this.$router.push("/studentDetail?cid=".concat(e.id))},gotoStudentDetail2:function(t){localStorage.setItem("userId",t.userid),this.$router.push("/searchstuDetail")},spread:function(t,e){},getData:function(){var t=this,e=this.$store.state.user.userinfo.organizeid;Object(a["j"])({cid:e}).then((function(e){console.log("获取老师所管理班级学生",e),t.classLists=e[0],t.ggg(t.classLists[0].id)}))}},mounted:function(){},created:function(){this.getData(),console.log("state",this.$store.state)}},c=r,u=(n("edb8"),n("2877")),o=Object(u["a"])(c,s,i,!1,null,"17d1dae3",null);e["default"]=o.exports},dfbf:function(t,e,n){},edb8:function(t,e,n){"use strict";n("dfbf")}}]);
|