123456 |
- /*!
- * build: Hopaheal
- * copyright: Mead
- * time: 2022-6-7 11:38:49
- */
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b5bc11ec"],{"685f":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"role-management-container"},[r("vab-query-form",[r("vab-query-form-left-panel",{attrs:{span:19}},[r("el-form",{attrs:{inline:!0,model:e.queryForm},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",[r("el-input",{staticStyle:{width:"160px","margin-right":"5px"},attrs:{clearable:"",placeholder:"请输入学生姓名"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.queryData.apply(null,arguments)}},model:{value:e.queryForm.student_name,callback:function(t){e.$set(e.queryForm,"student_name","string"===typeof t?t.trim():t)},expression:"queryForm.student_name"}})],1),r("el-form-item",[r("el-date-picker",{attrs:{format:"yyyy-MM-dd",placeholder:"请选择日期",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.queryForm.day,callback:function(t){e.$set(e.queryForm,"day",t)},expression:"queryForm.day"}})],1),r("el-form-item",[r("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:e.queryData}},[e._v(" 查询 ")])],1)],1)],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{border:"",data:e.list},scopedSlots:e._u([{key:"empty",fn:function(){return[r("el-image",{staticClass:"vab-data-empty",attrs:{src:a("f1f0")}})]},proxy:!0}])},[r("el-table-column",{attrs:{align:"center",label:"序号",sortable:"",type:"index",width:"60"}}),r("el-table-column",{attrs:{align:"center",label:"值班日期",prop:"day","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{align:"center",label:"值班时间段",prop:"day","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(a.start_time)+"--"+e._s(a.end_time)+" ")]}}])}),r("el-table-column",{attrs:{align:"center",label:"是否预约",prop:"day","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(a.is_subscribe?"是":"否")+" ")]}}])}),r("el-table-column",{attrs:{align:"center",label:"预约学生",prop:"student.truename","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{align:"center",label:"学号",prop:"student.account","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{align:"center",label:"学生班级",prop:"student.class","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{align:"center",label:"联系方式",prop:"student.mobile","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{align:"center",label:"备注",prop:"remark","show-overflow-tooltip":""}})],1),r("el-pagination",{attrs:{background:"","current-page":e.queryForm.page,layout:e.layout,"page-size":e.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:e.queryForm.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)},n=[],o=a("1da1"),l=a("5530"),i=(a("96cf"),a("afda")),s=a("2f62"),u={name:"RoleManagement",data:function(){return{list:[],fileId:"",listLoading:!0,layout:"total, sizes, prev, pager, next, jumper",selectRows:"",queryForm:{page:1,per_page:15,teacher_id:"",student_name:"",day:""}}},computed:Object(l["a"])({},Object(s["c"])({token:"user/token",language:"settings/language"})),watch:{$route:"getRecordList"},activated:function(){},created:function(){this.queryForm.teacher_id=this.$store.state.user.type_id,console.log(this.$store.state.user,"0000"),this.getRecordList()},methods:{getRecordList:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["recordList"])(e.queryForm);case 2:a=t.sent,r=a.data,console.log(r,"排班列表"),e.list=r.list,n=r.meta,e.queryForm.total=n.pagination.total,e.listLoading=!1;case 9:case"end":return t.stop()}}),t)})))()},handleSizeChange:function(e){this.queryForm.per_page=e,this.getRecordList()},handleCurrentChange:function(e){this.queryForm.page=e,this.getRecordList()},queryData:function(){this.queryForm.page=1,this.getRecordList()}}},c=u,d=(a("ddb9"),a("2877")),p=Object(d["a"])(c,r,n,!1,null,"a73d36fc",null);t["default"]=p.exports},"8dff":function(e,t,a){},afda:function(e,t,a){"use strict";a.r(t),a.d(t,"recordList",(function(){return n}));var r=a("b775");function n(e){return Object(r["default"])({url:"/mentor/scheduling",method:"get",params:e})}},ddb9:function(e,t,a){"use strict";a("8dff")},f1f0:function(e,t,a){e.exports=a.p+"static/img/data_empty.475a2a1e.png"}}]);
|