Skip to content

Commit

Permalink
fix(alarm): add reloading method; add style for some components
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry authored and kerry-emqx committed Nov 15, 2021
1 parent abc7b57 commit eda8292
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emqx-dashboard-web-new",
"version": "0.2.0",
"version": "0.3.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
36 changes: 36 additions & 0 deletions src/style/normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,40 @@
color: #8d96a2ff;
border: none;
}
}

.el-message {
padding: 16px;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
background: #fff;
border: none;
&--success {
.el-message__content,
.el-icon-success {
color: var(--el-color-primary)
}
}
}

.el-card {
--el-card-border-color:#ececefff;
}

.el-loading-parent--relative {
border-width: 1px;
&::before {
height: 0;
}
.el-loading-mask {
z-index: 99;
}
}

.el-form{
&--label-top{
.el-form-item__label{
padding:0;
}
}
}
4 changes: 1 addition & 3 deletions src/views/Alarm/Alarm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ export default {
};
},
mounted() {
// this.$refs.p1.$emit("loadPage");
// this.$refs.p2.$emit("loadPage");
this.loadData();
this.loadHData();
},
Expand All @@ -188,8 +186,8 @@ export default {
let res = await clearHistoryAlarm().catch(() => {});
if (res) {
this.$message.success(this.$t("Alarm.clearSuccess"));
this.loadHData();
}
// this.$refs.p2.$emit("loadPage");
},
dateFormat: dateFormat,
async loadData(params = {}) {
Expand Down

0 comments on commit eda8292

Please sign in to comment.