style:黑色主题下的样式调整
This commit is contained in:
@@ -605,3 +605,6 @@ textarea {
|
|||||||
border-color: $--border-color-light;
|
border-color: $--border-color-light;
|
||||||
color: $--color-text-secondary;
|
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 'alertRule' : return 'nz-icon monitorColor nz-icon-Alertrule'
|
||||||
case 'alertMessage' : return 'nz-icon monitorColor nz-icon-overview-alert'
|
case 'alertMessage' : return 'nz-icon monitorColor nz-icon-overview-alert'
|
||||||
case 'agent' : return 'nz-icon monitorColor nz-icon-agent'
|
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 ' '
|
return ' '
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
<!-- 值 -->
|
<!-- 值 -->
|
||||||
<div class="condition__value">
|
<div class="condition__value">
|
||||||
<div v-if="meta.valueIsEditing">
|
<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>
|
||||||
<div v-else @click="valueClick(meta,index)" :style="`padding:${meta.value ? 0 : 10}px`">{{meta.value}}</div>
|
<div v-else @click="valueClick(meta,index)" :style="`padding:${meta.value ? 0 : 10}px`">{{meta.value}}</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -194,7 +194,23 @@ export default {
|
|||||||
this.$refs.operSelect[0].focus()
|
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) {
|
valueBlur (meta, index, type) {
|
||||||
|
console.log(456)
|
||||||
meta.valueIsEditing = false
|
meta.valueIsEditing = false
|
||||||
for (let i = 0; i < this.rule.length; i++) {
|
for (let i = 0; i < this.rule.length; i++) {
|
||||||
const item = this.rule[i]
|
const item = this.rule[i]
|
||||||
|
|||||||
@@ -76,10 +76,10 @@ export default {
|
|||||||
text: this.$t('dashboard.panel.noDate')
|
text: this.$t('dashboard.panel.noDate')
|
||||||
},
|
},
|
||||||
timeData: [
|
timeData: [
|
||||||
{
|
// {
|
||||||
id: 0,
|
// id: 0,
|
||||||
text: this.$t('dashboard.panel.customTimeRange')
|
// text: this.$t('dashboard.panel.customTimeRange')
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
id: 12,
|
id: 12,
|
||||||
text: this.$t('dashboard.panel.noDate')
|
text: this.$t('dashboard.panel.noDate')
|
||||||
|
|||||||
Reference in New Issue
Block a user