You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
188 KiB

3 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0882bf88","chunk-0ed2edc5","chunk-94d3c3c4"],{"0870":function(t,e,a){},"0a5f":function(t,e,a){"use strict";a("0870")},"0acd":function(t,e,a){"use strict";a("426e")},"0b52":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{padding:"0 20px"}},[a("div",{ref:"lxHeader"},[a("lx-header",{staticStyle:{"margin-bottom":"10px",border:"0px","margin-top":"15px"},attrs:{icon:"md-apps",text:"学习资料管理"}},[t._t("default",[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("div",{staticStyle:{"margin-right":"10px"}},[t._v("关键词")]),a("el-input",{staticStyle:{width:"160px","margin-right":"10px"},attrs:{size:"mini",placeholder:"请输入关键词"},model:{value:t.select.keyword,callback:function(e){t.$set(t.select,"keyword",e)},expression:"select.keyword"}}),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"medium",type:"primary"},on:{click:t.getList}},[t._v("查询")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"medium",type:"primary"},on:{click:function(e){t.$refs["addStudy"].isShow=!0,t.$refs["addStudy"].type="add"}}},[t._v("新增 ")])],1)])],2)],1),a("xy-table",{attrs:{"table-item":t.table,list:t.data,total:t.total,auths:["edit","delete"]},on:{pageSizeChange:function(e){t.select.rows=e,t.select.page=1,t.getList()},pageIndexChange:function(e){t.select.page=e,t.getList()},delete:t.deleteRow,editor:t.editorRow}}),a("addStudy",{ref:"addStudy",on:{refresh:t.getList}})],1)},r=[],s=a("c7eb"),n=a("1da1"),o=a("fa55"),l=a("a226"),c={components:{addStudy:l["default"]},data:function(){return{select:{page:1,rows:10,keyword:""},total:0,data:[],studyDates:[{id:90,value:"三个月"},{id:180,value:"六个月"},{id:270,value:"九个月"}],table:[{label:"序号",type:"index"},{label:"学习内容名称",sortable:!1,prop:"name",width:240,align:"left"},{label:"面向对象",sortable:!1,prop:"type",formatter:function(t,e,a){return"1"==a?"普通访客":"2"==a?"施工访客":"物流车辆"}},{label:"测验有效期",sortable:!1,prop:"expire_day",formatter:function(t,e,a){return"".concat(a,"天")}},{label:"最低学习分钟数",sortable:!1,prop:"minute"},{label:"测验通过需要正确率达",sortable:!1,prop:"rate",formatter:function(t,e,a){return"".concat(a,"%")}},{prop:"created_at",label:"创建时间",sortable:!1,width:180},{label:"创建人",sortable:!1,prop:"state_name"}]}},computed:{},mounted:function(){this.getList()},methods:{getList:function(){var t=this;return Object(n["a"])(Object(s["a"])().mark((function e(){var a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["b"])(t.select);case 2:a=e.sent,t.data=a.data,t.total=a.total;case 5:case"end":return e.stop()}}),e)})))()},deleteRow:function(t){var e=this;Object(o["a"])({id:t.id}).then((function(t){e.$successMessage("destroy","学习资料"),e.getList()}))},editorRow:function(t){this.$refs["addStudy"].id=t.id,this.$refs["addStudy"].type="editor",this.$refs["addStudy"].isShow=!0}}},d=c,u=(a("fe00"),a("2877")),m=Object(u["a"])(d,i,r,!1,null,"f39d66b8",null);e["default"]=m.exports},"0bb1":function(t,e,a){},"0da0":function(t,e,a){},"0eb1":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",[a("div",{ref:"lxHeader"},[a("LxHeader",{staticStyle:{"margin-bottom":"10px",border:"0px","margin-top":"15px"},attrs:{icon:"md-apps",text:"权限管理"}},[a("div",{attrs:{slot:"content"},slot:"content"}),t._t("default")],2)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("Card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",staticStyle:{height:"32px","line-height":"32px"},attrs:{slot:"title"},slot:"title"},[a("span",[t._v("角色列表")])]),a("div",{staticStyle:{overflow:"auto"},style:{height:t.height+"px"}},[a("el-scrollbar",{staticStyle:{flex:"1"}},[a("el-tabs",{attrs:{"tab-position":"left"},on:{"tab-click":t.roleChange},model:{value