Merge branch 'yjl_dev' into 'master'

大屏页面调整

See merge request !1
This commit is contained in:
袁晶琳 2023-07-13 15:37:46 +08:00
commit 8f4eeaffb6
13 changed files with 29 additions and 20 deletions

View File

@ -4,7 +4,7 @@ NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用) # 本地环境接口地址(/api/index.ts文件中使用)
# VITE_API_URL = 'http://121.196.214.246/api' # VITE_API_URL = 'http://121.196.214.246/api'
# VITE_API_URL = 'http://182.90.224.147:100' # VITE_API_URL = 'http://182.90.224.147:100'
VITE_API_URL = 'http://192.168.34.221:8070' VITE_API_URL = 'http://192.168.34.221:12360'
# 上传 # 上传
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url=' VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -54,7 +54,7 @@ export default {
} }
} }
.bottom { .bottom {
height: 40%; height: 42%;
display: flex; display: flex;
.bottomLeft { .bottomLeft {
width: 50%; width: 50%;

View File

@ -27,7 +27,7 @@ import Right from "@/views/sevenLargeScreen/elevatorMonitoring/right.vue";
display: flex; display: flex;
.left { .left {
width: 30%; width: 30%;
height: 100%; height: 102%;
.leftTop { .leftTop {
height: 29%; height: 29%;
} }
@ -43,7 +43,7 @@ import Right from "@/views/sevenLargeScreen/elevatorMonitoring/right.vue";
.right { .right {
margin-left: 1%; margin-left: 1%;
width: 83%; width: 83%;
height: 100%; height: 102%;
.rightBox { .rightBox {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -24,10 +24,8 @@ const weatherList = ref([]);
// //
const loadWeather = async () => { const loadWeather = async () => {
const res = await getWeatherDataApi({ cityid: "" }); const res = await getWeatherDataApi({ cityid: "" });
console.log("获取天气", res);
var json = JSON.parse(res.result); var json = JSON.parse(res.result);
var list = json; var list = json;
console.log("获取天气 - list", list);
list.forEach((element, index) => { list.forEach((element, index) => {
element.url = "src/assets/images/dustNoise/weatherIcon/" + element.wea_img + ".png"; element.url = "src/assets/images/dustNoise/weatherIcon/" + element.wea_img + ".png";
weatherList.value.push(element); weatherList.value.push(element);

View File

@ -52,7 +52,7 @@ export default {
} }
.left { .left {
width: 30%; width: 30%;
height: 100%; height: 103%;
.leftTop { .leftTop {
height: 29%; height: 29%;
} }
@ -69,7 +69,7 @@ export default {
// width: calc(40% - 40px); // width: calc(40% - 40px);
margin: 0% 1%; margin: 0% 1%;
width: 55%; width: 55%;
height: 100%; height: 103%;
.centerTop { .centerTop {
height: 68%; height: 68%;
} }

View File

@ -100,13 +100,15 @@ onMounted(() => {
font-size: calc(100vw * 14 / 1920); font-size: calc(100vw * 14 / 1920);
margin: 1% 3%; margin: 1% 3%;
.decName { .decName {
width: 30%; width: 90%;
display: flex;
span { span {
margin-left: 10%; margin-left: 2%;
display: inline-block;
} }
} }
.status { .status {
margin-left: 60%; // margin-left: 60%;
} }
} }
} }

View File

@ -7,11 +7,13 @@
<div class="tabThree">报警类型</div> <div class="tabThree">报警类型</div>
</div> </div>
<div class="listBox" ref="scrollRef"> <div class="listBox" ref="scrollRef">
<el-scrollbar style="height:85%">
<div v-for="item in list" class="listStyle"> <div v-for="item in list" class="listStyle">
<div class="dev" style="margin-left: 5%">{{ item.deviceName }}</div> <div class="dev">{{ item.deviceName }}</div>
<div class="time">{{ item.tempAlarmTime }}</div> <div class="time">{{ item.tempAlarmTime }}</div>
<div class="type" style="margin-right: 5%; width: 6%">{{ item.alarmTypeName }}</div> <div class="type" style="margin-right: 8%; width: 6%">{{ item.alarmTypeName }}</div>
</div> </div>
</el-scrollbar>
<div class="notoDta" v-if="list.length == 0"> <div class="notoDta" v-if="list.length == 0">
<img src="@/assets/images/noData.png" alt="" /> <img src="@/assets/images/noData.png" alt="" />
<p>暂无数据</p> <p>暂无数据</p>
@ -59,6 +61,7 @@ onMounted(() => {
justify-content: space-around; justify-content: space-around;
} }
.listBox { .listBox {
height: 100%;
.listStyle { .listStyle {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
@ -66,6 +69,12 @@ onMounted(() => {
height: 12%; height: 12%;
line-height: 25px; line-height: 25px;
font-size: calc(100vw * 12 / 1920); font-size: calc(100vw * 12 / 1920);
.dev{
width: 20%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
.listStyle:hover { .listStyle:hover {
background: #091f3f; background: #091f3f;

View File

@ -489,7 +489,7 @@ onMounted(async () => {
} }
.styleImg { .styleImg {
left: 75%; left: 75%;
top: 46%; top: 45%;
width: 10%; width: 10%;
position: absolute; position: absolute;
height: 20%; height: 20%;

View File

@ -147,7 +147,7 @@ export default {
} }
} }
.dataBoardContent { .dataBoardContent {
height: 85%; height: 83%;
// height: calc(100% - 15px - 50px - 60px - 20px); // height: calc(100% - 15px - 50px - 60px - 20px);
margin: 15px auto 16px auto; margin: 15px auto 16px auto;
width: calc(100% - 40px); width: calc(100% - 40px);

View File

@ -36,7 +36,7 @@ export default {
display: flex; display: flex;
.left { .left {
width: 75%; width: 75%;
height: 100%; height: 102%;
.leftTop { .leftTop {
height: 68%; height: 68%;
} }
@ -46,7 +46,7 @@ export default {
} }
.right { .right {
width: 25%; width: 25%;
height: 100%; height: 102%;
.rightTop { .rightTop {
height: 29%; height: 29%;
} }

View File

@ -27,7 +27,7 @@ import Right from "@/views/sevenLargeScreen/towerCraneMonitoring/right.vue";
display: flex; display: flex;
.left { .left {
width: 30%; width: 30%;
height: 100%; height: 102%;
.leftTop { .leftTop {
height: 29%; height: 29%;
} }
@ -43,7 +43,7 @@ import Right from "@/views/sevenLargeScreen/towerCraneMonitoring/right.vue";
.right { .right {
margin-left: 1%; margin-left: 1%;
width: 83%; width: 83%;
height: 100%; height: 102%;
.rightBox { .rightBox {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -43,7 +43,7 @@ export default {
} }
} }
.bottom { .bottom {
height: 49%; height: 51%;
margin-top: 1%; margin-top: 1%;
} }
} }