26.8cb6c755bdfa7e000f85.js.map 22 KB

1
  1. {"version":3,"sources":["webpack:///./src/api/flashSession.js","webpack:///src/views/sms/flash/sessionList.vue","webpack:///./src/views/sms/flash/sessionList.vue?91f4","webpack:///./src/views/sms/flash/sessionList.vue"],"names":["params","Object","__WEBPACK_IMPORTED_MODULE_0__utils_request__","url","method","id","data","defaultFlashSession","name","startTime","endTime","status","sessionList","list","listLoading","dialogVisible","isEdit","flashSession","assign_default","created","this","getList","filters","formatTime","time","date","Date","utils_date","methods","handleAdd","handleStatusChange","index","row","_this","$confirm","confirmButtonText","cancelButtonText","type","then","response","$message","message","catch","handleUpdate","handleDelete","_this2","handleDialogConfirm","_this3","_this4","flash_sessionList","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","size","on","click","$event","directives","rawName","value","expression","ref","staticStyle","width","border","label","align","scopedSlots","_u","key","fn","scope","_s","_f","active-value","inactive-value","change","$index","model","callback","$$v","$set","title","visible","update:visible","label-width","placeholder","slot","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"2DAEO,SAAmBA,GACxB,OAAOC,OAAAC,EAAA,EAAAD,EACLE,IAAK,qBACLC,OAAQ,MACRJ,OAAQA,SAIL,SAAyBA,GAC9B,OAAOC,OAAAC,EAAA,EAAAD,EACLE,IAAK,2BACLC,OAAQ,MACRJ,OAAQA,SAIL,SAAsBK,EAAIL,GAC/B,OAAOC,OAAAC,EAAA,EAAAD,EACLE,IAAK,+BAAiCE,EACtCD,OAAQ,OACRJ,OAAQA,SAIL,SAAuBK,GAC5B,OAAOJ,OAAAC,EAAA,EAAAD,EACLE,IAAK,wBAA0BE,EAC/BD,OAAQ,cAIL,SAAuBE,GAC5B,OAAOL,OAAAC,EAAA,EAAAD,EACLE,IAAK,uBACLC,OAAQ,OACRE,KAAMA,SAIH,SAAuBD,EAAIC,GAChC,OAAOL,OAAAC,EAAA,EAAAD,EACLE,IAAK,wBAA0BE,EAC/BD,OAAQ,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AAA,kBAAuBG,OAAOoC,YAAA,SAAsBR,OAAQnB,MAAAf,EAAAlC,aAAA,QAAAqE,SAAA,SAAAC,GAA0DpC,EAAAqC,KAAArC,EAAAlC,aAAA,UAAAsE,IAA2CpB,WAAA,2BAAoC,GAAAhB,EAAAQ,GAAA,KAAAL,EAAA,gBAAqCG,OAAOe,MAAA,UAAgBlB,EAAA,kBAAuB+B,OAAOnB,MAAAf,EAAAlC,aAAA,OAAAqE,SAAA,SAAAC,GAAyDpC,EAAAqC,KAAArC,EAAAlC,aAAA,SAAAsE,IAA0CpB,WAAA,yBAAmCb,EAAA,YAAiBG,OAAOe,MAAA,KAAWrB,EAAAQ,GAAA,QAAAR,EAAAQ,GAAA,KAAAL,EAAA,YAA4CG,OAAOe,MAAA,KAAWrB,EAAAQ,GAAA,qBAAAR,EAAAQ,GAAA,KAAAL,EAAA,QAAqDE,YAAA,gBAAAC,OAAmCqC,KAAA,UAAgBA,KAAA,WAAexC,EAAA,aAAkBG,OAAOG,KAAA,SAAeC,IAAKC,MAAA,SAAAC,GAAyBZ,EAAApC,eAAA,MAA4BoC,EAAAQ,GAAA,SAAAR,EAAAQ,GAAA,KAAAL,EAAA,aAA8CG,OAAOpB,KAAA,UAAAuB,KAAA,SAAgCC,IAAKC,MAAA,SAAAC,GAAyBZ,EAAAL,0BAA4BK,EAAAQ,GAAA,sBAEn7HoC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAtF,EACAqC,GATA,EAVA,SAAAkD,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/26.8cb6c755bdfa7e000f85.js","sourcesContent":["import request from '@/utils/request'\r\n\r\nexport function fetchList(params) {\r\n return request({\r\n url: '/flashSession/list',\r\n method: 'get',\r\n params: params\r\n })\r\n}\r\n\r\nexport function fetchSelectList(params) {\r\n return request({\r\n url: '/flashSession/selectList',\r\n method: 'get',\r\n params: params\r\n })\r\n}\r\n\r\nexport function updateStatus(id, params) {\r\n return request({\r\n url: '/flashSession/update/status/' + id,\r\n method: 'post',\r\n params: params\r\n })\r\n}\r\n\r\nexport function deleteSession(id) {\r\n return request({\r\n url: '/flashSession/delete/' + id,\r\n method: 'post'\r\n })\r\n}\r\n\r\nexport function createSession(data) {\r\n return request({\r\n url: '/flashSession/create',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function updateSession(id, data) {\r\n return request({\r\n url: '/flashSession/update/' + id,\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/flashSession.js","<template> \r\n <div class=\"app-container\">\r\n <el-card shadow=\"never\" class=\"operate-container\">\r\n <i class=\"el-icon-tickets\"></i>\r\n <span>数据列表</span>\r\n <el-button size=\"mini\" class=\"btn-add\" @click=\"handleAdd()\">添加</el-button>\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table ref=\"flashSessionTable\"\r\n :data=\"list\"\r\n style=\"width: 100%;\"\r\n v-loading=\"listLoading\" border>\r\n <el-table-column label=\"编号\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.id}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"秒杀时间段名称\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.name}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"每日开始时间\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.startTime | formatTime}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"每日结束时间\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.endTime | formatTime}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"启用\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-switch\r\n @change=\"handleStatusChange(scope.$index, scope.row)\"\r\n :active-value=\"1\"\r\n :inactive-value=\"0\"\r\n v-model=\"scope.row.status\">\r\n </el-switch>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"操作\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-button size=\"mini\"\r\n type=\"text\"\r\n @click=\"handleUpdate(scope.$index, scope.row)\">编辑\r\n </el-button>\r\n <el-button size=\"mini\"\r\n type=\"text\"\r\n @click=\"handleDelete(scope.$index, scope.row)\">删除\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </div>\r\n <el-dialog\r\n title=\"添加时间段\"\r\n :visible.sync=\"dialogVisible\"\r\n width=\"40%\">\r\n <el-form :model=\"flashSession\"\r\n ref=\"flashSessionForm\"\r\n label-width=\"150px\" size=\"small\">\r\n <el-form-item label=\"秒杀时间段名称:\">\r\n <el-input v-model=\"flashSession.name\" style=\"width: 250px\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"每日开始时间:\">\r\n <el-time-picker\r\n v-model=\"flashSession.startTime\"\r\n placeholder=\"请选择时间\">\r\n </el-time-picker>\r\n </el-form-item>\r\n <el-form-item label=\"每日结束时间:\">\r\n <el-time-picker\r\n v-model=\"flashSession.endTime\"\r\n placeholder=\"请选择时间\">\r\n </el-time-picker>\r\n </el-form-item>\r\n <el-form-item label=\"是否启用\">\r\n <el-radio-group v-model=\"flashSession.status\">\r\n <el-radio :label=\"1\">启用</el-radio>\r\n <el-radio :label=\"0\">不启用</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n </el-form>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button @click=\"dialogVisible = false\" size=\"small\">取 消</el-button>\r\n <el-button type=\"primary\" @click=\"handleDialogConfirm()\" size=\"small\">确 定</el-button>\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n<script>\r\n import {fetchList,updateStatus,deleteSession,createSession,updateSession} from '@/api/flashSession';\r\n import {formatDate} from '@/utils/date';\r\n const defaultFlashSession={\r\n name:null,\r\n startTime:null,\r\n endTime:null,\r\n status:0\r\n };\r\n export default {\r\n name: 'flashPromotionSessionList',\r\n data() {\r\n return {\r\n list: null,\r\n listLoading: false,\r\n dialogVisible:false,\r\n isEdit:false,\r\n flashSession:Object.assign({},defaultFlashSession)\r\n }\r\n },\r\n created() {\r\n this.getList();\r\n },\r\n filters:{\r\n formatTime(time) {\r\n if (time == null || time === '') {\r\n return '--';\r\n }\r\n let date = new Date(time);\r\n return formatDate(date, 'hh:mm:ss')\r\n }\r\n },\r\n methods: {\r\n handleAdd() {\r\n this.dialogVisible = true;\r\n this.isEdit = false;\r\n this.flashSession = Object.assign({},defaultFlashSession);\r\n },\r\n handleStatusChange(index,row){\r\n this.$confirm('是否要修改该状态?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n updateStatus(row.id, {status: row.status}).then(response => {\r\n this.$message({\r\n type: 'success',\r\n message: '修改成功!'\r\n });\r\n });\r\n }).catch(() => {\r\n this.$message({\r\n type: 'info',\r\n message: '取消修改'\r\n });\r\n this.getList();\r\n });\r\n },\r\n handleUpdate(index,row){\r\n this.dialogVisible = true;\r\n this.isEdit = true;\r\n this.flashSession = Object.assign({},row);\r\n this.flashSession.startTime=new Date(row.startTime);\r\n this.flashSession.endTime=new Date(row.endTime);\r\n },\r\n handleDelete(index,row){\r\n this.$confirm('是否要删除该时间段?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n deleteSession(row.id).then(response => {\r\n this.$message({\r\n type: 'success',\r\n message: '删除成功!'\r\n });\r\n this.getList();\r\n });\r\n });\r\n },\r\n handleDialogConfirm() {\r\n this.$confirm('是否要确认?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n if (this.isEdit) {\r\n updateSession(this.flashSession.id,this.flashSession).then(response => {\r\n this.$message({\r\n message: '修改成功!',\r\n type: 'success'\r\n });\r\n this.dialogVisible =false;\r\n this.getList();\r\n })\r\n } else {\r\n createSession(this.flashSession).then(response => {\r\n this.$message({\r\n message: '添加成功!',\r\n type: 'success'\r\n });\r\n this.dialogVisible =false;\r\n this.getList();\r\n })\r\n }\r\n })\r\n },\r\n getList() {\r\n this.listLoading = true;\r\n fetchList({}).then(response => {\r\n this.listLoading = false;\r\n this.list = response.data;\r\n });\r\n }\r\n }\r\n }\r\n</script>\r\n<style scoped>\r\n .operate-container {\r\n margin-top: 0;\r\n }\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/flash/sessionList.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('el-card',{staticClass:\"operate-container\",attrs:{\"shadow\":\"never\"}},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" \"),_c('span',[_vm._v(\"数据列表\")]),_vm._v(\" \"),_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleAdd()}}},[_vm._v(\"添加\")])],1),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"flashSessionTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"编号\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.id))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"秒杀时间段名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.name))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"每日开始时间\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatTime\")(scope.row.startTime)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"每日结束时间\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatTime\")(scope.row.endTime)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"启用\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-switch',{attrs:{\"active-value\":1,\"inactive-value\":0},on:{\"change\":function($event){_vm.handleStatusChange(scope.$index, scope.row)}},model:{value:(scope.row.status),callback:function ($$v) {_vm.$set(scope.row, \"status\", $$v)},expression:\"scope.row.status\"}})]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){_vm.handleUpdate(scope.$index, scope.row)}}},[_vm._v(\"编辑\\n \")]),_vm._v(\" \"),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){_vm.handleDelete(scope.$index, scope.row)}}},[_vm._v(\"删除\\n \")])]}}])})],1)],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"添加时间段\",\"visible\":_vm.dialogVisible,\"width\":\"40%\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:\"flashSessionForm\",attrs:{\"model\":_vm.flashSession,\"label-width\":\"150px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"秒杀时间段名称:\"}},[_c('el-input',{staticStyle:{\"width\":\"250px\"},model:{value:(_vm.flashSession.name),callback:function ($$v) {_vm.$set(_vm.flashSession, \"name\", $$v)},expression:\"flashSession.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"每日开始时间:\"}},[_c('el-time-picker',{attrs:{\"placeholder\":\"请选择时间\"},model:{value:(_vm.flashSession.startTime),callback:function ($$v) {_vm.$set(_vm.flashSession, \"startTime\", $$v)},expression:\"flashSession.startTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"每日结束时间:\"}},[_c('el-time-picker',{attrs:{\"placeholder\":\"请选择时间\"},model:{value:(_vm.flashSession.endTime),callback:function ($$v) {_vm.$set(_vm.flashSession, \"endTime\", $$v)},expression:\"flashSession.endTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"是否启用\"}},[_c('el-radio-group',{model:{value:(_vm.flashSession.status),callback:function ($$v) {_vm.$set(_vm.flashSession, \"status\", $$v)},expression:\"flashSession.status\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"启用\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"不启用\")])],1)],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){_vm.handleDialogConfirm()}}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-1d259061\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/sms/flash/sessionList.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-1d259061\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./sessionList.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./sessionList.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./sessionList.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1d259061\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./sessionList.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-1d259061\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/sms/flash/sessionList.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}