This commit is contained in:
骆乐 2022-06-29 17:51:19 +08:00
parent 2b5c3e51c8
commit ff255c7e94
3 changed files with 40 additions and 25 deletions

View File

@ -172,14 +172,19 @@
<div class="dialog_content">
<!-- default-expand-all -->
<!-- <div>项目模块</div> -->
<div>
<el-checkbox v-model="checkAll" @change="selectAll"></el-checkbox>全选
</div>
<!-- <div>
<el-checkbox
v-model="checkAll"
@change="selectAll">全选</el-checkbox>
</div> -->
<!-- :props="props" -->
<el-tree ref="tree"
v-bind="myTree"
node-key="authorityId"
:props="props"
:data="projectMenus"
show-checkbox
:default-expand-all="isExpand"
:filter-node-method="filterNode"
@check-change="handleCheckChange"
>
<span class="custom-tree-node" slot-scope="{ node, data }">
@ -236,7 +241,15 @@ export default {
},
data() {
return {
checkAll:false, //
myTree:{
data:[],
props: {
label: "name",
children: "menuList",
},
treeAllChildNode: [], //
checkAll:false, //
},
addEditForm: {
roleName: "",
roleDesc: "",
@ -271,10 +284,6 @@ export default {
// total: 0, //
// },
// count: 0,
props: {
label: "name",
children: "menuList",
},
projectMenus:[],
selectRoleMenus:[],
allOperateList:[],
@ -498,14 +507,15 @@ export default {
// console.log('',this.$refs.tree.getCheckedKeys());
},
//
selectAll(){
// if(this.checkAll){
// // console.log('111111',this.$refs)
// this.$refs.tree.setCheckedNodes(this.projectMenus);
// }else{
// this.$refs.tree.setCheckedKeys([])
// }
},
// selectAll(){
// if(this.checkAll){
// // for(let i = 0;)
// console.log('111111',this.$refs)
// this.$refs.tree.setCheckedNodes(this.projectMenus);
// }else{
// this.$refs.tree.setCheckedKeys([])
// }
// },
},
};
</script>

View File

@ -260,7 +260,7 @@
<el-form-item :label="$t('message.laborMange.workingState')">
<el-select
v-model="tableParameter.inserviceType"
style="width: 120px"
style="width: 100px"
>
<el-option
:label="$t('message.laborMange.all')"
@ -282,7 +282,7 @@
>
<el-select
v-model="tableParameter.codeState"
style="width: 120px"
style="width: 80px"
>
<el-option
:label="$t('message.laborMange.all')"
@ -308,14 +308,14 @@
</el-form-item>
<el-form-item :label="$t('message.laborMange.compellation')">
<el-input
style="width: 120px"
style="width: 100px"
v-model="tableParameter.workerName"
:placeholder="$t('message.laborMange.placeholder2')"
></el-input>
</el-form-item>
<el-form-item :label="$t('message.laborMange.IdNumber')">
<el-input
style="width: 120px"
style="width: 80px"
v-model="tableParameter.idCard"
:placeholder="$t('message.laborMange.placeholder2')"
></el-input>
@ -1870,10 +1870,12 @@ export default {
data.menuList.forEach((item)=>{
if(item.actionList){
item.actionList.forEach((item2)=>{
if(item2.actionCode = 'akey_issued' ){
this.key = true ;
// console.log('key',this.key)
if(item2.actionCode == 'akey_issued'){
this.key = false
} else {
this.key = true
}
console.log('this.key',this.key)
})
}
})

View File

@ -2461,9 +2461,12 @@ export default {
data.menuList.forEach((item)=>{
if(item.actionList){
item.actionList.forEach((item2)=>{
if(item2.actionCode = 'akey_issued'){
if(item2.actionCode == 'akey_issued'){
this.key = true
} else {
this.key = false
}
console.log('this.key',this.key)
})
}
})