1 |
- {"version":3,"sources":["webpack:///src/views/pms/productCate/index.vue","webpack:///./src/views/pms/productCate/index.vue?ba06","webpack:///./src/views/pms/productCate/index.vue"],"names":["pms_productCate","name","data","list","total","listLoading","listQuery","pageNum","pageSize","parentId","created","this","resetParentId","getList","watch","$route","route","methods","query","handleAddProductCate","$router","push","_this","Object","productCate","then","response","handleSizeChange","val","handleCurrentChange","handleNavStatusChange","index","row","_this2","ids","id","obj","join","navStatus","$message","message","type","duration","handleShowStatusChange","_this3","console","log","showStatus","handleShowNextLevel","path","handleTransferProduct","handleUpdate","handleDelete","_this4","$confirm","confirmButtonText","cancelButtonText","filters","levelFilter","value","disableNextLevel","views_pms_productCate","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","staticStyle","margin-top","_v","size","on","click","$event","directives","rawName","expression","ref","width","border","label","align","scopedSlots","_u","key","fn","scope","_s","_f","level","productCount","active-value","inactive-value","change","$index","model","callback","$$v","$set","sort","disabled","background","layout","page-size","page-sizes","current-page","size-change","current-change","update:currentPage","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"sHAmHAA,GACAC,KAAA,kBACAC,KAFA,WAGA,OACAC,KAAA,KACAC,MAAA,KACAC,aAAA,EACAC,WACAC,QAAA,EACAC,SAAA,IAEAC,SAAA,IAGAC,QAdA,WAeAC,KAAAC,gBACAD,KAAAE,WAEAC,OACAC,OADA,SACAC,GACAL,KAAAC,gBACAD,KAAAE,YAGAI,SACAL,cADA,WAEAD,KAAAL,UAAAC,QAAA,EACA,MAAAI,KAAAI,OAAAG,MAAAT,SACAE,KAAAF,SAAAE,KAAAI,OAAAG,MAAAT,SAEAE,KAAAF,SAAA,GAGAU,qBATA,WAUAR,KAAAS,QAAAC,KAAA,wBAEAR,QAZA,WAYA,IAAAS,EAAAX,KACAA,KAAAN,aAAA,EACAkB,OAAAC,EAAA,EAAAD,CAAAZ,KAAAF,SAAAE,KAAAL,WAAAmB,KAAA,SAAAC,GACAJ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cAAA,UAAAC,eAAA9C,EAAAzD,UAAAC,QAAAH,MAAA2D,EAAA3D,OAAqLuE,IAAKmC,cAAA/C,EAAApC,iBAAAoF,iBAAAhD,EAAAlC,oBAAAmF,qBAAA,SAAAnC,GAAkHd,EAAAuC,KAAAvC,EAAAzD,UAAA,UAAAuE,QAA6C,QAE3vHoC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACApH,EACA6D,GATA,EAVA,SAAAwD,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/46.2c770ba247554dad346d.js","sourcesContent":["<template>\r\n <div class=\"app-container\">\r\n <el-card class=\"operate-container\" shadow=\"never\">\r\n <i class=\"el-icon-tickets\" style=\"margin-top: 5px\"></i>\r\n <span style=\"margin-top: 5px\">数据列表</span>\r\n <el-button class=\"btn-add\" @click=\"handleAddProductCate()\" size=\"mini\">\r\n 添加\r\n </el-button>\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table\r\n ref=\"productCateTable\"\r\n style=\"width: 100%\"\r\n :data=\"list\"\r\n v-loading=\"listLoading\"\r\n border\r\n >\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\">{{\r\n scope.row.level | levelFilter\r\n }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"商品数量\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.productCount }}</template>\r\n </el-table-column>\r\n <!-- <el-table-column label=\"数量单位\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.productUnit }}</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=\"handleNavStatusChange(scope.$index, scope.row)\"\r\n :active-value=\"1\"\r\n :inactive-value=\"0\"\r\n v-model=\"scope.row.navStatus\"\r\n >\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 >\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\">{{ scope.row.sort }}</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 :disabled=\"scope.row.level | disableNextLevel\"\r\n @click=\"handleShowNextLevel(scope.$index, scope.row)\"\r\n >查看下级\r\n </el-button>\r\n <!-- <el-button\r\n size=\"mini\"\r\n @click=\"handleTransferProduct(scope.$index, scope.row)\"\r\n >转移商品\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 >编辑\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 >删除\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\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=\"[ 10, 15,20]\"\r\n :current-page.sync=\"listQuery.pageNum\"\r\n :total=\"total\"\r\n >\r\n </el-pagination>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {\r\n fetchList,\r\n deleteProductCate,\r\n updateShowStatus,\r\n updateNavStatus,\r\n} from \"@/api/productCate\";\r\n\r\nexport default {\r\n name: \"productCateList\",\r\n data() {\r\n return {\r\n list: null,\r\n total: null,\r\n listLoading: true,\r\n listQuery: {\r\n pageNum: 1,\r\n pageSize: 10,\r\n },\r\n parentId: 0,\r\n };\r\n },\r\n created() {\r\n this.resetParentId();\r\n this.getList();\r\n },\r\n watch: {\r\n $route(route) {\r\n this.resetParentId();\r\n this.getList();\r\n },\r\n },\r\n methods: {\r\n resetParentId() {\r\n this.listQuery.pageNum = 1;\r\n if (this.$route.query.parentId != null) {\r\n this.parentId = this.$route.query.parentId;\r\n } else {\r\n this.parentId = 0;\r\n }\r\n },\r\n handleAddProductCate() {\r\n this.$router.push(\"/pms/addProductCate\");\r\n },\r\n getList() {\r\n this.listLoading = true;\r\n fetchList(this.parentId, 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 });\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 handleNavStatusChange(index, row) {\r\n // let data = new URLSearchParams();\r\n let ids = [];\r\n ids.push(row.id);\r\n // data.append('ids',ids);\r\n // data.append('navStatus',row.navStatus);\r\n ids = ids.join(\",\");\r\n let obj = {\r\n ids,\r\n navStatus: row.navStatus,\r\n };\r\n updateNavStatus(obj).then((response) => {\r\n this.$message({\r\n message: \"修改成功\",\r\n type: \"success\",\r\n duration: 1000,\r\n });\r\n });\r\n },\r\n handleShowStatusChange(index, row) {\r\n // let data = new URLSearchParams();\r\n let ids = [];\r\n ids.push(row.id);\r\n ids = ids.join(\",\");\r\n console.log('ids:',ids,row)\r\n // data.append('ids',ids);\r\n // data.append('showStatus',row.showStatus);\r\n let obj = {\r\n ids,\r\n showStatus: row.showStatus,\r\n };\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 });\r\n },\r\n handleShowNextLevel(index, row) {\r\n this.$router.push({\r\n path: \"/pms/productCate\",\r\n query: { parentId: row.id },\r\n });\r\n },\r\n handleTransferProduct(index, row) {\r\n console.log(\"handleAddProductCate\");\r\n },\r\n handleUpdate(index, row) {\r\n this.$router.push({\r\n path: \"/pms/updateProductCate\",\r\n query: { id: row.id },\r\n });\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 deleteProductCate(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 },\r\n filters: {\r\n levelFilter(value) {\r\n if (value === 0) {\r\n return \"一级\";\r\n } else if (value === 1) {\r\n return \"二级\";\r\n }\r\n },\r\n disableNextLevel(value) {\r\n if (value === 0) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/pms/productCate/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:\"operate-container\",attrs:{\"shadow\":\"never\"}},[_c('i',{staticClass:\"el-icon-tickets\",staticStyle:{\"margin-top\":\"5px\"}}),_vm._v(\" \"),_c('span',{staticStyle:{\"margin-top\":\"5px\"}},[_vm._v(\"数据列表\")]),_vm._v(\" \"),_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleAddProductCate()}}},[_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:\"productCateTable\",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\":\"级别\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"levelFilter\")(scope.row.level)))]}}])}),_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.productCount))]}}])}),_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.handleNavStatusChange(scope.$index, scope.row)}},model:{value:(scope.row.navStatus),callback:function ($$v) {_vm.$set(scope.row, \"navStatus\", $$v)},expression:\"scope.row.navStatus\"}})]}}])}),_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\":\"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\":\"200\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"disabled\":_vm._f(\"disableNextLevel\")(scope.row.level)},on:{\"click\":function($event){_vm.handleShowNextLevel(scope.$index, scope.row)}}},[_vm._v(\"查看下级\\n \")])]}}])}),_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\":[ 10, 15,20],\"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-337195e3\",\"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/productCate/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-337195e3\\\",\\\"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-337195e3\\\",\\\"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-337195e3\"\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/productCate/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|