{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\zlMenu\\zlflMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\zlMenu\\zlflMenu.vue","mtime":1675656016347},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.search\";\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//\nimport zlflMenu from '@/api/examination/zlflMenu.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport zlflMenuDialog from \"./components/zlflMenuDialog.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'equSysMenu',\n components: {\n zlflMenuDialog: zlflMenuDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/exam/materialType/type/'\n },\n search: '',\n tableData: [],\n treeData: [],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n parentId: null,\n //上级id\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'parentId',\n relation: 'AND',\n value: ''\n }],\n filterText: '',\n expandAll: false\n };\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n }\n },\n created: function created() {\n this.getTreen();\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 // console.log(data);\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n handleAdd: function handleAdd() {\n this.$refs.formModal.add(this.parentId);\n },\n // 授权按钮\n Empower: function Empower(index, item) {\n this.$refs.powerModal.add(item);\n },\n reload: function reload() {\n this.treeData = [];\n this.$set(this.treeData);\n this.getTreen();\n this.loadData();\n },\n renderContent: function renderContent(h, _ref) {\n var _this = 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 _this.show = true;\n },\n \"mouseout\": function mouseout() {\n _this.show = false;\n }\n }\n }, [h(\"span\", [data.name]), h(\"span\", [h(\"el-popover\", {\n \"attrs\": {\n \"placement\": \"bottom\",\n \"width\": \"55\",\n \"trigger\": \"hover\"\n }\n }, [h(\"el-button\", {\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\",\n \"icon\": \"el-icon-plus\"\n },\n \"on\": {\n \"click\": function click() {\n return _this.append(data, 'son');\n }\n }\n }, [\"\\u65B0\\u589E\"]), h(\"el-button\", {\n \"directives\": [{\n name: \"show\",\n value: data.id !== '0'\n }],\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\",\n \"icon\": \"el-icon-edit\"\n },\n \"on\": {\n \"click\": function click() {\n return _this.upDateinfo(data, '');\n }\n }\n }, [\"\\u4FEE\\u6539\"]), h(\"el-button\", {\n \"directives\": [{\n name: \"show\",\n value: data.id !== '0'\n }],\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"icon\": \"el-icon-delete\",\n \"type\": \"text\"\n },\n \"on\": {\n \"click\": function click() {\n return _this.remove(data);\n }\n }\n }, [\"\\u5220\\u9664\"]), h(\"i\", {\n \"slot\": \"reference\",\n \"class\": \"el-icon-more-outline\",\n \"style\": \"font-size: 15px;\"\n })])])]);\n },\n append: function append(data, type) {\n if (type != 'father') {\n this.$refs.formModal.add(data);\n } else {\n this.$refs.formModal.add(data);\n }\n },\n upDateinfo: function upDateinfo(data, type) {\n this.$refs.formModal.edit(data);\n },\n // 删除装备系统类型\n remove: function remove(item) {\n var _this2 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n distinguishCancelAndClose: true,\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n zlflMenu.deleteOneEqeSys(item.id).then(function (res) {\n if (res.data.state) {\n _this2.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this2.getTreen();\n\n _this2.loadData(1);\n }\n });\n }).catch(function (action) {\n _this2.$notify({\n type: 'info',\n message: action === 'cancel' ? '已取消删除' : '停留在当前页面'\n });\n });\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.loadData(1);\n },\n // 获取list\n loadData: function loadData(page) {\n var _this3 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\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 zlflMenu.getMaterial(this.queryParam, function (res) {\n _this3.total = res.total;\n _this3.tableData = res.rows;\n\n _this3.$set(_this3.tableData);\n\n _this3.loading = false;\n });\n },\n // 获取树\n getTreen: function getTreen() {\n var _this4 = this;\n\n zlflMenu.getMaterTree({\n id: '0'\n }, function (res) {\n _this4.treeData = res.value;\n\n _this4.$set(_this4.treeData);\n });\n },\n searchName: function searchName() {\n var _this5 = this;\n\n var querys = {\n name: ''\n };\n querys.name = this.search;\n zlflMenu.getMaterTree(querys, function (res) {\n _this5.treeData = res.value;\n\n _this5.$set(_this5.treeData);\n });\n },\n // 点击树查看数据\n handleNodeClick: function handleNodeClick(data) {\n this.parentId = data.id;\n\n if (data.id == '0') {\n this.querys[1].value = '';\n this.loadData(1);\n } else {\n this.querys[1].value = this.parentId;\n this.loadData(1);\n }\n }\n }\n};",null]}