{"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\\SelectTypeDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\dialog\\SelectTypeDialog.vue","mtime":1667327529200},{"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\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/hotent-ui-util.js';\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 selectType: {\n type: Array,\n required: false,\n default: function _default() {\n return ['org', 'role', 'pos', 'user'];\n }\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n noNeedSetArr: [],\n selectItems: [],\n right: '',\n permissionList: [],\n curSelectItem: {},\n autoClose: true,\n showNeedRight: ''\n };\n },\n computed: {\n selectOptions: {\n set: function set(newValue) {\n this.selectItems = newValue;\n },\n get: function get() {\n var temp = [];\n this.selectType.forEach(function (item) {\n if (item == 'org') {\n temp.push({\n type: 'org',\n title: '组织',\n name: '',\n codes: ''\n });\n } else if (item == 'role') {\n temp.push({\n type: 'role',\n title: '角色',\n name: '',\n codes: ''\n });\n } else if (item == 'pos') {\n temp.push({\n type: 'pos',\n title: '岗位',\n name: '',\n codes: ''\n });\n } else if (item == 'user') {\n temp.push({\n type: 'user',\n title: '用户',\n name: '',\n codes: ''\n });\n }\n });\n return temp;\n }\n }\n },\n mounted: function mounted() {\n this.selectItems = this.selectOptions;\n },\n methods: {\n showDialog: function showDialog(row) {\n this.dialogVisible = true;\n\n if (row && row.json) {\n var rowData = JSON.parse(row.json);\n var temp = utils.deepClone(this.selectOptions);\n temp.forEach(function (options) {\n rowData.forEach(function (item) {\n if (options.type == item.type) {\n options.codes = item.codes ? item.codes : item.code;\n options.name = item.name;\n }\n });\n });\n this.selectItems = temp;\n } else {\n this.selectItems = utils.deepClone(this.selectOptions);\n }\n },\n closeDialog: function closeDialog() {\n this.dialogVisible = false;\n this.selectItems = utils.deepClone(this.selectOptions);\n },\n handleClose: function handleClose() {\n var jsonParams = [];\n\n if (this.selectItems.length) {\n this.selectItems.forEach(function (item) {\n if (item.codes) {\n jsonParams.push({\n codes: item.codes,\n name: item.name,\n type: item.type\n });\n }\n });\n }\n\n this.$emit('select', jsonParams);\n this.selectItems = utils.deepClone(this.selectOptions);\n },\n updateSelectItems: function updateSelectItems(index) {\n this.selectItems[index].codes = '';\n this.selectItems[index].name = '';\n }\n }\n};",null]}