HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/uileague/cms/js/chunk-7a79050c.e0609747.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a79050c","chunk-d9bb2b7c","chunk-2d0b32f8","chunk-2d21f25e","chunk-2d2165b2","chunk-2d20fc9c"],{2526:function(e,t,n){},"26fd":function(e,t,n){"use strict";n.r(t),n.d(t,"tableColumn",(function(){return a}));var a=[{prop:"id",label:"ID",width:70},{prop:"team_vs",label:"比賽",noRepeat:!0},{prop:"location",label:"位置",noRepeat:!0},{prop:"dt",label:"比賽時間"},{prop:"status",label:"狀態",noRepeat:!0}]},"566a":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",{directives:[{name:"show",rawName:"v-show",value:null!=e.league,expression:"league != null"}],staticClass:"matches-container"},[n("el-dialog",{attrs:{title:e.title,width:"1200px",visible:e.visible,"close-on-click-modal":!1,"close-on-press-escape":!1,"before-close":e.beforeClose},on:{"update:visible":function(t){e.visible=t},open:function(t){return e.onOpen()}}},[n("div",{staticClass:"tableSample"},[n("div",{staticClass:"header"},[n("div",{staticClass:"header-left"}),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:""}}),"team_vs"===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_1_obj&&null!=t.row.team_2_obj?n("div",{staticStyle:{"line-height":"32px"}},[n("span",[n("span",{staticStyle:{"font-weight":"bold","padding-right":"5px"}},[e._v(e._s(t.row.team_1_obj.team_name))]),null!=t.row.team_1_obj.logo_obj?n("img",{staticClass:"team-logo-mini",attrs:{src:t.row.team_1_obj.logo_obj.thumbnail,alt:""}}):e._e()]),n("span",{staticClass:"vs",staticStyle:{padding:"0 10px","font-size":"16px"}},[e._v("VS")]),n("span",[null!=t.row.team_2_obj.logo_obj?n("img",{staticClass:"team-logo-mini",attrs:{src:t.row.team_2_obj.logo_obj.thumbnail,alt:""}}):e._e(),n("span",{staticStyle:{"font-weight":"bold","padding-left":"5px"}},[e._v(e._s(t.row.team_2_obj.team_name))])])]):e._e()]}}],null,!0)}):e._e(),"location"===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.location_obj?n("div",[e._v(e._s(t.row.location_obj.location))]):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("進行中")]):"2"==t.row.status?n("el-tag",{attrs:{type:"info"}},[e._v("已結束")]):n("el-tag",{attrs:{type:"primary"}},[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,i){return n("el-button",{key:i,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,"append-to-body":""},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:!1,expression:"false"}],attrs:{label:"ID",prop:"id"}},[n("el-col",{attrs:{span:11}},[n("el-input",{attrs:{value:this.temp.id,disabled:""}})],1)],1),n("el-row",[n("el-col",{attrs:{span:10}},[n("el-form-item",{attrs:{label:"球隊 1",prop:"team_1"}},[n("el-col",{attrs:{span:24}},[n("el-select",{attrs:{filterable:"",placeholder:"請選擇"},model:{value:e.temp.team_1,callback:function(t){e.$set(e.temp,"team_1",t)},expression:"temp.team_1"}},e._l(e.teams,(function(t){return n("el-option",{key:t.id,attrs:{label:t.team_name,value:t.id}},[null!=t.logo_obj?n("img",{staticStyle:{width:"20px",display:"inline","line-height":"32px","vertical-align":"middle"},attrs:{src:t.logo_obj.thumbnail,alt:""}}):e._e(),n("span",{staticStyle:{"font-weight":"bold","padding-left":"5px"}},[e._v(e._s(t.team_name))])])})),1)],1)],1)],1),n("el-col",{attrs:{span:3}},[n("div",{staticClass:"vs"},[e._v("VS")])]),n("el-col",{attrs:{span:10}},[n("el-form-item",{staticClass:"team-2",attrs:{label:"球隊 2",prop:"team_2","label-width":"80px","label-position":"right"}},[n("el-col",{attrs:{span:24}},[n("el-select",{attrs:{filterable:"",placeholder:"請選擇"},model:{value:e.temp.team_2,callback:function(t){e.$set(e.temp,"team_2",t)},expression:"temp.team_2"}},e._l(e.teams,(function(t){return n("el-option",{key:t.id,attrs:{label:t.team_name,value:t.id}},[null!=t.logo_obj?n("img",{staticStyle:{width:"20px",display:"inline","line-height":"32px","vertical-align":"middle"},attrs:{src:t.logo_obj.thumbnail,alt:""}}):e._e(),n("span",{staticStyle:{"font-weight":"bold","padding-left":"5px"}},[e._v(e._s(t.team_name))])])})),1)],1)],1)],1)],1),n("el-form-item",{attrs:{label:"比賽時間",prop:"dt"}},[n("el-col",{attrs:{span:24}},[n("el-date-picker",{attrs:{type:"datetime",placeholder:"選擇比賽時間"},model:{value:e.temp.dt,callback:function(t){e.$set(e.temp,"dt",t)},expression:"temp.dt"}})],1)],1),n("el-form-item",{attrs:{label:"位置",prop:"location_id"}},[n("el-col",{attrs:{span:24}},[n("el-select",{attrs:{filterable:"",placeholder:"請選擇"},model:{value:e.temp.location_id,callback:function(t){e.$set(e.temp,"location_id",t)},expression:"temp.location_id"}},e._l(e.locations,(function(e){return n("el-option",{key:e.id,attrs:{label:e.location,value:e.id}})})),1)],1)],1),n("el-form-item",{attrs:{label:"狀態",prop:"status"}},[n("el-col",{attrs:{span:24}},[n("el-radio-group",{model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.status,(function(t){return n("el-radio-button",{attrs:{label:t.key}},[e._v(e._s(t.name))])})),1)],1)],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("保\n                            存")])],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)]),e._t("default")],2)],1)},i=[],r=n("a34a"),o=n.n(r),s=n("63b8"),l=n("26fd"),c=n("c1b0"),u=(n("b4b6"),n("d91d")),p=(n("f121"),n("283a"));function d(e,t,n,a,i,r,o){try{var s=e[r](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(a,i)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var r=e.apply(t,n);function o(e){d(r,a,i,o,s,"next",e)}function s(e){d(r,a,i,o,s,"throw",e)}o(void 0)}))}}var h={name:"",props:["title","visible","league"],components:{LinSearch:s["default"]},data:function(){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:[{key:"0",name:"未開始"},{key:"1",name:"進行中"},{key:"2",name:"已結束"}],dialogTitle:"",showDialog:!1,temp:{id:0,league_id:0,team_1:null,team_2:null,location_id:0,dt:null,status:"0"},nfc:null,nfc_options:[],loadingNFC:!1,transfer_data:[],filterMethod:function(e,t){return t.pinyin.indexOf(e)>-1},rules:{team_1:[{required:!0,message:"請選擇球隊",trigger:"blur"}],team_2:[{required:!0,message:"請選擇球隊",trigger:"blur"}],location_id:[{required:!1,message:"位置不能為空",trigger:"blur"}],dt:[{required:!0,message:"時間不能為空",trigger:"blur"}]},showDeleteDialog:!1,showImportDialog:!1,teams:[],roles:[],locations:[],filter_role:"",filter_roles:[{id:"",role_name:"所有角色",role_desc:""}],uploadPayload:{c:"UploadFile",a:"upload",for:"league-logo",allow:"image",token:""},fileListLogo:[]}},methods:{onOpen:function(){console.log("onOpen..."),this.getList(this.cat,this.currentPage,this.pageCount),this.getLocationList(),this.getTeamList()},beforeClose:function(){this.$emit("beforeClose")},getList:function(){var e=f(o.a.mark((function e(t,n,a){var i,r;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,i=this.searchKeyword,e.next=4,c["MatchesModel"].getList({cat:t,start:n,count:a,keyword:i,league_id:null!=this.league?this.league.id:0});case 4:r=e.sent,this.tableData=r.data,this.currentPage=r.currentPage,this.total_nums=parseInt(r.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}(),getTeamList:function(){this.teams=null==this.league?[]:this.league.league_teams_arr},getLocationList:function(){var e=f(o.a.mark((function e(){var t;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u["LocationModel"].getList({cat:0,start:1,count:-1,keyword:""});case 2:t=e.sent,this.locations=t.data;case 4: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)},handleChange:function(){var e=this;this.filterTableColumn=l["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,i=this.$options.methods;i[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){e.temp.id=n.id,e.temp.league_id=n.league_id,e.temp.team_1=n.team_1,e.temp.team_2=n.team_2,e.temp.location_id=n.location_id,e.temp.dt=n.dt,e.temp.status=n.status,e.dialogTitle="修改比賽",e.showDialog=!0},handAdd:function(){console.log(this.league),this.temp.id=0,this.temp.league_id=null!=this.league?this.league.id:"",this.temp.team_1="",this.temp.team_2="",this.temp.location_id="",this.temp.dt="",this.temp.status="0",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["MatchesModel"].setMatches("add",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["MatchesModel"].setMatches("delete",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["MatchesModel"].setMatches("update",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}(),handlePreview:function(e){console.log(e)},handleUploadLogo:function(e,t,n){console.log("upload",e,t,n),0==e.rc?(this.fileListLogo=[t],this.temp.location_icon=e.id):(this.fileListLogo=[],this.temp.location_icon=0)},handleRemoveLogo:function(){var e=f(o.a.mark((function e(t,n){return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log(t,n),this.fileListLogo=[],this.temp.location_icon=0;case 3:case"end":return e.stop()}}),e,this)})));function t(t,n){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 i=[];e.forEach((function(e){e.pid===n.value&&i.push({value:e.id,label:e.title,disabled:!e.status})})),t[a].children=i})),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),""}))},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),""}))},editRow:function(){return this.filterTableColumn[7]&&0===this.editRow&&this.$set(this.filterTableColumn[7],"width",200),""}},computed:{canAdd:function(){return-1!=this.$store.state.permissions.indexOf("add_location")},canEdit:function(){return-1!=this.$store.state.permissions.indexOf("edit_location")},canDelete:function(){return-1!=this.$store.state.permissions.indexOf("delete_location")},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.uploadPayload.token=Object(p["getToken"])("access_token").split(" ")[1],this.tableColumn=l["tableColumn"],this.operate=[],this.canEdit&&this.operate.push({name:"修改",func:"handleEdit",type:"primary"}),this.canDelete&&this.operate.push({name:"刪除",func:"handleDelete",type:"danger"}),this.tempCheckList=l["tableColumn"].map((function(e){return e.label})).slice(),this.checkList=l["tableColumn"].map((function(e){return e.label})),this.filterTableColumn=l["tableColumn"].filter((function(t){return e.checkList.indexOf(t.label)>-1}))}},m=h,g=(n("f131"),n("2877")),b=Object(g["a"])(m,a,i,!1,null,"3996b3e7",null);t["default"]=b.exports},"58df":function(e,t,n){"use strict";var a=n("e9da"),i=n.n(a);i.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)},i=[],r=n("0a2a"),o={props:{placeholder:{type:String,default:"请输入内容"}},data:function(){return{keyword:""}},created:function(){var e=this;this.$watch("keyword",r["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,i,!1,null,"18aca186",null);t["default"]=c.exports},b4b6:function(e,t,n){"use strict";n.r(t),n.d(t,"TeamModel",(function(){return h}));var a=n("a34a"),i=n.n(a),r=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,i,r,o){try{var s=e[r](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(a,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var r=e.apply(t,n);function o(e){c(r,a,i,o,s,"next",e)}function s(e){c(r,a,i,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(i.a.mark((function e(t){var n;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Object,e.prev=1,e.next=4,Object(r["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(i.a.mark((function e(t,n){var a;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new Object,e.prev=1,e.next=4,Object(r["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}()},c1b0:function(e,t,n){"use strict";n.r(t),n.d(t,"MatchesModel",(function(){return h}));var a=n("a34a"),i=n.n(a),r=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,i,r,o){try{var s=e[r](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(a,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var r=e.apply(t,n);function o(e){c(r,a,i,o,s,"next",e)}function s(e){c(r,a,i,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(i.a.mark((function e(t){var n;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Object,e.prev=1,e.next=4,Object(r["post"])("/api-data",{c:"Matches",a:"getList",pageLimit:t.count,cpage:t.start,keyword:t.keyword,league_id:t.league_id}).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:"setMatches",value:function(){var e=u(i.a.mark((function e(t,n){var a;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new Object,e.prev=1,e.next=4,Object(r["post"])("/api-data",s({c:"Matches",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}()},d91d:function(e,t,n){"use strict";n.r(t),n.d(t,"LocationModel",(function(){return h}));var a=n("a34a"),i=n.n(a),r=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,i,r,o){try{var s=e[r](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(a,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var r=e.apply(t,n);function o(e){c(r,a,i,o,s,"next",e)}function s(e){c(r,a,i,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(i.a.mark((function e(t){var n;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Object,e.prev=1,e.next=4,Object(r["post"])("/api-data",{c:"Location",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:"setLocation",value:function(){var e=u(i.a.mark((function e(t,n){var a;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new Object,e.prev=1,e.next=4,Object(r["post"])("/api-data",s({c:"Location",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}()},e9da:function(e,t,n){},f131:function(e,t,n){"use strict";var a=n("2526"),i=n.n(a);i.a}}]);