{"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\\components\\modle\\relatedDeviceDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\modle\\relatedDeviceDialog.vue","mtime":1667545182473},{"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":["import _defineProperty from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n\nvar _methods;\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 equipmentManage from '@/api/device/equipmentManage.js';\nimport utils from '@/hotent-ui-util.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport contractManage from '@/api/device/contractManage.js';\nexport default {\n name: 'relatedDeviceDialog',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n visible: false,\n title: '新增',\n relationList: {\n deviceId: '',\n contracts: []\n },\n loading: false,\n multipleSelection: [],\n // 复选框\n multipleSelection1: [],\n // 复选框\n tableData: [],\n data: [],\n search: '',\n search1: '',\n tableData1: []\n };\n },\n created: function created() {\n this.loadData();\n },\n methods: (_methods = {\n add: function add(row) {\n var _this = this;\n\n this.visible = true;\n this.relationList.deviceId = row.id;\n var params = {\n deviceId: row.id\n };\n equipmentManage.getContractList(params, function (res) {\n _this.multipleSelection = res.value.contracts;\n\n if (_this.multipleSelection.length) {\n _this.$nextTick(function () {\n _this.multipleSelection.forEach(function (item) {\n _this.tableData.forEach(function (val) {\n if (item.id == val.id) {\n _this.$refs.multipleTable.toggleRowSelection(val);\n }\n });\n });\n });\n }\n });\n },\n edit: function edit(row) {},\n loadData: function loadData() {\n var _this2 = this;\n\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n params: {}\n };\n contractManage.contractQuery(data).then(function (res) {\n _this2.loading = true;\n _this2.tableData = res.rows;\n });\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\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.contracts = this.multipleSelection;\n var methods;\n\n if (this.title == '新增') {\n methods = equipmentManage.saveDevice;\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();\n }\n });\n }\n }\n }, _defineProperty(_methods, \"getRowKey\", function getRowKey(row) {\n return row.id;\n }), _defineProperty(_methods, \"handleClose\", function handleClose() {\n this.$refs.multipleTable.clearSelection();\n this.search = '';\n this.title = '新增';\n this.visible = false;\n }), _methods)\n};",null]}