{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\components\\correlationDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\components\\correlationDialog.vue","mtime":1676529099492},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"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//\n//\n//\n//\n//\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 { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport internationalSubject from '@/api/basicInfo/internationalSubject.js';\nimport domesticSubject from '@/api/basicInfo/domesticSubject.js';\nexport default {\n mixins: [TableMixin],\n name: 'SelectOrganize',\n props: [\"userTypeId\"],\n data: function data() {\n return {\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20\n }\n },\n total: 0,\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'parentId',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'level',\n relation: 'AND',\n value: ''\n } // {\n // \tgroup: 'main',\n // \toperation: 'RIGHT_LIKE',\n // \tparentGroup: '',\n // \tproperty: 'name',\n // \trelation: 'AND',\n // \tvalue: ''\n // },\n ],\n jbList: [],\n superiorData: {},\n newParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n querys: [{\n group: 'main',\n operation: 'RIGHT_LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }]\n },\n treeData: [],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n visible: false,\n UserData: [],\n selectUser: [],\n selectUserProps: {\n label: \"internationalName\"\n },\n multipleSelection: null,\n userlength: null,\n userInfoVos: [],\n currentKey: null,\n trainTypeListL: [],\n filterText: '',\n expandAll: false\n };\n },\n created: function created() {\n if (this.$i18n.locale === 'zh-CN') {\n this.jbList = dictUtils.getDictItemsFromCache('jb');\n } else {\n this.jbList = dictUtils.getDictItemsFromCache('jb_en');\n }\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n },\n currentKey: {\n handler: function handler(value) {\n var _this = this;\n\n if (value) {\n this.$nextTick(function () {\n _this.$refs.tree.setCurrentKey(_this.currentKey);\n });\n }\n },\n immediate: true,\n valType: false\n }\n },\n mounted: function mounted() {},\n methods: {\n expandHandle: function expandHandle() {\n console.log(this.$refs.tree.store);\n this.expandAll = !this.expandAll;\n this.expandNodes(this.$refs.tree.store.root);\n },\n // 遍历树形数据,设置每一项的expanded属性,实现展开收起\n expandNodes: function expandNodes(node) {\n node.expanded = this.expandAll;\n\n for (var i = 0; i < node.childNodes.length; i++) {\n node.childNodes[i].expanded = this.expandAll;\n\n if (node.childNodes[i].childNodes.length > 0) {\n this.expandNodes(node.childNodes[i]);\n }\n }\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n add: function add(val) {\n var _this2 = this;\n\n console.log(val); // this.superiorData=val\n\n this.selectUser = [];\n this.visible = true;\n domesticSubject.detailId(val.id, function (res) {\n if (res) {\n _this2.superiorData = res;\n _this2.selectUser = res.list;\n\n _this2.$set(_this2.selectUser);\n\n console.log(_this2.selectUser);\n }\n }); // if(val){\n // \tthis.userInfoVos = val\n // \tthis.selectUser = JSON.parse(JSON.stringify(val))\n // \tthis.userlength=val.length\n // }\n // console.log(this.selectUser);\n\n this.multipleSelection = null;\n this.getTree();\n },\n // 获取列表\n loadData: function loadData(page) {\n var _this3 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.UserData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n internationalSubject.pageQuery(this.queryParam, function (res) {\n _this3.UserData = res.rows;\n\n _this3.UserData.forEach(function (e) {\n _this3.jbList.forEach(function (j) {\n if (e.level == j.value) {\n e.levelName = j.name;\n }\n });\n });\n\n _this3.$nextTick(function () {\n _this3.selectUser.forEach(function (s) {\n _this3.UserData.forEach(function (u) {\n if (s.interCode == u.code) {\n console.log(2);\n\n _this3.$refs.multipleTable.toggleRowSelection(u);\n }\n });\n });\n });\n\n _this3.total = res.total;\n\n _this3.$set(_this3.UserData);\n });\n },\n // 获取树\n getTree: function getTree() {\n var _this4 = this;\n\n internationalSubject.treeData({}, function (res) {\n if (res.value.length > 0) {\n _this4.treeData = res.value;\n _this4.currentKey = _this4.treeData[0].id;\n _this4.querys[0].value = _this4.currentKey;\n\n _this4.loadData(1);\n }\n });\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.visible = false;\n this.treeData = [];\n this.UserData = [];\n this.selectUser = [];\n this.superiorData = {};\n },\n // 树\n handleNodeClick: function handleNodeClick(item) {\n this.querys[0].value = item.id;\n this.loadData(1);\n },\n // 中间列表\n searchEnterFun: function searchEnterFun() {\n this.loadData(1);\n },\n dialogConfirm: function dialogConfirm() {\n var _this5 = this;\n\n console.log(this.selectUser);\n this.superiorData.list = this.selectUser;\n domesticSubject.correlation(this.superiorData, function (res) {\n if (res.state) {\n _this5.$notify({\n type: 'success',\n message: _this5.$t('domestic.success'),\n duration: 2000\n });\n\n _this5.handleClose();\n\n _this5.$emit('getData');\n }\n });\n },\n binRowKey: function binRowKey(row) {\n return row.id;\n },\n selectable: function selectable(row) {\n var _this6 = this;\n\n var type = true;\n this.userInfoVos.forEach(function (u, ui) {\n if (ui <= _this6.userlength) {\n if (row.id == u.id) {\n type = false;\n }\n }\n });\n return type;\n },\n manualSelection: function manualSelection(selection, row) {\n var _this7 = this;\n\n //先判断当前操作flag\n //true勾选还是false取消\n var flag = selection.some(function (item) {\n if (row.id == item.id) return true;\n });\n\n if (flag) {\n this.selectUser.push({\n internationalName: row.name,\n // nameEn:row.nameEn,\n interCode: row.code,\n interId: row.id,\n expression: '',\n subCode: this.superiorData.code,\n subId: this.superiorData.id\n });\n } else {\n this.selectUser.forEach(function (s, si) {\n if (s.interCode == row.code) {\n _this7.selectUser.splice(si, 1);\n }\n });\n }\n\n console.log(this.selectUser);\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.selectUser = val;\n },\n renderContent: function renderContent(h, _ref) {\n var _this8 = this;\n\n var node = _ref.node,\n data = _ref.data,\n store = _ref.store;\n return h(\"span\", {\n \"class\": \"custom-tree-node\",\n \"on\": {\n \"mouseover\": function mouseover() {\n _this8.show = true;\n },\n \"mouseout\": function mouseout() {\n _this8.show = false;\n }\n }\n }, [h(\"span\", [data.internationalName]), h(\"span\", [h(\"el-button\", {\n \"style\": \"width:100%;border:0;margin:0;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\"\n },\n \"on\": {\n \"click\": function click() {\n return _this8.remove(data);\n }\n }\n }, [\"\\u5220\\u9664\"])])]);\n },\n remove: function remove(val) {\n var _this9 = this;\n\n console.log(val);\n this.selectUser.forEach(function (u, ui) {\n if (u.id == val.id) {\n _this9.selectUser.splice(ui, 1);\n }\n });\n this.userInfoVos = JSON.parse(JSON.stringify(this.selectUser));\n this.userlength = this.selectUser.length;\n this.loadData(1);\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.loadData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.loadData();\n }\n }\n};",null]}