hz-zhhq-web/node_modules/.cache/babel-loader/c182fbe5c9c08ab26e9c0baaf72...

1 line
3.7 KiB
JSON
Raw Normal View History

2025-02-25 14:04:51 +08:00
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\passVisualization\\role\\popup\\devicepop.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\passVisualization\\role\\popup\\devicepop.vue","mtime":1737610069441},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":1740463332584},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":1740463340941}],"contextDependencies":[],"result":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"core-js/modules/web.dom.iterable\");\nvar _getdata = require(\"@/api/getdata\");\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//\nvar _default = exports.default = {\n props: [\"width\", \"row\", \"title\"],\n data: function data() {\n return {\n id: this.row.id || null,\n lDialog: this.width > 500 ? \"w700\" : \"w500\",\n dialogVisible: true,\n tableData: [],\n defaultProps: {\n children: 'children',\n label: 'label'\n },\n checkedIds: [],\n //选中用户ID\n checkedTableData: []\n };\n },\n mounted: function mounted() {\n this.getlist();\n },\n methods: {\n getlist: function getlist() {\n var _this = this;\n var Content = {\n deviceName: '',\n id: this.id\n };\n (0, _getdata.getAuthDevices)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n console.log(res);\n _this.tableData = res.returnData.list;\n _this.checkedIds = res.returnData.checkDataList;\n _this.$refs.tree.setCheckedKeys(_this.checkedIds);\n //选择框反显\n // this.tableData.forEach((row) => {\n // if(this.checkedIds.includes(row.id)){\n // this.$nextTick(() => { this.$refs.multipleTable.toggleRowSelection(row, true);});\n // this.checkedTableData.push(row)\n // } \n // })\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n /*关闭弹窗 */handleClose: function handleClose() {\n var _this2 = this;\n this.dialogVisible = false;\n this.$emit(\"closeDialog\");\n setTimeout(function () {\n _this2.dialogVisible = true;\n });\n },\n /**确认弹窗 */sureBtnClick: function sureBtnClick() {\n var _this3 = this;\n this.dialogVisible = false;\n this.$emit(\"closeDialog\");\n setTimeout(function () {\n _this3.dialogVisible = true;\n });\n },\n /**验证 */submitForm: function submitForm() {\n var chosenIds = this.$refs.tree.getCheckedKeys();\n var parentIds = this.tableData.map(function (item) {\n return item.id;\n });\n chosenIds.forEach(function (item, index) {\n if (parentIds.indexOf(item) > -1) {\n chosenIds.splice(index, 1);\n }\n });\n var data = {\n id: this.id,\n devices: chosenIds.join(',')\n };\n this.$emit('submitDevice', data);\n }\n }\n};",null]}