diff --git a/WebContent/WEB-INF/jsp/app.jsp b/WebContent/WEB-INF/jsp/app.jsp
index 66d61a4c75..1e332420c5 100644
--- a/WebContent/WEB-INF/jsp/app.jsp
+++ b/WebContent/WEB-INF/jsp/app.jsp
@@ -5,7 +5,7 @@
-
+
SCADA-LTS
diff --git a/WebContent/WEB-INF/jsp/include/vue/vue-charts.js.jsp b/WebContent/WEB-INF/jsp/include/vue/vue-charts.js.jsp
deleted file mode 100644
index fdbae4964e..0000000000
--- a/WebContent/WEB-INF/jsp/include/vue/vue-charts.js.jsp
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/WebContent/WEB-INF/jsp/include/vue/vue-view.js.jsp b/WebContent/WEB-INF/jsp/include/vue/vue-view.js.jsp
index a59de62b1d..34f3f1475d 100644
--- a/WebContent/WEB-INF/jsp/include/vue/vue-view.js.jsp
+++ b/WebContent/WEB-INF/jsp/include/vue/vue-view.js.jsp
@@ -1,5 +1,4 @@
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/jsp/views.jsp b/WebContent/WEB-INF/jsp/views.jsp
index 411ce44e9d..56053f67c5 100644
--- a/WebContent/WEB-INF/jsp/views.jsp
+++ b/WebContent/WEB-INF/jsp/views.jsp
@@ -296,5 +296,4 @@
<%@ include file="/WEB-INF/jsp/include/vue/vue-app.js.jsp"%>
-<%@ include file="/WEB-INF/jsp/include/vue/vue-view.js.jsp"%>
-<%@ include file="/WEB-INF/jsp/include/vue/vue-charts.js.jsp"%>
\ No newline at end of file
+<%@ include file="/WEB-INF/jsp/include/vue/vue-view.js.jsp"%>
\ No newline at end of file
diff --git a/scadalts-ui/src/apps/App.vue b/scadalts-ui/src/apps/App.vue
index a4c601e299..1ae8b0b927 100644
--- a/scadalts-ui/src/apps/App.vue
+++ b/scadalts-ui/src/apps/App.vue
@@ -68,8 +68,7 @@
diff --git a/scadalts-ui/src/main.js b/scadalts-ui/src/main.js
index 58972c97c1..7a0d9195b7 100644
--- a/scadalts-ui/src/main.js
+++ b/scadalts-ui/src/main.js
@@ -83,17 +83,21 @@ Vue.use(svgJS);
Vue.config.devtools = true;
-new Vue({
- router,
- store,
- i18n,
- vuetify,
- render: (h) => h(App),
-}).$mount('#app');
+if (window.location.href.indexOf('app.shtm') != -1) {
+ console.log('app.shtm');
+ new Vue({
+ router,
+ store,
+ i18n,
+ vuetify,
+ render: (h) => h(App),
+ }).$mount('#app');
+}
Vue.use(uiv);
if (window.document.getElementById('app-isalive') != undefined) {
+ console.log('app-isalive');
const isAliveDom = document.getElementById('app-isalive');
new Vue({
store,
@@ -111,8 +115,9 @@ if (window.document.getElementById('app-isalive') != undefined) {
}).$mount('#app-isalive');
}
-const watchdogId = "app-isalive2";
-if (!!window.document.getElementById(watchdogId)) {
+const watchdogId = 'app-isalive2';
+if (window.document.getElementById(watchdogId) != undefined) {
+ console.log(watchdogId);
const watchdogEl = document.getElementById(watchdogId);
new Vue({
store,
@@ -137,6 +142,7 @@ if (!!window.document.getElementById(watchdogId)) {
for (let i = 0; i < 20; i++) {
const cmpId = `app-cmp-${i}`;
if (window.document.getElementById(cmpId) != undefined) {
+ console.log('cmpId: ' + cmpId);
new Vue({
vuetify,
render: (h) =>
@@ -161,6 +167,7 @@ for (let i = 0; i < 10; i++) {
const cmpId = `app-cmp2-${i}`;
const el = window.document.getElementById(cmpId);
if (el != undefined) {
+ console.log('cmpId: ' + cmpId);
new Vue({
store,
i18n,
@@ -187,6 +194,7 @@ for (let i = 0; i < 10; i++) {
const cmpId = `app-cmp3-${i}`;
const el = window.document.getElementById(cmpId);
if (el != undefined) {
+ console.log('cmpId: ' + cmpId);
new Vue({
store,
i18n,
@@ -213,6 +221,7 @@ for (let i = 0; i < 10; i++) {
if (window.document.getElementById('simple-component-svg') != undefined) {
+ console.log('simple-component-svg');
new Vue({
render: (h) =>
h(SimpleComponentSVG, {
@@ -235,12 +244,14 @@ if (window.document.getElementById('simple-component-svg') != undefined) {
}
if (window.document.getElementById('sleep-reactivation-ds') != undefined) {
+ console.log('sleep-reactivation-ds');
new Vue({
render: (h) => h(SleepAndReactivationDS),
}).$mount('#sleep-reactivation-ds');
}
if (window.document.getElementById('sms-domain') != undefined) {
+ console.log('sms-domain');
new Vue({
vuetify,
render: (h) => h(SMSDomain),
@@ -248,6 +259,7 @@ if (window.document.getElementById('sms-domain') != undefined) {
}
if (window.document.getElementById('export-import-ph') != undefined) {
+ console.log('export-import-ph');
new Vue({
render: (h) => h(ExportImportPointHierarchy),
}).$mount('#export-import-ph');
@@ -257,6 +269,7 @@ for (let x = 0; x < 10; x++) {
const chartId = `chart-line-${x}`;
const el = window.document.getElementById(chartId);
if (el != undefined) {
+ console.log('chartId: ' + chartId);
new Vue({
render: (h) =>
h(LineChartComponent, {
@@ -292,6 +305,7 @@ for (let x = 0; x < 10; x++) {
const chartId = `chart-range-${x}`;
const el = window.document.getElementById(chartId);
if (el != undefined) {
+ console.log('chartId: ' + chartId);
new Vue({
store,
vuetify,
@@ -323,6 +337,7 @@ for (let x = 0; x < 10; x++) {
const baseId = `simple-table-${x}`;
const el = window.document.getElementById(baseId);
if (el != undefined) {
+ console.log('baseId: ' + baseId);
new Vue({
store,
vuetify,
@@ -345,6 +360,7 @@ for (let x = 0; x < 10; x++) {
}
if (window.document.getElementById('refresh-view') != undefined) {
+ console.log('refresh-view');
new Vue({
store,
render: (h) =>
@@ -360,6 +376,7 @@ if (window.document.getElementById('refresh-view') != undefined) {
}
if (window.document.getElementById('live-alarms') != undefined) {
+ console.log('live-alarms');
console.log(
`test+ ${window.document
.getElementById('live-alarms')
diff --git a/scadalts-ui/src/views/Alarms/EventList.vue b/scadalts-ui/src/views/Alarms/EventList.vue
index a76394bd7a..418790dadf 100644
--- a/scadalts-ui/src/views/Alarms/EventList.vue
+++ b/scadalts-ui/src/views/Alarms/EventList.vue
@@ -727,7 +727,6 @@ export default {
}
// document.getElementsByClassName('v-data-footer__pagination')[0].innerHTML=''
this.loading = false;
- await this.$store.dispatch('getHighestUnsilencedAlarmLevel');
},
async fetchEventSelected() {
this.loading = true;