{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\dialog\\DataAuthDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\dialog\\DataAuthDialog.vue","mtime":1667327529169},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 deepmerge from 'deepmerge';\n\nvar eipUserSelector = function eipUserSelector() {\n return import('@/components/selector/EipUserSelector.vue');\n};\n\nvar eipRoleSelector = function eipRoleSelector() {\n return import('@/components/selector/EipRoleSelector.vue');\n};\n\nvar eipOrgSelector = function eipOrgSelector() {\n return import('@/components/selector/EipOrgSelector.vue');\n};\n\nvar eipPostSelector = function eipPostSelector() {\n return import('@/components/selector/EipPostSelector.vue');\n};\n\nexport default {\n components: {\n eipUserSelector: eipUserSelector,\n eipRoleSelector: eipRoleSelector,\n eipOrgSelector: eipOrgSelector,\n eipPostSelector: eipPostSelector\n },\n props: {\n name: name\n },\n data: function data() {\n return {\n dialogVisible: false,\n noNeedSetArr: [],\n right: '',\n permissionList: [],\n curSelectItem: {},\n autoClose: true,\n selectorKey: 1,\n showNeedRight: ''\n };\n },\n methods: {\n showDialog: function showDialog(param_) {\n //重新初始化全部的 data数据\n Object.assign(this.$data, this.$options.data());\n var param = deepmerge({}, param_, {\n clone: true\n });\n\n if (param.autoClose === false) {\n this.autoClose = false;\n }\n\n this.right = '';\n\n if (param.limits) {\n this.right = deepmerge({}, param.limits, {\n clone: true\n });\n }\n\n this.permissionList = param.permissionList || []; // let needSetting = []\n //不需要配置\n\n var noNeedSetting = [];\n\n for (var i = 0; i < this.permissionList.length; i++) {\n var obj = this.permissionList[i];\n var type = obj.type;\n var objRight = this.getRight(this.right, type);\n\n if (objRight) {\n objRight.title = obj.title;\n\n if (objRight.type == 'users') {\n this.showNeedRight = 'users';\n } else if (objRight.type == 'orgs') {\n this.showNeedRight = 'orgs';\n }\n\n objRight.checked = true;\n noNeedSetting.push(objRight); // }\n } else {\n if (obj.type == 'users' || obj.type == 'orgs') {\n obj.checked = false;\n obj.id = '';\n obj.name = '';\n noNeedSetting.push(JSON.parse(JSON.stringify(obj)));\n } else {\n obj.checked = false;\n noNeedSetting.push(obj);\n }\n }\n }\n\n this.noNeedSetArr = noNeedSetting;\n this.dialogVisible = true;\n },\n getRight: function getRight(aryRights, type) {\n if (!this.right || this.right.size == 0) return null;\n\n for (var i = 0; i < aryRights.length; i++) {\n var obj = aryRights[i];\n\n if (obj.type == type) {\n return obj;\n }\n }\n\n return null;\n },\n closeDialog: function closeDialog() {\n this.dialogVisible = false;\n },\n handleClose: function handleClose() {\n var rtn = [];\n var isOtherAuth = false;\n\n for (var i = 0; i < this.noNeedSetArr.length; i++) {\n var obj = this.noNeedSetArr[i];\n\n if (obj.checked && obj.type != 'users' && obj.type != 'orgs') {\n rtn.push(obj);\n this.$emit('onConfirm', rtn, this.name, 1);\n this.dialogVisible = false;\n return rtn;\n }\n\n if (obj.checked && obj.type == 'users') {\n isOtherAuth = true;\n }\n\n if (obj.checked && obj.type == 'orgs') {\n isOtherAuth = true;\n }\n }\n\n var setting = this.noNeedSetArr;\n\n for (var _i = 5; _i < setting.length; _i++) {\n var _obj = setting[_i]; //设置了值。\n\n if (_obj.id) {\n rtn.push(_obj);\n }\n }\n\n if (isOtherAuth && rtn.length < 1) {\n this.$message({\n type: 'warning',\n message: '请添加具体权限信息!'\n });\n return false;\n }\n\n this.$emit('onConfirm', rtn, this.name, 1);\n\n if (this.autoClose) {\n this.dialogVisible = false;\n }\n },\n checkNoSetting: function checkNoSetting(item) {\n var noNeedChecked = false;\n\n for (var i = 0; i < this.noNeedSetArr.length; i++) {\n var obj = this.noNeedSetArr[i];\n\n if (item.checked) {\n if (obj != item) {\n obj.checked = false;\n this.noNeedSetArr[i].id = \"\";\n this.noNeedSetArr[i].name = \"\";\n }\n\n if (item.type == 'users') {\n this.showNeedRight = 'users';\n } else if (item.type == 'orgs') {\n this.showNeedRight = 'orgs';\n } else {\n this.showNeedRight = '';\n }\n }\n }\n\n this.$forceUpdate();\n },\n updateNeedSetArr: function updateNeedSetArr(index) {\n this.noNeedSetArr[index].id = '';\n this.noNeedSetArr[index].name = '';\n ++this.selectorKey;\n }\n }\n};",null]}