{"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\\internationTree.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\components\\internationTree.vue","mtime":1678265471131},{"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/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport internationalSubject from '@/api/basicInfo/internationalSubject.js';\nexport default {\n name: 'internationDialog',\n data: function data() {\n return {\n visible: false,\n title: '移动',\n treeData: [{\n id: '0',\n name: this.$t('international.tree'),\n children: []\n }],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n params: {}\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n add: function add(val) {\n this.visible = true;\n this.getTree();\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.visible = false;\n },\n // 树数据\n getTree: function getTree() {\n var _this = this;\n\n internationalSubject.treeData({}, function (res) {\n if (res.state) {\n _this.treeData[0].children = res.value;\n }\n });\n },\n //拖拽结束\n handleDrop: function handleDrop(draggingNode, dropNode, dropType, ev) {\n console.log('当前移动' + draggingNode.data.name);\n console.log('被移到到' + dropNode.data.name, dropNode.data);\n console.log(dropType);\n\n if (dropNode.data.id === '0') {\n this.params = {\n id: '0',\n sourceId: draggingNode.data.id\n };\n } else {\n this.params = {\n id: dropNode.data.parentId,\n sourceId: draggingNode.data.id\n };\n }\n\n internationalSubject.moveTree(this.params, function (res) {// if (res.state) {\n // \tthis.$notify({\n // \t\ttype: 'success',\n // \t\tmessage: this.$t('international.success'),\n // \t\tduration: 2000\n // \t})\n // \tthis.$emit('getData');\n // }\n });\n console.log(this.params);\n return;\n\n if (dropType == 'before') {\n this.params = {\n id: dropNode.data.parentId,\n sourceId: draggingNode.data.id\n };\n } else {\n this.params = {\n id: dropNode.data.id,\n sourceId: draggingNode.data.id\n };\n }\n\n this.handleSave();\n },\n allowDrag: function allowDrag(draggingNode) {\n console.log(draggingNode);\n return draggingNode.data.code; //唯一键,最外层父节点无labelTypeId属性,则不可拓展\n },\n // 保存\n handleSave: function handleSave() {\n var _this2 = this;\n\n internationalSubject.moveTree(this.params, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.$t('international.success'),\n duration: 2000\n });\n\n _this2.$emit('getData');\n }\n });\n }\n }\n};",null]}