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