fix: 时间选择器 样式调整 以及 修改已登录的用户 未获取用户主题的问题
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
line-height: 40px;
|
||||
height: 40px;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid $--border-color-base;
|
||||
border: 1px solid $--border-color-light;
|
||||
border-radius: $--border-radius-small;
|
||||
}
|
||||
.calendar.calendar--small {
|
||||
@@ -122,12 +122,12 @@
|
||||
padding: 0 10px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
height: 26px;
|
||||
height: 30px;
|
||||
background: $--background-color-empty;
|
||||
border: 1px solid $--border-color-light;
|
||||
//border: 1px solid $--border-color-light;
|
||||
box-shadow: 0 2px 4px 0 rgba(51, 51, 51, 0.02);
|
||||
border-radius: 2px;
|
||||
line-height: 26px;
|
||||
line-height: 30px;
|
||||
transition: width .3s;
|
||||
|
||||
.cn-icon {
|
||||
|
||||
@@ -76,7 +76,9 @@
|
||||
class="input-box"
|
||||
@click="dropDownVisible = false"
|
||||
>
|
||||
<div :id="'editor'+index"
|
||||
<div
|
||||
:id="'editor'+index"
|
||||
v-if="type !== 'log'"
|
||||
class="not-fixed-height no-resize no-close"
|
||||
>
|
||||
</div>
|
||||
@@ -84,7 +86,8 @@
|
||||
class="not-fixed-height no-resize no-close"
|
||||
>
|
||||
</div> -->
|
||||
<!-- <el-input
|
||||
<el-input
|
||||
v-if="type == 'log'"
|
||||
:id="inputId"
|
||||
v-model="expressionList[index]"
|
||||
:autosize="{ minRows: 1, maxRows: 6 }"
|
||||
@@ -93,7 +96,7 @@
|
||||
@input="metricKeyDown"
|
||||
@keyup.enter.native="expressionChange"
|
||||
ref="elInput"
|
||||
></el-input> -->
|
||||
></el-input>
|
||||
|
||||
<div v-if="errorMsg" class="append-msg error">
|
||||
<span>{{ errorMsg }}</span>
|
||||
@@ -231,7 +234,9 @@
|
||||
@click="dropDownVisible = false"
|
||||
v-if="plugins.indexOf('metric-input') > -1"
|
||||
>
|
||||
<div :id="'editor'+index"
|
||||
<div
|
||||
:id="'editor'+index"
|
||||
v-if="type !== 'log'"
|
||||
class="not-fixed-height no-resize no-close"
|
||||
>
|
||||
</div>
|
||||
@@ -240,8 +245,9 @@
|
||||
ref="elInput"
|
||||
|
||||
></div> -->
|
||||
<!-- <el-input
|
||||
<el-input
|
||||
v-model="expressionList[index]"
|
||||
v-if="type === 'log'"
|
||||
@input="metricKeyDown"
|
||||
type="textarea"
|
||||
:maxlength="styleType === 3 ? 512 : 4096"
|
||||
@@ -249,7 +255,7 @@
|
||||
:autosize="{ minRows: 1, maxRows: 6 }"
|
||||
class="not-fixed-height no-resize"
|
||||
ref="elInput"
|
||||
></el-input> -->
|
||||
></el-input>
|
||||
<div class="append-msg error" v-if="errorMsg">
|
||||
<span>{{ errorMsg }}</span>
|
||||
</div>
|
||||
@@ -528,8 +534,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.initCodeMirror()
|
||||
if (!this.fromFatherData && this.type !== 'logs') {
|
||||
if (!this.fromFatherData && this.type !== 'log') {
|
||||
this.queryMetrics()
|
||||
}
|
||||
},
|
||||
@@ -1092,7 +1097,7 @@ export default {
|
||||
// console.log(n, n[this.index])
|
||||
this.codeMirrorValue[this.index] = n[this.index]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// codeMirrorValue:{
|
||||
// deep:true,
|
||||
@@ -1103,6 +1108,15 @@ export default {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
type: {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
handler(n) {
|
||||
if (n !== 'log') {
|
||||
this.initCodeMirror()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -143,6 +143,8 @@ router.beforeEach((to, from, next) => {
|
||||
})
|
||||
})
|
||||
} else {
|
||||
const theme = localStorage.getItem(`nz-user-${localStorage.getItem('nz-user-id')}-theme`) || 'light'
|
||||
document.getElementsByTagName('body')[0].setAttribute('class', 'theme-' + theme)
|
||||
resolve()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user