{"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\\basisDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\modle\\basisDialog.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 \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\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//\nimport equipmentManage from '@/api/device/equipmentManage.js';\nexport default {\n // props: {\n // \tcId: {\n // \t\ttype: String,\n // \t\tdefault: ''\n // \t},\n // \ttitle: {\n // \t\ttype: String,\n // \t\tdefault: ''\n // \t}\n // },\n data: function data() {\n return {\n dialogVisible: false,\n cId: null,\n title: null,\n isType: true,\n suppliers: {},\n managers: {},\n companyTypes: [{\n name: \"管理单位\",\n value: 1\n }, {\n name: \"建设单位\",\n value: 2\n }, {\n name: \"运维单位\",\n value: 3\n }, {\n name: \"供应商\",\n value: 4\n }],\n types: [{\n name: \"管理人员\",\n value: 1\n }, {\n name: \"建设人员\",\n value: 2\n }, {\n name: \"运维人员\",\n value: 3\n }]\n };\n },\n methods: {\n add: function add(id, title) {\n this.cId = id;\n this.title = title;\n console.log(id, title);\n this.dialogVisible = true;\n console.log(this.cId, this.title);\n\n if (this.title == \"设备供应商\") {\n this.getSupplier();\n } else if (this.title == '设备管理人员' || this.title == '设备维护人员') {\n this.getManager();\n }\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n },\n getSupplier: function getSupplier() {\n var _this = this;\n\n equipmentManage.supplierId(this.cId, function (res) {\n if (res != null) {\n _this.isType = true;\n _this.suppliers = res;\n console.log(_this.suppliers.companyType.split(','));\n\n var companyType = _this.suppliers.companyType.split(',');\n\n var companyTypeName = [];\n\n _this.companyTypes.forEach(function (c) {\n companyType.forEach(function (e) {\n if (e == c.value) {\n companyTypeName.push(c.name);\n }\n });\n });\n\n _this.suppliers.companyType = companyTypeName;\n } else {\n _this.isType = false;\n }\n });\n },\n getManager: function getManager() {\n var _this2 = this;\n\n equipmentManage.managerId(this.cId, function (res) {\n if (res != null) {\n _this2.isType = true;\n _this2.managers = res;\n\n var aType = _this2.managers.type.split(',');\n\n var aTypeName = [];\n\n _this2.types.forEach(function (t) {\n aType.forEach(function (a) {\n if (a == t.value) {\n aTypeName.push(t.name);\n }\n });\n });\n\n _this2.managers.type = aTypeName;\n equipmentManage.supplierId(_this2.managers.companyId, function (res) {\n if (res) {\n _this2.$set(_this2.managers, 'companyId', res.companyName);\n }\n });\n } else {\n _this2.isType = false;\n }\n });\n console.log(this.managers);\n }\n }\n};",null]}