前端BUG

This commit is contained in:
zhaotianfeng 2024-09-20 11:15:38 +08:00
parent 19f87e9461
commit 3c9c0b9c7f

View File

@ -2,7 +2,7 @@
<div class="app-container" style="padding: 0px"> <div class="app-container" style="padding: 0px">
<div class="tab-box"> <div class="tab-box">
<div class="f-box" v-for="(item,index) in tablist" :key="index" @click="activeindex=index,handleClick1" :class="{ 'active' :activeindex==index}">{{item.name}}</div> <div class="f-box" v-for="(item,index) in tablist" :key="index" @click="handleClick1(index)" :class="{ 'active' :activeindex==index}">{{item.name}}</div>
</div> </div>
<el-row style="padding: 20px"> <el-row style="padding: 20px">
@ -21,7 +21,7 @@
<el-tree <el-tree
:data="Thetree" :data="Thetree"
show-checkbox show-checkbox
indent="15" :indent=15
:props="defaultProps" :props="defaultProps"
@change="handleChange" @change="handleChange"
node-key="id" node-key="id"
@ -1127,7 +1127,7 @@ export default {
this.getList(); this.getList();
this.selectChildByDeptIdApi(); this.selectChildByDeptIdApi();
console.log("activeName",this.$route.query.activeName) console.log("参数",this.$route)
if (this.$route.query.activeName){ if (this.$route.query.activeName){
this.activeName = this.$route.query.activeName this.activeName = this.$route.query.activeName
if (this.activeName == 'list'){ if (this.activeName == 'list'){
@ -1582,12 +1582,21 @@ export default {
this.getDutyList() this.getDutyList()
} }
}, },
handleClick1() { handleClick1(index) {
console.log("1",this.activeName)
if (this.activeindex== 0){ console.log("index参数",index);
this.onlyGetUser() if (index || index==0){
this.activeindex=index;
} }
if (this.activeindex== 3){ console.log("选项",this.activeindex);
if (this.activeindex== 0){
}
if (this.activeindex== 1){
this.getList()
}
if (this.activeindex== 2){
this.getDutyList() this.getDutyList()
} }
}, },
@ -1825,7 +1834,7 @@ export default {
this.appedit(this.deptId) this.appedit(this.deptId)
console.log("fdfdnfdfdfddf",this.Thetree) console.log("fdfdnfdfdfddf",this.Thetree)
this.form.deptType = this.Thetree[0].deptType this.form.deptType = this.Thetree[0].deptType
this.queryParams1.storeId = this.Thetree[0].id this.queryParams1.deptId = this.Thetree[0].id
console.log("this.Thetree",this.Thetree[0]) console.log("this.Thetree",this.Thetree[0])
} }