| | |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-input v-if="row.isVisible===1" v-model="row.roletype_code" oninput="value=value.replace(/[^0-9a-zA-Z]/g,'')" placeholder="请输入" /> |
| | | <el-input |
| | | v-if="row.isVisible===1" |
| | | v-model="row.roletype_code" |
| | | oninput="value=value.replace(/[^0-9a-zA-Z]/g,'')" |
| | | placeholder="请输入" |
| | | /> |
| | | <div v-else> {{ row.roletype_code }}</div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | |
| | | this.PCTrue = res.data[0][0].is_delete === '0' |
| | | this.APPTrue = res.data[1][0].children.filter(item => item.is_delete === '0').length === 0 ? false : res.data[1][0].is_delete === '0' |
| | | |
| | | console.log(this.APPTrue, 1) |
| | | // '0'显示 '1' 不显示 过滤出相对应的菜单 |
| | | if (this.PCTrue) { |
| | | this.dialogFormRight.rightPCArr[0].children = this.dialogFormRight.rightPCArr[0].children.filter(item => item.is_delete === '0') |
| | |
| | | pcIsSelected2 = true |
| | | |
| | | const interval = setInterval(() => { |
| | | if ($("input[name='PC']").length > 0) { |
| | | if ($('input[name=\'PC\']').length > 0) { |
| | | waitFlag = true |
| | | } |
| | | if (waitFlag) { |
| | | clearInterval(interval) |
| | | this.$nextTick(() => { |
| | | $("input[name='PC']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'PC\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | }) |
| | | } |
| | | }, 100) |
| | |
| | | appIsSelected2 = true |
| | | |
| | | const interval = setInterval(() => { |
| | | if ($("input[name='APP']").length > 0) { |
| | | if ($('input[name=\'APP\']').length > 0) { |
| | | waitFlag = true |
| | | } |
| | | if (waitFlag) { |
| | | clearInterval(interval) |
| | | this.$nextTick(() => { |
| | | $("input[name='APP']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'APP\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | }) |
| | | } |
| | | }, 100) |
| | |
| | | appIsSelected2 = true |
| | | |
| | | const interval = setInterval(() => { |
| | | if ($("input[name='PC']").length > 0) { |
| | | if ($('input[name=\'PC\']').length > 0) { |
| | | waitFlag = true |
| | | } |
| | | if (waitFlag) { |
| | | clearInterval(interval) |
| | | this.$nextTick(() => { |
| | | $("input[name='PC']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $("input[name='APP']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'PC\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'APP\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | }) |
| | | } |
| | | }, 100) |
| | |
| | | pcIsSelected2 = true |
| | | |
| | | const interval = setInterval(() => { |
| | | if ($("input[name='PC']").length > 0) { |
| | | if ($('input[name=\'PC\']').length > 0) { |
| | | waitFlag = true |
| | | } |
| | | if (waitFlag) { |
| | | clearInterval(interval) |
| | | this.$nextTick(() => { |
| | | $("input[name='PC']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'PC\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | }) |
| | | } |
| | | }, 100) |
| | |
| | | appIsSelected2 = true |
| | | |
| | | const interval = setInterval(() => { |
| | | if ($("input[name='APP']").length > 0) { |
| | | if ($('input[name=\'APP\']').length > 0) { |
| | | waitFlag = true |
| | | } |
| | | if (waitFlag) { |
| | | clearInterval(interval) |
| | | this.$nextTick(() => { |
| | | $("input[name='APP']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'APP\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | }) |
| | | } |
| | | }, 100) |
| | |
| | | |
| | | this.$nextTick(() => { |
| | | if (item.name === 'PC') { |
| | | $("input[name='PC']").eq(0).prop('checked', false)// 自定义单选框回显 |
| | | $('input[name=\'PC\']').eq(0).prop('checked', false)// 自定义单选框回显 |
| | | } |
| | | if (item.name === 'APP') { |
| | | $("input[name='APP']").eq(0).prop('checked', false)// 自定义单选框回显 |
| | | $('input[name=\'APP\']').eq(0).prop('checked', false)// 自定义单选框回显 |
| | | } |
| | | // $("input[name='APP']").eq(0).prop('checked', false)// 自定义单选框回显 |
| | | // $('input:checkbox').eq(index).prop('checked', false)// 自定义单选框回显 |
| | |
| | | item.isSelected2 = true |
| | | this.$nextTick(() => { |
| | | if (item.name === 'PC') { |
| | | $("input[name='PC']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'PC\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | } |
| | | if (item.name === 'APP') { |
| | | $("input[name='APP']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'APP\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | } |
| | | // $('input:checkbox').eq(index).prop('checked', true)// 自定义单选框回显 |
| | | }) |
| | |
| | | item.isSelected2 = true |
| | | this.$nextTick(() => { |
| | | if (item.name === 'PC') { |
| | | $("input[name='PC']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'PC\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | } |
| | | if (item.name === 'APP') { |
| | | $("input[name='APP']").eq(0).prop('checked', true)// 自定义单选框回显 |
| | | $('input[name=\'APP\']').eq(0).prop('checked', true)// 自定义单选框回显 |
| | | } |
| | | // $('input:checkbox').eq(index).prop('checked', true)// 自定义单选框回显 |
| | | }) |
| | |
| | | <!--公共页面样式--> |
| | | <style lang="scss" scoped> |
| | | $main_color: #42b983; |
| | | ::v-deep .el-button--text{ |
| | | font-size: 14px ; |
| | | cursor: pointer ; |
| | | ::v-deep .el-button--text { |
| | | font-size: 14px; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .el-icon-share, .el-icon-delete, .el-icon-edit-outline { |
| | | color: $main_color; |
| | | cursor: pointer; |
| | |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | .tableFixed{ |
| | | ::v-deep .el-table__fixed-right{ |
| | | .tableFixed { |
| | | ::v-deep .el-table__fixed-right { |
| | | height: 100% !important; |
| | | } |
| | | ::v-deep .el-table__fixed{ |
| | | |
| | | ::v-deep .el-table__fixed { |
| | | height: 100% !important; |
| | | } |
| | | } |
| | | </style> |
| | | <style> |
| | | .osloading{ |
| | | .osloading { |
| | | font-size: 26px !important; |
| | | } |
| | | |
| | | .el-loading-text{ |
| | | .el-loading-text { |
| | | font-size: 26px !important; |
| | | } |
| | | |
| | | .el-table .custom-row { |
| | | background: #f8f8fa; |
| | | } |