{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\ProductType.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\ProductType.vue","mtime":1686792516218},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport { dragControllerDiv } from '@/mixins/dragControllerDiv';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport productType from '@/api/device/productType.js';\nimport productTypeDialog from '@/views/Device/deviceManage/components/productTypeDialog';\nexport default {\n name: 'ProductType',\n mixins: [TableMixin],\n components: {\n productTypeDialog: productTypeDialog\n },\n data: function data() {\n return {\n url: {\n delete: '/device/product/type/'\n },\n treeData: [],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n treeNode: {\n code: '',\n id: '0',\n name: '产品分类',\n type: 0,\n children: []\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'code',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'parentId',\n relation: 'AND',\n value: ''\n }]\n };\n },\n created: function created() {\n this.getTreen();\n },\n mounted: function mounted() {\n dragControllerDiv(); // this.$refs['tree'].setCurrentKey('产品分类')\n },\n methods: {\n // 产品组织树查询\n getTreen: function getTreen() {\n var _this = this;\n\n productType.productType({\n id: '0'\n }).then(function (res) {\n _this.treeData = res.value;\n\n _this.$set(_this.treeData);\n });\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n },\n reload: function reload() {\n this.treeData = [];\n this.$set(this.treeData);\n this.getTreen();\n this.loadData();\n },\n handleUpdate: function handleUpdate(row) {\n this.$refs.formModal.edit(row, this.treeNode);\n },\n // 获取产品类型list\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n productType.typeList(this.queryParam, function (res) {\n // console.log(res, 'res')\n _this2.total = res.total;\n _this2.tableData = res.rows;\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n },\n handleAdd: function handleAdd() {\n // if (this.treeNode.type == 0) {\n // this.$message.warning('请选择产品类型名称!')\n // return\n // }\n this.$refs.formModal.add(this.treeNode);\n },\n handleNodeClick: function handleNodeClick(data) {\n this.treeNode = data;\n\n if (data.id == '0') {\n this.querys[2].value = this.treeNode.code;\n this.loadData(1);\n } else {\n this.querys[2].value = this.treeNode.id;\n this.loadData(1);\n }\n },\n // 批量删除产品类型\n handleDelete: function handleDelete() {\n var _this3 = this;\n\n productType.removeProductType(this.multipleSelection).then(function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this3.queryParam.pageBean.page = 1;\n\n _this3.loadData();\n\n _this3.getTreen();\n\n _this3.$set(_this3.treeData, _this3.treeData, _this3.treeData);\n }\n }).catch(function (res) {\n _this3.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n });\n }\n }\n};",null]}