修改取值范围

This commit is contained in:
2026-01-08 09:26:02 +08:00
parent cc05808c6e
commit 5f65ed4874

View File

@@ -429,7 +429,7 @@
<el-input-number v-model="item.value"
size="small"
style="width:95px"
placeholder="请输入" />
placeholder="请输入" disabled="true"/>
</el-form-item>
</el-form>
<div style="text-align:right">
@@ -442,7 +442,7 @@
<el-button type="success" size="small" @click="messageTest" link><el-icon><Message /></el-icon>短信试发</el-button>
<el-button @click="settingTimeDialogVisible = false" size="small">取消</el-button>
<el-button type="primary" @click="settingTime" size="small">确定</el-button>
<el-button type="primary" @click="settingTime" size="small" disabled="true">确定</el-button>
</div>
</template>
</el-dialog>
@@ -816,9 +816,10 @@
if (type === 'CPU') {
if (cpuAvg >= 85) {
return 'exception';
} else if (cpuMax >= 90 && cpuAvg < 85) {
//} else if (cpuMax >= 90 && cpuAvg < 85) {
} else if (cpuAvg >= 80) {
return 'warning';
} else if (cpuMax < 90) {
} else {//if (cpuMax < 90) {
return 'success';
}
return null
@@ -826,9 +827,10 @@
if (cpuAvg >= 85) {
return 'danger';
} else if (cpuMax >= 90 && cpuAvg < 85) {
//} else if (cpuMax >= 90 && cpuAvg < 85) {
} else if (cpuAvg >= 80) {
return 'warning';
} else if (cpuMax < 90) {
} else {//if (cpuMax < 90) {
return 'success';
}
// 通用处理