[update] 按钮权限
This commit is contained in:
@@ -342,15 +342,6 @@
|
|||||||
this.LoginUserType = res.result
|
this.LoginUserType = res.result
|
||||||
this.getTableList()
|
this.getTableList()
|
||||||
this.$emit('LoginUserType', this.LoginUserType)
|
this.$emit('LoginUserType', this.LoginUserType)
|
||||||
res.result.split(',').forEach((item, index) => {
|
|
||||||
if (item === 'homo') {
|
|
||||||
this.homo = 1
|
|
||||||
} else if (item === 'sdt') {
|
|
||||||
this.sdt = 1
|
|
||||||
} else if (item === 'dre') {
|
|
||||||
this.dre = 1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
<span class="title-text-text" :title="$t('roleSwitching')">{{$t('roleSwitching')}}</span>
|
<span class="title-text-text" :title="$t('roleSwitching')">{{$t('roleSwitching')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModelComment itemitem" :prop="'roleSwitchingCode'">
|
<a-form-model-item class="itemModelComment itemitem" :prop="'roleSwitchingCode'">
|
||||||
<a-select allowClear mode="multiple" :placeholder="$t('pleaseSelect')+$t('roleSwitching')"
|
<a-select allowClear :placeholder="$t('pleaseSelect')+$t('roleSwitching')"
|
||||||
v-model="formInlineRoleSwitching.roleSwitchingCode">
|
v-model="formInlineRoleSwitching.roleSwitchingCode">
|
||||||
<a-select-option v-for="(item, key) in RoleType" :key="key" :value="item.value">
|
<a-select-option v-for="(item, key) in RoleType" :key="key" :value="item.value">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.label " >
|
<span style="display: inline-block;width: 100%" :title=" item.label " >
|
||||||
@@ -407,7 +407,6 @@ export default {
|
|||||||
this.visibleRoleSwitching = true
|
this.visibleRoleSwitching = true
|
||||||
},
|
},
|
||||||
GetgetLoginUserType() {
|
GetgetLoginUserType() {
|
||||||
console.log('ooo')
|
|
||||||
this.$refs.CollectionTabel.getLoginUserType()
|
this.$refs.CollectionTabel.getLoginUserType()
|
||||||
},
|
},
|
||||||
GetgetTableList() {
|
GetgetTableList() {
|
||||||
@@ -723,14 +722,12 @@ export default {
|
|||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
LoginUserType(val) {
|
LoginUserType(val) {
|
||||||
val.split(',').forEach((item,index) => {
|
this.RoleType = val
|
||||||
if(item === 'homo') {
|
val.forEach((item) => {
|
||||||
this.homo = 1
|
console.log(item,'pppp')
|
||||||
} else if(item === 'sdt') {
|
// if(item) {
|
||||||
this.sdt = 1
|
//
|
||||||
} else if(item === 'dre') {
|
// }
|
||||||
this.dre = 1
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 表格所选中得行内容
|
// 表格所选中得行内容
|
||||||
@@ -1286,7 +1283,7 @@ export default {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
height: 42px;
|
height: 42px;
|
||||||
line-height: 48px;
|
line-height: 36px;
|
||||||
}
|
}
|
||||||
.box-input .ant-select-selection {
|
.box-input .ant-select-selection {
|
||||||
height: 38px !important;
|
height: 38px !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user