提交 ad316fc9 编写于 作者: 刘英杰's avatar 刘英杰

V20241009,开放时间配置,前端基本完成,后续对接口和验证即可

上级 83097fbc
流水线 #29720 已通过 ,包含阶段
in 36 second
.ivu-modal-close .ivu-icon-ios-close[data-v-3d42d304]{color:red;font-weight:700}
\ No newline at end of file
.ivu-form-item[data-v-48d7eb72]{padding-right:15px}.fileRow[data-v-48d7eb72]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-48d7eb72]{color:#ed4014}.fileRow .delIcon[data-v-48d7eb72]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-28ca940a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-28ca940a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-28ca940a]{margin-left:8px}
\ No newline at end of file
.ivu-form-item[data-v-48d7eb72]{padding-right:15px}.fileRow[data-v-48d7eb72]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-48d7eb72]{color:#ed4014}.fileRow .delIcon[data-v-48d7eb72]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-28ca940a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-28ca940a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-28ca940a]{margin-left:8px}
\ No newline at end of file
.cyrIcon[data-v-5d1582ba]{color:#515a6e}.cyrIcon[data-v-5d1582ba]:hover{color:#757d8f;cursor:pointer}.cyrIcon[data-v-5d1582ba]:active{color:#3f485c}
\ No newline at end of file
.ivu-form-item[data-v-48d7eb72]{padding-right:15px}.fileRow[data-v-48d7eb72]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-48d7eb72]{color:#ed4014}.fileRow .delIcon[data-v-48d7eb72]:hover{color:#f16643;cursor:pointer}.mainDiv[data-v-49f6a2fe]{width:100%;height:100%;display:flex;flex-wrap:wrap;justify-content:space-between}.mainDiv .bigCard[data-v-49f6a2fe],.mainDiv .smallCard[data-v-49f6a2fe]{margin-bottom:16px}.mainDiv .bigCard[data-v-49f6a2fe] .ivu-card-body,.mainDiv .smallCard[data-v-49f6a2fe] .ivu-card-body{height:calc(100% - 51px)}.mainDiv .bigCard[data-v-49f6a2fe] .ivu-card-body .ivu-form-item,.mainDiv .smallCard[data-v-49f6a2fe] .ivu-card-body .ivu-form-item{margin-bottom:12px}.mainDiv .bigCard[data-v-49f6a2fe]{width:calc(50% - 8px)}.mainDiv .smallCard[data-v-49f6a2fe]{width:calc(33.33333% - 10.66667px)}.mainDiv[data-v-49f6a2fe] .kjyyCard .ivu-card-body{overflow:auto}.mainDiv[data-v-49f6a2fe] .kjyyCard .ivu-card-body p[name=fastCP]{display:flex;justify-content:space-between}.mainDiv[data-v-49f6a2fe] .kjyyCard .ivu-card-body p[name=fastCP] a[name=del]{color:#ed4014}.mainDiv[data-v-49f6a2fe] .kjyyCard .ivu-card-body p[name=fastCP] a[name=del]:hover{color:#f16643}.mainDiv[data-v-49f6a2fe] .kjyyCard .ivu-card-body p[name=fastCP] a[name=del]:active{color:#e13d13}.mainDiv[data-v-49f6a2fe] .cplhsCard .ivu-card-body{display:flex;flex-direction:column;justify-content:space-evenly}.mainDiv[data-v-49f6a2fe] .save-bt{text-align:right;position:absolute;bottom:16px;right:16px}.mainDiv .roomOpeningHours[data-v-49f6a2fe]{display:flex;justify-content:space-between;flex-wrap:wrap}.mainDiv .flexBetWeen[data-v-49f6a2fe]{width:100%;height:100%;display:flex;justify-content:space-between}.class-drawer[data-v-49f6a2fe]{height:"calc(100% - 55px)";overflow:"auto";padding-bottom:"53px";position:"static"}.class-drawer .subTitle[data-v-49f6a2fe]{margin-top:20px;font-size:14px;color:#191f25;font-weight:700}.class-drawer .drawer-footer[data-v-49f6a2fe]{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff}.class-drawer[data-v-49f6a2fe] .ivu-drawer-header-inner{font-size:20px;font-weight:600}
\ No newline at end of file
.cyrIcon[data-v-0148f294]{color:#515a6e}.cyrIcon[data-v-0148f294]:hover{color:#757d8f;cursor:pointer}.cyrIcon[data-v-0148f294]:active{color:#3f485c}
\ No newline at end of file
.ivu-form-item[data-v-48d7eb72]{padding-right:15px}.fileRow[data-v-48d7eb72]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-48d7eb72]{color:#ed4014}.fileRow .delIcon[data-v-48d7eb72]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-28ca940a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-28ca940a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-28ca940a]{margin-left:8px}.cyrIcon[data-v-54a94734]{color:#515a6e}.cyrIcon[data-v-54a94734]:hover{color:#757d8f;cursor:pointer}.cyrIcon[data-v-54a94734]:active{color:#3f485c}
\ No newline at end of file
.cyrIcon[data-v-54a94734]{color:#515a6e}.cyrIcon[data-v-54a94734]:hover{color:#757d8f;cursor:pointer}.cyrIcon[data-v-54a94734]:active{color:#3f485c}
\ No newline at end of file
[data-v-9459fae4] .ivu-drawer-mask{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(55,55,55,.6);height:100%;z-index:60000!important}[data-v-9459fae4] .ivu-drawer-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:60000!important;-webkit-overflow-scrolling:touch;outline:0}.ivu-form-item[data-v-9459fae4]{padding-right:15px}.fileRow[data-v-9459fae4]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-9459fae4]{color:#ed4014}.fileRow .delIcon[data-v-9459fae4]:hover{color:#f16643;cursor:pointer}.class-drawer[data-v-9459fae4]{height:"calc(100% - 55px)";overflow:"auto";padding-bottom:"53px";position:"static";z-index:99999!important}.class-drawer .subTitle[data-v-9459fae4]{margin-top:20px;font-size:14px;color:#191f25;font-weight:700}.class-drawer .drawer-footer[data-v-9459fae4]{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff}.class-drawer[data-v-9459fae4] .ivu-drawer-header-inner{font-size:20px;font-weight:600}.searchDiv .ivu-form-item[data-v-28ca940a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-28ca940a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-28ca940a]{margin-left:8px}
\ No newline at end of file
.ivu-form-item[data-v-48d7eb72]{padding-right:15px}.fileRow[data-v-48d7eb72]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-48d7eb72]{color:#ed4014}.fileRow .delIcon[data-v-48d7eb72]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-28ca940a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-28ca940a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-28ca940a]{margin-left:8px}.cyrIcon[data-v-0148f294]{color:#515a6e}.cyrIcon[data-v-0148f294]:hover{color:#757d8f;cursor:pointer}.cyrIcon[data-v-0148f294]:active{color:#3f485c}
\ No newline at end of file
.ivu-form-item[data-v-48d7eb72]{padding-right:15px}.fileRow[data-v-48d7eb72]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-48d7eb72]{color:#ed4014}.fileRow .delIcon[data-v-48d7eb72]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-28ca940a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-28ca940a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-28ca940a]{margin-left:8px}
\ No newline at end of file
.ivu-modal-close .ivu-icon-ios-close[data-v-2ab03360]{color:red;font-weight:700}
\ No newline at end of file
.ivu-form-item[data-v-48d7eb72]{padding-right:15px}.fileRow[data-v-48d7eb72]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-48d7eb72]{color:#ed4014}.fileRow .delIcon[data-v-48d7eb72]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-28ca940a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-28ca940a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-28ca940a]{margin-left:8px}.cyrIcon[data-v-5d1582ba]{color:#515a6e}.cyrIcon[data-v-5d1582ba]:hover{color:#757d8f;cursor:pointer}.cyrIcon[data-v-5d1582ba]:active{color:#3f485c}
\ No newline at end of file
.ivu-form-item[data-v-48d7eb72]{padding-right:15px}.fileRow[data-v-48d7eb72]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-48d7eb72]{color:#ed4014}.fileRow .delIcon[data-v-48d7eb72]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-28ca940a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-28ca940a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-28ca940a]{margin-left:8px}
\ No newline at end of file
[data-v-9459fae4] .ivu-drawer-mask{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(55,55,55,.6);height:100%;z-index:60000!important}[data-v-9459fae4] .ivu-drawer-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:60000!important;-webkit-overflow-scrolling:touch;outline:0}.ivu-form-item[data-v-9459fae4]{padding-right:15px}.fileRow[data-v-9459fae4]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-9459fae4]{color:#ed4014}.fileRow .delIcon[data-v-9459fae4]:hover{color:#f16643;cursor:pointer}.class-drawer[data-v-9459fae4]{height:"calc(100% - 55px)";overflow:"auto";padding-bottom:"53px";position:"static";z-index:99999!important}.class-drawer .subTitle[data-v-9459fae4]{margin-top:20px;font-size:14px;color:#191f25;font-weight:700}.class-drawer .drawer-footer[data-v-9459fae4]{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff}.class-drawer[data-v-9459fae4] .ivu-drawer-header-inner{font-size:20px;font-weight:600}.mainDiv[data-v-91d80ccc]{width:100%;height:100%;display:flex;flex-wrap:wrap;justify-content:space-between}.mainDiv .bigCard[data-v-91d80ccc],.mainDiv .smallCard[data-v-91d80ccc]{margin-bottom:16px}.mainDiv .bigCard[data-v-91d80ccc] .ivu-card-body,.mainDiv .smallCard[data-v-91d80ccc] .ivu-card-body{height:calc(100% - 51px)}.mainDiv .bigCard[data-v-91d80ccc] .ivu-card-body .ivu-form-item,.mainDiv .smallCard[data-v-91d80ccc] .ivu-card-body .ivu-form-item{margin-bottom:12px}.mainDiv .bigCard[data-v-91d80ccc]{width:calc(50% - 8px)}.mainDiv .smallCard[data-v-91d80ccc]{width:calc(33.33333% - 10.66667px)}.mainDiv[data-v-91d80ccc] .kjyyCard .ivu-card-body{overflow:auto}.mainDiv[data-v-91d80ccc] .kjyyCard .ivu-card-body p[name=fastCP]{display:flex;justify-content:space-between}.mainDiv[data-v-91d80ccc] .kjyyCard .ivu-card-body p[name=fastCP] a[name=del]{color:#ed4014}.mainDiv[data-v-91d80ccc] .kjyyCard .ivu-card-body p[name=fastCP] a[name=del]:hover{color:#f16643}.mainDiv[data-v-91d80ccc] .kjyyCard .ivu-card-body p[name=fastCP] a[name=del]:active{color:#e13d13}.mainDiv[data-v-91d80ccc] .cplhsCard .ivu-card-body{display:flex;flex-direction:column;justify-content:space-evenly}.mainDiv[data-v-91d80ccc] .save-bt{text-align:right;position:absolute;bottom:16px;right:16px}.mainDiv .roomOpeningHours[data-v-91d80ccc]{display:flex;justify-content:space-between;flex-wrap:wrap}.mainDiv .flexBetWeen[data-v-91d80ccc]{width:100%;height:100%;display:flex;justify-content:space-between}.class-drawer[data-v-91d80ccc]{height:"calc(100% - 55px)";overflow:"auto";padding-bottom:"53px";position:"static"}.class-drawer .subTitle[data-v-91d80ccc]{margin-top:20px;font-size:14px;color:#191f25;font-weight:700}.class-drawer .drawer-footer[data-v-91d80ccc]{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff}.class-drawer[data-v-91d80ccc] .ivu-drawer-header-inner{font-size:20px;font-weight:600}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>自习室占座预约系统</title><link href=css/chunk-vendors.cc1990b1.css rel=stylesheet><link href=css/app.f8f860e0.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/js?v=2.exp&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W&libraries=drawing,geometry,place,convertor,visualization"></script><script src=https://mapapi.qq.com/web/mapComponents/geoLocation/v/geolocation.min.js></script><script src="https://map.qq.com/api/gljs?v=1.exp&libraries=service&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 自习室占座预约系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.6916cc08.js></script><script src=js/app.49db338a.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>自习室占座预约系统</title><link href=css/chunk-vendors.cc1990b1.css rel=stylesheet><link href=css/app.f8f860e0.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/js?v=2.exp&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W&libraries=drawing,geometry,place,convertor,visualization"></script><script src=https://mapapi.qq.com/web/mapComponents/geoLocation/v/geolocation.min.js></script><script src="https://map.qq.com/api/gljs?v=1.exp&libraries=service&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 自习室占座预约系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.6916cc08.js></script><script src=js/app.68f4966e.js></script></body></html>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d0684"],{"689e":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Card",{ref:"card"},[a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[a("Icon",{attrs:{type:"md-add"}}),e._v("新增")],1),a("CTable",{attrs:{tableColumns:e.tableColumns.filter((function(e){return e.show})),tableData:e.tableDataCal,tableLoading:e.tableLoading,tableSize:e.tableSize,dataCount:e.dataCount,pageIndex:e.params.page_index,pageSize:e.params.page_size},on:{switchChange:e.switchChange,rowEdit:e.rowEdit,rowDelete:e.rowDelete,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange},scopedSlots:e._u([{key:"place_name",fn:function(e){var t=e.row;return[a("Ellipsis",{attrs:{transfer:!0,text:t.place_name,height:80,tooltip:""}})]}}])}),a("CEditModal",{ref:"ceditmodal",attrs:{formItem:e.formItem,loading:e.editModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.editModalshow=!1},getPeopleList:e.getPeopleList,onSubmit:e.modalSubmit},model:{value:e.editModalshow,callback:function(t){e.editModalshow=t},expression:"editModalshow"}})],1)],1)},i=[],o=(a("8e6e"),a("28a5"),a("96cf"),a("1da1")),r=(a("7514"),a("456d"),a("ac6a"),a("20d6"),a("7f7f"),a("ade3")),s=a("967e"),d=a.n(s),l=a("84af"),c=a("ee00"),u=a("69dc"),m=a("2ef0"),p=a("d02c"),h=a("61be");function f(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?f(Object(a),!0).forEach((function(t){Object(r["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):f(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var b={components:{CTable:l["a"],CEditModal:c["a"],SearchCondForm:u["a"]},data:function(){return{searchCondList:[{id:"name",name:"类型名称",type:"input",show:!0,optList:[]}],params:{page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",align:"center",width:80,show:!0,fixed:"left"},{key:"card",title:"卡号",align:"center",minWidth:150,show:!0},{key:"name",title:"名称",align:"center",minWidth:150,show:!0},{key:"role_name",title:"角色",align:"center",minWidth:150,show:!0},{key:"place_id",title:"场地id",align:"center",minWidth:150,show:!1},{slot:"generalSwitch",title:"启用",align:"center",minWidth:80,show:!0},{slot:"action",title:"操作",align:"center",minWidth:150,show:!0,fixed:"right"}],tableLoading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,editModalshow:!1,editModalLoading:!1,formItem:[{id:"cardName",name:"用戶",type:"select",disabled:!1,require:!1,optList:[]},{id:"role_id",name:"角色",type:"select",disabled:!1,require:!1,optList:[]},{id:"is_enable",name:"启用",type:"switch",disabled:!1,require:!1,optList:[]}],defaultFormData:{role_id:"",card:"",userid:"",name:"",is_enable:1,is_del:0},roleList:[]}},computed:{tableDataCal:function(){var e=(this.params.page_index-1)*this.params.page_size,t=e+this.params.page_size;return this.tableData.slice(e,t)}},created:function(){},mounted:function(){var e=this;this.asc.getApiCommonGetRoleSelect().then((function(t){var a=t.response.map((function(e){return g(g({},e),{},{label:e.name,value:e.id})}));e.formItem[e.formItem.findIndex((function(e){return"role_id"==e.id}))].optList=a})),this.getData()},methods:{getPeopleList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";console.log("🚀🚀🚀,",t),p["getApiCommonGetPersonByCondiction"]({user_type:1,keyword:t}).then((function(t){var a=t.response.map((function(e){return g(g({},e),{},{label:e.name+"-"+e.card,value:e.name+"-"+e.card})}));e.formItem[e.formItem.findIndex((function(e){return"cardName"===e.id}))].optList=a}))},search:function(e){var t=this;Object.keys(e).forEach((function(a){e[a]?t.params[a]=e[a]:t.params[a]=""})),this.onPageChange(1)},reset:function(){var e=this;this.searchCondList.forEach((function(t){e.params[t.id]=""})),this.onPageChange(1)},getData:function(){var e=this;this.tableLoading=!0,this.asc.getApiRoleGetRolePowerList().then((function(t){e.tableData=t.response,e.dataCount=t.response.length,e.tableLoading=!1}))},switchChange:function(e,t,a){var n=this;h["myEncapsulationFunction"]((function(){return n.asc.getApiRoleRolePowerEnable({id:t.id,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},add:function(){this.editModalshow=!0,this.formItem.find((function(e){return"cardName"===e.id})).disabled=!1,this.$refs.ceditmodal.modalInit("add",this.defaultFormData,"新增用户权限")},rowEdit:function(){var e=Object(o["a"])(d.a.mark((function e(t){var a,n=this;return d.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.editModalshow=!0,this.editModalLoading=!0,e.next=4,new Promise((function(e,a){n.asc.getApiCommonGetPersonByCondiction({user_type:1,keyword:t.card}).then((function(t){var a=t.response.map((function(e){return g(g({},e),{},{label:e.name+"-"+e.card,value:e.name+"-"+e.card})}));n.formItem[n.formItem.findIndex((function(e){return"cardName"===e.id}))].optList=a,e()}))}));case 4:this.formItem.find((function(e){return"cardName"===e.id})).disabled=!0,a=Object(m["cloneDeep"])(t),a.place_id&&(a.place_id=a.place_id.split(",")),a.cardName=a.name+"-"+a.card,this.$refs.ceditmodal.modalInit("edit",a),this.editModalLoading=!1;case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),modalSubmit:function(e){var t=this;console.log("modal提交",e),e.place_id&&(e.place_id=e.place_id.join(",")),e.name=e.cardName.split("-")[0],e.card=e.cardName.split("-")[1],delete e.cardName,this.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){t.asc.postApiRoleRolePowerSave(e).then((function(e){1==e.code?(t.$Message.success(e.response),t.editModalshow=!1,t.getData()):t.$Message.error(e.msg_detail)})).finally((function(){t.$Modal.remove()}))}})},rowDelete:function(e){var t=this;this.asc.getApiRoleRolePowerDel({id:e.id,is_del:1}).then((function(e){1==e.code?(t.$Message.success(e.msg),t.getData()):t.$Message.error(e.msg_detail)}))},onPageChange:function(e){this.params.page_index=e},onPageSizeChange:function(e){this.params.page_size=e,1==this.params.page_index&&this.onPageChange(1)}}},w=b,C=a("2877"),_=Object(C["a"])(w,n,i,!1,null,null,null);t["default"]=_.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20f3f3"],{b38d:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Card",{ref:"card"},[a("SearchCondForm",{attrs:{searchCondList:e.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[a("Icon",{attrs:{type:"md-add"}}),e._v("新增")],1),a("CTable",{attrs:{tableColumns:e.tableColumns.filter((function(e){return e.show})),tableData:e.tableData,tableLoading:e.tableLoading,tableSize:e.tableSize,dataCount:e.dataCount,pageIndex:e.params.page_index,pageSize:e.params.page_size},on:{switchChange:e.switchChange,rowEdit:e.rowEdit,rowDelete:e.rowDelete,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange},scopedSlots:e._u([{key:"other",fn:function(t){var i=t.row;return[a("a",{on:{click:function(t){return e.rowCommodity(i)}}},[e._v("物资")])]}}])}),a("CEditModal",{ref:"ceditmodal",attrs:{formItem:e.formItem,formRule:e.formRule,loading:e.editModalLoading,formLabelWidth:100,width:1e3},on:{onClose:function(t){e.editModalshow=!1},onSubmit:e.modalSubmit},model:{value:e.editModalshow,callback:function(t){e.editModalshow=t},expression:"editModalshow"}}),a("Modal",{attrs:{title:e.cmdModalTitle,width:400},scopedSlots:e._u([{key:"footer",fn:function(){return[a("Button",{on:{click:function(t){e.cmdModalShow=!1}}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.cmdModalShow,callback:function(t){e.cmdModalShow=t},expression:"cmdModalShow"}},[e.cmdModalLoading?a("Spin",{attrs:{size:"large",fix:""}}):e._e(),a("Tree",{attrs:{data:e.cmdTreeData}})],1)],1)],1)},n=[],o=(a("8e6e"),a("ade3")),s=(a("456d"),a("ac6a"),a("84af")),r=a("ee00"),d=a("69dc");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var m={name:"list",components:{CTable:s["a"],CEditModal:r["a"],SearchCondForm:d["a"]},data:function(){return{searchCondList:[{id:"name",name:"类型名称",type:"input",show:!0,optList:[]}],params:{page_index:1,page_size:10,name:""},tableColumns:[{type:"index",title:"序号",align:"center",width:80,show:!0,fixed:"left"},{key:"place_type_name",title:"场地类型名称",align:"center",minWidth:150,show:!0},{key:"time_split",title:"分割时间段(分钟)",align:"center",minWidth:150,show:!0},{key:"instructions",title:"使用须知",align:"center",minWidth:300,show:!0,tooltip:!0,tooltipMaxWidth:800},{key:"read_time",title:"阅读时间(秒)",align:"center",minWidth:120,show:!0},{key:"service_interval_time",title:"场地开放时间",align:"center",minWidth:120,show:!0},{slot:"generalSwitch",title:"启用",align:"center",minWidth:80,show:!0},{slot:"other",title:"其他",align:"center",minWidth:80,show:!0,fixed:"right"},{slot:"action",title:"操作",align:"center",minWidth:150,show:!0,fixed:"right"}],tableLoading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,editModalshow:!1,editModalLoading:!1,formItem:[{id:"place_type_name",name:"场地类型名称",type:"input",disabled:!1,require:!0,optList:[]},{id:"time_split",name:"分割时间段(分钟)",type:"input",disabled:!1,require:!0,optList:[]},{id:"read_time",name:"阅读时间(秒)",type:"input",disabled:!1,require:!1,optList:[]},{id:"service_interval_time",name:"场地开放时间",type:"timerange",disabled:!1,require:!0,optList:[]},{id:"instructions",name:"使用须知",type:"textarea",disabled:!1,require:!1,optList:[],rows:2},{id:"is_enable",name:"启用",type:"switch",disabled:!1,require:!1,optList:[]}],formRule:{place_type_name:[{required:!0,type:"string",message:"场地名称不能为空",trigger:"change"}],time_split:[{required:!0,type:"string",message:"分割时间段不能为空",trigger:"change"}],service_interval_time:[{required:!0,type:"array",message:"场地开放时间不能为空",trigger:"change"}]},defaultFormData:{id:"",place_type_name:"",time_split:0,service_interval_time:"",instructions:"",read_time:5,is_enable:0,is_del:0,createby:"",createtime:"",modifyby:null,modify_time:null},cmdModalShow:!1,cmdModalTitle:"",cmdModalLoading:!1,cmdTreeData:[],cmdParams:{place_type_id:""}}},created:function(){},mounted:function(){this.getData()},methods:{search:function(e){var t=this;Object.keys(e).forEach((function(a){e[a]?t.params[a]=e[a]:t.params[a]=""})),this.onPageChange(1)},reset:function(){var e=this;this.searchCondList.forEach((function(t){e.params[t.id]=""})),this.onPageChange(1)},getData:function(){var e=this;this.tableLoading=!0,this.asc.getApiPlaceTypeGetPlaceTypeList(this.params).then((function(t){e.tableData=t.response.data,e.dataCount=t.response.data_count,e.tableLoading=!1}))},getCmdData:function(){var e=this;this.cmdModalLoading=!0,this.asc.getApiCommodityGetCommodityTree(this.cmdParams).then((function(t){console.log("物资查询结果",t),1==t.code?e.cmdTreeData=e.treeFormat(t.response):e.$Message.error(t.msg_detail)})).finally((function(){e.cmdModalLoading=!1}))},switchChange:function(e,t,a){var i=this;this.tableData[a].is_enable=e,this.asc.getApiPlaceTypePlaceTypeEnable({id:t.id,is_enable:e}).then((function(t){1==t.code?i.$Message.success(t.response):(i.tableData[a].is_enable=0==e?1:0,i.$Message.error(t.msg_detail))}))},rowCommodity:function(e){console.log("物资",e),this.cmdModalShow=!0,this.cmdModalTitle=e.place_type_name+" - 物资",this.cmdParams.place_type_id=e.id,this.getCmdData()},add:function(){this.editModalshow=!0,this.$refs.ceditmodal.modalInit("add",this.defaultFormData,"新增场地类型")},rowEdit:function(e){var t=this;this.editModalshow=!0,this.editModalLoading=!0,this.asc.getApiPlaceTypeGetPlaceTypeInfo({id:e.id}).then((function(e){t.$refs.ceditmodal.modalInit("edit",e.response),t.editModalLoading=!1}))},modalSubmit:function(e){var t=this;this.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){t.asc.postApiPlaceTypePlaceTypeSave(e).then((function(e){1==e.code?(t.$Message.success(e.response),t.editModalshow=!1,t.getData()):t.$Message.error(e.msg_detail)})).finally((function(){t.$Modal.remove()}))}})},rowDelete:function(e){var t=this;this.asc.getApiPlaceTypePlaceTypeDel({id:e.id,is_del:1}).then((function(e){1==e.code?(t.$Message.success(e.msg),t.getData()):t.$Message.error(e.msg_detail)}))},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)},onCmdPageChange:function(e){this.cmdParams.page_index=e,this.getCmdData()},onCmdPageSizeChange:function(e){this.cmdParams.page_size=e,1==this.cmdParams.page_index&&this.onCmdPageChange(1)},treeFormat:function(e){var t=this;return e.map((function(e){return e.children&&0!=e.children.length&&(e.children=t.treeFormat(e.children)),c(c({},e),{},{title:e.commodity_name,expand:!0})}))}}},h=m,p=a("2877"),g=Object(p["a"])(h,i,n,!1,null,"271b194b",null);t["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d228c86"],{db3e:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Card",{ref:"card"},[a("SearchCondForm",{attrs:{searchCondList:e.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[a("Icon",{attrs:{type:"md-add"}}),e._v("新增")],1),a("CTable",{attrs:{tableColumns:e.tableColumns.filter((function(e){return e.show})),tableData:e.tableData,tableLoading:e.tableLoading,tableSize:e.tableSize,dataCount:e.dataCount,pageIndex:e.params.page_index,pageSize:e.params.page_size},on:{switchChange:e.switchChange,rowEdit:e.rowEdit,rowDelete:e.rowDelete,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange},scopedSlots:e._u([{key:"keystate",fn:function(t){var i=t.row;return[a("Tag",{attrs:{color:e.configStates.keyState2.tag[i.state]}},[e._v(e._s(e.configStates.keyState2.array[i.state]))])]}}])}),a("CEditModal",{ref:"ceditmodal",attrs:{formItem:e.formItem,loading:e.editModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.editModalshow=!1},onSubmit:e.modalSubmit},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("84af"),d=a("ee00"),r=a("69dc");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var h={name:"list",components:{CTable:s["a"],CEditModal:d["a"],SearchCondForm:r["a"]},data:function(){return{searchCondList:[{id:"code_name",name:"钥匙编号/名称",type:"input",show:!0,optList:[]},{id:"place_id",name:"场地id",type:"input",show:!1,optList:[]},{id:"state",name:"状态",type:"input",show:!1,optList:[]}],params:{page_index:1,page_size:10,code_name:"",place_id:"",state:""},tableColumns:[{type:"index",title:"序号",align:"center",width:80,show:!0,fixed:"left"},{key:"key_code",title:"钥匙编号",align:"center",minWidth:120,show:!0},{key:"key_name",title:"钥匙名称",align:"center",minWidth:300,show:!0},{key:"place_name",title:"场地名称",align:"center",minWidth:150,show:!0},{slot:"keystate",title:"是否可借",align:"center",minWidth:100,show:!0},{slot:"generalSwitch",title:"启用",align:"center",minWidth:80,show:!0},{slot:"action",title:"操作",align:"center",minWidth:150,show:!0,fixed:"right"}],tableLoading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,editModalshow:!1,editModalLoading:!1,formItem:[{id:"key_code",name:"钥匙编号",type:"input",disabled:!1,require:!1,optList:[]},{id:"key_name",name:"钥匙名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"place_id",name:"场地名称",type:"select",disabled:!1,require:!1,optList:[]},{id:"state",name:"是否可借",type:"select",disabled:!1,require:!1,optList:[{label:"可借",value:0},{label:"借出",value:1},{label:"维护中",value:2}]},{id:"file_list",name:"附件",type:"file",disabled:!1,require:!1,optList:[]},{id:"is_enable",name:"启用",type:"switch",disabled:!1,require:!1,optList:[],show:!1}],defaultFormData:{id:"",key_code:"",key_name:"",place_id:"",place_name:"",state:2,is_enable:0,is_del:0,createby:null,createtime:null,modifyby:null,modify_time:null,file_list:[]}}},created:function(){},mounted:function(){var e=this;this.asc.getApiCommonGetPlaceSelect({id:""}).then((function(t){var a=t.response.map((function(e){return c(c({},e),{},{label:e.name,value:e.id})}));e.formItem[e.formItem.findIndex((function(e){return"place_id"==e.id}))].optList=a})),this.getData()},methods:{search:function(e){var t=this;Object.keys(e).forEach((function(a){e[a]?t.params[a]=e[a]:t.params[a]=""})),this.onPageChange(1)},reset:function(){var e=this;this.searchCondList.forEach((function(t){e.params[t.id]=""})),this.onPageChange(1)},getData:function(){var e=this;this.tableLoading=!0,this.asc.postApiKeyGetKeyList(this.params).then((function(t){e.tableData=t.response.data,e.dataCount=t.response.data_count,e.tableLoading=!1}))},switchChange:function(e,t,a){var i=this;this.tableData[a].is_enable=e,this.asc.getApiKeyKeyEnable({id:t.id,is_enable:e}).then((function(t){1==t.code?i.$Message.success(t.response):(i.tableData[a].is_enable=0==e?1:0,i.$Message.error(t.msg_detail))}))},add:function(){this.editModalshow=!0,this.$refs.ceditmodal.modalInit("add",this.defaultFormData,"新增钥匙")},rowEdit:function(e){var t=this;this.editModalshow=!0,this.editModalLoading=!0,this.asc.getApiKeyGetKeyInfo({id:e.id}).then((function(e){t.$refs.ceditmodal.modalInit("edit",e.response),t.editModalLoading=!1}))},modalSubmit:function(e){var t=this;this.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){t.asc.postApiKeyKeySave(e).then((function(e){1==e.code?(t.$Message.success(e.response),t.editModalshow=!1,t.getData()):t.$Message.error(e.msg_detail)})).finally((function(){t.$Modal.remove()}))}})},rowDelete:function(e){var t=this;this.asc.getApiKeyKeyDel({id:e.id,is_del:1}).then((function(e){1==e.code?(t.$Message.success(e.msg),t.getData()):t.$Message.error(e.msg_detail)}))},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)}}},u=h,p=a("2877"),m=Object(p["a"])(u,i,n,!1,null,null,null);t["default"]=m.exports}}]);
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-472bde37"],{"0b5f":function(t,e,a){},"7f2d":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",[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){return t.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){var a=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(){return function(t){var e=t.split("|");return"".concat(e[1]," ").concat(e[2])}},cmdTableDataCal:function(){var t=(this.cmdParams.page_index-1)*this.cmdParams.page_size,e=t+this.cmdParams.page_size;return this.cmdTableData.slice(t,e)},eltTableDataCal:function(){var t=(this.eltParams.page_index-1)*this.eltParams.page_size,e=t+this.eltParams.page_size;return this.eltTableData.slice(t,e)}},created:function(){},mounted:function(){this.getData()},methods:{confirmElimination:function(t){var e=this;r["myEncapsulationFunction"]((function(){return d["getApiRecordKickOut"](e.eliminateSeats.formData).then((function(t){return 1===t.code&&(e.eliminateSeats.formData.content="剔除座位",e.eliminateSeats.show=!1,e.getData()),t}))}),!1,"正在剔除中...")},search:function(t){var e=this;Object.keys(t).forEach((function(a){t[a]?e.params[a]=t[a]:e.params[a]=""})),this.onPageChange(1)},reset:function(){var t=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(){var t=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){var e=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){var e=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){var e=this;r["publicConfirm"]((function(){return r["myEncapsulationFunction"]((function(){return d["getApiTypeOccupyseatTypeDel"]({id:t.id,is_del:1}).then((function(t){return 1===t.code&&e.getData(),t}))}))}))},onSubmit:function(t){var e=this;r["myEncapsulationFunction"]((function(){return d["postApiTypeOccupyseatTypeSave"](t).then((function(t){return 1===t.code&&(e.getData(),e.editModalshow=!1),t}))}))},switchChange:function(t,e,a){var i=this;this.tableData[a].is_enable=t,this.hooks.myEncapsulationFunction((function(){return d["getApiTypeOccupyseatTypeEnable"]({id:e.id,is_enable:t}).then((function(t){return 1===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";function i(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,e,a){return e&&i(t.prototype,e),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=n((function t(){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"]=new s}}]);
\ No newline at end of file
此差异已折叠。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67a0fe5b"],{"3c8a":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",[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){return t.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){var i=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){var i=e.row;return[a("Button",{attrs:{size:"small",type:"error"},on:{click:function(e){return t.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(){return function(t){var e=t.split("|");return"".concat(e[1]," ").concat(e[2])}},cmdTableDataCal:function(){var t=(this.cmdParams.page_index-1)*this.cmdParams.page_size,e=t+this.cmdParams.page_size;return this.cmdTableData.slice(t,e)},eltTableDataCal:function(){var t=(this.eltParams.page_index-1)*this.eltParams.page_size,e=t+this.eltParams.page_size;return this.eltTableData.slice(t,e)}},created:function(){},mounted:function(){this.getData()},methods:{confirmElimination:function(t){var e=this;c["myEncapsulationFunction"]((function(){return d["getApiRecordKickOut"](e.eliminateSeats.formData).then((function(t){return 1===t.code&&(e.eliminateSeats.formData.content="剔除座位",e.eliminateSeats.show=!1,e.getData()),t}))}),!1,"正在剔除中...")},search:function(t){var e=this;Object.keys(t).forEach((function(a){t[a]?e.params[a]=t[a]:e.params[a]=""})),this.onPageChange(1)},reset:function(){var t=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(){var t=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){var e=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){var e=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){var e=this;c["publicConfirm"]((function(){return c["myEncapsulationFunction"]((function(){return d["getApiBadnessBadnessCancel"]({id:t.id}).then((function(t){return 1===t.code&&e.getData(),t}))}))}))},onSubmit:function(t){var e=this;c["myEncapsulationFunction"]((function(){return d["postApiTypeOccupyseatTypeSave"](t).then((function(t){return 1===t.code&&(e.getData(),e.editModalshow=!1),t}))}))},switchChange:function(t,e,a){var i=this;this.tableData[a].is_enable=t,this.hooks.myEncapsulationFunction((function(){return d["getApiTypeOccupyseatTypeEnable"]({id:e.id,is_enable:t}).then((function(t){return 1===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";function i(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,e,a){return e&&i(t.prototype,e),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=n((function t(){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"]=new s}}]);
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
......@@ -17,11 +17,15 @@ export default {
],
},
showDrawer: false,
columns3: [{title: '工作日', width: 100, key: 'day'}, {
title: '班次时间段',
columns3: [
{title: '工作日', width: 100, key: 'day'},
{
title: '开放时间段',
slot: 'time',
minWidth: 100,
}, {title: ' ', key: 'action', slot: 'action'}],
},
{title: ' ', key: 'action', slot: 'action'}
],
workDayData: [{day: '周一', time: '未配置开放时间'}, {day: '周二', time: '未配置开放时间'}, {
day: '周三',
time: '未配置开放时间'
......@@ -90,7 +94,6 @@ export default {
created() {
},
mounted() {
console.log("🚀🚀hooks🚀,",hooks)
this.getData()
this.defaultOpeningHours()
},
......@@ -152,7 +155,7 @@ export default {
{day: info['four'], time: data['four']},
{day: info['five'], time: data['five']},
{day: info['six'], time: data['six']},
{day: info['seven'], time: data['seven']}
{day: info['seven'], time: data['seven']},
]
},
workDaySelect() {
......@@ -259,6 +262,8 @@ export default {
<Button type="primary" @click="save">保存</Button>
</div>
</Drawer>
<div class="mainDiv">
<Card class="bigCard" title="活动时间">
<Form label-colon>
......@@ -275,7 +280,7 @@ export default {
<Input v-model="configData.service_interval_time_occupyseat" style="width: 180px;" icon="ios-clock-outline"/>&nbsp;
</div>
</RadioGroup>-->
<Table :columns="columns3" :data="workDayData" border size="small" width="600"
<Table :columns="columns3" :data="workDayData" border size="small"
@on-select="workDaySelect"
@on-select-cancel="workDayCancel" @on-select-all="workDaySelectAll"
@on-select-all-cancel="workDayCancelAll">
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或