File: /var/www/uileague/cms/js/chunk-75c851f4.cd29a2ff.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75c851f4","chunk-d9bb2b7c","chunk-2d212ed7","chunk-2d20fc9c","chunk-2d22883b"],{"2d89":function(e,t,n){"use strict";var a=n("e241"),r=n.n(a);r.a},"58df":function(e,t,n){"use strict";var a=n("e9da"),r=n.n(a);r.a},"63b8":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",{staticClass:"lin-search"},[n("el-input",{staticClass:"input-with-select",attrs:{size:"medium",placeholder:e.placeholder,clearable:""},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},slot:"append"})],1)],1)},r=[],i=n("0a2a"),o={props:{placeholder:{type:String,default:"请输入内容"}},data:function(){return{keyword:""}},created:function(){var e=this;this.$watch("keyword",i["default"].debounce((function(t){e.$emit("query",t)}),1e3))},methods:{clear:function(){this.keyword=""}}},s=o,l=(n("58df"),n("2877")),c=Object(l["a"])(s,a,r,!1,null,"18aca186",null);t["default"]=c.exports},"8ad7":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",{staticClass:"tableSample"},[n("div",{staticClass:"header"},[n("div",{staticClass:"header-left"},[n("lin-search",{attrs:{placeholder:"搜索"},on:{query:e.onQueryChange}}),n("el-select",{staticClass:"select-filters",staticStyle:{width:"160px",margin:"0 10px"},attrs:{size:"medium",placeholder:"球隊"},on:{change:e.filterTeamChange},model:{value:e.filter_team,callback:function(t){e.filter_team=t},expression:"filter_team"}},e._l(e.filter_teams,(function(e){return n("el-option",{key:e.id,attrs:{label:e.team_name,value:e.id}})})),1)],1),n("div",{staticClass:"header-right"},[e.canAdd?n("el-button",{attrs:{type:"primary",round:""},on:{click:e.handAdd}},[e._v("添加球隊經理"),n("i",{staticClass:"el-icon-circle-plus-outline el-icon--right"})]):e._e()],1)]),n("div",{staticClass:"table-main"},[n("el-dialog",{attrs:{top:"5vh",width:"60%",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[n("span",[e._v("選擇要展示的列:")]),n("el-checkbox-group",{staticClass:"m-20",on:{change:e.handleChange},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.tempCheckList,(function(e){return n("el-checkbox",{key:e,attrs:{disabled:"標題"===e||"排名"===e,label:e}})})),1),n("span",[e._v("選擇固定在左側的列:")]),n("el-checkbox-group",{staticClass:"m-20",model:{value:e.fixedLeftList,callback:function(t){e.fixedLeftList=t},expression:"fixedLeftList"}},e._l(e.tempCheckList,(function(t){return n("el-checkbox",{key:t,attrs:{disabled:e.fixedRightList.indexOf(t)>-1||-1===e.checkList.indexOf(t),label:t}})})),1),n("span",[e._v("選擇固定在右側的列:")]),n("el-checkbox-group",{staticClass:"m-20",model:{value:e.fixedRightList,callback:function(t){e.fixedRightList=t},expression:"fixedRightList"}},e._l(e.tempCheckList,(function(t){return n("el-checkbox",{key:t,attrs:{disabled:e.fixedLeftList.indexOf(t)>-1||-1===e.checkList.indexOf(t),label:t}})})),1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableData,id:"out-table'"},on:{"row-dblclick":e.rowClick}},[e._l(e.filterTableColumn,(function(t){return["排序"===t.label?n("el-table-column",{key:t.label,attrs:{label:"排序"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("input",{directives:[{name:"model",rawName:"v-model",value:t.row.sorting,expression:"props.row.sorting"}],staticClass:"sort-input",attrs:{type:"number"},domProps:{value:t.row.sorting},on:{blur:function(n){return e.handleSort(t.row.sorting,t.row)},input:function(n){n.target.composing||e.$set(t.row,"sorting",n.target.value)}}})]}}],null,!0)}):e._e(),t.noRepeat?e._e():n("el-table-column",{key:t.label,attrs:{prop:t.prop,label:t.label,"show-overflow-tooltip":!0,fixed:!!t.fixed&&t.fixed,width:t.width?t.width:""}}),"role"===t.prop?n("el-table-column",{key:t.label,attrs:{label:t.label,"show-overflow-tooltip":!0,fixed:!!t.fixed&&t.fixed,width:t.width?t.width:""},scopedSlots:e._u([{key:"default",fn:function(t){return[null!=t.row.role_obj?n("el-tag",{attrs:{type:"success"}},[e._v(e._s(t.row.role_obj.role_name))]):n("el-tag",{attrs:{type:"danger"}},[e._v("未指定")])]}}],null,!0)}):e._e(),"team"===t.prop?n("el-table-column",{key:t.label,attrs:{label:t.label,"show-overflow-tooltip":!0,fixed:!!t.fixed&&t.fixed,width:t.width?t.width:""},scopedSlots:e._u([{key:"default",fn:function(t){return[null!=t.row.team_obj?n("el-tag",{attrs:{type:"primary"}},[e._v(e._s(t.row.team_obj.team_name))]):n("el-tag",{attrs:{type:"danger"}},[e._v("未指定")])]}}],null,!0)}):e._e(),"nfc_code"===t.prop?n("el-table-column",{key:t.label,attrs:{label:t.label,"show-overflow-tooltip":!0,fixed:!!t.fixed&&t.fixed,width:t.width?t.width:""},scopedSlots:e._u([{key:"default",fn:function(t){return[null!=t.row.nfc_obj?n("div",[e._v(e._s(t.row.nfc_obj.code))]):e._e()]}}],null,!0)}):e._e(),"login_qr"===t.prop?n("el-table-column",{key:t.label,attrs:{label:t.label,"show-overflow-tooltip":!0,fixed:!!t.fixed&&t.fixed,width:t.width?t.width:""},scopedSlots:e._u([{key:"default",fn:function(t){return[null!=t.row.login_qr?n("a",{attrs:{target:"_blank",href:t.row.login_qr}},[n("el-popover",{attrs:{placement:"left",width:"200",trigger:"hover"}},[n("div",{staticStyle:{"text-align":"center","font-weight":"bold"}},[e._v(e._s(t.row.user_name))]),n("a",{attrs:{target:"_blank",href:t.row.login_qr}},[n("img",{attrs:{src:t.row.login_qr}})]),n("img",{attrs:{slot:"reference",src:t.row.login_qr},slot:"reference"})])],1):e._e()]}}],null,!0)}):e._e(),"status"===t.prop?n("el-table-column",{key:t.label,attrs:{label:t.label,"show-overflow-tooltip":!0,fixed:!!t.fixed&&t.fixed,width:t.width?t.width:""},scopedSlots:e._u([{key:"default",fn:function(t){return["1"==t.row.status?n("el-tag",{attrs:{type:"success"}},[e._v("正常")]):n("el-tag",{attrs:{type:"danger"}},[e._v("停用")])]}}],null,!0)}):e._e()]})),e.canEdit||e.canDelete?n("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.operate,(function(a,r){return n("el-button",{key:r,attrs:{type:a.type,plain:"",size:"mini"},nativeOn:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.buttonMethods(a.func,t.$index,t.row)}}},[e._v(e._s(a.name))])}))}}],null,!1,3794201391)}):e._e()],2),n("el-dialog",{attrs:{title:e.dialogTitle,width:"800px",visible:e.showDialog,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.showDialog=t},close:e.resetForm}},[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.syncLoading,expression:"syncLoading"}],ref:"form",attrs:{model:e.temp,"label-width":"120px",rules:e.rules}},[n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:0!=e.temp.id,expression:"temp.id != 0"}],attrs:{label:"ID",prop:"id"}},[n("el-col",{attrs:{span:11}},[n("el-input",{attrs:{value:this.temp.id,disabled:""}})],1)],1),n("el-form-item",{attrs:{label:"UI No.",prop:"user_login"}},[n("el-col",{attrs:{span:24}},[n("el-input",{attrs:{disabled:e.temp.id>0},model:{value:e.temp.user_login,callback:function(t){e.$set(e.temp,"user_login",t)},expression:"temp.user_login"}})],1)],1),n("el-form-item",{attrs:{label:"電話",prop:"user_phone"}},[n("el-col",{attrs:{span:24}},[n("el-input",{model:{value:e.temp.user_phone,callback:function(t){e.$set(e.temp,"user_phone",t)},expression:"temp.user_phone"}})],1)],1),n("el-form-item",{attrs:{label:"暱稱",prop:"user_name"}},[n("el-col",{attrs:{span:24}},[n("el-input",{model:{value:e.temp.user_name,callback:function(t){e.$set(e.temp,"user_name",t)},expression:"temp.user_name"}})],1)],1),n("el-form-item",{attrs:{label:"球隊",prop:"team_id"}},[n("el-col",{attrs:{span:24}},[n("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:"請輸入關鍵詞"},model:{value:e.temp.team_id,callback:function(t){e.$set(e.temp,"team_id",t)},expression:"temp.team_id"}},e._l(e.teams,(function(e){return n("el-option",{key:e.id,attrs:{label:e.team_name,value:e.id}})})),1)],1)],1),n("el-form-item",{attrs:{label:"電郵",prop:"user_email"}},[n("el-col",{attrs:{span:24}},[n("el-input",{model:{value:e.temp.user_email,callback:function(t){e.$set(e.temp,"user_email",t)},expression:"temp.user_email"}})],1)],1),n("el-form-item",{attrs:{label:"狀態"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":"1","inactive-value":"0","active-text":"正常","inactive-text":"停用"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{round:""},on:{click:function(t){e.showDialog=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){0==e.temp.id?e.confirmAdd():e.confirmEdit()}}},[e._v("保 存")])],1)],1),e.searchKeyword?e._e():n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{"current-page":this.currentPage,"page-sizes":[10,20,30,50],"page-size":this.pageCount,layout:"total, sizes, prev, pager, next, jumper",total:this.total_nums},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)])},r=[],i=n("a34a"),o=n.n(i),s=n("63b8"),l=n("da08"),c=n("7bee"),u=n("ab00"),p=(n("f121"),n("b4b6"));function d(e,t,n,a,r,i,o){try{var s=e[i](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(a,r)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){d(i,a,r,o,s,"next",e)}function s(e){d(i,a,r,o,s,"throw",e)}o(void 0)}))}}var h={components:{LinSearch:s["default"]},data:function(){var e=function(e,t,n){if(!t)return n();t&&setTimeout((function(){var e=/^[a-zA-Z]+[\d\w]*$/;e.test(t)?n():n(new Error("只能輸入數字、英文、下劃線!"))}),100)};return{tableData:[],loading:!1,Hidden:!0,searchKeyword:"",checkList:[],filterTableColumn:[],refreshPagination:!0,currentPage:1,pageCount:50,total_nums:0,dialogTableVisible:!1,fixedLeftList:[],fixedRightList:[],value:"",editRow:0,showTooltip:!0,syncLoading:!1,catList:[],options:[],optionsValue:[1],status:{0:"下架",1:"展示中",99:"已删除"},dialogTitle:"",showDialog:!1,temp:{id:0,user_login:null,user_name:null,user_pass:null,user_phone:null,user_email:null,team_id:"",role:"0",status:"1"},nfc:null,nfc_options:[],loadingNFC:!1,transfer_data:[],filterMethod:function(e,t){return t.pinyin.indexOf(e)>-1},rules:{user_phone:[{required:!0,message:"電話不能為空",trigger:"blur"}],user_login:[{validator:e},{required:!0,message:"UI No.不能為空",trigger:"blur"}],user_pass:[{required:!1,message:"密碼不能為空",trigger:"blur"}],dept:[{required:!0,message:"請選擇部門",trigger:"change"}],role:[{required:!0,message:"請選擇角色",trigger:"change"}]},showDeleteDialog:!1,showImportDialog:!1,teams:[],roles:[],filter_role:"",filter_roles:[{id:"",role_name:"所有角色",role_desc:""}],filter_team:"",filter_teams:[{id:"",dept_name:"所有部門",dept_desc:""}]}},computed:{canAdd:function(){return-1!=this.$store.state.permissions.indexOf("add_team_manager")},canEdit:function(){return-1!=this.$store.state.permissions.indexOf("edit_team_manager")},canDelete:function(){return-1!=this.$store.state.permissions.indexOf("delete_team_manager")},deptNameFmt:function(){return function(e){return null!=e.dept_desc&&""!=e.dept_desc?e.dept_name+" ("+e.dept_desc+")":e.dept_name}}},created:function(){var e=this;this.getList(this.cat,this.currentPage,this.pageCount),this.getTeamList(),this.tableColumn=l["teamTableColumn"],this.operate=[],this.canEdit&&this.operate.push({name:"修改",func:"handleEdit",type:"primary"}),this.canDelete&&this.operate.push({name:"刪除",func:"handleDelete",type:"danger"}),this.tempCheckList=this.tableColumn.map((function(e){return e.label})).slice(),this.checkList=this.tableColumn.map((function(e){return e.label})),this.filterTableColumn=this.tableColumn.filter((function(t){return e.checkList.indexOf(t.label)>-1}))},methods:{getList:function(){var e=f(o.a.mark((function e(t,n,a){var r,i;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,r=this.searchKeyword,e.next=4,c["UserModel"].getTeamManagerList({cat:t,start:n,count:a,keyword:r,filter_team:this.filter_team});case 4:i=e.sent,this.tableData=i.data,this.currentPage=i.currentPage,this.total_nums=parseInt(i.total),this.loading=!1;case 9:case"end":return e.stop()}}),e,this)})));function t(t,n,a){return e.apply(this,arguments)}return t}(),getRoleList:function(){var e=f(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u["RoleModel"].getList({cat:0,start:1,count:-1,keyword:""});case 2:t=e.sent,this.roles=t.data,n=[{id:"",role_name:"所有角色",role_desc:""}],this.filter_roles=n.concat(t.data);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getTeamList:function(){var e=f(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["TeamModel"].getList({cat:0,start:1,count:-1,keyword:""});case 2:t=e.sent,this.teams=t.data,n=[{id:"",team_name:"所有球隊",team_desc:""}],this.filter_teams=n.concat(t.data);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),rowClick:function(e){console.log(e)},filterRoleChange:function(e){console.log(e),this.getList(this.cat,this.currentPage,this.pageCount)},filterTeamChange:function(e){console.log(e),this.getList(this.cat,this.currentPage,this.pageCount)},handleChange:function(){var e=this;this.filterTableColumn=this.tableColumn.filter((function(t){return e.checkList.indexOf(t.label)>-1}))},showRowOperateModal:function(){},handleSort:function(e,t){console.log("rowData",t),this.$message({type:"success",message:"排序已更改为:".concat(e)})},handleRecommend:function(e,t){var n=this;this.loading=!0,console.log(e,t),e?setTimeout((function(){n.loading=!1,n.$message({type:"success",message:"推荐成功"})}),1e3):setTimeout((function(){n.loading=!1,n.$message({type:"success",message:"取消推荐"})}),1e3)},handleCellEdit:function(e){e.editFlag=!0,this.$set(this.filterTableColumn[7],"width",200),this.tempEditRemark=e.remark,this.editRow++},handleCellSave:function(e){var t=this;e.editFlag=!1,setTimeout((function(){t.editRow--,t.$message({type:"success",message:"修改成功"})}),1e3)},handleCellCancel:function(e){e.editFlag=!1,console.log(this.tempEditRemark),e.remark=this.tempEditRemark,this.editRow--},handleSizeChange:function(e){var t=this;console.log("每页 ".concat(e," 条")),this.pageCount=e,this.loading=!0,setTimeout((function(){t.getList(t.cat,t.currentPage,t.pageCount),t.loading=!1}),1e3)},handleCurrentChange:function(){var e=f(o.a.mark((function e(t){var n=this;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.currentPage=t,this.loading=!0,setTimeout((function(){n.getList(n.cat,n.currentPage,n.pageCount),n.loading=!1}),1e3);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),buttonMethods:function(e,t,n){var a=this,r=this.$options.methods;r[e](a,t,n)},beforeCloseImportDialog:function(){this.showImportDialog=!1},handleImport:function(){var e=f(o.a.mark((function e(t){var n,a;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log(t),null!=t){e.next=5;break}this.$message.error("文件解析出錯"),e.next=20;break;case 5:if(t=t.map((function(e){var t=new Object;return t.group_name=e.Name,t.remark=e.Remark,t})),0!=t.length){e.next=10;break}this.$message.error("導入失敗,數據表為空"),e.next=20;break;case 10:return n=this.$loading({lock:!0,text:"正在導入,請稍候...",background:"rgba(255,255,255, 0.8)"}),e.next=13,GroupModel.import(this.temp.server_id,t);case 13:a=e.sent,console.log(a),0==a.rc?this.$confirm("其中"+a.data.success.length+"項導入成功,"+a.data.error.length+"項導入失敗,"+a.data.duplicate.length+"項因已存在已被忽略","處理完成",{confirmButtonText:"確定",showCancelButton:!1,type:"success"}):this.$message.error(a.msg),n.close(),this.showImportDialog=!1,this.currentPage=1,this.getList(this.cat,this.currentPage,this.pageCount);case 20:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleEdit:function(e,t,n,a){console.log("handleEdit =>".concat(t),n),e.temp.id=n.id,e.temp.user_login=n.user_login,e.temp.user_name=n.user_name,e.temp.user_pass="",e.temp.user_phone=n.user_phone,e.temp.user_email=n.user_email,e.temp.role=n.role,e.temp.status=n.status,e.temp.team_id="0"==n.team_id?"":n.team_id,e.dialogTitle="修改球隊經理",e.showDialog=!0},handAdd:function(){this.temp.id=0,this.temp.user_login="",this.temp.user_name="",this.temp.user_pass="",this.temp.user_phone="",this.temp.user_email="",this.temp.role="",this.temp.status="1",this.temp.team_id="",this.dialogTitle="添加球隊經理",this.showDialog=!0},confirmAdd:function(){var e=f(o.a.mark((function e(){var t=this;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=f(o.a.mark((function e(n){var a;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=14;break}return t.syncLoading=!0,e.next=4,c["UserModel"].setUser("addTeamManager",t.temp);case 4:if(a=e.sent,t.syncLoading=!1,0!==a.rc){e.next=13;break}return t.showDialog=!1,t.$message.success(a.msg),e.next=11,t.getList(t.cat,t.currentPage,t.pageCount);case 11:e.next=14;break;case 13:t.$message.error(a.msg);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleDelete:function(e,t,n){e.$confirm("此操作將永久刪除該記錄,是否繼續?","提示",{confirmButtonText:"確定",cancelButtonText:"取消",type:"warning"}).then(f(o.a.mark((function t(){var a;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,c["UserModel"].setUser("deleteTeamManager",n);case 3:if(a=t.sent,0!==a.rc){t.next=11;break}return e.loading=!1,e.$message.success(a.msg),t.next=9,e.getList(e.cat,e.currentPage,e.pageCount);case 9:t.next=13;break;case 11:e.loading=!1,e.$message.error(a.msg);case 13:case"end":return t.stop()}}),t)}))))},confirmEdit:function(){var e=f(o.a.mark((function e(){var t=this;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=f(o.a.mark((function e(n){var a;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=14;break}return t.syncLoading=!0,e.next=4,c["UserModel"].setUser("updateTeamManager",t.temp);case 4:if(a=e.sent,t.syncLoading=!1,0!==a.rc){e.next=13;break}return t.showDialog=!1,t.$message.success(a.msg),e.next=11,t.getList(t.cat,t.currentPage,t.pageCount);case 11:e.next=14;break;case 13:t.$message.error(a.msg);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),filterNfcChange:function(e){this.temp.nfc_code=e},onQueryChange:function(e){this.searchKeyword=e.trim(),this.currentPage=1,this.getList(this.cat,this.currentPage,this.pageCount)},handleChangeOptions:function(e){this.optionsValue=e;var t=e[e.length-1];this.cat=t,this.total_nums=0,this.getList(this.cat,this.currentPage,this.pageCount)},_generateOptionsData:function(e){var t=[];return e.forEach((function(e){0!=e.pid||t.push({value:e.id,label:e.title,children:[]})})),t.forEach((function(n,a){var r=[];e.forEach((function(e){e.pid===n.value&&r.push({value:e.id,label:e.title,disabled:!e.status})})),t[a].children=r})),t},resetForm:function(){this.$refs.form.resetFields(),this.optionsValue=[]}},watch:{"temp.file":{handler:function(){this.temp.title=decodeURI(this.temp.file).replace(/%2F/g,"/")}},fixedLeftList:function(){var e=this;this.filterTableColumn.map((function(t,n){return e.fixedLeftList.indexOf(t.label)>-1?e.$set(e.filterTableColumn[n],"fixed","left"):-1===e.fixedRightList.indexOf(t.label)&&e.$set(e.filterTableColumn[n],"fixed",!1),""})),console.log(this.filterTableColumn)},fixedRightList:function(){var e=this;this.filterTableColumn.map((function(t,n){return e.fixedRightList.indexOf(t.label)>-1?e.$set(e.filterTableColumn[n],"fixed","right"):-1===e.fixedLeftList.indexOf(t.label)&&e.$set(e.filterTableColumn[n],"fixed",!1),""})),console.log(this.filterTableColumn)},editRow:function(){return this.filterTableColumn[7]&&0===this.editRow&&this.$set(this.filterTableColumn[7],"width",200),""}}},m=h,g=(n("2d89"),n("2877")),b=Object(g["a"])(m,a,r,!1,null,"54719d66",null);t["default"]=b.exports},ab00:function(e,t,n){"use strict";n.r(t),n.d(t,"RoleModel",(function(){return m}));var a=n("a34a"),r=n.n(a),i=n("ceda"),o=n("4360");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n,a,r,i,o){try{var s=e[i](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(a,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){u(i,a,r,o,s,"next",e)}function s(e){u(i,a,r,o,s,"throw",e)}o(void 0)}))}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}var m=function(){function e(){d(this,e)}return h(e,null,[{key:"getList",value:function(){var e=p(r.a.mark((function e(t){var n;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Object,e.prev=1,e.next=4,Object(i["post"])("/api-data",{c:"Role",a:"getList",company_id:o["default"].state.company_id,pageLimit:t.count,cpage:t.start,keyword:t.keyword}).then((function(e){n=e})).catch((function(e){console.log(null==e?"網絡出錯":e),console.log("網絡出錯123")}));case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log("網絡出錯");case 10:return e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRole",value:function(){var e=p(r.a.mark((function e(t,n){var a;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new Object,e.prev=1,e.next=4,Object(i["post"])("/api-data",l({c:"Role",a:t},n)).then((function(e){a=e})).catch((function(e){console.log(null==e?"網絡出錯":e)}));case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log("網絡出錯");case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getPermisionList",value:function(){var e=p(r.a.mark((function e(){var t;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=new Object,e.prev=1,e.next=4,Object(i["post"])("/api-data",{c:"Role",a:"getPermissionList",company_id:o["default"].state.company_id}).then((function(e){t=e})).catch((function(e){console.log(null==e?"網絡出錯":e),console.log("網絡出錯123")}));case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log("網絡出錯");case 10:return e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}()}]),e}()},b4b6:function(e,t,n){"use strict";n.r(t),n.d(t,"TeamModel",(function(){return h}));var a=n("a34a"),r=n.n(a),i=n("ceda");n("4360");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t,n,a,r,i,o){try{var s=e[i](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(a,r)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){c(i,a,r,o,s,"next",e)}function s(e){c(i,a,r,o,s,"throw",e)}o(void 0)}))}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var h=function(){function e(){p(this,e)}return f(e,null,[{key:"getList",value:function(){var e=u(r.a.mark((function e(t){var n;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Object,e.prev=1,e.next=4,Object(i["post"])("/api-data",{c:"Team",a:"getList",pageLimit:t.count,cpage:t.start,keyword:t.keyword}).then((function(e){n=e})).catch((function(e){console.log(null==e?"網絡出錯":e),console.log("網絡出錯123")}));case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log("網絡出錯");case 10:return e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setTeam",value:function(){var e=u(r.a.mark((function e(t,n){var a;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new Object,e.prev=1,e.next=4,Object(i["post"])("/api-data",s({c:"Team",a:t},n)).then((function(e){a=e})).catch((function(e){console.log(null==e?"網絡出錯":e)}));case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log("網絡出錯");case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));function t(t,n){return e.apply(this,arguments)}return t}()}]),e}()},da08:function(e,t,n){"use strict";n.r(t),n.d(t,"tableColumn",(function(){return a})),n.d(t,"teamTableColumn",(function(){return r})),n.d(t,"playerTableColumn",(function(){return i}));var a=[{prop:"id",label:"ID",width:70},{prop:"user_login",label:"賬戶"},{prop:"user_name",label:"暱稱"},{prop:"user_phone",label:"電話"},{prop:"user_email",label:"電郵"},{prop:"status",label:"狀態",noRepeat:!0},{prop:"created",label:"註冊時間",width:160},{prop:"updated",label:"更新時間",width:160}],r=[{prop:"id",label:"ID",width:70},{prop:"user_login",label:"UI No."},{prop:"user_name",label:"暱稱"},{prop:"user_phone",label:"電話"},{prop:"team",label:"球隊",noRepeat:!0},{prop:"user_email",label:"電郵"},{prop:"status",label:"狀態",noRepeat:!0},{prop:"created",label:"註冊時間",width:160},{prop:"updated",label:"更新時間",width:160}],i=[{prop:"id",label:"ID",width:70},{prop:"ui_no",label:"UI No."},{prop:"player_name",label:"暱稱"},{prop:"team",label:"球隊",noRepeat:!0},{prop:"player_position",label:"位置",noRepeat:!0},{prop:"jersey_no",label:"球衣編號"},{prop:"created",label:"註冊時間",width:160},{prop:"updated",label:"更新時間",width:160}]},e241:function(e,t,n){},e9da:function(e,t,n){}}]);