chunk-52c9f1e3.cb689c96.js 4.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52c9f1e3"],{"0be5":function(e,t,n){"use strict";n("2464")},"17f9":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{"min-width":"1100px"}},[n("CCard",[n("CCardHeader",[n("h5",{staticStyle:{display:"inline-block"}},[e._v("班级详情")])]),n("CCardBody",[n("el-row",[n("el-col",{attrs:{span:6}},[n("strong",[e._v("班级名称:")]),e._v(" "+e._s(this.class.name))]),n("el-col",{attrs:{span:6}},[n("strong",[e._v("班级代码:")]),e._v(" "+e._s(this.class.code))]),n("el-col",{attrs:{span:6}},[n("strong",[e._v("创建者:")]),e._v(" "+e._s(this.class.manager))])],1)],1)],1),n("CCard",[n("CCardBody",[n("CDataTable",{attrs:{items:this.class.members,fields:e.taskFields,"items-per-page":5,tableFilter:{label:"搜索",placeholder:"输入任意信息检索"},noItemsView:{noResults:"检索不到该人员",noItems:"班级未有成员加入"},hover:"",pagination:{doubleArrows:!0,align:"center"}},scopedSlots:e._u([{key:"identity",fn:function(t){var a=t.item;return[n("td",[n("CBadge",{staticStyle:{fontSize:"14px",height:"21px","line-height":"15px"},attrs:{color:e.getBadge(a.identity)}},[e._v(" "+e._s(0===a.identity?"系统管理员":1===a.identity?"测试管理员":"测试工程师")+" ")])],1)]}}])})],1)],1)],1)},r=[],i=n("23ba"),s=n("e350"),o={name:"planDetail",data:function(){return{classId:"",class:{},newPlan:{},taskList:[{title:"xxx",executors:[{id:"1",name:"xxx"},{id:"2",name:"xxx"},{id:"3",name:"xxx"}],description:"xxxxxxx",files:[{name:"xxx",url:"xxxxxx"}]}],taskFields:[{key:"username",label:"姓名",_style:"min-width:100px"},{key:"identity",label:"身份",_style:"min-width:100px"}],editPlanModal:!1,fileList:[],radio:0,newPlanDescription:"",newPlanTitle:"",deleteFileModal:!1,fileId:"",appendFileModal:!1}},mounted:function(){this.classId=this.$route.params.id,this.getClassDetail(this.classId)},computed:{},watch:{},methods:{getBadge:function(e){switch(e){case 0:return"secondary";case 1:return"success";case 2:return"primary";default:}},getClassDetail:function(e){var t=this,n=2==localStorage.getItem("identity")?localStorage.getItem("userId"):"";Object(i["e"])(e,"","",n,"").then((function(e){console.log(e,"获取详情"),t.class=e[0]}))},gotoTask:function(e){},checkPerm:function(e){return Object(s["a"])(localStorage.getItem("identity"),e)}}},c=o,u=(n("0be5"),n("2877")),l=Object(u["a"])(c,a,r,!1,null,"12e6b2d4",null);t["default"]=l.exports},"23ba":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return u}));var a=n("b775");function r(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return Object(a["a"])({url:"/api/v1/group/",method:"GET",params:{id:e,name:t,code:n,user_id:r,manager_id:i}})}function i(e){return Object(a["a"])({url:"/api/v1/group/",method:"POST",data:e})}function s(e){return Object(a["a"])({url:"/api/v1/group/".concat(e),method:"DELETE"})}function o(e,t){return Object(a["a"])({url:"/api/v1/group/".concat(e,"/edit"),method:"POST",data:t})}function c(e,t){return Object(a["a"])({url:"/api/v1/users/".concat(e,"/join"),method:"POST",data:t})}function u(e,t){return Object(a["a"])({url:"/api/v1/users/".concat(e,"/quit"),method:"POST",data:t})}},2464:function(e,t,n){},b775:function(e,t,n){"use strict";var a=n("bc3a"),r=n.n(a),i=n("5c96");n("c0d6");r.a.defaults.withCredentials=!0;var s=r.a.create({withCredentials:!0,timeout:1e5});s.interceptors.response.use((function(e){var t=e.data;return t}),(function(e){return console.log("err"+e),e.response.data.length>1e3?Object(i["Message"])({message:"服务器出错",type:"error",duration:3e3}):Object(i["Message"])({message:e.response.data,type:"error",duration:2e4}),Promise.reject(e)})),s.interceptors.request.use((function(e){var t=window.localStorage.getItem("accessToken");return t?(e.headers.accessToken=t,e):e})),t["a"]=s},e350:function(e,t,n){"use strict";function a(e,t){var n=r[e];return n.includes(t)}n.d(t,"a",(function(){return a}));var r=[["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EXECUTE"]]}}]);