1 |
- {"version":3,"sources":["webpack:///src/views/pms/productAttr/index.vue","webpack:///./src/views/pms/productAttr/index.vue?1827","webpack:///./src/views/pms/productAttr/index.vue"],"names":["productAttr","name","data","list","total","listLoading","listQuery","pageNum","pageSize","dialogVisible","dialogTitle","productAttrCate","id","sort","rules","required","message","trigger","created","this","getList","methods","_this","Object","then","response","addProductAttrCate","handleSizeChange","val","handleCurrentChange","handleDelete","index","row","_this2","$confirm","confirmButtonText","cancelButtonText","type","$message","duration","handleUpdate","getAttrList","$router","push","path","query","cid","cname","getParamList","handleConfirm","formName","_this3","$refs","validate","valid","console","log","obj","handleClose","productAttrCatForm","clearValidate","pms_productAttr","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","staticStyle","margin-top","_v","size","on","click","$event","directives","rawName","value","expression","ref","width","border","label","align","scopedSlots","_u","key","fn","scope","_s","attributeCount","paramCount","$index","background","layout","page-size","page-sizes","current-page","size-change","current-change","update:currentPage","$set","title","visible","before-close","update:visible","model","label-width","prop","auto-complete","callback","$$v","_n","slot","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"2IA+FAA,GACAC,KAAA,sBACAC,KAFA,WAGA,OACAC,KAAA,KACAC,MAAA,KACAC,aAAA,EACAC,WACAC,QAAA,EACAC,SAAA,GAEAC,eAAA,EACAC,YAAA,GACAC,iBACAV,KAAA,GACAW,GAAA,KACAC,KAAA,IAEAC,OACAb,OACAc,UAAA,EAAAC,QAAA,UAAAC,QAAA,YAKAC,QAzBA,WA0BAC,KAAAC,WAEAC,SACAD,QADA,WACA,IAAAE,EAAAH,KACAA,KAAAd,aAAA,EACAkB,OAAAZ,EAAA,EAAAY,CAAAJ,KAAAb,WAAAkB,KAAA,SAAAC,GACAH,EAAAjB,aAAA,EACAiB,EAAAnB,KAAAsB,EAAAvB,KAAAC,KACAmB,EAAAlB,MAAAqB,EAAAvB,KAAAE,SAGAsB,mBATA,WAUAP,KAAAV,eAAA,EACAU,KAAA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AAA,YAAiBG,OAAO2C,gBAAA,OAAsBH,OAAQ7B,MAAAjB,EAAApD,gBAAA,KAAAsG,SAAA,SAAAC,GAA0DnD,EAAAyC,KAAAzC,EAAApD,gBAAA,OAAAuG,IAA2CjC,WAAA,2BAAoC,GAAAlB,EAAAU,GAAA,KAAAP,EAAA,gBAAqCG,OAAOgB,MAAA,MAAA0B,KAAA,UAA6B7C,EAAA,YAAiBG,OAAO2C,gBAAA,OAAsBH,OAAQ7B,MAAAjB,EAAApD,gBAAA,KAAAsG,SAAA,SAAAC,GAA0DnD,EAAAyC,KAAAzC,EAAApD,gBAAA,OAAAoD,EAAAoD,GAAAD,KAAmDjC,WAAA,2BAAoC,OAAAlB,EAAAU,GAAA,KAAAP,EAAA,QAAiCE,YAAA,gBAAAC,OAAmC+C,KAAA,UAAgBA,KAAA,WAAelD,EAAA,aAAkBS,IAAIC,MAAA,SAAAC,GAAyBd,EAAAtD,eAAA,MAA4BsD,EAAAU,GAAA,SAAAV,EAAAU,GAAA,KAAAP,EAAA,aAA8CG,OAAOhC,KAAA,WAAiBsC,IAAKC,MAAA,SAAAC,GAAyBd,EAAAd,cAAA,0BAA0Cc,EAAAU,GAAA,sBAE1gI4C,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAxH,EACA6D,GATA,EAVA,SAAA4D,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/45.b941896baf4d5a02912c.js","sourcesContent":["<template> \n <div class=\"app-container\">\n <el-card class=\"operate-container\" shadow=\"never\">\n <i class=\"el-icon-tickets\" style=\"margin-top: 5px\"></i>\n <span style=\"margin-top: 5px\">数据列表</span>\n <el-button\n class=\"btn-add\"\n @click=\"addProductAttrCate()\"\n size=\"mini\">\n 添加\n </el-button>\n </el-card>\n <div class=\"table-container\">\n <el-table ref=\"productAttrCateTable\"\n style=\"width: 100%\"\n :data=\"list\"\n v-loading=\"listLoading\"\n 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\" width=\"100\">\n <template slot-scope=\"scope\">{{scope.row.sort}}</template>\n </el-table-column>\n <el-table-column label=\"属性数量\" width=\"200\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.attributeCount==null?0:scope.row.attributeCount}}</template>\n </el-table-column>\n <el-table-column label=\"参数数量\" width=\"200\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.paramCount==null?0:scope.row.paramCount}}</template>\n </el-table-column>\n <el-table-column label=\"设置\" width=\"200\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n @click=\"getAttrList(scope.$index, scope.row)\">属性列表\n </el-button>\n <!-- <el-button\n size=\"mini\"\n @click=\"getParamList(scope.$index, scope.row)\">参数列表\n </el-button> -->\n </template>\n </el-table-column>\n <el-table-column label=\"操作\" width=\"200\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n @click=\"handleUpdate(scope.$index, scope.row)\">编辑\n </el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n @click=\"handleDelete(scope.$index, scope.row)\">删除\n </el-button>\n </template>\n </el-table-column>\n </el-table>\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 <el-dialog\n :title=\"dialogTitle\"\n :visible.sync=\"dialogVisible\"\n :before-close=\"handleClose()\"\n width=\"30%\">\n <el-form ref=\"productAttrCatForm\" :model=\"productAttrCate\" :rules=\"rules\" label-width=\"120px\">\n <el-form-item label=\"类型名称\" prop=\"name\">\n <el-input v-model=\"productAttrCate.name\" auto-complete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"排序值\" prop=\"sort\">\n <el-input v-model.number=\"productAttrCate.sort\" auto-complete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <span slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"dialogVisible = false\">取 消</el-button>\n <el-button type=\"primary\" @click=\"handleConfirm('productAttrCatForm')\">确 定</el-button>\n </span>\n </el-dialog>\n </div>\n</template>\n<script>\n import {fetchList,createProductAttrCate,deleteProductAttrCate,updateProductAttrCate} from '@/api/productAttrCate'\n\n export default {\n name: 'productAttrCateList',\n data() {\n return {\n list: null,\n total: null,\n listLoading: true,\n listQuery: {\n pageNum: 1,\n pageSize: 5\n },\n dialogVisible: false,\n dialogTitle:'',\n productAttrCate:{\n name:'',\n id:null,\n sort:''\n },\n rules: {\n name: [\n { required: true, message: '请输入类型名称', trigger: 'blur' }\n ]\n }\n }\n },\n created() {\n this.getList();\n },\n methods: {\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 addProductAttrCate() {\n this.dialogVisible = true;\n this.dialogTitle = \"添加类型\";\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 handleDelete(index, row) {\n this.$confirm('是否要删除该类型', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n deleteProductAttrCate(row.id).then(response=>{\n this.$message({\n message: '删除成功',\n type: 'success',\n duration:1000\n });\n this.getList();\n });\n });\n },\n handleUpdate(index, row) {\n this.dialogVisible = true;\n this.dialogTitle = \"编辑类型\";\n this.productAttrCate.name = row.name;\n this.productAttrCate.id = row.id;\n this.productAttrCate.sort = row.sort;\n },\n getAttrList(index, row) {\n this.$router.push({path: '/pms/productAttrList',query:{cid:row.id,cname:row.name,type:0}})\n },\n getParamList(index, row) {\n this.$router.push({path: '/pms/productAttrList',query:{cid:row.id,cname:row.name,type:1}})\n },\n handleConfirm(formName){\n this.$refs[formName].validate((valid) => {\n if (valid) {\n // let data = new URLSearchParams();\n // data.append(\"name\",this.productAttrCate.name);\n let obj = {\n name:this.productAttrCate.name,\n sort:this.productAttrCate.sort\n }\n if(this.dialogTitle===\"添加类型\"){\n createProductAttrCate(obj).then(response=>{\n this.$message({\n message: '添加成功',\n type: 'success',\n duration:1000\n });\n this.dialogVisible = false;\n this.productAttrCate.name = ''\n this.productAttrCate.sort=''\n this.getList();\n });\n }else{\n updateProductAttrCate(this.productAttrCate.id,obj).then(response=>{\n this.$message({\n message: '修改成功',\n type: 'success',\n duration:1000\n });\n this.productAttrCate.name = ''\n this.productAttrCate.sort=''\n this.dialogVisible = false;\n this.getList();\n });\n }\n } else {\n console.log('error submit!!');\n this.productAttrCate.name = ''\n return false;\n }\n });\n },\n handleClose(){\n if (!this.dialogVisible && this.$refs.productAttrCatForm) {\n this.$refs.productAttrCatForm.clearValidate()\n this.productAttrCate.name = ''\n }\n }\n }\n }\n</script>\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\n</style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/pms/productAttr/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.addProductAttrCate()}}},[_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:\"productAttrCateTable\",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\",\"width\":\"100\"},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 [_vm._v(_vm._s(scope.row.attributeCount==null?0:scope.row.attributeCount))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"参数数量\",\"width\":\"200\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.paramCount==null?0:scope.row.paramCount))]}}])}),_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.getAttrList(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\":[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),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":_vm.dialogTitle,\"visible\":_vm.dialogVisible,\"before-close\":_vm.handleClose(),\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:\"productAttrCatForm\",attrs:{\"model\":_vm.productAttrCate,\"rules\":_vm.rules,\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"类型名称\",\"prop\":\"name\"}},[_c('el-input',{attrs:{\"auto-complete\":\"off\"},model:{value:(_vm.productAttrCate.name),callback:function ($$v) {_vm.$set(_vm.productAttrCate, \"name\", $$v)},expression:\"productAttrCate.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"排序值\",\"prop\":\"sort\"}},[_c('el-input',{attrs:{\"auto-complete\":\"off\"},model:{value:(_vm.productAttrCate.sort),callback:function ($$v) {_vm.$set(_vm.productAttrCate, \"sort\", _vm._n($$v))},expression:\"productAttrCate.sort\"}})],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.handleConfirm('productAttrCatForm')}}},[_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-0e030eb7\",\"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/productAttr/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-0e030eb7\\\",\\\"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-0e030eb7\\\",\\\"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-0e030eb7\"\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/productAttr/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|