Commit 7279fa07 authored by 张莎莎's avatar 张莎莎

提交

parent a6a4db2c
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('common.keyword')"> <el-form-item :label="$t('common.keyword')">
<el-input v-model="listQuery.keyword" :placeholder="$t('common.enterKeyword')" <el-input v-model="listQuery.keyword" placeholder="请输入部门名称查询"
clearable @keyup.enter.native="search()" /> clearable @keyup.enter.native="search()" />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
this.treeLoading = true; this.treeLoading = true;
this.organizeId=this.$store.state.user.userInfo.organizeId; this.organizeId=this.$store.state.user.userInfo.organizeId;
if(this.organizeId=='96240625-934F-490B-8AA6-0BC775B18468'){ if(this.organizeId=='96240625-934F-490B-8AA6-0BC775B18468'){
getOrganizeList().then(res => { getOrganizeList({'hidden':'1'}).then(res => {
this.treeData = res.data.list this.treeData = res.data.list
this.$nextTick(() => { this.$nextTick(() => {
if (!this.treeData.length) { if (!this.treeData.length) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('common.keyword')"> <el-form-item :label="$t('common.keyword')">
<el-input v-model="listQuery.keyword" :placeholder="$t('common.enterKeyword')" <el-input v-model="listQuery.keyword" placeholder="请输入名称查询"
clearable @keyup.enter.native="search()" /> clearable @keyup.enter.native="search()" />
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('common.keyword')"> <el-form-item :label="$t('common.keyword')">
<el-input v-model="listQuery.keyword" :placeholder="$t('common.enterKeyword')" <el-input v-model="listQuery.keyword" placeholder="请输入岗位名称查询"
clearable @keyup.enter.native="search()" /> clearable @keyup.enter.native="search()" />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
this.organizeId=this.$store.state.user.userInfo.organizeId; this.organizeId=this.$store.state.user.userInfo.organizeId;
if(this.organizeId=='96240625-934F-490B-8AA6-0BC775B18468'){ if(this.organizeId=='96240625-934F-490B-8AA6-0BC775B18468'){
getOrganizeList().then(res => { getOrganizeList({'hidden':'1'}).then(res => {
/* let topItem = { /* let topItem = {
fullName: "全部", fullName: "全部",
hasChildren: true, hasChildren: true,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('common.keyword')"> <el-form-item :label="$t('common.keyword')">
<el-input v-model="listQuery.keyword" placeholder="请输入账号、姓名、性别或者手机号查询" <el-input v-model="listQuery.keyword" placeholder="请输入姓名或者手机号查询"
clearable @keyup.enter.native="search()" /> clearable @keyup.enter.native="search()" />
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</div> </div>
<div class="transfer-pane__body"> <div class="transfer-pane__body">
<el-tree :data="treeData" :props="props" check-on-click-node <el-tree :data="treeData" :props="props" check-on-click-node
:expand-on-click-node="false" default-expand-all @node-click="handleNodeClick" :expand-on-click-node="false" @node-click="handleNodeClick"
class="JNPF-common-el-tree" node-key="id" v-loading="loading" ref="tree" class="JNPF-common-el-tree" node-key="id" v-loading="loading" ref="tree"
:filter-node-method="filterNode"> :filter-node-method="filterNode">
<span class="custom-tree-node" slot-scope="{ node, data }"> <span class="custom-tree-node" slot-scope="{ node, data }">
...@@ -243,11 +243,10 @@ export default { ...@@ -243,11 +243,10 @@ export default {
this.allList = this.treeToArray(this.treeData)*/ this.allList = this.treeToArray(this.treeData)*/
let organizeId=this.$store.state.user.userInfo.organizeId; let organizeId=this.$store.state.user.userInfo.organizeId;
this.loading=false; this.loading=false;
/* if(organizeId=='96240625-934F-490B-8AA6-0BC775B18468'){ if(organizeId=='96240625-934F-490B-8AA6-0BC775B18468'){
getOrganize(organizeId).then(res => { getOrganizeList({'hidden':'1'}).then(res => {
/!* this.treeData = res.data.list *!/
console.log(res) console.log(res)
function removeDepartments(data) { /* function removeDepartments(data) {
// 遍历数组中的每个对象 // 遍历数组中的每个对象
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
const item = data[i]; const item = data[i];
...@@ -270,14 +269,14 @@ export default { ...@@ -270,14 +269,14 @@ export default {
} }
// 使用示例 // 使用示例
const processedData = removeDepartments(res.data); const processedData = removeDepartments(res.data.list);
console.log(processedData); console.log(processedData); */
this.treeData=processedData; this.treeData=res.data.list;
this.allList = this.treeToArray(this.treeData) this.allList = this.treeToArray(this.treeData)
this.loading=false; this.loading=false;
}) })
}else{ */ }else{
getOrganize(organizeId).then(res => { getOrganize(organizeId).then(res => {
console.log(res,'ggggggggggg') console.log(res,'ggggggggggg')
this.treeData = res.data; this.treeData = res.data;
...@@ -286,7 +285,7 @@ export default { ...@@ -286,7 +285,7 @@ export default {
}) })
/* } */ }
}, },
treeToArray(treeData) { treeToArray(treeData) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment