hz-zhhq-web/node_modules/.cache/babel-loader/7852d6a6bb6494055dfeffa1b1c...

1 line
6.8 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\\passVisualization\\power\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\passVisualization\\power\\index.vue","mtime":1737610069439},{"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\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _getdata = require(\"@/api/getdata\");\nvar _devicepop = _interopRequireDefault(require(\"./popup/devicepop.vue\"));\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\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//\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//\nvar _default = exports.default = {\n components: {\n Paging: _paging.default,\n Popup: _popup.default,\n Devicepop: _devicepop.default\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n validation: false,\n completeTitle: \"取消授权\",\n nav: \"是否取消授权?\",\n formInline: {\n dept: '',\n userName: '',\n userPhone: \"\",\n isAuth: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n downloadLoading: false,\n tableData: [],\n stateList: ['未授权', '已授权'],\n isDeviceEdit: false /**用于设置弹窗 */,\n num: 3\n };\n },\n mounted: function mounted() {\n this.timeDefaultShow = new Date();\n this.createLoad();\n if (this.$route.params.index) {\n this.currentChanges(this.$route.params.index);\n } else {\n this.getlist();\n }\n },\n methods: {\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n getlist: function getlist() {\n var _this = this;\n var limit = this.page.limit == \"0\" || this.page.limit == \"undefined\" ? 1 : this.page.limit;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n userName: this.formInline.userName.trim(),\n userPhone: this.formInline.userPhone,\n dept: this.formInline.dept,\n isAuth: this.formInline.isAuth,\n pageNum: limit,\n pageSize: this.page.sizePage\n };\n (0, _getdata.getUserLists)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.clearLoad();\n _this.tableData = res.returnData.data;\n console.log(_this.tableData);\n _this.page.total = res.returnData.total;\n _this.page.limit = res.returnData.currentPage;\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n },\n onSubmit: function onSubmit() {\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n },\n // 取消授权询问\n delRoleData: function delRoleData(row) {\n this.row = row;\n this.validation = true;\n this.completeTitle = \"取消授权\";\n this.nav = \"是否取消授权?\";\n },\n // 取消授权\n closeDialogDel: function closeDialogDel(val) {\n var _this2 = this;\n this.createLoad();\n var Content = {\n id: this.row.id\n };\n (0, _getdata.cancelAuth)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.page.limit = 1;\n _this2.getlist();\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n this.validation = false;\n },\n // 关闭弹窗\n closeDialog: function closeDialog() {\n this.getlist();\n this.isDeviceEdit = false;\n this.row = {};\n },\n //授权设备\n editAuth: function editAuth(row) {\n this.row = Object.assign({}, row);\n this.isDeviceEdit = true;\n },\n //分配用户-提交\n submitDevice: function submitDevice(e) {\n var _this3 = this;\n (0, _getdata.authUserDevices)(e).then(function (res) {\n if (res.returnCode == '1') {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.isDeviceEdit = false;\n _this3.getlist();\n _this3.row = {};\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n });\n }\n }\n};",null]}