1 |
- {"version":3,"sources":["webpack:///./src/views/conference/Hotel.vue?fae7","webpack:///./src/views/conference/Hotel.vue?a5e1","webpack:///src/views/conference/Hotel.vue","webpack:///./src/views/conference/Hotel.vue?ded8","webpack:///./src/views/conference/Hotel.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","attrs","model","value","form","callback","$$v","$set","expression","_l","item","index","key","name","id","on","getData","_v","staticStyle","$event","dialogVisible","dialogTitle","status","directives","rawName","list","scopedSlots","_u","fn","scope","cur_id","row","del","ref","page","page_size","total","gopage","add","staticRenderFns","component"],"mappings":"2IAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,YAAY,kBAAkB,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,UAAU,CAACI,MAAM,CAAC,KAAO,QAAQ,cAAc,OAAO,QAAS,EAAK,iBAAiB,SAAS,CAACJ,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,KAAK,CAACJ,EAAG,YAAY,CAACI,MAAM,CAAC,UAAY,GAAG,YAAc,SAASC,MAAM,CAACC,MAAOV,EAAIW,KAAkB,cAAEC,SAAS,SAAUC,GAAMb,EAAIc,KAAKd,EAAIW,KAAM,gBAAiBE,IAAME,WAAW,uBAAuBf,EAAIgB,GAAIhB,EAAmB,iBAAE,SAASiB,EAAKC,GAAO,OAAOd,EAAG,YAAY,CAACe,IAAID,EAAMV,MAAM,CAAC,MAAQS,EAAKG,KAAK,MAAQH,EAAKI,SAAQ,IAAI,GAAGjB,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,KAAK,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,UAAY,GAAG,YAAc,WAAWC,MAAM,CAACC,MAAOV,EAAIW,KAAS,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F,EAAG,OAAOE,EAAG,IAAI,CAACA,EAAG,OAAO,CAACJ,EAAIwB,GAAG,WAAWxB,EAAIwB,GAAG,Y,wBC0GtJ,GACE,WAAF,CACI,KAAJ,OAAI,MAAJ,QAEE,KAJF,WAKI,MAAJ,CACM,KAAN,GACM,aAAN,KACM,KAAN,KACM,OAAN,GACM,QAAN,GACM,MAAN,EACM,SAAN,EACM,YAAN,OACM,eAAN,EACM,OAAN,MACM,OAAN,GACM,gBAAN,KAGE,QAAF,CACI,IADJ,WAEM,KAAN,iBACM,KAAN,WAEI,IALJ,SAKA,GAAM,IAAN,OACM,KAAN,uBACQ,KAAR,YACA,iBACQ,EAAR,eAAU,GAAV,sBACU,EAAV,UACY,QAAZ,OACY,KAAZ,YAEU,EAAV,iBAII,OAlBJ,SAkBA,GACA,IACQ,KAAR,kBAEM,KAAN,qCACM,KAAN,WAEI,SAzBJ,aA4BI,QA5BJ,WA4BM,IAAN,OACA,YACM,KAAN,WACM,KAAN,uCACQ,EAAR,sBACQ,EAAR,wBACQ,EAAR,gBAIE,QA1DF,WA0DI,IAAJ,OACI,KAAJ,UACI,KAAJ,2CACM,EAAN,sCCxKkc,I,wBCQ9buB,EAAY,eACd,EACAhD,EACA+C,GACA,EACA,KACA,KACA,MAIa,aAAAC,E","file":"js/chunk-688ecfe3.7c54a834.js","sourcesContent":["export * from \"-!../../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Hotel.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"signup_mannage\"},[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"filter\"},[_c('el-form',{attrs:{\"size\":\"small\",\"label-width\":\"70px\",\"inline\":true,\"label-position\":\"left\"}},[_c('el-form-item',{attrs:{\"label\":\"\"}},[_c('el-select',{attrs:{\"clearable\":\"\",\"placeholder\":\"请选择会议\"},model:{value:(_vm.form.conference_id),callback:function ($$v) {_vm.$set(_vm.form, \"conference_id\", $$v)},expression:\"form.conference_id\"}},_vm._l((_vm.conference_list),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入酒店名称\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.getData}},[_vm._v(\"搜索\")])],1),_c('el-form-item',{staticStyle:{\"float\":\"right\"}},[_c('el-button',{attrs:{\"icon\":\"el-icon-plud\",\"type\":\"primary\"},on:{\"click\":function($event){_vm.dialogVisible=true,_vm.dialogTitle='添加酒店',_vm.status='add'}}},[_vm._v(\"添加酒店\")]),_c('el-button',{attrs:{\"plain\":\"\",\"icon\":\"el-icon-download\",\"type\":\"primary\"}},[_vm._v(\"导出Excel\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"table\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"height\":\"59vh\",\"border\":\"\",\"default-expand-all\":\"\",\"row-key\":\"id\"}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"酒店名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"username\",\"label\":\"入住人数\"}}),_c('el-table-column',{attrs:{\"prop\":\"username\",\"label\":\"入住率\"}}),_c('el-table-column',{attrs:{\"prop\":\"\",\"label\":\"已举办会议\"}}),_c('el-table-column',{attrs:{\"prop\":\"\",\"label\":\"创建时间\"}}),_c('el-table-column',{attrs:{\"prop\":\"zip\",\"width\":\"200\",\"fixed\":\"right\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{staticClass:\"edit\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){_vm.dialogVisible=true,_vm.dialogTitle='酒店信息',_vm.status='view',_vm.cur_id=scope.row.id}}},[_vm._v(\"查看\")]),_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){_vm.dialogVisible=true,_vm.dialogTitle='编辑酒店',_vm.status='edit',_vm.cur_id=scope.row.id}}},[_vm._v(\"编辑\")]),_c('el-button',{staticClass:\"del\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.del(scope.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_c('Page',{ref:\"pageButton\",attrs:{\"current\":_vm.form.page,\"page_size\":_vm.form.page_size,\"total\":_vm.total},on:{\"pageChange\":_vm.gopage}})],1),_c('el-dialog',{staticClass:\"hotel\",attrs:{\"width\":\"80%\",\"title\":_vm.dialogTitle,\"close-on-click-modal\":false,\"visible\":_vm.dialogVisible},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('Hotel',{attrs:{\"status\":_vm.status,\"cur_id\":_vm.cur_id},on:{\"addSuccess\":_vm.add}})],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_c('span',[_vm._v(\"会议管理>\")]),_vm._v(\"酒店管理\")])}]\n\nexport { render, staticRenderFns }","<style lang='scss'>\r\n .signup_mannage{\r\n .bh{\r\n font-size: 14px;\r\n color: #666;\r\n line-height: 27px;\r\n margin-bottom: 10px;\r\n label{\r\n color:#333;\r\n font-size: 16px;\r\n display: inline-block;\r\n padding-right: 10px;\r\n }\r\n }\r\n .hotel{\r\n .el-dialog{\r\n margin-top: 30px !important;\r\n .el-form-item{\r\n margin-bottom: 10px;\r\n }\r\n }\r\n }\r\n }\r\n #map {\r\n overflow: hidden;\r\n width: 300px;\r\n height: 300px;\r\n }\r\n</style>\r\n<template>\r\n <section class=\"signup_mannage\">\r\n <p><span>会议管理></span>酒店管理</p>\r\n <div class=\"content\">\r\n <div class=\"filter\">\r\n <el-form size=\"small\" label-width=\"70px\" :inline=\"true\" label-position=\"left\">\r\n <el-form-item label=\"\">\r\n <el-select v-model=\"form.conference_id\" clearable placeholder=\"请选择会议\">\r\n <el-option\r\n v-for=\"(item, index) in conference_list\"\r\n :key=\"index\"\r\n :label=\"item.name\"\r\n :value=\"item.id\"\r\n ></el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"\">\r\n <el-input clearable placeholder=\"请输入酒店名称\" v-model=\"form.name\">\r\n </el-input>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button @click=\"getData\" type=\"primary\">搜索</el-button>\r\n </el-form-item>\r\n <el-form-item style=\"float:right\" >\r\n <el-button @click=\"dialogVisible=true,dialogTitle='添加酒店',status='add'\" icon=\"el-icon-plud\" type=\"primary\">添加酒店</el-button>\r\n <el-button plain icon=\"el-icon-download\" type=\"primary\">导出Excel</el-button>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n <el-table\r\n class=\"table\"\r\n :data=\"list\"\r\n height='59vh'\r\n border v-loading=\"loading\"\r\n default-expand-all row-key=\"id\"\r\n style=\"width: 100%\">\r\n <el-table-column\r\n prop=\"name\" \r\n label=\"酒店名称\">\r\n </el-table-column>\r\n <el-table-column\r\n prop=\"username\" \r\n label=\"入住人数\">\r\n </el-table-column>\r\n <el-table-column\r\n prop=\"username\" \r\n label=\"入住率\">\r\n </el-table-column>\r\n <el-table-column\r\n prop=\"\" \r\n label=\"已举办会议\">\r\n </el-table-column>\r\n <el-table-column\r\n prop=\"\" \r\n label=\"创建时间\">\r\n </el-table-column>\r\n <el-table-column \r\n prop=\"zip\" width=\"200\" fixed=\"right\"\r\n label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button @click=\"dialogVisible=true,dialogTitle='酒店信息',status='view',cur_id=scope.row.id\" class=\"edit\" type=\"text\" >查看</el-button>\r\n <el-button @click=\"dialogVisible=true,dialogTitle='编辑酒店',status='edit',cur_id=scope.row.id\" type=\"text\">编辑</el-button>\r\n <el-button @click=\"del(scope.row.id)\" class=\"del\" type=\"text\" >删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <Page ref=\"pageButton\" :current='form.page' :page_size='form.page_size' :total='total' @pageChange='gopage'/>\r\n </div>\r\n <el-dialog width=\"80%\" class=\"hotel\"\r\n :title=\"dialogTitle\" :close-on-click-modal='false' \r\n :visible.sync=\"dialogVisible\">\r\n <Hotel :status='status' :cur_id='cur_id' @addSuccess='add'/>\r\n </el-dialog>\r\n </section>\r\n</template>\r\n<script>\r\nimport Page from '../../components/Page';\r\nimport Hotel from '../../components/hotel';\r\nexport default {\r\n components:{\r\n Page,Hotel\r\n },\r\n data(){\r\n return{\r\n form:{},\r\n order_status:'-3',\r\n list:[{}],\r\n reason:[],\r\n invoice:{},\r\n total:0,\r\n loading:false,\r\n dialogTitle:'添加酒店',\r\n dialogVisible:false,\r\n status:'add',\r\n cur_id:'',\r\n conference_list:[]\r\n }\r\n },\r\n methods:{\r\n add(){\r\n this.dialogVisible=false;\r\n this.getData();\r\n },\r\n del(id){\r\n this.$confirm(\"确定删除吗\", \"提示\", {\r\n type: \"warning\",\r\n }).then(() => {\r\n this.$api.delHotel({ id: id }).then((res) => {\r\n this.$message({\r\n message: \"删除成功\",\r\n type: \"success\",\r\n });\r\n this.getData();\r\n });\r\n });\r\n },\r\n gopage(size){\r\n if(size){\r\n this.form.page_size=size\r\n }\r\n this.form.page=this.$refs.pageButton.page\r\n this.getData()\r\n },\r\n tabClick(){\r\n\r\n },\r\n getData(){\r\n var parm=this.form; \r\n this.loading=true\r\n this.$api.getHotelList(parm).then(res=>{\r\n this.list=res.data.data.list;\r\n this.total=res.data.data.total\r\n this.loading=false\r\n })\r\n },\r\n },\r\n created(){\r\n this.getData()\r\n this.$api.getConferenceList().then(res=>{\r\n this.conference_list=res.data.data.list;\r\n })\r\n }\r\n}\r\n</script>","import mod from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Hotel.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Hotel.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Hotel.vue?vue&type=template&id=75beb421&\"\nimport script from \"./Hotel.vue?vue&type=script&lang=js&\"\nexport * from \"./Hotel.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Hotel.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
|