diff --git a/src/assets/images/login-background.jpeg b/src/assets/images/login-background.jpeg new file mode 100644 index 0000000..67433e1 Binary files /dev/null and b/src/assets/images/login-background.jpeg differ diff --git a/src/assets/images/login-background.jpg b/src/assets/images/login-background1.jpg similarity index 100% rename from src/assets/images/login-background.jpg rename to src/assets/images/login-background1.jpg diff --git a/src/assets/images/login-background3.jpeg b/src/assets/images/login-background3.jpeg new file mode 100644 index 0000000..399cb39 Binary files /dev/null and b/src/assets/images/login-background3.jpeg differ diff --git a/src/assets/video/homepage.mp4 b/src/assets/video/homepage.mp4 new file mode 100644 index 0000000..ae43f45 Binary files /dev/null and b/src/assets/video/homepage.mp4 differ diff --git a/src/layout/index.vue b/src/layout/index.vue index 3ddb165..447b960 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -108,4 +108,6 @@ function setLayout() { .mobile .fixed-header { width: 100%; } + + \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index 349e6d4..b1215cf 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,6 +1,8 @@ @@ -73,6 +75,20 @@ function goTarget(url) { padding-inline-start: 40px; } } + + .home-page-video{ + position: fixed; + top: 50%; + left: 50%; + min-width: 100%; + min-height: 100%; + width: auto; + height: auto; + transform: translateX(-50%) translateY(-50%); + z-index: -100; +} + } + diff --git a/src/views/login.vue b/src/views/login.vue index fa61fc4..14af785 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -156,7 +156,7 @@ getCookie(); justify-content: center; align-items: center; height: 100%; - background-image: url("../assets/images/login-background.jpg"); + background-image: url("../assets/images/login-background.jpeg"); background-size: cover; } .title { diff --git a/src/views/model/alert/deviceparamalert.vue b/src/views/model/alert/deviceparamalert.vue index f322d5a..ba9266f 100644 --- a/src/views/model/alert/deviceparamalert.vue +++ b/src/views/model/alert/deviceparamalert.vue @@ -73,17 +73,17 @@ @click="handleDelete" >删除 - + - + @@ -586,7 +586,28 @@ function submitForm() { } /** 删除按钮操作 */ -function handleDelete(row) { +function handleDelete() { + const rows = proxy.$refs.deviceParamsTable.getSelectionRows(); + let names = ""; + let _ids = []; + rows.forEach(item=>{ + _ids.push(item.id); + if(names == ""){ + names = item.deviceName + item.paramName; + }else{ + names = names + "," + item.deviceName + item.paramName; + } + }) + proxy.$modal.confirm('是否确认删除设备参数名称为"' + names + '"的数据项?').then(function() { + return delAlert(_ids); + }).then(() => { + getList(); + proxy.$modal.msgSuccess("删除成功"); + }).catch(() => {}); +} + +/** 删除按钮操作 */ +function handleDeleteRow(row) { const _ids = row.id || ids.value; proxy.$modal.confirm('是否确认删除设备告警编号为"' + _ids + '"的数据项?').then(function() { return delAlert(_ids); diff --git a/src/views/register.vue b/src/views/register.vue index b51074c..b144dab 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -159,7 +159,7 @@ getCode(); justify-content: center; align-items: center; height: 100%; - background-image: url("../assets/images/login-background.jpg"); + background-image: url("../assets/images/login-background.jpeg"); background-size: cover; } .title {