{"remainingRequest":"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\\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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 {\n\tTableMixin\n} from '@/mixins/tableMixin'\n// import zlflMenuDialog from './components/zlflMenuDialog.vue'\n// import givePower from './components/givePower.vue'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nexport default {\n\tname: 'zlcyMenu',\n\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\tdialogVisible: false,\n\t\t\tsearch: '',\n\t\t\ttableData: [],\n\t\t\ttreeData: [],\n\t\t\tdefaultProps: {\n\t\t\t\tchildren: 'children',\n\t\t\t\tlabel: 'name'\n\t\t\t},\n\t\t\tparentId: null, //上级id\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'title',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'typeId',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t}\n\t\t\t],\n\t\t\texamFiles: [], //文件列表\n\t\t\tcurrentKey: null,\n\t\t\tfilterText: '',\n\t\t\texpandAll:false\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.getTreen()\n\t},\n\twatch: {\n\t\tcurrentKey: {\n\t\t\thandler(value) {\n\t\t\t\tif (value) {\n\t\t\t\t\tthis.$nextTick(\n\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\tthis.$refs.tree.setCurrentKey(this.currentKey);\n\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t},\n\t\t\timmediate: true,\n\t\t\tvalType: false\n\t\t},\n\t\tfilterText(val) {\n\t\t\tthis.$refs.tree.filter(val);\n\t\t}\n\t},\n\tmounted() {},\n\tmethods: {\n\t\texpandHandle() {\n\t\t console.log(this.$refs.tree.store);\n\t\t this.expandAll = !this.expandAll;\n\t\t this.expandNodes(this.$refs.tree.store.root);\n\t\t },\n\t\t // 遍历树形数据,设置每一项的expanded属性,实现展开收起\n\t\t expandNodes(node) {\n\t\t node.expanded = this.expandAll;\n\t\t for (let i = 0; i < node.childNodes.length; i++) {\n\t\t node.childNodes[i].expanded = this.expandAll;\n\t\t if (node.childNodes[i].childNodes.length > 0) {\n\t\t this.expandNodes(node.childNodes[i]);\n\t\t }\n\t\t }\n\t\t },\n\t\tfilterNode(value, data) {\n\t\t\t// console.log(data);\n\t\t\tif (!value) return true;\n\t\t\treturn data.name.indexOf(value) !== -1;\n\t\t},\n\t\thandleAdd() {\n\t\t\tthis.$refs.formModal.add(this.parentId)\n\t\t},\n\t\t// 查看文件\n\t\tEmpower(index, item) {\n\t\t\tthis.examFiles = []\n\t\t\tzlcyMenu.getInfo(item.id, res => {\n\t\t\t\tif (res.examFiles) {\n\t\t\t\t\t// this.dialogVisible = true\n\t\t\t\t\tthis.examFiles = res.examFiles\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tloadData() {\n\n\t\t},\n\t\t// 获取list\n\t\tgetData(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tif (this.querys[0].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[0])\n\t\t\t}\n\t\t\tif (this.querys[1].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\t\t\tzlcyMenu.getMaterial(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.tableData = res.rows\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t},\n\t\t// 获取树\n\t\tgetTreen() {\n\t\t\tthis.currentKey = null\n\t\t\tzlcyMenu.getMaterTree({\n\t\t\t\tid: '0'\n\t\t\t}, res => {\n\t\t\t\tthis.treeData = res.value\n\t\t\t\tthis.currentKey = res.value[0].id\n\t\t\t\tthis.querys[1].value = this.currentKey\n\t\t\t\tthis.$set(this.querys[1])\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t\tthis.getData(1)\n\t\t\t})\n\t\t},\n\t\tsearchName() {\n\t\t\tlet querys = {\n\t\t\t\tname: ''\n\t\t\t}\n\t\t\tquerys.name = this.search\n\t\t\tzlcyMenu.getMaterTree(querys, res => {\n\t\t\t\tthis.treeData[0].children = res.value\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t})\n\t\t},\n\t\t// 点击树查看数据\n\t\thandleNodeClick(data) {\n\t\t\tthis.parentId = data.id\n\t\t\tif (data.id == '0') {\n\t\t\t\tthis.querys[1].value = ''\n\t\t\t\tthis.getData(1)\n\t\t\t} else {\n\t\t\t\tthis.querys[1].value = this.parentId\n\t\t\t\tthis.getData(1)\n\t\t\t}\n\t\t},\n\t\thandleClose(done) {\n\t\t\tthis.dialogVisible = false\n\t\t}\n\n\n\t}\n}\n",null]}