1 |
- {"version":3,"sources":["webpack:///./src/api/flashSession.js","webpack:///src/views/sms/flash/selectSessionList.vue","webpack:///./src/views/sms/flash/selectSessionList.vue?0404","webpack:///./src/views/sms/flash/selectSessionList.vue"],"names":["params","Object","__WEBPACK_IMPORTED_MODULE_0__utils_request__","url","method","id","data","selectSessionList","name","list","listLoading","created","this","getList","filters","formatTime","time","date","Date","utils_date","methods","handleShowRelation","index","row","$router","push","path","query","flashPromotionId","$route","flashPromotionSessionId","_this","flashSession","then","response","flash_selectSessionList","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","directives","rawName","value","expression","ref","staticStyle","width","border","label","align","scopedSlots","_u","key","fn","scope","_s","_f","startTime","endTime","productCount","size","type","on","click","$event","$index","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,OACRE,KAAMA,qICJVC,GACAC,KAAA,oBACAF,KAFA,WAGA,OACAG,KAAA,KACAC,aAAA,IAGAC,QARA,WASAC,KAAAC,WAEAC,SACAC,WADA,SACAC,GACA,SAAAA,GAAA,KAAAA,EAC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(params) {\n return request({\n url: '/flashSession/list',\n method: 'get',\n params: params\n })\n}\n\nexport function fetchSelectList(params) {\n return request({\n url: '/flashSession/selectList',\n method: 'get',\n params: params\n })\n}\n\nexport function updateStatus(id, params) {\n return request({\n url: '/flashSession/update/status/' + id,\n method: 'post',\n params: params\n })\n}\n\nexport function deleteSession(id) {\n return request({\n url: '/flashSession/delete/' + id,\n method: 'post'\n })\n}\n\nexport function createSession(data) {\n return request({\n url: '/flashSession/create',\n method: 'post',\n data: data\n })\n}\n\nexport function updateSession(id, data) {\n return request({\n url: '/flashSession/update/' + id,\n method: 'post',\n data: data\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/flashSession.js","<template> \n <div class=\"app-container\">\n <el-card shadow=\"never\" class=\"operate-container\">\n <i class=\"el-icon-tickets\"></i>\n <span>数据列表</span>\n </el-card>\n <div class=\"table-container\">\n <el-table ref=\"selectSessionTable\"\n :data=\"list\"\n style=\"width: 100%;\"\n v-loading=\"listLoading\" border>\n <el-table-column label=\"编号\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.id}}</template>\n </el-table-column>\n <el-table-column label=\"秒杀时间段名称\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.name}}</template>\n </el-table-column>\n <el-table-column label=\"每日开始时间\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.startTime | formatTime}}</template>\n </el-table-column>\n <el-table-column label=\"每日结束时间\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.endTime | formatTime}}</template>\n </el-table-column>\n <el-table-column label=\"商品数量\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.productCount}}</template>\n </el-table-column>\n <el-table-column label=\"操作\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\"\n type=\"text\"\n @click=\"handleShowRelation(scope.$index, scope.row)\">商品列表\n </el-button>\n </template>\n </el-table-column>\n </el-table>\n </div>\n </div>\n</template>\n<script>\n import {fetchSelectList} from '@/api/flashSession';\n import {formatDate} from '@/utils/date';\n export default {\n name: 'selectSessionList',\n data() {\n return {\n list: null,\n listLoading: false\n }\n },\n created() {\n this.getList();\n },\n filters:{\n formatTime(time) {\n if (time == null || time === '') {\n return '--';\n }\n let date = new Date(time);\n return formatDate(date, 'hh:mm:ss')\n }\n },\n methods: {\n handleShowRelation(index,row){\n this.$router.push({path:'/sms/flashProductRelation',query:{\n flashPromotionId:this.$route.query.flashPromotionId, flashPromotionSessionId:row.id}})\n },\n getList() {\n this.listLoading = true;\n fetchSelectList({flashPromotionId:this.$route.query.flashPromotionId}).then(response => {\n this.listLoading = false;\n this.list = response.data;\n });\n }\n }\n }\n</script>\n<style scoped>\n .operate-container {\n margin-top: 0;\n }\n</style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/flash/selectSessionList.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('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"selectSessionTable\",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 [_vm._v(_vm._s(scope.row.productCount))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){_vm.handleShowRelation(scope.$index, scope.row)}}},[_vm._v(\"商品列表\\n \")])]}}])})],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-60ecce4c\",\"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/selectSessionList.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,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-60ecce4c\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./selectSessionList.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!./selectSessionList.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./selectSessionList.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-60ecce4c\\\",\\\"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!./selectSessionList.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-60ecce4c\"\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/selectSessionList.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|