style:黑色主题下的样式调整
This commit is contained in:
@@ -605,3 +605,6 @@ textarea {
|
||||
border-color: $--border-color-light;
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
.el-tabs--border-card {
|
||||
background: $--background-color-empty;
|
||||
}
|
||||
|
||||
@@ -270,6 +270,8 @@ export default {
|
||||
case 'alertRule' : return 'nz-icon monitorColor nz-icon-Alertrule'
|
||||
case 'alertMessage' : return 'nz-icon monitorColor nz-icon-overview-alert'
|
||||
case 'agent' : return 'nz-icon monitorColor nz-icon-agent'
|
||||
case 'assetMeta' : return 'nz-icon monitorColor nz-icon-label'
|
||||
case 'model' : return 'nz-icon monitorColor nz-icon-model'
|
||||
}
|
||||
return ' '
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<!-- 值 -->
|
||||
<div class="condition__value">
|
||||
<div v-if="meta.valueIsEditing">
|
||||
<el-input v-model="meta.value" size="mini" @blur="valueBlur(meta,index)" ref="valueInput" @keyup.enter.native="valueBlur(meta,index)"></el-input>
|
||||
<el-input v-model="meta.value" size="mini" @blur="valueBlur(meta,index)" ref="valueInput" @keyup.enter.native="valueEnter(meta,index)"></el-input>
|
||||
</div>
|
||||
<div v-else @click="valueClick(meta,index)" :style="`padding:${meta.value ? 0 : 10}px`">{{meta.value}}</div>
|
||||
</div>
|
||||
@@ -194,7 +194,23 @@ export default {
|
||||
this.$refs.operSelect[0].focus()
|
||||
})
|
||||
},
|
||||
valueEnter (meta, index) {
|
||||
console.log(123)
|
||||
meta.valueIsEditing = false
|
||||
for (let i = 0; i < this.rule.length; i++) {
|
||||
const item = this.rule[i]
|
||||
const reg = new RegExp(item.regex)
|
||||
if (!reg.test(meta.value)) {
|
||||
meta.value = ''
|
||||
// this.$message.error(this.$t('FILTER_PROJECT_IS_NULL'))
|
||||
break
|
||||
}
|
||||
}
|
||||
this.$emit('update:valueList', this.metaList)
|
||||
this.$emit('change')
|
||||
},
|
||||
valueBlur (meta, index, type) {
|
||||
console.log(456)
|
||||
meta.valueIsEditing = false
|
||||
for (let i = 0; i < this.rule.length; i++) {
|
||||
const item = this.rule[i]
|
||||
|
||||
@@ -76,10 +76,10 @@ export default {
|
||||
text: this.$t('dashboard.panel.noDate')
|
||||
},
|
||||
timeData: [
|
||||
{
|
||||
id: 0,
|
||||
text: this.$t('dashboard.panel.customTimeRange')
|
||||
},
|
||||
// {
|
||||
// id: 0,
|
||||
// text: this.$t('dashboard.panel.customTimeRange')
|
||||
// },
|
||||
{
|
||||
id: 12,
|
||||
text: this.$t('dashboard.panel.noDate')
|
||||
|
||||
Reference in New Issue
Block a user