{"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\\professionalDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\components\\professionalDialog.vue","mtime":1670579919359},{"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\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport subMenu from '@/api/examination/subMenu.js'\nexport default {\n\tmixins: [TableMixin],\n\tname: 'SelectOrganize',\n\tdata() {\n\t\treturn {\n\t\t\tquerys: [{\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: 'user_type_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: 'NOT_IN',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: '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\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: \"majorName\"\n\t\t\t},\n\t\t\tnameArr: [],\n\t\t\tmultipleSelection: [],\n\t\t\tlxList: [],\n\t\t\tcurrentKey: null,\n\t\t\tuserlength:null,\n\t\t\tuserInfoVos:[]\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.lxList = dictUtils.getDictItemsFromCache('lx')\n\t},\n\tmounted() {\n\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() => {\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\tadd(val, row) {\n\t\t\tconsole.log(val,row);\n\t\t\tthis.currentKey=null\n\t\t\tthis.querys[1].value = ''\n\t\t\tthis.visible = true\n\t\t\tthis.selectUser = []\n\t\t\tthis.userInfoVos=[]\n\t\t\tthis.userlength=null\n\t\t\tthis.multipleSelection = []\n\t\t\tif (row.length > 0) {\n\t\t\t\tthis.userInfoVos = row\n\t\t\t\tthis.selectUser = JSON.parse(JSON.stringify(row))\n\t\t\t\tthis.userlength=row.length\n\t\t\t\tthis.$set(this.selectUser)\n\t\t\t}\n\t\t\tif (val) {\n\t\t\t\tthis.valType=true\n\t\t\t\t// console.log();\n\t\t\t\tthis.querys[0].value = val\n\t\t\t}else{\n\t\t\t\tthis.valType=false\n\t\t\t}\n\t\t\tthis.getTree(1)\n\t\t\t// this.loadData(1)\n\t\t},\n\t\tsearchName() {\n\t\t\tthis.getTree(1)\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\tif (this.querys[2].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\n\t\t\t}\n\t\t\tsubMenu.professionalQuery(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\t// this.UserData = res.rows\n\t\t\t\tres.rows.forEach(item => {\n\t\t\t\t\t\n\t\t\t\t\tthis.lxList.forEach(ee => {\n\t\t\t\t\t\tif (item.type == ee.value) {\n\t\t\t\t\t\t\titem['typeName'] = ee.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tthis.UserData.push({\n\t\t\t\t\t\tmajorId: item.id,\n\t\t\t\t\t\tmajorName: item.name,\n\t\t\t\t\t\ttypeName:item.typeName\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\tthis.selectUser.forEach(s=>{\n\t\t\t\t\tthis.UserData.forEach(u=>{\n\t\t\t\t\t\tif(s.majorId==u.majorId){\n\t\t\t\t\t\t\tthis.$refs.multipleTable.toggleRowSelection(u,true)\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// else{\n\t\t\t\t\t\t// \tthis.$refs.multipleTable.clearSelection()\n\t\t\t\t\t\t// }\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\tthis.$set(this.UserData)\n\t\t\t})\n\t\t},\n\t\t// 获取人员类别树\n\t\tgetTree(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.newParam.pageBean.page = page\n\t\t\t}\n\t\t\tsubMenu.getJobPage(this.newParam, res => {\n\t\t\t\tthis.treeData = res.rows\n\t\t\t\tthis.currentKey = res.rows[0].id\n\t\t\t\tthis.querys[0].value=this.currentKey\n\t\t\t\tthis.$set(this.querys[0])\n\t\t\t\t// this.$refs.tree.setCurrentKey(res.rows[0].id)\n\t\t\t\tthis.loadData(1)\n\t\t\t})\n\t\t},\n\t\tfetchTreeData() {\n\t\t\tthis.$refs.tree.setCurrentKey('0')\n\t\t},\n\n\t\t// 显示\n\t\thandleShow(val) {\n\t\t\tthis.querys[0].value = val\n\t\t\tthis.visible = true\n\t\t\tthis.selectUser = []\n\t\t\tthis.multipleSelection = []\n\t\t\tthis.getTree(1)\n\t\t\tthis.loadData(1)\n\t\t\t// this.newData(val)\n\t\t},\n\t\tnewData(item) {\n\t\t\tthis.querys[0].value = item\n\t\t\tthis.loadData(1)\n\t\t},\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\tthis.valType=false\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\tconsole.log(this.selectUser);\n\t\t\tthis.$emit('professionalgetUser', this.selectUser)\n\t\t\tthis.handleClose()\n\t\t},\n\t\tbinRowKey(row) {\n\t\t\treturn row.majorId\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\tconsole.log(row.majorId ,u.majorId,row.majorId == u.majorId);\n\t\t\t\t\tif (row.majorId == u.majorId) {\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\tconsole.log(type);\n\t\t\treturn type\n\t\t\t// return true\n\t\t},\n\t\tmanualSelection(selection, row) {\n\t\t\t\n\t\t\tlet flag = selection.some((item) => {\n\t\t\t\tif (item.majorId === row.majorId) return true;\n\t\t\t})\n\t\t\tif (flag) {\n\t\t\t\tthis.selectUser.push(row)\n\t\t\t} else {\n\t\t\t\tthis.selectUser.forEach((s, si) => {\n\t\t\t\t\tif (s.majorId == row.majorId) {\n\t\t\t\t\t\tthis.selectUser.splice(si, 1)\n\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t\thandleSelectionChange(val) {\n\t\t\tconsole.log(val);\n\t\t},\n\t\trenderContent(h, { node, data, store }) {\n\t\t return (\n\t\t {\n\t\t this.show = true\n\t\t }}\n\t\t on-mouseout={() => {\n\t\t this.show = false\n\t\t }}\n\t\t >\n\t\t {data.majorName}\n\t\t \n\t\t this.remove(data)}\n\t\t >\n\t\t 删除\n\t\t \n\t\t \n\t\t \n\t\t )\n\t\t},\n\t\tremove(val){\n\t\t\tconsole.log(val);\n\t\t\tthis.selectUser.forEach((u,ui)=>{\n\t\t\t\tif(u.majorId==val.majorId){\n\t\t\t\t\tthis.selectUser.splice(ui,1)\n\t\t\t\t}\n\t\t\t})\n\t\t\tthis.userInfoVos = JSON.parse(JSON.stringify(this.selectUser))\n\t\t\tthis.userlength = this.selectUser.length\n\t\t\tthis.loadData(1)\n\t\t}\n\n\n\n\t}\n}\n",null]}