commit
This commit is contained in:
@@ -3,11 +3,26 @@
|
||||
<div id="mechanism-manage" :class="{ 'tree-close': sideClose }" class="v-class">
|
||||
<div class="tree-content" :class="{ 'tree-closed': sideClose }">
|
||||
<div class="tree">
|
||||
<!-- @keyup.enter.native="searchPeople"-->
|
||||
<el-input
|
||||
class="filter-tree-input"
|
||||
placeholder="输入关键字进行过滤"
|
||||
v-model="filterText">
|
||||
</el-input>
|
||||
<!-- <el-tree-->
|
||||
<!-- node-key="id"-->
|
||||
<!-- :data="treeData"-->
|
||||
<!-- :props="defaultProps"-->
|
||||
<!-- :default-checked-keys="nodeList"-->
|
||||
<!-- :current-node-key="nodeKeyId"-->
|
||||
<!-- highlight-current-->
|
||||
<!-- check-strictly-->
|
||||
<!-- :expand-on-click-node="false"-->
|
||||
<!-- ref="tree"-->
|
||||
<!-- :load="loadNode"-->
|
||||
<!-- @node-click="handleNodeClick"-->
|
||||
<!-- lazy>-->
|
||||
<!-- </el-tree>-->
|
||||
<el-tree
|
||||
:data="treeData"
|
||||
:props="defaultProps"
|
||||
@@ -15,6 +30,7 @@
|
||||
node-key="id"
|
||||
:filter-node-method="filterNode"
|
||||
highlight-current
|
||||
default-expand-all
|
||||
ref="tree"
|
||||
:expand-on-click-node="false"
|
||||
@node-click="handleNodeClick">
|
||||
@@ -274,7 +290,6 @@ export default {
|
||||
}, {}, res => {
|
||||
if (res.ok) {
|
||||
this.$message.success('配置岗位成功')
|
||||
|
||||
this.modalPost = false
|
||||
this.getData()
|
||||
}
|
||||
@@ -350,6 +365,41 @@ export default {
|
||||
this.id = data.id
|
||||
this.getData()
|
||||
},
|
||||
// searchPeople(){
|
||||
// console.log(this.filterText);
|
||||
// },
|
||||
// loadNode(node, resolve) {
|
||||
// if (node.level === 0) {
|
||||
// return resolve(this.treeData);
|
||||
// }
|
||||
// this.getChildren(node, resolve)
|
||||
// },
|
||||
// getChildren (node, resolve) {
|
||||
// this.id = node.key
|
||||
// this.getData()
|
||||
// this.$http.get('SarInstitution/institution/getNext', {
|
||||
// institutionId: node.key
|
||||
// }, {}, res => {
|
||||
// let people = [];
|
||||
// res.forEach(item => {
|
||||
// if(item.disabled === true){
|
||||
// people.push(item)
|
||||
// }
|
||||
// })
|
||||
// resolve(people)
|
||||
// })
|
||||
// },
|
||||
// getTree() {
|
||||
// this.$http.get('SarInstitution/institution/getFirstInstitution', {}, {
|
||||
// _this: this,
|
||||
// loading: 'treeLoading'
|
||||
// }, res => {
|
||||
// this.treeData = res
|
||||
// this.nodeKeyId = this.treeData[0].id
|
||||
// this.treeLoading = false
|
||||
// }, e => {
|
||||
// })
|
||||
// },
|
||||
getTree() {
|
||||
this.$http.get('SarInstitution/institution', {}, {
|
||||
_this: this,
|
||||
@@ -378,7 +428,6 @@ export default {
|
||||
_this: this,
|
||||
loading: 'Loading'
|
||||
}, res => {
|
||||
console.log(res.data)
|
||||
res.data.records.forEach((item) => {
|
||||
let NameList = ''
|
||||
item.positions.forEach((items) => {
|
||||
|
||||
Reference in New Issue
Block a user