{"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\\zlcyMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\zlMenu\\zlcyMenu.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport zlcyMenu from '@/api/examination/zlcyMenu.js';\nimport { TableMixin } from '@/mixins/tableMixin'; // import zlflMenuDialog from './components/zlflMenuDialog.vue'\n// import givePower from './components/givePower.vue'\n\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'zlcyMenu',\n mixins: [TableMixin],\n data: function data() {\n return {\n dialogVisible: false,\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: 'title',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'typeId',\n relation: 'AND',\n value: ''\n }],\n examFiles: [],\n //文件列表\n currentKey: null,\n filterText: '',\n expandAll: false\n };\n },\n created: function created() {\n this.getTreen();\n },\n watch: {\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 filterText: function filterText(val) {\n this.$refs.tree.filter(val);\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 // 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 var _this2 = this;\n\n this.examFiles = [];\n zlcyMenu.getInfo(item.id, function (res) {\n if (res.examFiles) {\n // this.dialogVisible = true\n _this2.examFiles = res.examFiles;\n }\n });\n },\n loadData: function loadData() {},\n // 获取list\n getData: function getData(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 zlcyMenu.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 this.currentKey = null;\n zlcyMenu.getMaterTree({\n id: '0'\n }, function (res) {\n _this4.treeData = res.value;\n _this4.currentKey = res.value[0].id;\n _this4.querys[1].value = _this4.currentKey;\n\n _this4.$set(_this4.querys[1]);\n\n _this4.$set(_this4.treeData);\n\n _this4.getData(1);\n });\n },\n searchName: function searchName() {\n var _this5 = this;\n\n var querys = {\n name: ''\n };\n querys.name = this.search;\n zlcyMenu.getMaterTree(querys, function (res) {\n _this5.treeData[0].children = 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.getData(1);\n } else {\n this.querys[1].value = this.parentId;\n this.getData(1);\n }\n },\n handleClose: function handleClose(done) {\n this.dialogVisible = false;\n }\n }\n};",null]}