31.77262c26660915c20c81.js.map 24 KB

1
  1. {"version":3,"sources":["webpack:///src/views/pms/brand/index.vue","webpack:///./src/views/pms/brand/index.vue?319c","webpack:///./src/views/pms/brand/index.vue"],"names":["pms_brand","name","data","operates","label","value","operateType","listQuery","keyword","pageNum","pageSize","list","total","listLoading","multipleSelection","created","this","getList","methods","_this","Object","brand","then","response","totalPage","handleSelectionChange","val","handleUpdate","index","row","$router","push","path","query","id","handleDelete","_this2","$confirm","confirmButtonText","cancelButtonText","type","$message","message","duration","getProductList","console","log","getProductCommentList","handleShowStatusChange","_this3","obj","ids","showStatus","catch","error","handleSizeChange","handleCurrentChange","searchBrandList","handleBatchOperate","_this4","i","length","join","addBrand","views_pms_brand","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","staticStyle","float","size","on","click","$event","margin-top","inline","model","label-width","width","placeholder","callback","$$v","$set","expression","directives","rawName","ref","border","selection-change","align","scopedSlots","_u","key","fn","scope","_s","firstLetter","sort","active-value","inactive-value","change","$index","background","layout","page-size","page-sizes","current-page","size-change","current-change","update:currentPage","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"sHA4IAA,GACAC,KAAA,YACAC,KAFA,WAGA,OACAC,WAEAC,MAAA,OACAC,MAAA,cAGAD,MAAA,OACAC,MAAA,cAGAC,YAAA,KACAC,WACAC,QAAA,KACAC,QAAA,EACAC,SAAA,IAEAC,KAAA,KACAC,MAAA,KACAC,aAAA,EACAC,uBAGAC,QA1BA,WA2BAC,KAAAC,WAEAC,SACAD,QADA,WACA,IAAAE,EAAAH,KACAA,KAAAH,aAAA,EACAO,OAAAC,EAAA,EAAAD,CAAAJ,KAAAT,WAAAe,KAAA,SAAAC,GACAJ,EAAAN,aAAA,EACAM,EAAAR,KAAAY,EAAArB,KAAAS,KACAQ,EAAAP,MAAAW,EAAArB,KAAAU,MACAO,EAAAK,UAAAD,EAAArB,KAAAsB,UACAL,EAAAT,SAAAa,EAAArB,KAAAQ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WAAA,GAAAC,OAAA,wCAAAC,YAAA7C,EAAA3D,UAAAG,SAAAsG,cAAA,SAAAC,eAAA/C,EAAA3D,UAAAE,QAAAG,MAAAsD,EAAAtD,OAAkLkE,IAAKoC,cAAAhD,EAAAX,iBAAA4D,iBAAAjD,EAAAV,oBAAA4D,qBAAA,SAAApC,GAAkHd,EAAAuB,KAAAvB,EAAA3D,UAAA,UAAAyE,QAA6C,QAEpmHqC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAxH,EACAgE,GATA,EAVA,SAAAyD,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/31.77262c26660915c20c81.js","sourcesContent":["<template> \r\n <div class=\"app-container\">\r\n <el-card class=\"filter-container\" shadow=\"never\">\r\n <div>\r\n <i class=\"el-icon-search\"></i>\r\n <span>筛选搜索</span>\r\n <el-button\r\n style=\"float: right\"\r\n @click=\"searchBrandList()\"\r\n type=\"primary\"\r\n size=\"small\">\r\n 查询结果\r\n </el-button>\r\n </div>\r\n <div style=\"margin-top: 15px\">\r\n <el-form :inline=\"true\" :model=\"listQuery\" size=\"small\" label-width=\"140px\">\r\n <el-form-item label=\"输入搜索:\">\r\n <el-input style=\"width: 203px\" v-model=\"listQuery.keyword\" placeholder=\"品牌名称/关键字\"></el-input>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n </el-card>\r\n <el-card class=\"operate-container\" shadow=\"never\">\r\n <i class=\"el-icon-tickets\"></i>\r\n <span>数据列表</span>\r\n <el-button\r\n class=\"btn-add\"\r\n @click=\"addBrand()\"\r\n size=\"mini\">\r\n 添加\r\n </el-button>\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table ref=\"brandTable\"\r\n :data=\"list\"\r\n style=\"width: 100%\"\r\n @selection-change=\"handleSelectionChange\"\r\n v-loading=\"listLoading\"\r\n border>\r\n <el-table-column type=\"selection\" width=\"60\" align=\"center\"></el-table-column>\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=\"品牌首字母\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.firstLetter}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"排序\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.sort}}</template>\r\n </el-table-column>\r\n <!-- <el-table-column label=\"品牌制造商\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-switch\r\n @change=\"handleFactoryStatusChange(scope.$index, scope.row)\"\r\n :active-value=\"1\"\r\n :inactive-value=\"0\"\r\n v-model=\"scope.row.factoryStatus\">\r\n </el-switch>\r\n </template>\r\n </el-table-column> -->\r\n <el-table-column label=\"是否显示\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-switch\r\n @change=\"handleShowStatusChange(scope.$index, scope.row)\"\r\n :active-value=\"1\"\r\n :inactive-value=\"0\"\r\n v-model=\"scope.row.showStatus\">\r\n </el-switch>\r\n </template>\r\n </el-table-column>\r\n <!-- <el-table-column label=\"相关\" width=\"220\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <span>商品:</span>\r\n <el-button\r\n size=\"mini\"\r\n type=\"text\"\r\n @click=\"getProductList(scope.$index, scope.row)\">100\r\n </el-button>\r\n <span>评价:</span>\r\n <el-button\r\n size=\"mini\"\r\n type=\"text\"\r\n @click=\"getProductCommentList(scope.$index, scope.row)\">1000\r\n </el-button>\r\n </template>\r\n </el-table-column> -->\r\n <el-table-column label=\"操作\" width=\"200\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-button\r\n size=\"mini\"\r\n @click=\"handleUpdate(scope.$index, scope.row)\">编辑\r\n </el-button>\r\n <el-button\r\n size=\"mini\"\r\n type=\"danger\"\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 <!-- <div class=\"batch-operate-container\">\r\n <el-select\r\n size=\"small\"\r\n v-model=\"operateType\" placeholder=\"批量操作\">\r\n <el-option\r\n v-for=\"item in operates\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\">\r\n </el-option>\r\n </el-select>\r\n <el-button\r\n style=\"margin-left: 20px\"\r\n class=\"search-button\"\r\n @click=\"handleBatchOperate()\"\r\n type=\"primary\"\r\n size=\"small\">\r\n 确定\r\n </el-button>\r\n </div> -->\r\n <div class=\"pagination-container\">\r\n <el-pagination\r\n background\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n layout=\"total, sizes,prev, pager, next,jumper\"\r\n :page-size=\"listQuery.pageSize\"\r\n :page-sizes=\"[5,10,15]\"\r\n :current-page.sync=\"listQuery.pageNum\"\r\n :total=\"total\">\r\n </el-pagination>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n import {fetchList, updateShowStatus, updateFactoryStatus, deleteBrand} from '@/api/brand'\r\n\r\n export default {\r\n name: 'brandList',\r\n data() {\r\n return {\r\n operates: [\r\n {\r\n label: \"显示品牌\",\r\n value: \"showBrand\"\r\n },\r\n {\r\n label: \"隐藏品牌\",\r\n value: \"hideBrand\"\r\n }\r\n ],\r\n operateType: null,\r\n listQuery: {\r\n keyword: null,\r\n pageNum: 1,\r\n pageSize: 10\r\n },\r\n list: null,\r\n total: null,\r\n listLoading: true,\r\n multipleSelection: []\r\n }\r\n },\r\n created() {\r\n this.getList();\r\n },\r\n methods: {\r\n getList() {\r\n this.listLoading = true;\r\n fetchList(this.listQuery).then(response => {\r\n this.listLoading = false;\r\n this.list = response.data.list;\r\n this.total = response.data.total;\r\n this.totalPage = response.data.totalPage;\r\n this.pageSize = response.data.pageSize;\r\n });\r\n },\r\n handleSelectionChange(val) {\r\n this.multipleSelection = val;\r\n },\r\n handleUpdate(index, row) {\r\n this.$router.push({path: '/pms/updateBrand', query: {id: row.id}})\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 deleteBrand(row.id).then(response => {\r\n this.$message({\r\n message: '删除成功',\r\n type: 'success',\r\n duration: 1000\r\n });\r\n this.getList();\r\n });\r\n });\r\n },\r\n getProductList(index, row) {\r\n console.log(index, row);\r\n },\r\n getProductCommentList(index, row) {\r\n console.log(index, row);\r\n },\r\n // handleFactoryStatusChange(index, row) {\r\n // var data = new URLSearchParams();\r\n // data.append(\"ids\", row.id);\r\n // data.append(\"factoryStatus\", row.factoryStatus);\r\n // updateFactoryStatus(data).then(response => {\r\n // this.$message({\r\n // message: '修改成功',\r\n // type: 'success',\r\n // duration: 1000\r\n // });\r\n // }).catch(error => {\r\n // if (row.factoryStatus === 0) {\r\n // row.factoryStatus = 1;\r\n // } else {\r\n // row.factoryStatus = 0;\r\n // }\r\n // });\r\n // },\r\n handleShowStatusChange(index, row) {\r\n // let data = new URLSearchParams();\r\n // ;\r\n // data.append(\"ids\", row.id);\r\n // data.append(\"showStatus\", row.showStatus);\r\n let obj = {\r\n ids:row.id,\r\n showStatus:row.showStatus\r\n }\r\n updateShowStatus(obj).then(response => {\r\n this.$message({\r\n message: '修改成功',\r\n type: 'success',\r\n duration: 1000\r\n });\r\n }).catch(error => {\r\n if (row.showStatus === 0) {\r\n row.showStatus = 1;\r\n } else {\r\n row.showStatus = 0;\r\n }\r\n });\r\n },\r\n handleSizeChange(val) {\r\n this.listQuery.pageNum = 1;\r\n this.listQuery.pageSize = val;\r\n this.getList();\r\n },\r\n handleCurrentChange(val) {\r\n this.listQuery.pageNum = val;\r\n this.getList();\r\n },\r\n searchBrandList() {\r\n this.listQuery.pageNum = 1;\r\n this.getList();\r\n },\r\n handleBatchOperate() {\r\n // console.log(this.multipleSelection);\r\n if (this.multipleSelection < 1) {\r\n this.$message({\r\n message: '请选择一条记录',\r\n type: 'warning',\r\n duration: 1000\r\n });\r\n return;\r\n }\r\n let showStatus = 0;\r\n if (this.operateType === 'showBrand') {\r\n showStatus = 1;\r\n } else if (this.operateType === 'hideBrand') {\r\n showStatus = 0;\r\n } else {\r\n this.$message({\r\n message: '请选择批量操作类型',\r\n type: 'warning',\r\n duration: 1000\r\n });\r\n return;\r\n }\r\n let ids = [];\r\n for (let i = 0; i < this.multipleSelection.length; i++) {\r\n ids.push(this.multipleSelection[i].id);\r\n }\r\n // let data = new URLSearchParams();\r\n // data.append(\"ids\", ids);\r\n // data.append(\"showStatus\", showStatus);\r\n let obj = {\r\n ids:ids.join(','),\r\n showStatus:showStatus\r\n }\r\n updateShowStatus(obj).then(response => {\r\n this.getList();\r\n this.$message({\r\n message: '修改成功',\r\n type: 'success',\r\n duration: 1000\r\n });\r\n });\r\n },\r\n addBrand() {\r\n this.$router.push({path: '/pms/addBrand'})\r\n }\r\n }\r\n }\r\n</script>\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n\r\n\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/pms/brand/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.searchBrandList()}}},[_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',{staticStyle:{\"width\":\"203px\"},attrs:{\"placeholder\":\"品牌名称/关键字\"},model:{value:(_vm.listQuery.keyword),callback:function ($$v) {_vm.$set(_vm.listQuery, \"keyword\", $$v)},expression:\"listQuery.keyword\"}})],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.addBrand()}}},[_vm._v(\"\\n 添加\\n \")])],1),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"brandTable\",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\":\"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\":\"品牌首字母\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.firstLetter))]}}])}),_vm._v(\" \"),_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.sort))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"是否显示\",\"width\":\"100\",\"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.handleShowStatusChange(scope.$index, scope.row)}},model:{value:(scope.row.showStatus),callback:function ($$v) {_vm.$set(scope.row, \"showStatus\", $$v)},expression:\"scope.row.showStatus\"}})]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"200\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleUpdate(scope.$index, scope.row)}}},[_vm._v(\"编辑\\n \")]),_vm._v(\" \"),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){_vm.handleDelete(scope.$index, scope.row)}}},[_vm._v(\"删除\\n \")])]}}])})],1)],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-976362f4\",\"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/pms/brand/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}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-976362f4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../../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-976362f4\\\",\\\"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-976362f4\"\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/pms/brand/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}