{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!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\\userpop.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\passVisualization\\role\\popup\\userpop.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":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/web.dom.iterable\";\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 { getAuthUsers } from \"@/api/getdata\";\nexport default {\n props: [\"width\", \"row\", \"title\"],\n data: function data() {\n return {\n id: this.row.id || null,\n //角色ID\n dialogVisible: true,\n tableData: [],\n checkedIds: [],\n //选中用户ID\n checkedTableData: []\n };\n },\n mounted: function mounted() {\n this.getlist();\n },\n methods: {\n handleSelectionChange: function handleSelectionChange(selection) {\n var _this = this;\n this.checkedIds = selection.map(function (item) {\n return item.id;\n });\n this.$nextTick(function () {\n _this.checkedTableData = [];\n _this.tableData.forEach(function (row) {\n if (_this.checkedIds.includes(row.id)) {\n _this.checkedTableData.push(row);\n }\n });\n });\n },\n getlist: function getlist() {\n var _this2 = this;\n var Content = {\n userName: '',\n id: this.id\n };\n getAuthUsers(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.tableData = res.returnData.list;\n _this2.checkedIds = res.returnData.checkDataList;\n //选择框反显\n _this2.tableData.forEach(function (row) {\n if (_this2.checkedIds.includes(row.id)) {\n _this2.$nextTick(function () {\n _this2.$refs.multipleTable.toggleRowSelection(row, true);\n });\n _this2.checkedTableData.push(row);\n }\n });\n } else {\n _this2.$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 _this3 = this;\n this.dialogVisible = false;\n this.$emit(\"closeDialog\");\n setTimeout(function () {\n _this3.dialogVisible = true;\n });\n },\n /**确认弹窗 */sureBtnClick: function sureBtnClick() {\n var _this4 = this;\n this.dialogVisible = false;\n this.$emit(\"closeDialog\");\n setTimeout(function () {\n _this4.dialogVisible = true;\n });\n },\n /**验证 */submitForm: function submitForm() {\n var data = {\n id: this.id,\n userIds: this.checkedIds.join(',')\n };\n this.$emit('submitUser', data);\n }\n }\n};",null]}