(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3402aa3d"],{"356b":function(e,t,a){"use strict";a.r(t);vari=function(){vare=this,t=e.$createElement,a=e._self._c||t;returna("div",[a("Modal",{attrs:{title:"活动签到轨迹",width:"450"},on:{"on-cancel":function(t){e.signTimeLine.show=!1}},model:{value:e.signTimeLine.show,callback:function(t){e.$set(e.signTimeLine,"show",t)},expression:"signTimeLine.show"}},[a("Timeline",e._l([].concat(e.signTimeLine.data),(function(t,i){returna("TimelineItem",{key:i},[a("h3",[e._v("【"+e._s(e.dict.signOrSignOutStatus[t.sign_state])+"】")]),a("p",[e._v("地址:"+e._s(t.address))]),a("p",[e._v("时间:"+e._s(t.createtime))]),a("viewer",e._l([t.file_info],(function(e,t){returna("div",{key:t},[a("img",{attrs:{src:e.path,width:"120px",height:"80px"}})])})),0)],1)})),1)],1),a("Modal",{attrs:{title:"剔除占座",width:"300"},on:{"on-ok":e.confirmElimination,"on-cancel":function(t){e.eliminateSeats.show=!1}},model:{value:e.eliminateSeats.show,callback:function(t){e.$set(e.eliminateSeats,"show",t)},expression:"eliminateSeats.show"}},[a("Icon",{attrs:{type:"ios-alert",color:"#2196F3"}}),e._v("\n 确认剔除 "),a("span",{staticStyle:{color:"#2196F3"}},[e._v(e._s(e.eliminateSeats.data.seat_code_name)+"号")]),e._v(" 座位 "),a("span",{staticStyle:{color:"#2196F3"}},[e._v(e._s(e.eliminateSeats.data.name))]),e._v(" 的占座并加入黑名单吗?\n"),a("Input",{attrs:{rows:4,maxlength:"50","show-word-limit":"",type:"textarea",placeholder:"请输入剔除备注..."},model:{value:e.eliminateSeats.formData.content,callback:function(t){e.$set(e.eliminateSeats.formData,"content",t)},expression:"eliminateSeats.formData.content"}})],1),a("Card",{ref:"card"},[a("SearchCondForm",{attrs:{searchCondList:e.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),a("Button",{attrs:{type:"primary"},on:{click:e.importRecordFile}},[e._v("附件导出")]),a("CTable",{attrs:{tableColumns:e.tableColumns.filter((function(e){returne.show})),tableData:e.tableData,tableLoading:e.tableLoading,tableSize:e.tableSize,dataCount:e.dataCount,pageIndex:e.params.page_index,pageSize:e.params.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange},scopedSlots:e._u([{key:"state_name",fn:function(t){vari=t.row;return[a("Tag",{attrs:{color:e.dict.activityStatusTagType[i.state]}},[e._v(e._s(i.state_name))])]}},{key:"sign_state_name",fn:function(t){vari=t.row;return[a("Tag",{attrs:{color:e.dict.signOrsignOutTagType[i.sign_state]}},[e._v(e._s(e.dict.signOrSignOutStatus[String(i.sign_state)]))])]}},{key:"action",fn:function(t){vari=t.row;return[a("a",{staticStyle:{"margin-left":"8px"},on:{click:function(t){returne.rowDetails(i)}}},[e._v("详情")])]}}])}),a("CEditModal",{ref:"ceditmodal",attrs:{formItem:e.formItem,loading:e.editModalLoading,formLabelWidth:100,width:800},on:{signRecord:e.signRecord,onClose:function(t){e.editModalshow=!1}},model:{value:e.editModalshow,callback:function(t){e.editModalshow=t},expression:"editModalshow"}})],1)],1)},n=[],o=(a("8e6e"),a("456d"),a("ac6a"),a("20d6"),a("7f7f"),a("ade3")),s=(a("28a5"),a("84af")),r=a("ee00"),l=a("69dc"),c=(a("2ef0"),a("d02c")),d=a("61be"),u=a("b500"),m=location.origin;functionp(e,t){vara=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}returna}functionh(e){for(vart=1;t<arguments.length;t++){vara=null!=arguments[t]?arguments[t]:{};t%2?p(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}returne}varg={name:"list",components:{CTable:s["a"],CEditModal:r["a"],SearchCondForm:l["a"]},data:function(){return{signTimeLine:{show:!1,data:[]},eliminateSeats:{data:{},show:!1,formData:{id:"",content:"剔除座位"}},dict:u["a"],searchCondList:[{id:"key_name",name:"房间名称",type:"input",show:!0,optList:[]},{id:"room_id",name:"房间类型",type:"select",show:!0,optList:[]},{id:"date",name:"占座日期",type:"date",show:!0,optList:[]},{id:"sign_state",name:"签到状态",type:"select",show:!0,optList:[{value:"0",label:"未签到"},{value:"1",label:"已签到"},{value:"2",label:"已签退"}]},{id:"state",name:"活动状态",type:"select",show:!0,optList:[{value:"0",label:"待使用"},{value:"1",label:"使用中"},{value:"2",label:"已结束"},{value:"3",label:"踢除"},{value:"9",label:"已取消"}]}],params:{key_name:"",room_id:"",sign_state:"",state:"",date:"",page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",align:"center",width:80,show:!0,fixed:"left"},{key:"name",title:"占座人",align:"center",minWidth:150,show:!0},{key:"room_name",title:"房间名称",align:"center",minWidth:150,show:!0},{key:"seat_code_name",title:"座位",align:"center",minWidth:150,show:!0},{key:"room_type_name",title:"房间类型",align:"center",minWidth:150,show:!0},{key:"room_address",title:"房间地址",align:"center",minWidth:150,show:!0},{slot:"state_name",title:"活动状态",align:"center",minWidth:150,show:!0},{slot:"sign_state_name",title:"签到状态",align:"center",minWidth:150,show:!0},{key:"date",title:"活动时间",align:"center",minWidth:150,show:!0},{slot:"action",title:"操作",align:"center",minWidth:180,show:!0,fixed:"right"}],tableLoading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,editModalshow:!1,editModalLoading:!1,formItem:[{id:"room_name",name:"房间名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"room_address",name:"房间地址",type:"input",disabled:!1,require:!1,optList:[]},{id:"room_type_name",name:"房间类型",type:"input",disabled:!1,require:!1,optList:[]},{id:"seat_code_name",name:"座位号",type:"input",disabled:!1,require:!1,optList:[]},{id:"name",name:"占座人",type:"input",disabled:!1,require:!1,optList:[]},{id:"card",name:"占座人卡号",type:"input",disabled:!1,require:!1,optList:[]},{id:"begin_time",name:"占座开始时间",type:"datetime",disabled:!1,require:!1,optList:[]},{id:"end_time",name:"占座结束时间",type:"datetime",disabled:!1,require:!1,optList:[]},{id:"sign_state_name",name:"签到状态",type:"input",disabled:!1,require:!1,optList:[]},{id:"state_name",name:"活动状态",type:"input",disabled:!1,require:!1,optList:[]},{id:"signRecord",name:"签到签退轨迹",type:"signRecord",disabled:!1,require:!1,optList:[]}],defaultFormData:{id:"",place_type_name:"",time_split:0,service_interval_time:"",instructions:"",read_time:0,is_enable:0,is_del:0,createby:"",createtime:"",modifyby:null,modify_time:null},ptcModalShow:!1,ptcActiveId:"",ptcTableData:[],ptcTableLoading:!1,ptcDataCount:0,ptcParams:{activity_id:"",page_index:1,page_size:10},ptcAddModalShow:!1,ptcAddPsList:[],ptcAddPsSelectList:[],ptcAddPsParams:{user_type:0,keyword:""},eltModalShow:!1,eltModalLoading:!1,eltModalTitle:"",eltActiveId:"",eltTableData:[],trkModalShow:!1,trkModalLoading:!1,trkModalTitle:"",trkData:""}},computed:{ptcAddPsCal:function(){returnfunction(e){vart=e.split("|");return"".concat(t[1],"").concat(t[2])}},cmdTableDataCal:function(){vare=(this.cmdParams.page_index-1)*this.cmdParams.page_size,t=e+this.cmdParams.page_size;returnthis.cmdTableData.slice(e,t)},eltTableDataCal:function(){vare=(this.eltParams.page_index-1)*this.eltParams.page_size,t=e+this.eltParams.page_size;returnthis.eltTableData.slice(e,t)}},created:function(){},mounted:function(){vare=this;this.asc.getApiTypeGetOccupyseatList({name:"",page_index:1,page_size:100}).then((function(t){vara=t.response.data.map((function(e){returnh(h({},e),{},{label:e.name,value:e.id})}));e.searchCondList[e.searchCondList.findIndex((function(e){return"room_id"===e.id}))].optList=a})),this.getData()},methods:{handleShowPreview:function(e){this.$viewerApi({images:e.map((function(e){returnm+e.path}))})},signRecord:function(e){vart=this;this.signTimeLine.data=[],d["myEncapsulationFunction"]((function(){returnc["getApiRecordGetRecordTrackDetailsList"]({id:e}).then((function(e){return1===e.code&&(t.signTimeLine.show=!0),t.signTimeLine.data=e.response.map((function(e){returnh(h({},e),{},{color:["green","green","blue"][e.sign_state]})})),e}))}),!0,"正在加载中...")},confirmElimination:function(e){vart=this;d["myEncapsulationFunction"]((function(){returnc["getApiRecordKickOut"](t.eliminateSeats.formData).then((function(e){return1===e.code&&(t.eliminateSeats.formData.content="剔除座位",t.eliminateSeats.show=!1,t.getData()),e}))}),!1,"正在剔除中...")},search:function(e){vart=this;Object.keys(e).forEach((function(a){e[a]?t.params[a]=e[a]:t.params[a]=""})),this.onPageChange(1)},reset:function(){vare=this;this.searchCondList.forEach((function(t){e.params[t.id]=""})),this.onPageChange(1)},getData:function(){vare=this;this.tableLoading=!0,this.asc.postApiRecordGetRecordListByAdmin(this.params).then((function(t){e.tableData=t.response.data.map((function(e){returnh(h({},e),{},{date:"".concat(e.begin_time,"-").concat(e.end_time.split("")[1],"").concat(d["calculateTimeDifference"](e.begin_time.split("")[1],e.end_time.split("")[1]),"小时")})})),e.dataCount=t.response.data_count,e.tableLoading=!1}))},rowDetails:function(e){vart=this;this.editModalshow=!0,this.editModalLoading=!0,c["getApiRecordGetRecordInfo"]({id:e.id}).then((function(e){t.$refs.ceditmodal.modalDetailsInit(e.response,"room_address"),t.editModalLoading=!1}))},rowDelete:function(e){},onPageChange:function(e){this.params.page_index=e,this.getData()},onPageSizeChange:function(e){this.params.page_size=e,1==this.params.page_index&&this.onPageChange(1)},onPtcPageChange:function(e){this.ptcParams.page_index=e,this.getPtcData()},onCmdPageChange:function(e){this.cmdParams.page_index=e},onCmdPageSizeChange:function(e){this.cmdParams.page_size=e,1==this.cmdParams.page_index&&this.onCmdPageChange(1)},eltDetails:function(e){this.eltActiveId=e.id,this.eltModalShow=!0,this.eltModalTitle=e.activity_name+" - 评价",this.getEltData()},triggerCulling:function(e){this.eliminateSeats.show=!0,this.eliminateSeats.formData.id=e.id,this.eliminateSeats.data=e},importRecordFile:function(){vare=this;d["publicConfirm"]((function(){returnd["myEncapsulationFunction"]((function(){returnc["postApiRecordGetRecordListByAdminExport"](e.params,{responseType:"blob"}).then((function(e){returnd["blobFileDown"](e),e}))}),!0,"正在导出中...")}),"是否确认导出记录数据文件")}}},f=g,_=(a("f5ec"),a("2877")),b=Object(_["a"])(f,i,n,!1,null,"5d1582ba",null);t["default"]=b.exports},9013:function(e,t,a){},b500:function(e,t,a){"use strict";functioni(e,t){for(vara=0;a<t.length;a++){vari=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}functionn(e,t,a){returnt&&i(e.prototype,t),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}vars=n((functione(){o(this,e),this.roleStatus={1:"管理员",2:"一般管理员",3:"普通用户"},this.roomStatus={0:"禁用",1:"启用"},this.seatStatus={0:"禁用",1:"启用"},this.seatTimeStatus={0:"可预约",1:"不可预约"},this.noGoodRecordStatus={0:"过期",1:"违约",2:"取消"},this.noGoodRecordTag={0:"blur",1:"warning",2:"default"},this.signOrSignOutStatus={0:"未签到",1:"已签到",2:"已签退"},this.activityStatus={0:"待使用",1:"使用中",2:"已结束",3:"踢除",9:"已取消"},this.activityStatusTagType={0:"blue",1:"success",2:"default",3:"error",9:"default"},this.signOrsignOutTagType={0:"blue",1:"success",2:"warning"},this.transientState={0:"未暂离",1:"暂离",2:"暂离超时"},this.appointmentImageKey={0:"syz1",1:"dsy1",2:"yjs1",3:"tc1",9:"yqx1"}}));t["a"]=news},f5ec:function(e,t,a){"use strict";a("9013")}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-472bde37"],{"0b5f":function(t,e,a){},"7f2d":function(t,e,a){"use strict";a.r(e);vari=function(){vart=this,e=t.$createElement,a=t._self._c||e;returna("div",[a("Modal",{attrs:{title:"剔除占座",width:"300"},on:{"on-ok":t.confirmElimination,"on-cancel":function(e){t.eliminateSeats.show=!1}},model:{value:t.eliminateSeats.show,callback:function(e){t.$set(t.eliminateSeats,"show",e)},expression:"eliminateSeats.show"}},[a("Icon",{attrs:{type:"ios-alert",color:"#2196F3"}}),t._v("\n 确认剔除 "),a("span",{staticStyle:{color:"#2196F3"}},[t._v(t._s(t.eliminateSeats.data.seat_code_name)+"号")]),t._v(" 座位 "),a("span",{staticStyle:{color:"#2196F3"}},[t._v(t._s(t.eliminateSeats.data.name))]),t._v(" 的占座并加入黑名单吗?\n"),a("Input",{attrs:{rows:4,maxlength:"50","show-word-limit":"",type:"textarea",placeholder:"请输入剔除备注..."},model:{value:t.eliminateSeats.formData.content,callback:function(e){t.$set(t.eliminateSeats.formData,"content",e)},expression:"eliminateSeats.formData.content"}})],1),a("Card",{ref:"card"},[a("SearchCondForm",{attrs:{searchCondList:t.searchCondList,labelWidth:120},on:{onSubmit:t.search,onReset:t.reset}}),a("div",{staticStyle:{display:"flex"}},[a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1)],1),a("CTable",{attrs:{tableColumns:t.tableColumns.filter((function(t){returnt.show})),tableData:t.tableData,tableLoading:t.tableLoading,tableSize:t.tableSize,dataCount:t.dataCount,pageIndex:t.params.page_index,pageSize:t.params.page_size},on:{rowEdit:t.rowEdit,rowDetails:t.rowDetails,rowDelete:t.rowDelete,switchChange:t.switchChange,onPageChange:t.onPageChange,onPageSizeChange:t.onPageSizeChange},scopedSlots:t._u([{key:"is_sys",fn:function(e){vara=e.row;return[t._v("\n"+t._s(["否","是"][Number(a.is_sys)])+"\n")]}}])}),a("CEditModal",{ref:"ceditmodal",attrs:{formItem:t.formItem,loading:t.editModalLoading,formLabelWidth:100,width:800},on:{onSubmit:t.onSubmit,onClose:function(e){t.editModalshow=!1}},model:{value:t.editModalshow,callback:function(e){t.editModalshow=e},expression:"editModalshow"}})],1)],1)},n=[],o=(a("456d"),a("ac6a"),a("28a5"),a("84af")),s=a("ee00"),l=a("69dc"),d=(a("2ef0"),a("d02c")),r=a("61be"),c=a("b500"),u={name:"list",components:{CTable:o["a"],CEditModal:s["a"],SearchCondForm:l["a"]},data:function(){return{eliminateSeats:{data:{},show:!1,formData:{id:"",content:"剔除座位"}},dict:c["a"],searchCondList:[{id:"name",name:"房间类型名称",type:"input",show:!0,optList:[]}],params:{name:"",page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",align:"center",width:80,show:!0,fixed:"left"},{key:"name",title:"房间类型名称",align:"center",minWidth:150,show:!0},{slot:"is_sys",title:"是否系统创建",align:"center",minWidth:150,show:!0},{slot:"generalSwitch",title:"类型状态",align:"center",minWidth:80,show:!0},{slot:"actionAndDetails",title:"操作",align:"center",Width:150,show:!0,fixed:"right"}],tableLoading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,editModalshow:!1,editModalLoading:!1,formItem:[{id:"name",name:"房间类型名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enable",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],defaultFormData:{name:"",is_enable:1,is_del:0,is_sys:0},ptcModalShow:!1,ptcActiveId:"",ptcTableData:[],ptcTableLoading:!1,ptcDataCount:0,ptcParams:{activity_id:"",page_index:1,page_size:10},ptcAddModalShow:!1,ptcAddPsList:[],ptcAddPsSelectList:[],ptcAddPsParams:{user_type:0,keyword:""},eltModalShow:!1,eltModalLoading:!1,eltModalTitle:"",eltActiveId:"",eltTableData:[],trkModalShow:!1,trkModalLoading:!1,trkModalTitle:"",trkData:""}},computed:{ptcAddPsCal:function(){returnfunction(t){vare=t.split("|");return"".concat(e[1],"").concat(e[2])}},cmdTableDataCal:function(){vart=(this.cmdParams.page_index-1)*this.cmdParams.page_size,e=t+this.cmdParams.page_size;returnthis.cmdTableData.slice(t,e)},eltTableDataCal:function(){vart=(this.eltParams.page_index-1)*this.eltParams.page_size,e=t+this.eltParams.page_size;returnthis.eltTableData.slice(t,e)}},created:function(){},mounted:function(){this.getData()},methods:{confirmElimination:function(t){vare=this;r["myEncapsulationFunction"]((function(){returnd["getApiRecordKickOut"](e.eliminateSeats.formData).then((function(t){return1===t.code&&(e.eliminateSeats.formData.content="剔除座位",e.eliminateSeats.show=!1,e.getData()),t}))}),!1,"正在剔除中...")},search:function(t){vare=this;Object.keys(t).forEach((function(a){t[a]?e.params[a]=t[a]:e.params[a]=""})),this.onPageChange(1)},reset:function(){vart=this;this.searchCondList.forEach((function(e){t.params[e.id]=""})),this.onPageChange(1)},onPageChange:function(t){this.params.page_index=t,this.getData()},onPageSizeChange:function(t){this.params.page_size=t,1==this.params.page_index&&this.onPageChange(1)},getData:function(){vart=this;this.tableLoading=!0,this.asc.getApiTypeGetOccupyseatList(this.params).then((function(e){t.tableData=e.response.data,t.dataCount=e.response.data_count,t.tableLoading=!1}))},rowEdit:function(t){vare=this;this.editModalshow=!0,this.editModalLoading=!0,this.asc.getApiTypeGetOccupyseatTypeInfo({id:t.id}).then((function(t){e.$refs.ceditmodal.modalInit("edit",t.response),e.editModalLoading=!1}))},add:function(){this.editModalshow=!0,this.$refs.ceditmodal.modalInit("add",this.defaultFormData,"新增房间类型")},rowDetails:function(t){vare=this;this.editModalshow=!0,this.editModalLoading=!0,d["getApiTypeGetOccupyseatTypeInfo"]({id:t.id}).then((function(t){e.$refs.ceditmodal.modalDetailsInit(t.response,"name"),e.editModalLoading=!1}))},rowDelete:function(t){vare=this;r["publicConfirm"]((function(){returnr["myEncapsulationFunction"]((function(){returnd["getApiTypeOccupyseatTypeDel"]({id:t.id,is_del:1}).then((function(t){return1===t.code&&e.getData(),t}))}))}))},onSubmit:function(t){vare=this;r["myEncapsulationFunction"]((function(){returnd["postApiTypeOccupyseatTypeSave"](t).then((function(t){return1===t.code&&(e.getData(),e.editModalshow=!1),t}))}))},switchChange:function(t,e,a){vari=this;this.tableData[a].is_enable=t,this.hooks.myEncapsulationFunction((function(){returnd["getApiTypeOccupyseatTypeEnable"]({id:e.id,is_enable:t}).then((function(t){return1===t.code&&i.getData(),t}))}))}}},h=u,p=(a("ac4b"),a("2877")),m=Object(p["a"])(h,i,n,!1,null,"0148f294",null);e["default"]=m.exports},ac4b:function(t,e,a){"use strict";a("0b5f")},b500:function(t,e,a){"use strict";functioni(t,e){for(vara=0;a<e.length;a++){vari=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}functionn(t,e,a){returne&&i(t.prototype,e),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}functiono(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}vars=n((functiont(){o(this,t),this.roleStatus={1:"管理员",2:"一般管理员",3:"普通用户"},this.roomStatus={0:"禁用",1:"启用"},this.seatStatus={0:"禁用",1:"启用"},this.seatTimeStatus={0:"可预约",1:"不可预约"},this.noGoodRecordStatus={0:"过期",1:"违约",2:"取消"},this.noGoodRecordTag={0:"blur",1:"warning",2:"default"},this.signOrSignOutStatus={0:"未签到",1:"已签到",2:"已签退"},this.activityStatus={0:"待使用",1:"使用中",2:"已结束",3:"踢除",9:"已取消"},this.activityStatusTagType={0:"blue",1:"success",2:"default",3:"error",9:"default"},this.signOrsignOutTagType={0:"blue",1:"success",2:"warning"},this.transientState={0:"未暂离",1:"暂离",2:"暂离超时"},this.appointmentImageKey={0:"syz1",1:"dsy1",2:"yjs1",3:"tc1",9:"yqx1"}}));e["a"]=news}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67a0fe5b"],{"3c8a":function(t,e,a){"use strict";a.r(e);vari=function(){vart=this,e=t.$createElement,a=t._self._c||e;returna("div",[a("Modal",{attrs:{title:"剔除占座",width:"300"},on:{"on-ok":t.confirmElimination,"on-cancel":function(e){t.eliminateSeats.show=!1}},model:{value:t.eliminateSeats.show,callback:function(e){t.$set(t.eliminateSeats,"show",e)},expression:"eliminateSeats.show"}},[a("Icon",{attrs:{type:"ios-alert",color:"#2196F3"}}),t._v("\n 确认剔除 "),a("span",{staticStyle:{color:"#2196F3"}},[t._v(t._s(t.eliminateSeats.data.seat_code_name)+"号")]),t._v(" 座位 "),a("span",{staticStyle:{color:"#2196F3"}},[t._v(t._s(t.eliminateSeats.data.name))]),t._v(" 的占座并加入黑名单吗?\n"),a("Input",{attrs:{rows:4,maxlength:"50","show-word-limit":"",type:"textarea",placeholder:"请输入剔除备注..."},model:{value:t.eliminateSeats.formData.content,callback:function(e){t.$set(t.eliminateSeats.formData,"content",e)},expression:"eliminateSeats.formData.content"}})],1),a("Card",{ref:"card"},[a("SearchCondForm",{attrs:{searchCondList:t.searchCondList,labelWidth:120},on:{onSubmit:t.search,onReset:t.reset}}),a("CTable",{attrs:{tableColumns:t.tableColumns.filter((function(t){returnt.show})),tableData:t.tableData,tableLoading:t.tableLoading,tableSize:t.tableSize,dataCount:t.dataCount,pageIndex:t.params.page_index,pageSize:t.params.page_size},on:{rowEdit:t.rowEdit,rowDetails:t.rowDetails,rowDelete:t.rowDelete,switchChange:t.switchChange,onPageChange:t.onPageChange,onPageSizeChange:t.onPageSizeChange},scopedSlots:t._u([{key:"state",fn:function(e){vari=e.row;return[a("Tag",{attrs:{color:t.dict.noGoodRecordTag[i.state]}},[t._v(t._s(t.dict.noGoodRecordStatus[i.state]))])]}},{key:"action",fn:function(e){vari=e.row;return[a("Button",{attrs:{size:"small",type:"error"},on:{click:function(e){returnt.rowDelete(i)}}},[t._v("取消")])]}}])}),a("CEditModal",{ref:"ceditmodal",attrs:{formItem:t.formItem,loading:t.editModalLoading,formLabelWidth:100,width:800},on:{onSubmit:t.onSubmit,onClose:function(e){t.editModalshow=!1}},model:{value:t.editModalshow,callback:function(e){t.editModalshow=e},expression:"editModalshow"}})],1)],1)},n=[],o=(a("456d"),a("ac6a"),a("28a5"),a("84af")),s=a("ee00"),r=a("69dc"),d=(a("2ef0"),a("d02c")),c=a("61be"),l=a("b500"),u={name:"list",components:{CTable:o["a"],CEditModal:s["a"],SearchCondForm:r["a"]},data:function(){return{eliminateSeats:{data:{},show:!1,formData:{id:"",content:"剔除座位"}},searchCondList:[{id:"key_name",name:"用户名称",type:"input",show:!0,optList:[]}],params:{key_name:"",page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",align:"center",width:80,show:!0,fixed:"left"},{key:"name",title:"违规用户名称",align:"center",minWidth:150,show:!0},{key:"occupyseat_activity_id",title:"房间信息",align:"center",minWidth:150,show:!0},{key:"remark",title:"备注",align:"center",minWidth:150,show:!0},{key:"end_time",title:"解除时间",align:"center",minWidth:150,show:!0},{slot:"state",title:"违规状态",align:"center",minWidth:150,show:!0},{slot:"action",title:"操作",align:"center",minWidth:100,show:!0,fixed:"right"}],tableLoading:!1,dict:l["a"],tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,editModalshow:!1,editModalLoading:!1,formItem:[{id:"name",name:"房间类型名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enable",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],defaultFormData:{name:"",is_enable:1,is_del:0,is_sys:1},ptcModalShow:!1,ptcActiveId:"",ptcTableData:[],ptcTableLoading:!1,ptcDataCount:0,ptcParams:{activity_id:"",page_index:1,page_size:10},ptcAddModalShow:!1,ptcAddPsList:[],ptcAddPsSelectList:[],ptcAddPsParams:{user_type:0,keyword:""},eltModalShow:!1,eltModalLoading:!1,eltModalTitle:"",eltActiveId:"",eltTableData:[],trkModalShow:!1,trkModalLoading:!1,trkModalTitle:"",trkData:""}},computed:{ptcAddPsCal:function(){returnfunction(t){vare=t.split("|");return"".concat(e[1],"").concat(e[2])}},cmdTableDataCal:function(){vart=(this.cmdParams.page_index-1)*this.cmdParams.page_size,e=t+this.cmdParams.page_size;returnthis.cmdTableData.slice(t,e)},eltTableDataCal:function(){vart=(this.eltParams.page_index-1)*this.eltParams.page_size,e=t+this.eltParams.page_size;returnthis.eltTableData.slice(t,e)}},created:function(){},mounted:function(){this.getData()},methods:{confirmElimination:function(t){vare=this;c["myEncapsulationFunction"]((function(){returnd["getApiRecordKickOut"](e.eliminateSeats.formData).then((function(t){return1===t.code&&(e.eliminateSeats.formData.content="剔除座位",e.eliminateSeats.show=!1,e.getData()),t}))}),!1,"正在剔除中...")},search:function(t){vare=this;Object.keys(t).forEach((function(a){t[a]?e.params[a]=t[a]:e.params[a]=""})),this.onPageChange(1)},reset:function(){vart=this;this.searchCondList.forEach((function(e){t.params[e.id]=""})),this.onPageChange(1)},onPageChange:function(t){this.params.page_index=t,this.getData()},onPageSizeChange:function(t){this.params.page_size=t,1==this.params.page_index&&this.onPageChange(1)},getData:function(){vart=this;this.tableLoading=!0,this.asc.postApiBadnessGetBadnessList(this.params).then((function(e){t.tableData=e.response.data,t.dataCount=e.response.data_count,t.tableLoading=!1}))},rowEdit:function(t){vare=this;this.editModalshow=!0,this.editModalLoading=!0,this.asc.getApiTypeGetOccupyseatTypeInfo({id:t.id}).then((function(t){e.$refs.ceditmodal.modalInit("edit",t.response),e.editModalLoading=!1}))},add:function(){this.editModalshow=!0,this.$refs.ceditmodal.modalInit("add",this.defaultFormData,"新增房间类型")},rowDetails:function(t){vare=this;this.editModalshow=!0,this.editModalLoading=!0,d["getApiTypeGetOccupyseatTypeInfo"]({id:t.id}).then((function(t){e.$refs.ceditmodal.modalDetailsInit(t.response,"name"),e.editModalLoading=!1}))},rowDelete:function(t){vare=this;c["publicConfirm"]((function(){returnc["myEncapsulationFunction"]((function(){returnd["getApiBadnessBadnessCancel"]({id:t.id}).then((function(t){return1===t.code&&e.getData(),t}))}))}))},onSubmit:function(t){vare=this;c["myEncapsulationFunction"]((function(){returnd["postApiTypeOccupyseatTypeSave"](t).then((function(t){return1===t.code&&(e.getData(),e.editModalshow=!1),t}))}))},switchChange:function(t,e,a){vari=this;this.tableData[a].is_enable=t,this.hooks.myEncapsulationFunction((function(){returnd["getApiTypeOccupyseatTypeEnable"]({id:e.id,is_enable:t}).then((function(t){return1===t.code&&i.getData(),t}))}))}}},h=u,m=(a("93a4"),a("2877")),p=Object(m["a"])(h,i,n,!1,null,"54a94734",null);e["default"]=p.exports},"4b75":function(t,e,a){},"93a4":function(t,e,a){"use strict";a("4b75")},b500:function(t,e,a){"use strict";functioni(t,e){for(vara=0;a<e.length;a++){vari=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}functionn(t,e,a){returne&&i(t.prototype,e),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}functiono(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}vars=n((functiont(){o(this,t),this.roleStatus={1:"管理员",2:"一般管理员",3:"普通用户"},this.roomStatus={0:"禁用",1:"启用"},this.seatStatus={0:"禁用",1:"启用"},this.seatTimeStatus={0:"可预约",1:"不可预约"},this.noGoodRecordStatus={0:"过期",1:"违约",2:"取消"},this.noGoodRecordTag={0:"blur",1:"warning",2:"default"},this.signOrSignOutStatus={0:"未签到",1:"已签到",2:"已签退"},this.activityStatus={0:"待使用",1:"使用中",2:"已结束",3:"踢除",9:"已取消"},this.activityStatusTagType={0:"blue",1:"success",2:"default",3:"error",9:"default"},this.signOrsignOutTagType={0:"blue",1:"success",2:"warning"},this.transientState={0:"未暂离",1:"暂离",2:"暂离超时"},this.appointmentImageKey={0:"syz1",1:"dsy1",2:"yjs1",3:"tc1",9:"yqx1"}}));e["a"]=news}}]);