style:修改account role下拉样式错乱的问题

This commit is contained in:
zhangyu
2021-02-25 09:50:14 +08:00
parent 60bac4efac
commit 726a27cad8
2 changed files with 5 additions and 2 deletions

View File

@@ -1620,11 +1620,14 @@ li{
margin-bottom: 0 !important;
}
.config-dropdown { /* 若宽度不合适,自行增加新类覆盖宽度 */
width: 75px;
width: 490px;
}
.asset-dropdown {
width: 370px;
}
.threshold-dropdown{
width: 75px;
}
.asset-dropdown .el-select-dropdown__item {
position: relative;
}

View File

@@ -33,7 +33,7 @@
<!--threshold-->
<el-form-item :label="$t('alert.config.threshold')" prop="threshold" style="display: inline-block;">
<el-input type="text" placeholder="" v-model="editAlertRule.threshold" size="small" id="alert-box-input-threshold">
<el-select popper-class="config-dropdown" v-model="editAlertRule.operator" placeholder="" size="small" id="alert-box-input-operator" slot="prepend" class="input-with-select">
<el-select popper-class="config-dropdown threshold-dropdown" v-model="editAlertRule.operator" placeholder="" size="small" id="alert-box-input-operator" slot="prepend" class="input-with-select">
<el-option :id="'operator-'+item.key" v-for="item in operators" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-input>