{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\components\\subjectDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\components\\subjectDialog.vue","mtime":1675655021227},{"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\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport questionListMenu from '@/api/examination/questionListMenu.js'\n// import questionListMenu from '@/api/examination/questionListMenu.js'\nexport default {\n\tmixins: [TableMixin],\n\tname: 'SelectOrganize',\n\tprops: [\"userTypeId\"],\n\tdata() {\n\t\treturn {\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: 'po.full_id_',\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: 'RIGHT_LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'name',\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: 'RIGHT_LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'name',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\n\t\t\t],\n\t\t\tnewParam: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpageSize: 20,\n\t\t\t\t\tpage: 1\n\t\t\t\t},\n\t\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'RIGHT_LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'name',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t}, ],\n\n\t\t\t},\n\n\t\t\tsearch: '',\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\tvisible: false,\n\t\t\tUserData: [],\n\t\t\tselectUser: [],\n\t\t\tselectUserProps: {\n\t\t\t\tlabel: \"name\"\n\t\t\t},\n\t\t\tnameArr: [],\n\t\t\tmultipleSelection: null,\n\t\t\tparams: {\n\t\t\t\tmajorIds: [],\n\t\t\t\tsubjectIds: []\n\t\t\t},\n\t\t\tuserlength: null,\n\t\t\tuserInfoVos: [],\n\t\t\tid: '',\n\t\t\tcurrentKey:null,\n\t\t\tfilterText: '',\n\t\t\texpandAll:true,\n\t\t\texpandedKeys:[]\n\t\t\t\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.trainTypeList = dictUtils.getDictItemsFromCache('xllb')\n\t},\n\tmounted() {},\n\twatch: {\n\t\t// filterText(val) {\n\t\t// \tthis.$refs.tree.filter(val);\n\t\t// },\n\t\t// currentKey: { \n\t\t// \thandler(value) {\n\t\t// \t\tif (value) {\n\t\t// \t\t\tthis.$nextTick(\n\t\t// \t\t() => {\n\t\t// \t\t\tconsole.log(1,this.currentKey);\n\t\t// \t\t\tconsole.log(this.treeData);\n\t\t// \t\t\t\tthis.$refs.tree.setCurrentKey(this.currentKey);\n\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},\n\tmethods: {\n\t\t// expandHandle() {\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\t// filterNode(value, data) {\n\t\t// \tif (!value) return true;\n\t\t// \treturn data.name.indexOf(value) !== -1;\n\t\t// },\n\t\tadd(val, id, parentId) {\n\t\t\tthis.currentKey =''\n\t\t\tthis.getTree(1,id,parentId)\n\t\t\tthis.selectUser = []\n\t\t\tthis.visible = true\n\t\t\tif (val) {\n\t\t\t\tthis.userInfoVos = val\n\t\t\t\tthis.selectUser = JSON.parse(JSON.stringify(val))\n\t\t\t\tthis.userlength = val.length\n\t\t\t}\n\t\t\tthis.multipleSelection = null\n\t\t},\n\t\t// 获取列表\n\t\tloadData(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.UserData = []\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\tquestionListMenu.findByMajorIds(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.UserData = res.rows\n\t\t\t\tthis.UserData.forEach(u => {\n\t\t\t\t\tthis.trainTypeList.forEach(e => {\n\t\t\t\t\t\tif (u.trainType == e.value) {\n\t\t\t\t\t\t\tu.trainTypeName = e.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\n\t\t\t})\n\t\t\tthis.$set(this.UserData)\n\t\t},\n\t\t// 获取人员类别树\n\t\tgetTree(page,id, parentId) {\n\t\t\tif (page) {\n\t\t\t\tthis.newParam.pageBean.page = page\n\t\t\t}\n\t\t\tquestionListMenu.majorQuery(this.newParam, res => {\n\t\t\t\tthis.treeData = res.value\n\t\t\t\tthis.treeData.forEach(a => {\n\t\t\t\t\ta.newId = a.parentId + a.id\n\t\t\t\t\tif (a.children) {\n\t\t\t\t\t\ta.children.forEach(b => {\n\t\t\t\t\t\t\tb.newId = b.parentId + b.id\n\t\t\t\t\t\t\tif (b.children) {\n\t\t\t\t\t\t\t\tb.children.forEach(c => {\n\t\t\t\t\t\t\t\t\tc.newId = c.parentId + c.id\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\n\t\t\t\t})\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t\tif(id){\n\t\t\t\t\t\tthis.currentKey = parentId + id\n\t\t\t\t\t\tthis.expandedKeys.push(this.currentKey)\n\t\t\t\t\t\tthis.querys[0].value=id\n\t\t\t\t}\n\t\t\t\tthis.loadData(1)\n\t\t\t\t// console.log(this.treeData);\n\t\t\t})\n\t\t},\n\t\t// 显示\n\t\thandleShow(val) {\n\t\t\tthis.visible = true\n\t\t\tthis.selectUser = []\n\t\t\tthis.multipleSelection = null\n\t\t\tthis.getTree(1)\n\t\t\tthis.loadData(1)\n\t\t},\n\n\t\t// 关闭新增人员窗口\n\t\thandleClose() {\n\t\t\tthis.visible = false\n\t\t\tthis.treeData = [{\n\t\t\t\tcode: '',\n\t\t\t\tid: '',\n\t\t\t\tname: '专业装备',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t}]\n\t\t\tthis.UserData = []\n\t\t\tthis.selectUser = []\n\t\t},\n\t\t// 树\n\t\thandleNodeClick(item) {\n\t\t\t// this.currentKey = item.id\n\t\t\tthis.querys[0].value = item.id\n\t\t\tthis.loadData(1)\n\t\t},\n\t\t// 中间列表\n\t\tsearchEnterFun() {\n\t\t\tthis.loadData(1)\n\t\t},\n\t\t// 重置\n\t\treset() {\n\t\t\tthis.querys[0].value = \"\"\n\t\t\tthis.querys[1].value = \"\"\n\t\t\tthis.loadData(1)\n\t\t},\n\t\tdialogConfirm() {\n\t\t\tthis.$emit('getUser', this.selectUser)\n\t\t\tthis.handleClose()\n\t\t},\n\t\tbinRowKey(row) {\n\t\t\treturn row.id\n\t\t},\n\t\tselectable(row) {\n\t\t\tlet type = true\n\t\t\tthis.userInfoVos.forEach((u, ui) => {\n\t\t\t\tif (ui <= this.userlength) {\n\t\t\t\t\tif (row.id == u.id) {\n\t\t\t\t\t\ttype = false\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t\treturn type\n\t\t\t// return true\n\t\t},\n\t\tmanualSelection(selection, row) {\n\t\t\tconsole.log(selection, row);\n\t\t\tthis.selectUser = []\n\t\t\tthis.selectUser.push(row)\n\t\t\tthis.multipleSelection = row;\n\t\t\t// 清除 所有勾选项\n\t\t\tthis.$refs.multipleSelection.clearSelection()\n\t\t\t// 当表格数据都没有被勾选的时候 就返回\n\t\t\t// 主要用于将当前勾选的表格状态清除\n\t\t\tif (selection.length == 0) return\n\t\t\tthis.$refs.multipleSelection.toggleRowSelection(row, true);\n\t\t\t// \tconsole.log(row);\n\t\t\t// \t//先判断当前操作flag\n\t\t\t// \t//true勾选还是false取消\n\t\t\t// \tlet flag = selection.some((item) => {\n\t\t\t// \t\tif (row.id == item.id) return true;\n\t\t\t// \t})\n\t\t\t// \tif (flag) {\n\t\t\t// \t\tthis.selectUser.push(row)\n\t\t\t// \t} else {\n\t\t\t// \t\tthis.selectUser.forEach((s, si) => {\n\t\t\t// \t\t\tif (s.id == row.id) {\n\t\t\t// \t\t\t\tthis.selectUser.splice(si, 1)\n\n\t\t\t// \t\t\t}\n\t\t\t// \t\t})\n\t\t\t// \t}\n\t\t},\n\t\t// handleSelectionChange(val) {\n\t\t// \tthis.selectUser = val\n\t\t// \tthis.multipleSelection = row;\n\t\t// \t// 清除 所有勾选项\n\t\t// \tthis.$refs.multipleSelection.clearSelection()\n\t\t// \t// 当表格数据都没有被勾选的时候 就返回\n\t\t// \t// 主要用于将当前勾选的表格状态清除\n\t\t// \tif (selection.length == 0) return\n\t\t// \tthis.$refs.multipleSelection.toggleRowSelection(row, true);\n\t\t// },\n\n\t}\n}\n",null]}