{"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\\selector\\EipPlaceSelector.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\selector\\EipPlaceSelector.vue","mtime":1667327529653},{"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 _toConsumableArray from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n name: 'EipPleceSelector',\n props: {\n value: {\n type: String,\n default: ''\n },\n placeholder: {\n type: String,\n default: '请选择'\n },\n single: {\n type: Boolean,\n default: false\n },\n placeList_: {\n type: Array,\n default: function _default() {\n return [];\n }\n }\n },\n data: function data() {\n return {\n place: null,\n dialogVisible: false,\n filterText: '',\n //树型搜索内容\n isIeExplorer: false,\n isExpand: false,\n isShowAside: true,\n //左侧菜单默认显示\n loading: false,\n props: {\n label: 'name',\n code: 'code',\n id: 'id',\n children: 'children',\n pcode: 'pcode',\n isLeaf: 'leaf' // 指定节点是否为叶子节点,仅在指定了 lazy 属性的情况下生效\n\n },\n treeData: [{\n name: '分组管理',\n code: 'root',\n id: '1',\n children: []\n }],\n defaultCheckedKeys: [],\n //默认选中节点\n defaultExpandedKeys: ['1'],\n //默认展开节点\n node: '',\n resolve: '',\n searchForm: {\n name: '',\n uri: ''\n },\n //顶部搜索参数\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n selectedId: '',\n // 单选时选中的id\n placeList: [] //会场列表\n\n };\n },\n // 超级牛\n model: {\n prop: 'value',\n event: 'change'\n },\n watch: {\n value: {\n immediate: true,\n // 立即执行 :当刷新页面时会立即执行一次handler函数\n handler: function handler(val) {\n this.place = val;\n }\n },\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n },\n single: {\n immediate: true,\n handler: function handler(val) {\n this.single = val;\n }\n },\n placeList_: {\n immediate: true,\n handler: function handler(val) {\n this.placeList = val;\n }\n }\n },\n mounted: function mounted() {\n this.getTreeData();\n },\n methods: {\n unique: function unique(arr) {\n var res = new Map();\n return arr.filter(function (arr) {\n return !res.has(arr.id) && res.set(arr.id, 1);\n });\n },\n changeInput: function changeInput() {\n this.placeList = this.unique(this.placeList);\n this.$emit('change', this.place);\n this.$emit('showTag', this.placeList);\n },\n changeFoucs: function changeFoucs() {\n var _this = this;\n\n this.placeList = [];\n this.selectedId = '';\n this.dialogVisible = true;\n this.$nextTick(function () {\n _this.$refs.AtTable.clearSelection();\n });\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n },\n handleSure: function handleSure() {\n this.dialogVisible = false;\n this.changeInput();\n },\n //初始节点\n getTreeData: function getTreeData() {\n var _this2 = this;\n\n var params = {\n pageBean: {\n pageSize: -1\n }\n };\n this.$http.post('${xqhk}/bizMeetingPlaceName/v1/getJson', params).then(function (res) {\n var resp = res.data.value;\n _this2.treeData[0].children = resp;\n });\n },\n //点击节点\n handleNodeClick: function handleNodeClick(data) {\n this.searchForm = {\n name: '',\n uri: ''\n };\n this.form = {};\n\n if (data.name != '分组管理') {\n this.searchForm.name = data.name;\n } //根组件查询全部节点数据\n\n\n this.$refs.AtTable.load();\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data[this.props.label].indexOf(value) !== -1;\n },\n loadNode: function loadNode(node, resolve) {},\n // 树状菜单的全部展开和收起\n handleExpandCollapse: function handleExpandCollapse() {\n var elTree = this.$refs.tree;\n\n for (var i = 0; i < elTree.store._getAllNodes().length; i++) {\n elTree.store._getAllNodes()[i].expanded = this.isExpand;\n }\n\n this.isExpand = !this.isExpand;\n },\n //树状刷新\n refresh: function refresh() {\n var _this3 = this;\n\n this.loading = true;\n this.$emit('refresh', function () {\n _this3.loading = false;\n _this3.filterText = '';\n\n _this3.getTreeData();\n });\n setTimeout(function () {\n _this3.loading = false;\n _this3.filterText = '';\n }, 2000);\n },\n closeBefore: function closeBefore() {\n var _this4 = this;\n\n setTimeout(function () {\n _this4.dialogVisible2 = false;\n\n _this4.getTreeData();\n }, 500);\n },\n //隐藏目录\n handleHideMenu: function handleHideMenu() {\n this.isShowAside = !this.isShowAside;\n },\n loadData: function loadData(param, cb) {\n var _this5 = this;\n\n var query = [];\n var search = {\n alias: this.searchForm.alias,\n name: this.searchForm.name\n };\n\n for (var i in search) {\n if (search[i]) {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n\n if (param.querys && param.querys.length) {\n var _param$querys;\n\n (_param$querys = param.querys).push.apply(_param$querys, query);\n } else {\n param.querys = query;\n }\n\n this.$http.post('${xqhk}/bizSiteParamEx/v1/query', param).then(function (resp) {\n var response = resp.data;\n _this5.data = response.rows;\n _this5.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n handleSelect: function handleSelect(selection) {\n this.placeList = [].concat(_toConsumableArray(selection), _toConsumableArray(this.placeList));\n this.place = this.placeList.map(function (item) {\n return item.name;\n }).join(',');\n },\n handleRowClick: function handleRowClick(data) {\n this.selectedId = data.id;\n this.$refs.AtTable.toggleRowSelection(data);\n var rows = this.$refs.AtTable.getSelection();\n\n if (!this.single) {\n this.placeList = [].concat(_toConsumableArray(rows), _toConsumableArray(this.placeList));\n this.place = this.placeList.map(function (item) {\n return item.name;\n }).join(',');\n } else {\n this.placeList = [rows[rows.length - 1]] || [];\n this.place = this.placeList[0].name;\n }\n },\n changeRadio: function changeRadio(val) {\n this.selectedId = val;\n var data = this.data.filter(function (item) {\n return item.id == val;\n });\n this.place = data[0].name;\n this.placeList = data;\n },\n handleTagClose: function handleTagClose(id) {\n this.placeList = this.placeList.filter(function (item) {\n return item.id != id;\n });\n this.place = this.placeList.map(function (item) {\n return item.name;\n }).join(',');\n this.$emit('closeTag', this.placeList);\n },\n //查询\n handleSearch: function handleSearch() {\n var _this6 = this;\n\n this.pageResult = {\n page: 1,\n pageSize: 20,\n total: 0\n };\n this.$nextTick(function () {\n _this6.$refs.AtTable.load();\n });\n },\n handleReset: function handleReset() {\n var _this7 = this;\n\n this.searchForm = {\n name: '',\n uri: ''\n };\n this.$refs['searchForm'].resetFields();\n this.pageResult = {\n page: 1,\n pageSize: 20,\n total: 0\n };\n this.$nextTick(function () {\n _this7.$refs.AtTable.load();\n });\n },\n // 防抖(在单位时间内时间再次触发则重新计时)\n debounce: function debounce(func, wait) {\n var timer = null;\n return function () {\n var _this8 = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (timer) clearTimeout(timer);\n timer = setTimeout(function () {\n func.apply(_this8, args);\n }, wait);\n };\n },\n // 节流(单位时间内不管时间触发多少次,只有一次生效)\n throttle: function throttle(func, wait) {\n var last = 0;\n return function () {\n var now = new Date();\n\n if (now - last > wait) {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n func.apply(this, args);\n last = now;\n }\n };\n }\n }\n};",null]}