{"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\\resourceManage\\components\\relatedEquimentInfoDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\components\\relatedEquimentInfoDialog.vue","mtime":1667545182676},{"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//\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 relationContract from '@/api/device/relationContract.js';\nimport utils from '@/hotent-ui-util.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'relatedEquimentInfoDialog',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n // 设备分类树\n treeNode: {\n code: '',\n id: '0',\n name: '设备分类',\n type: 0,\n children: []\n },\n treeData: [{\n code: '',\n id: '0',\n name: '设备分类',\n type: 0,\n children: []\n }],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n visible: false,\n title: '新增',\n params: {\n contractId: '',\n proTypeCode: ''\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'tab.deviceTypeCode',\n relation: 'AND',\n value: ''\n }],\n relationList: {\n contractId: '',\n deviceList: []\n },\n loading: false,\n multipleSelection: [],\n // 复选框\n tableData: [],\n data: [],\n search: '',\n total: 0,\n // 总条目数\n parameters: {} //接收参数\n\n };\n },\n created: function created() {},\n mounted: function mounted() {\n this.getTreen();\n },\n methods: {\n handleNodeClick: function handleNodeClick(data) {\n this.treeNode = data;\n\n if (data.id == '0') {\n this.queryParam.params.proTypeCode = this.treeNode.code;\n this.getloadData(1);\n } else {\n this.queryParam.params.proTypeCode = this.treeNode.code;\n this.getloadData(1);\n }\n },\n // 设备组织树查询\n getTreen: function getTreen() {\n var _this = this;\n\n relationContract.AllproductType({\n id: '0'\n }).then(function (res) {\n _this.treeData[0].children = res.value;\n\n _this.$set(_this.treeData);\n });\n },\n edit: function edit(row) {\n this.visible = true;\n this.params.contractId = row.id;\n this.relationList.contractId = row.id;\n this.getloadData(1);\n },\n getloadData: function getloadData(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.params = this.params;\n console.log(this.queryParam);\n relationContract.getDeviceList(this.queryParam, function (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 loadData: function loadData() {},\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n console.log(this.multipleSelection);\n },\n // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n // 保存\n goInfo: function goInfo() {\n var _this3 = this;\n\n this.relationList.deviceList = this.multipleSelection;\n var methods;\n\n if (this.title == '新增') {\n methods = relationContract.save;\n methods(this.relationList, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '关联成功',\n duration: 2000\n });\n\n _this3.handleClose();\n\n _this3.$parent.loadData(1);\n }\n });\n }\n },\n handleClose: function handleClose() {\n this.$refs.multipleTable.clearSelection();\n this.search = '';\n this.title = '新增';\n this.visible = false;\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getloadData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getloadData();\n }\n }\n};",null]}