30.553c07446bd0a440092d.js.map 27 KB

1
  1. {"version":3,"sources":["webpack:///src/views/sms/advertise/index.vue","webpack:///./src/views/sms/advertise/index.vue?5b58","webpack:///./src/views/sms/advertise/index.vue"],"names":["defaultListQuery","pageNum","pageSize","name","type","endTime","defaultTypeOptions","label","value","advertise","data","listQuery","assign_default","typeOptions","list","total","listLoading","multipleSelection","operates","operateType","created","this","getList","filters","formatType","formatTime","time","date","Date","Object","utils_date","methods","handleResetSearch","handleSearchList","handleSelectionChange","val","handleSizeChange","handleCurrentChange","handleUpdateStatus","index","row","_this","$confirm","confirmButtonText","cancelButtonText","then","homeAdvertise","id","status","response","$message","message","catch","handleDelete","deleteHomeAdvertise","handleBatchOperate","duration","ids","i","length","push","join","handleAdd","$router","path","handleUpdate","query","_this2","_this3","sms_advertise","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","staticStyle","float","size","on","click","$event","margin-right","margin-top","inline","model","label-width","placeholder","callback","$$v","$set","expression","clearable","_l","item","key","value-format","directives","rawName","ref","width","border","selection-change","align","scopedSlots","_u","fn","scope","_s","_f","height","src","pic","startTime","active-value","inactive-value","change","$index","clickCount","orderCount","margin-left","background","layout","page-size","page-sizes","current-page","size-change","current-change","update:currentPage","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"4KA+IAA,GACAC,QAAA,EACAC,SAAA,EACAC,KAAA,KACAC,KAAA,KACAC,QAAA,MAEAC,IAEAC,MAAA,SACAC,MAAA,IAGAD,MAAA,UACAC,MAAA,IAGAC,GACAN,KAAA,oBACAO,KAFA,WAGA,OACAC,UAAAC,OAAAZ,GACAa,YAAAD,OAAAN,GACAQ,KAAA,KACAC,MAAA,KACAC,aAAA,EACAC,qBACAC,WAEAX,MAAA,KACAC,MAAA,IAGAW,YAAA,OAGAC,QAnBA,WAoBAC,KAAAC,WAEAC,SACAC,WADA,SACApB,GACA,WAAAA,EACA,UAEA,UAGAqB,WARA,SAQAC,GACA,SAAA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AAAc,MAAAwD,EAAAxD,OAAkLoE,IAAK+C,cAAA3D,EAAAnC,iBAAA+F,iBAAA5D,EAAAlC,oBAAA+F,qBAAA,SAAA/C,GAAkHd,EAAAuB,KAAAvB,EAAA5D,UAAA,UAAA0E,QAA6C,QAE/wLgD,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACA/H,EACA4D,GATA,EAVA,SAAAoE,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/30.553c07446bd0a440092d.js","sourcesContent":["<template> \n <div class=\"app-container\">\n <el-card class=\"filter-container\" shadow=\"never\">\n <div>\n <i class=\"el-icon-search\"></i>\n <span>筛选搜索</span>\n <el-button\n style=\"float:right\"\n type=\"primary\"\n @click=\"handleSearchList()\"\n size=\"small\">\n 查询搜索\n </el-button>\n <el-button\n style=\"float:right;margin-right: 15px\"\n @click=\"handleResetSearch()\"\n size=\"small\">\n 重置\n </el-button>\n </div>\n <div style=\"margin-top: 15px\">\n <el-form :inline=\"true\" :model=\"listQuery\" size=\"small\" label-width=\"140px\">\n <el-form-item label=\"广告名称:\">\n <el-input v-model=\"listQuery.name\" class=\"input-width\" placeholder=\"广告名称\"></el-input>\n </el-form-item>\n <el-form-item label=\"广告位置:\">\n <el-select v-model=\"listQuery.type\" placeholder=\"全部\" clearable class=\"input-width\">\n <el-option v-for=\"item in typeOptions\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\">\n </el-option>\n </el-select>\n </el-form-item>\n <el-form-item label=\"到期时间:\">\n <el-date-picker\n class=\"input-width\"\n v-model=\"listQuery.endTime\"\n value-format=\"yyyy-MM-dd\"\n type=\"date\"\n placeholder=\"请选择时间\">\n </el-date-picker>\n </el-form-item>\n </el-form>\n </div>\n </el-card>\n <el-card class=\"operate-container\" shadow=\"never\">\n <i class=\"el-icon-tickets\"></i>\n <span>数据列表</span>\n <el-button size=\"mini\" class=\"btn-add\" @click=\"handleAdd()\">添加广告</el-button>\n </el-card>\n <div class=\"table-container\">\n <el-table ref=\"homeAdvertiseTable\"\n :data=\"list\"\n style=\"width: 100%;\"\n @selection-change=\"handleSelectionChange\"\n v-loading=\"listLoading\" border>\n <el-table-column type=\"selection\" width=\"60\" align=\"center\"></el-table-column>\n <el-table-column label=\"编号\" width=\"120\" 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=\"广告位置\" width=\"120\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.type | formatType}}</template>\n </el-table-column>\n <el-table-column label=\"广告图片\" width=\"120\" align=\"center\">\n <template slot-scope=\"scope\"><img style=\"height: 80px\" :src=\"scope.row.pic\"></template>\n </el-table-column>\n <el-table-column label=\"时间\" width=\"220\" align=\"center\">\n <template slot-scope=\"scope\">\n <p>开始时间:{{scope.row.startTime | formatTime}}</p>\n <p>到期时间:{{scope.row.endTime | formatTime}}</p>\n </template>\n </el-table-column>\n <el-table-column label=\"上线/下线\" width=\"120\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-switch\n @change=\"handleUpdateStatus(scope.$index, scope.row)\"\n :active-value=\"1\"\n :inactive-value=\"0\"\n v-model=\"scope.row.status\">\n </el-switch>\n </template>\n </el-table-column>\n <el-table-column label=\"点击次数\" width=\"120\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.clickCount}}</template>\n </el-table-column>\n <el-table-column label=\"生成订单\" width=\"120\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.orderCount}}</template>\n </el-table-column>\n <el-table-column label=\"操作\" width=\"120\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\"\n type=\"text\"\n @click=\"handleUpdate(scope.$index, scope.row)\">编辑\n </el-button>\n <el-button size=\"mini\"\n type=\"text\"\n @click=\"handleDelete(scope.$index, scope.row)\">删除\n </el-button>\n </template>\n </el-table-column>\n </el-table>\n </div>\n <div class=\"batch-operate-container\">\n <el-select\n size=\"small\"\n v-model=\"operateType\" placeholder=\"批量操作\">\n <el-option\n v-for=\"item in operates\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\">\n </el-option>\n </el-select>\n <el-button\n style=\"margin-left: 20px\"\n class=\"search-button\"\n @click=\"handleBatchOperate()\"\n type=\"primary\"\n size=\"small\">\n 确定\n </el-button>\n </div>\n <div class=\"pagination-container\">\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"total, sizes,prev, pager, next,jumper\"\n :page-size=\"listQuery.pageSize\"\n :page-sizes=\"[5,10,15]\"\n :current-page.sync=\"listQuery.pageNum\"\n :total=\"total\">\n </el-pagination>\n </div>\n </div>\n</template>\n<script>\n import {fetchList,updateStatus,deleteHomeAdvertise} from '@/api/homeAdvertise';\n import {formatDate} from '@/utils/date';\n const defaultListQuery = {\n pageNum: 1,\n pageSize: 5,\n name: null,\n type: null,\n endTime:null\n };\n const defaultTypeOptions = [\n {\n label: 'PC首页轮播',\n value: 0\n },\n {\n label: 'APP首页轮播',\n value: 1\n }\n ];\n export default {\n name: 'homeAdvertiseList',\n data() {\n return {\n listQuery: Object.assign({}, defaultListQuery),\n typeOptions: Object.assign({}, defaultTypeOptions),\n list: null,\n total: null,\n listLoading: false,\n multipleSelection: [],\n operates: [\n {\n label: \"删除\",\n value: 0\n }\n ],\n operateType: null\n }\n },\n created() {\n this.getList();\n },\n filters:{\n formatType(type){\n if(type===1){\n return 'APP首页轮播';\n }else{\n return 'PC首页轮播';\n }\n },\n formatTime(time){\n if(time==null||time===''){\n return '--';\n }\n let date = new Date(time);\n return formatDate(date, 'yyyy-MM-dd hh:mm:ss')\n },\n },\n methods: {\n handleResetSearch() {\n this.listQuery = Object.assign({}, defaultListQuery);\n },\n handleSearchList() {\n this.listQuery.pageNum = 1;\n this.getList();\n },\n handleSelectionChange(val){\n this.multipleSelection = val;\n },\n handleSizeChange(val) {\n this.listQuery.pageNum = 1;\n this.listQuery.pageSize = val;\n this.getList();\n },\n handleCurrentChange(val) {\n this.listQuery.pageNum = val;\n this.getList();\n },\n handleUpdateStatus(index,row){\n this.$confirm('是否要修改上线/下线状态?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n updateStatus(row.id,{status:row.status}).then(response=>{\n this.getList();\n this.$message({\n type: 'success',\n message: '修改成功!'\n });\n });\n }).catch(() => {\n this.$message({\n type: 'success',\n message: '已取消操作!'\n });\n this.getList();\n });\n },\n handleDelete(index,row){\n this.deleteHomeAdvertise(row.id);\n },\n handleBatchOperate(){\n if (this.multipleSelection < 1) {\n this.$message({\n message: '请选择一条记录',\n type: 'warning',\n duration: 1000\n });\n return;\n }\n let ids = [];\n for (let i = 0; i < this.multipleSelection.length; i++) {\n ids.push(this.multipleSelection[i].id);\n }\n if(this.operateType===0){\n //删除\n\n this.deleteHomeAdvertise(ids.join(','));\n }else {\n this.$message({\n message: '请选择批量操作类型',\n type: 'warning',\n duration: 1000\n });\n }\n },\n handleAdd(){\n this.$router.push({path: '/sms/addAdvertise'})\n },\n handleUpdate(index,row){\n this.$router.push({path: '/sms/updateAdvertise', query: {id: row.id}})\n },\n getList() {\n this.listLoading = true;\n fetchList(this.listQuery).then(response => {\n this.listLoading = false;\n this.list = response.data.list;\n this.total = response.data.total;\n })\n },\n deleteHomeAdvertise(ids){\n this.$confirm('是否要删除该广告?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n // let params=new URLSearchParams();\n // params.append(\"ids\",ids);\n deleteHomeAdvertise({ids}).then(response=>{\n this.getList();\n this.$message({\n type: 'success',\n message: '删除成功!'\n });\n });\n })\n }\n }\n }\n</script>\n<style scoped>\n .input-width {\n width: 203px;\n }\n</style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/advertise/index.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:\"filter-container\",attrs:{\"shadow\":\"never\"}},[_c('div',[_c('i',{staticClass:\"el-icon-search\"}),_vm._v(\" \"),_c('span',[_vm._v(\"筛选搜索\")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){_vm.handleSearchList()}}},[_vm._v(\"\\n 查询搜索\\n \")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\",\"margin-right\":\"15px\"},attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.handleResetSearch()}}},[_vm._v(\"\\n 重置\\n \")])],1),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.listQuery,\"size\":\"small\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"广告名称:\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"广告名称\"},model:{value:(_vm.listQuery.name),callback:function ($$v) {_vm.$set(_vm.listQuery, \"name\", $$v)},expression:\"listQuery.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"广告位置:\"}},[_c('el-select',{staticClass:\"input-width\",attrs:{\"placeholder\":\"全部\",\"clearable\":\"\"},model:{value:(_vm.listQuery.type),callback:function ($$v) {_vm.$set(_vm.listQuery, \"type\", $$v)},expression:\"listQuery.type\"}},_vm._l((_vm.typeOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"到期时间:\"}},[_c('el-date-picker',{staticClass:\"input-width\",attrs:{\"value-format\":\"yyyy-MM-dd\",\"type\":\"date\",\"placeholder\":\"请选择时间\"},model:{value:(_vm.listQuery.endTime),callback:function ($$v) {_vm.$set(_vm.listQuery, \"endTime\", $$v)},expression:\"listQuery.endTime\"}})],1)],1)],1)]),_vm._v(\" \"),_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:\"homeAdvertiseTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\"},on:{\"selection-change\":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"60\",\"align\":\"center\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"编号\",\"width\":\"120\",\"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\":\"广告位置\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatType\")(scope.row.type)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"广告图片\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('img',{staticStyle:{\"height\":\"80px\"},attrs:{\"src\":scope.row.pic}})]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"时间\",\"width\":\"220\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(\"开始时间:\"+_vm._s(_vm._f(\"formatTime\")(scope.row.startTime)))]),_vm._v(\" \"),_c('p',[_vm._v(\"到期时间:\"+_vm._s(_vm._f(\"formatTime\")(scope.row.endTime)))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"上线/下线\",\"width\":\"120\",\"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.handleUpdateStatus(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\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.clickCount))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"生成订单\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.orderCount))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"120\",\"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('div',{staticClass:\"batch-operate-container\"},[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"批量操作\"},model:{value:(_vm.operateType),callback:function ($$v) {_vm.operateType=$$v},expression:\"operateType\"}},_vm._l((_vm.operates),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})})),_vm._v(\" \"),_c('el-button',{staticClass:\"search-button\",staticStyle:{\"margin-left\":\"20px\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){_vm.handleBatchOperate()}}},[_vm._v(\"\\n 确定\\n \")])],1),_vm._v(\" \"),_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"total, sizes,prev, pager, next,jumper\",\"page-size\":_vm.listQuery.pageSize,\"page-sizes\":[5,10,15],\"current-page\":_vm.listQuery.pageNum,\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange,\"update:currentPage\":function($event){_vm.$set(_vm.listQuery, \"pageNum\", $event)}}})],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-9d58ea3e\",\"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/advertise/index.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-9d58ea3e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.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!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-9d58ea3e\\\",\\\"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!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-9d58ea3e\"\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/advertise/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}