Commit 96b44265 authored by 季圣华's avatar 季圣华
Browse files

去掉多余的api地址

parent 03984841
......@@ -35,7 +35,6 @@
</template>
<script>
import { queryDepartTreeList } from '@/api/api'
export default {
name: 'JSelectDepartModal',
props:['modalWidth','multi','rootOpened','departId'],
......@@ -53,7 +52,6 @@
}
},
created(){
this.loadDepart();
},
watch:{
departId(){
......@@ -76,19 +74,6 @@
this.checkedRows=[]
this.checkedKeys=[]
},
loadDepart(){
queryDepartTreeList().then(res=>{
if(res.success){
let arr = [...res.result]
this.reWriterWithSlot(arr)
this.treeData = arr
this.initDepartComponent()
if(this.rootOpened){
this.initExpandedKeys(res.result)
}
}
})
},
initDepartComponent(){
let names = ''
if(this.departId){
......
......@@ -56,7 +56,7 @@
<script>
import {filterObj} from '@/utils/util'
import {queryDepartTreeList, getUserList, queryUserByDepId} from '@/api/api'
import {getUserList, queryUserByDepId} from '@/api/api'
export default {
name: 'JSelectUserByDepModal',
......@@ -298,13 +298,6 @@
})
},
queryDepartTree() {
queryDepartTreeList().then((res) => {
if (res.success) {
this.departTree = res.result;
// 默认展开父节点
this.expandedKeys = this.departTree.map(item => item.id)
}
})
},
modalFormOk() {
this.loadData();
......
Supports Markdown
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