Merge pull request '邓洁: 修改bug' (#213) from dengjie into dev

Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/213
This commit is contained in:
odjbin
2023-12-30 13:42:46 +00:00
5 changed files with 37 additions and 22 deletions

View File

@@ -17,7 +17,8 @@
/> />
<div class="digital-tunnel"> <div class="digital-tunnel">
<el-dialog :close-on-click-modal="false" v-model="isWindSpeedVisited" :title="'风速监控数据'" width="2175px" :modal="false"> <el-dialog :close-on-click-modal="false" v-model="isWindSpeedVisited" :title="'风速监控数据'" width="2175px"
:modal="false">
<div class="left-top-icon"></div> <div class="left-top-icon"></div>
<div class="right-top-icon"></div> <div class="right-top-icon"></div>
<div class="chat-dialog"> <div class="chat-dialog">
@@ -36,7 +37,8 @@
</el-dialog> </el-dialog>
</div> </div>
<div class="digital-tunnel"> <div class="digital-tunnel">
<el-dialog :close-on-click-modal="false" v-model="isAirVisited" :title="airTitle+'监控数据'" width="2175px" :modal="false"> <el-dialog :close-on-click-modal="false" v-model="isAirVisited" :title="airTitle+'监控数据'" width="2175px"
:modal="false">
<div class="left-top-icon"></div> <div class="left-top-icon"></div>
<div class="right-top-icon"></div> <div class="right-top-icon"></div>
<div class="chat-dialog"> <div class="chat-dialog">
@@ -88,11 +90,13 @@ watch(() => props.list, (now) => {
}) })
}, {deep: true}); }, {deep: true});
watch(() => props.airData, (now) => { watch(() => props.airData, (now) => {
if (now.sensorList !== null) {
if (now.sensorList.length === 0) { if (now.sensorList.length === 0) {
airList.value = [] airList.value = []
} else { } else {
getAirInfo(now.sensorList) getAirInfo(now.sensorList)
} }
}
}, {deep: true}); }, {deep: true});
const getChartInfo = (equipmentId) => { const getChartInfo = (equipmentId) => {
getEchartsInfo(equipmentId).then(res => { getEchartsInfo(equipmentId).then(res => {

View File

@@ -234,9 +234,10 @@ const getImageUrl = (name) => {
} }
#used-ele { #used-ele {
//flex:1;
cursor: pointer; cursor: pointer;
width: 830px; width: 830px;
height: 373px; //height: 373px;
color: aliceblue; color: aliceblue;
position: absolute; position: absolute;
top: 1220px; top: 1220px;

View File

@@ -80,6 +80,9 @@ const handleGoTunnelMgr = () => {
router.push("/tunnel/" + form.value.siteId + "/" + type + "/" + userId); router.push("/tunnel/" + form.value.siteId + "/" + type + "/" + userId);
}; };
const handleSave = async () => { const handleSave = async () => {
if(form.value.constructionLength==null){
form.value.constructionLength=0
}
const data = { const data = {
tunnelId: tunnelId, tunnelId: tunnelId,
tunnelName: form.value.tunnelName, tunnelName: form.value.tunnelName,

View File

@@ -47,7 +47,7 @@ const authStore = useAuthStore();
const loginForm = reactive({ const loginForm = reactive({
// username: "admin", // username: "admin",
password: "123456", password: "123456",
username: "admin", username: "administrator",
// password: "", // password: "",
code: "", code: "",
uuid: "", uuid: "",

View File

@@ -237,7 +237,7 @@ const manageSelect = (index) => {
} }
} else if (index == '隧道管理') { } else if (index == '隧道管理') {
if (currentSiteId.value && currentUserId.value) { if (currentSiteId.value && currentUserId.value) {
router.push("/tunnel/" + currentSiteId.value + '/i/' + currentUserId.value); router.push("/tunnel/" + currentSiteId.value + '/i'+'/' + currentUserId.value);
} }
} else if (index == '用户管理') { } else if (index == '用户管理') {
if (currentSiteId.value) { if (currentSiteId.value) {
@@ -340,6 +340,13 @@ initWebSocket();
// getTunnelPreview(); // getTunnelPreview();
</script> </script>
<style lang="scss"> <style lang="scss">
//.el-drawer__body{
// width: 100%;
// display: flex!important;
// flex-direction: column!important;
// flex: 1;
// height: 100%;
//}
.el-dropdown__popper.el-popper { .el-dropdown__popper.el-popper {
background: transparent; background: transparent;
//border: none; //border: none;