chunk-5a241b3e.d9e1724a.js.map 30 KB

1
  1. {"version":3,"sources":["webpack:///./src/components/Page.vue?abc6","webpack:///./src/views/player/index.vue?9952","webpack:///src/views/player/index.vue","webpack:///./src/views/player/index.vue?7603","webpack:///./src/views/player/index.vue","webpack:///./src/components/Page.vue?38ff","webpack:///src/components/Page.vue","webpack:///./src/components/Page.vue?35a6","webpack:///./src/components/Page.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","attrs","on","$event","getData","model","value","queryParams","callback","$$v","$set","expression","_l","item","key","id","name","staticStyle","handleAdd","directives","rawName","list","scopedSlots","_u","fn","scope","row","match_status","_e","edit","del","ref","form","page","page_size","total","gopage","title","open","rules","label","slot","submitForm","staticRenderFns","component","current","handleSizeChange"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,YAAY,WAAW,CAACF,EAAG,KAAK,CAACJ,EAAIO,GAAG,UAAUH,EAAG,cAAcA,EAAG,UAAU,CAACE,YAAY,cAAcE,MAAM,CAAC,cAAc,SAAS,CAACJ,EAAG,SAAS,CAACA,EAAG,SAAS,CAACI,MAAM,CAAC,KAAO,IAAI,CAACJ,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,OAAO,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,UAAY,GAAG,YAAc,YAAY,KAAO,QAAQC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,YAAYC,MAAM,CAACC,MAAOb,EAAIc,YAAoB,SAAEC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIc,YAAa,WAAYE,IAAME,WAAW,2BAA2B,IAAI,GAAGd,EAAG,SAAS,CAACI,MAAM,CAAC,KAAO,IAAI,CAACJ,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,OAAO,KAAO,aAAa,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ADF,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,EACApD,EACAmD,GACA,EACA,KACA,KACA,MAIa,OAAAC,E","file":"js/chunk-5a241b3e.d9e1724a.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('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\":5}},[_c('el-form-item',{attrs:{\"label\":\"用户\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入用户名/代码\",\"size\":\"mini\"},on:{\"clear\":function($event){return _vm.getData()}},model:{value:(_vm.queryParams.username),callback:function ($$v) {_vm.$set(_vm.queryParams, \"username\", $$v)},expression:\"queryParams.username\"}})],1)],1),_c('el-col',{attrs:{\"span\":5}},[_c('el-form-item',{attrs:{\"label\":\"比赛名称\",\"prop\":\"match_id\"}},[_c('el-select',{attrs:{\"clearable\":\"\",\"placeholder\":\"请选择比赛\",\"size\":\"mini\"},on:{\"change\":function($event){return _vm.getData()}},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\":5}},[_c('el-form-item',{attrs:{\"label\":\"比赛分组\"}},[_c('el-select',{attrs:{\"clearable\":\"\",\"placeholder\":\"请选择比赛分组\",\"size\":\"mini\"},on:{\"change\":function($event){return _vm.getData()}},model:{value:(_vm.queryParams.groupId),callback:function ($$v) {_vm.$set(_vm.queryParams, \"groupId\", $$v)},expression:\"queryParams.groupId\"}},_vm._l((_vm.groupList),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\":\"nomal\",\"size\":\"mini\"},on:{\"click\":function($event){_vm.queryParams={},_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\":\"usercode\",\"label\":\"选手代码\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"username\",\"label\":\"选手名称\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"match_name\",\"label\":\"比赛名称\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"match_group_name\",\"label\":\"比赛分组\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"fund\",\"label\":\"参赛资金(万元)\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"date\",\"label\":\"参赛状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.match_status==1)?_c('span',[_vm._v(\"参赛中\")]):_vm._e(),(scope.row.match_status==0)?_c('span',[_vm._v(\"暂停\")]):_vm._e(),(scope.row.match_status==-1)?_c('span',[_vm._v(\"退赛\")]):_vm._e()]}}])}),_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){return _vm.edit(scope.row.id)}}},[_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\":\"user_id\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"placeholder\":\"请选择用户代码\"},model:{value:(_vm.form.user_id),callback:function ($$v) {_vm.$set(_vm.form, \"user_id\", $$v)},expression:\"form.user_id\"}},_vm._l((_vm.userList),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.label,\"value\":item.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"比赛资金\",\"prop\":\"fund\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入比赛资金\"},model:{value:(_vm.form.fund),callback:function ($$v) {_vm.$set(_vm.form, \"fund\", $$v)},expression:\"form.fund\"}},[_c('template',{slot:\"append\"},[_vm._v(\"万元\")])],2)],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),_c('el-form-item',{attrs:{\"label\":\"比赛分组\",\"prop\":\"match_group\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择比赛分组\"},model:{value:(_vm.form.match_group),callback:function ($$v) {_vm.$set(_vm.form, \"match_group\", $$v)},expression:\"form.match_group\"}},_vm._l((_vm.groupList),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"参数状态\",\"prop\":\"match_status\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择参数状态\"},model:{value:(_vm.form.match_status),callback:function ($$v) {_vm.$set(_vm.form, \"match_status\", $$v)},expression:\"form.match_status\"}},[_c('el-option',{key:\"1\",attrs:{\"label\":\"参赛中\",\"value\":1}}),_c('el-option',{key:\"0\",attrs:{\"label\":\"暂停\",\"value\":0}}),_c('el-option',{key:\"-1\",attrs:{\"label\":\"已退赛\",\"value\":-1}})],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=\"5\">\r\n <el-form-item label=\"用户\">\r\n <el-input clearable @clear=\"getData()\" v-model=\"queryParams.username\" placeholder=\"请输入用户名/代码\" size=\"mini\"></el-input>\r\n </el-form-item>\r\n </el-col>\r\n <el-col :span=\"5\">\r\n <el-form-item label=\"比赛名称\" prop=\"match_id\">\r\n <el-select clearable v-model=\"queryParams.match_id\" placeholder=\"请选择比赛\" size=\"mini\" @change=\"getData()\">\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=\"5\">\r\n <el-form-item label=\"比赛分组\">\r\n <el-select clearable v-model=\"queryParams.groupId\" placeholder=\"请选择比赛分组\" size=\"mini\" @change=\"getData()\">\r\n <el-option v-for=\"item in groupList\" :key='item.id' :label=\"item.name\" :value=\"item.id\"></el-option>\r\n\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 type=\"nomal\" @click=\"queryParams={},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=\"usercode\" label=\"选手代码\"/>\r\n <el-table-column align=\"center\" prop=\"username\" label=\"选手名称\"/>\r\n <el-table-column align=\"center\" prop=\"match_name\" label=\"比赛名称\"/>\r\n <el-table-column align=\"center\" prop=\"match_group_name\" label=\"比赛分组\"/>\r\n <el-table-column align=\"center\" prop=\"fund\" label=\"参赛资金(万元)\"/>\r\n <el-table-column align=\"center\" prop=\"date\" label=\"参赛状态\">\r\n <template slot-scope=\"scope\">\r\n <span v-if='scope.row.match_status==1'>参赛中</span>\r\n <span v-if='scope.row.match_status==0'>暂停</span>\r\n <span v-if='scope.row.match_status==-1'>退赛</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column align=\"center\" prop=\"date\" label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button @click=\"edit(scope.row.id)\" 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=\"user_id\">\r\n <el-select filterable v-model=\"form.user_id\" placeholder=\"请选择用户代码\">\r\n <el-option v-for=\"item in userList\" :key='item.id' :label=\"item.label\" :value=\"item.id\"></el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"比赛资金\" prop=\"fund\">\r\n <el-input clearable v-model=\"form.fund\" placeholder=\"请输入比赛资金\">\r\n <template slot=\"append\">万元</template>\r\n </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-item label=\"比赛分组\" prop=\"match_group\">\r\n <el-select v-model=\"form.match_group\" placeholder=\"请选择比赛分组\">\r\n <el-option v-for=\"item in groupList\" :key='item.id' :label=\"item.name\" :value=\"item.id\"></el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"参数状态\" prop=\"match_status\">\r\n <el-select v-model=\"form.match_status\" placeholder=\"请选择参数状态\">\r\n <el-option key='1' label=\"参赛中\" :value=\"1\"></el-option>\r\n <el-option key='0' label=\"暂停\" :value=\"0\"></el-option>\r\n <el-option key='-1' label=\"已退赛\" :value=\"-1\"></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 page_size:10\r\n },\r\n form:{\r\n match_status:1\r\n },\r\n list:[{},{}],\r\n total:0,\r\n title:'新增选手',\r\n open:false,\r\n rules:{\r\n user_id: [\r\n { required: true, message: '请选择选手', trigger: 'change' }\r\n ],\r\n fund: [\r\n { required: true, message: '请输入比赛资金', trigger: 'blur' }\r\n ],\r\n match_id: [\r\n { required: true, message: '请选择比赛', trigger: 'change' }\r\n ],\r\n usercode: [\r\n { required: true, message: '请输入用户代码', trigger: 'blur' }\r\n ],\r\n match_group: [\r\n { required: true, message: '请选择分组', trigger: 'change' }\r\n ],\r\n match_status: [\r\n { required: true, message: '请选择参数状态', trigger: 'change' }\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.delPlayer({ 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.getPlayers(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 edit(id){\r\n this.title = \"编辑选手\"\r\n this.$api.getPlayerInfo({id:id}).then(res=>{\r\n this.form = res.data.data\r\n this.open = true\r\n })\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.updatePlayer(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.addPlayer(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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=41e1f1aa&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","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"],"sourceRoot":""}