1 |
- {"version":3,"sources":["webpack:///./src/components/Page.vue?abc6","webpack:///./src/components/Page.vue?38ff","webpack:///src/components/Page.vue","webpack:///./src/components/Page.vue?35a6","webpack:///./src/components/Page.vue","webpack:///./src/views/match/group.vue?ecef","webpack:///src/views/match/group.vue","webpack:///./src/views/match/group.vue?865b","webpack:///./src/views/match/group.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","page_size","current","total","on","getData","handleSizeChange","staticRenderFns","component","staticClass","_v","model","value","queryParams","callback","$$v","$set","expression","_l","item","key","id","name","staticStyle","handleAdd","directives","rawName","list","scopedSlots","_u","fn","scope","$event","title","open","form","row","del","ref","page","gopage","rules","slot","submitForm"],"mappings":"kHAAA,W,kCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,MAAM,CAAC,WAAa,GAAG,YAAYN,EAAIO,UAAUP,EAAIO,UAAU,GAAG,eAAeP,EAAIQ,QAAQ,aAAa,CAAC,GAAG,GAAI,GAAI,GAAI,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,OAAS,gCAAgC,MAAQR,EAAIS,OAAOC,GAAG,CAAC,iBAAiBV,EAAIW,QAAQ,cAAcX,EAAIY,qBAC7WC,EAAkB,GCwBtB,GACE,KADF,WAEI,MAAJ,CACM,KAAN,IAGE,MAAF,CACI,MAAJ,GACI,UAAJ,GACI,QAAJ,IAEE,QAAF,CACI,QADJ,SACA,GAMM,KAAN,OACM,KAAN,qBAEI,iBAVJ,SAUA,GACM,KAAN,wBAGE,QAzBF,cCzBkb,I,wBCQ9aC,EAAY,eACd,EACAf,EACAc,GACA,EACA,KACA,KACA,MAIa,OAAAC,E,kDCnBf,IAAIf,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAA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AV,UAGM,UAAN,GACM,UAAN,GACM,SAAN,KAGE,QAAF,CACI,IADJ,SACA,GAAM,IAAN,OACM,KAAN,wBACQ,KAAR,YACA,iBACQ,EAAR,eAAU,GAAV,sBACU,EAAV,UACY,QAAZ,OACY,KAAZ,YAEU,EAAV,iBAII,OAdJ,SAcA,GACA,IACQ,KAAR,yBAEM,KAAN,4CACM,KAAN,WAEI,QArBJ,WAqBM,IAAN,OACM,KAAN,WACM,KAAN,sCACQ,EAAR,yBAEM,KAAN,sCACQ,EAAR,yBAEM,KAAN,uCACQ,EAAR,wBAGM,KAAN,mDACQ,EAAR,sBACQ,EAAR,wBACQ,EAAR,eAGI,UAvCJ,WAwCM,KAAN,QACM,KAAN,aACM,KAAN,SAGI,WA7CJ,WA6CM,IAAN,OACM,KAAN,oCACA,IACA,gBACY,EAAZ,2CACc,EAAd,mBACc,EAAd,QACc,EAAd,aAGY,EAAZ,wCACc,EAAd,mBACc,EAAd,QACc,EAAd,mBAOE,QA7FF,WA8FI,KAAJ,YChKkc,I,YCO9bC,EAAY,eACd,EACAf,EACAc,GACA,EACA,KACA,KACA,MAIa,aAAAC,E","file":"js/chunk-0ed0110f.14f8fed6.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.7@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.7@vue-loader/lib/index.js??vue-loader-options!./Page.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('el-pagination',{attrs:{\"background\":\"\",\"page-size\":_vm.page_size?_vm.page_size:20,\"current-page\":_vm.current,\"page-sizes\":[10,20, 30, 40, 50,60,70,80,90,100],\"layout\":\"total,sizes,prev, pager, next\",\"total\":_vm.total},on:{\"current-change\":_vm.getData,\"size-change\":_vm.handleSizeChange}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n @import '../style/style.scss';\r\n .el-pagination{\r\n li,button{\r\n border: 1px solid #CACACA !important;\r\n background-color: #fff !important;\r\n }\r\n .active{\r\n border:none !important;\r\n background: #3895FE !important;\r\n }\r\n }\r\n</style>\r\n<template>\r\n <el-pagination\r\n @current-change=\"getData\"\r\n background :page-size='page_size?page_size:20'\r\n @size-change=\"handleSizeChange\"\r\n :current-page=\"current\"\r\n :page-sizes=\"[10,20, 30, 40, 50,60,70,80,90,100]\"\r\n layout=\"total,sizes,prev, pager, next\"\r\n :total=\"total\">\r\n </el-pagination>\r\n</template>\r\n<script>\r\nexport default {\r\n data(){\r\n return{\r\n page:1\r\n }\r\n },\r\n props: {\r\n total:'',\r\n page_size:'',\r\n current:''\r\n },\r\n methods:{\r\n getData(type){\r\n // if(type == 1){\r\n // this.data.pageNumber=this.data.pageNumber-1\r\n // }else if(type == 2){\r\n // this.data.pageNumber=this.data.pageNumber+1\r\n // }\r\n this.page=type\r\n this.$emit('pageChange')\r\n },\r\n handleSizeChange(val){\r\n this.$emit('pageChange',val)\r\n }\r\n },\r\n created(){\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.7@vue-loader/lib/index.js??vue-loader-options!./Page.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.7@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Page.vue?vue&type=template&id=df237d3a&\"\nimport script from \"./Page.vue?vue&type=script&lang=js&\"\nexport * from \"./Page.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Page.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.9.7@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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"content\"},[_c('h4',[_vm._v(\"赛事分组\")]),_c('el-divider'),_c('el-form',{staticClass:\"filter-form\",attrs:{\"label-width\":\"80px\"}},[_c('el-row',[_c('el-col',{attrs:{\"span\":6}},[_c('el-form-item',{attrs:{\"label\":\"赛事名称\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择比赛\",\"size\":\"mini\"},model:{value:(_vm.queryParams.match_id),callback:function ($$v) {_vm.$set(_vm.queryParams, \"match_id\", $$v)},expression:\"queryParams.match_id\"}},_vm._l((_vm.matchList),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1)],1),_c('el-col',{attrs:{\"span\":4}},[_c('el-form-item',{staticStyle:{\"margin-left\":\"10px\"},attrs:{\"label-width\":\"10\"}},[_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":_vm.getData}},[_vm._v(\"筛选\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"icon\":\"el-icon-plus\",\"size\":\"mini\"},on:{\"click\":_vm.handleAdd}},[_vm._v(\"新增分组\")])],1)],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\",\"margin-top\":\"10px\"},attrs:{\"data\":_vm.list,\"height\":\"50vh\"}},[_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"name\",\"label\":\"分组名称\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"match_name\",\"label\":\"比赛名称\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"join_count\",\"label\":\"参赛人数\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"out_count\",\"label\":\"退赛人数\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"date\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"warning\"},on:{\"click\":function($event){_vm.title='编辑分组',_vm.open=true,_vm.form=scope.row}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},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}}),_c('el-dialog',{attrs:{\"title\":_vm.title,\"visible\":_vm.open,\"width\":\"500px\",\"append-to-body\":\"\"},on:{\"update:visible\":function($event){_vm.open=$event}}},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"分组名称\",\"prop\":\"name\"}},[_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',{attrs:{\"label\":\"比赛名称\",\"prop\":\"match_id\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择比赛\"},model:{value:(_vm.form.match_id),callback:function ($$v) {_vm.$set(_vm.form, \"match_id\", $$v)},expression:\"form.match_id\"}},_vm._l((_vm.matchList),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submitForm}},[_vm._v(\"确 定\")]),_c('el-button',{on:{\"click\":function($event){_vm.open=false}}},[_vm._v(\"取 消\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <section class=\"content\">\r\n <h4>赛事分组</h4>\r\n <el-divider></el-divider>\r\n <el-form label-width=\"80px\" class=\"filter-form\">\r\n <el-row>\r\n <el-col :span=\"6\">\r\n <el-form-item label=\"赛事名称\">\r\n <el-select v-model=\"queryParams.match_id\" placeholder=\"请选择比赛\" size=\"mini\">\r\n <el-option v-for=\"item in matchList\" :key='item.id' :label=\"item.name\" :value=\"item.id\"></el-option>\r\n </el-select>\r\n </el-form-item>\r\n </el-col>\r\n <el-col :span=\"4\">\r\n <el-form-item label-width=\"10\" style='margin-left:10px'>\r\n <el-button type=\"primary\" @click=\"getData\" size=\"mini\">筛选</el-button>\r\n <el-button\r\n type=\"primary\"\r\n plain\r\n icon=\"el-icon-plus\"\r\n size=\"mini\"\r\n @click=\"handleAdd\"\r\n >新增分组</el-button>\r\n </el-form-item>\r\n </el-col>\r\n </el-row> \r\n </el-form>\r\n <el-table v-loading='loading' :data=\"list\" style=\"width: 100%;margin-top:10px;\" height=\"50vh\">\r\n <el-table-column align=\"center\" prop=\"name\" label=\"分组名称\"/>\r\n <el-table-column align=\"center\" prop=\"match_name\" label=\"比赛名称\"/>\r\n <el-table-column align=\"center\" prop=\"join_count\" label=\"参赛人数\"/>\r\n <el-table-column align=\"center\" prop=\"out_count\" label=\"退赛人数\"/>\r\n <el-table-column align=\"center\" prop=\"date\" label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button @click=\"title='编辑分组',open=true,form=scope.row\" size=\"mini\" type=\"warning\">编辑</el-button>\r\n <el-button @click=\"del(scope.row.id)\" size=\"mini\" type=\"danger\">删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <Page\r\n ref=\"pageButton\"\r\n :current=\"form.page\"\r\n :page_size=\"form.page_size\"\r\n :total=\"total\"\r\n @pageChange=\"gopage\"\r\n />\r\n <el-dialog :title=\"title\" :visible.sync=\"open\" width=\"500px\" append-to-body>\r\n <el-form ref=\"form\" :model=\"form\" :rules=\"rules\" label-width=\"80px\">\r\n <el-form-item label=\"分组名称\" prop=\"name\">\r\n <el-input clearable v-model=\"form.name\" placeholder=\"请输入分组名称\" ></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"比赛名称\" prop=\"match_id\">\r\n <el-select v-model=\"form.match_id\" placeholder=\"请选择比赛\">\r\n <el-option v-for=\"item in matchList\" :key='item.id' :label=\"item.name\" :value=\"item.id\"></el-option>\r\n </el-select>\r\n </el-form-item>\r\n </el-form>\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"submitForm\">确 定</el-button>\r\n <el-button @click=\"open=false\">取 消</el-button>\r\n </div>\r\n </el-dialog>\r\n </section>\r\n</template>\r\n<script>\r\nimport Page from \"../../components/Page\";\r\nexport default {\r\n components: {\r\n Page,\r\n },\r\n data(){\r\n return{\r\n loading:false,\r\n queryParams:{\r\n page:1\r\n },\r\n form:{},\r\n list:[{},{}],\r\n total:0,\r\n title:'新增分组',\r\n open:false,\r\n rules:{\r\n name: [\r\n { required: true, message: '请输入分组名称', trigger: 'blur' }\r\n ],\r\n match_id: [\r\n { required: true, message: '请选择比赛', trigger: 'blur' }\r\n ],\r\n },\r\n matchList:[],\r\n groupList:[],\r\n userList:[]\r\n }\r\n },\r\n methods:{\r\n del(id) {\r\n this.$confirm(\"确定删除吗?\", \"提示\", {\r\n type: \"warning\",\r\n }).then(() => {\r\n this.$api.delGroup({ 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.queryParams.page_size = size;\r\n }\r\n this.queryParams.page = this.$refs.pageButton.page;\r\n this.getData();\r\n },\r\n getData(){\r\n this.loading = true;\r\n this.$api.getMatchList().then(res=>{\r\n this.matchList=res.data.data\r\n })\r\n this.$api.getGroupList().then(res=>{\r\n this.groupList=res.data.data\r\n })\r\n this.$api.getUserSearch().then(res=>{\r\n this.userList=res.data.data\r\n })\r\n // \r\n this.$api.getGroups(this.queryParams).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 handleAdd(){\r\n this.open=true;\r\n this.title='新增分组';\r\n this.form={}\r\n },\r\n /** 提交按钮 */\r\n submitForm() {\r\n this.$refs[\"form\"].validate(valid => {\r\n if (valid) {\r\n if (this.form.id != null) {\r\n this.$api.updateGroup(this.form).then(response => {\r\n this.msgSuccess(\"修改成功\");\r\n this.open = false;\r\n this.getData();\r\n });\r\n } else {\r\n this.$api.addGroup(this.form).then(response => {\r\n this.msgSuccess(\"新增成功\");\r\n this.open = false;\r\n this.getData();\r\n });\r\n }\r\n }\r\n });\r\n },\r\n },\r\n created(){\r\n this.getData() \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.7@vue-loader/lib/index.js??vue-loader-options!./group.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.7@vue-loader/lib/index.js??vue-loader-options!./group.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group.vue?vue&type=template&id=b97742e6&\"\nimport script from \"./group.vue?vue&type=script&lang=js&\"\nexport * from \"./group.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/_vue-loader@15.9.7@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":""}
|