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

1 line
4.0 KiB
JSON

{"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\\property\\cardBind\\popup\\bindPopup.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\property\\cardBind\\popup\\bindPopup.vue","mtime":1737610069442},{"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\\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":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"core-js/modules/web.dom.iterable\");\nvar _utils = require(\"@/utils\");\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//\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 dataList: [],\n ids: [],\n lDialog: this.width > 500 ? \"w700\" : \"w500\",\n dialogVisible: true,\n rules: {},\n menuList: []\n };\n },\n mounted: function mounted() {\n this.getCardsByUser();\n },\n methods: {\n getCardsByUser: function getCardsByUser() {\n var _this = this;\n console.log(this.row);\n var aa = {\n userId: this.row.id,\n userName: this.row.real_name\n };\n (0, _getdata.getCardsByUser)(aa).then(function (res) {\n if (res.returnCode == '1') {\n // this.$message({\n // message:res.returnMsg,\n // type: \"success\"\n // });\n console.log(res.returnData);\n var bandList = res.returnData.bandList.map(function (item) {\n item.isBind = 0;\n return item;\n });\n var unBandList = res.returnData.unBandList.map(function (item) {\n item.isBind = 1;\n return item;\n });\n ;\n // \n _this.dataList = bandList.concat(unBandList);\n _this.$nextTick(function () {\n _this.dataList.forEach(function (obj, key) {\n console.log(obj);\n if (obj.isBind == 0) {\n _this.$refs.dataList.toggleRowSelection(obj, true);\n }\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 // selectable(row) {\n // console.log(row)\n // if (row.isBind == 0) {\n // return true\n // } else {\n // return false\n // }\n // },\n // 多选框选中数据\n handleSelectionChange: function handleSelectionChange(selection) {\n this.ids = selection.map(function (item) {\n return item.id;\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(formName) {\n var data = {\n userId: this.row.id,\n cardIds: this.ids.join(',')\n };\n this.$emit('submit', data);\n }\n }\n};",null]}