提交 8706e226 authored 作者: BaoChunXian's avatar BaoChunXian

feat: 修复井道详情每次更新增加楼栋的问题,井道样式调整

上级 415d4376
...@@ -469,6 +469,8 @@ export default { ...@@ -469,6 +469,8 @@ export default {
}, []) }, [])
.every((pos) => pos.isSubmit === "" || pos.isSubmit === 1); .every((pos) => pos.isSubmit === "" || pos.isSubmit === 1);
console.log(this.detailsInfo); console.log(this.detailsInfo);
this.tabs = ["所有井道"];
this.tabsDetail = ["所有井道"];
this.isSign = !!this.detailsInfo.signImg; this.isSign = !!this.detailsInfo.signImg;
this.cardsInfo.forEach((item) => { this.cardsInfo.forEach((item) => {
this.tabs.push(item.name); this.tabs.push(item.name);
...@@ -548,7 +550,7 @@ export default { ...@@ -548,7 +550,7 @@ export default {
const log_list = this.$store.state.log_list; const log_list = this.$store.state.log_list;
logContent.inspectionType = params.inspectionType; logContent.inspectionType = params.inspectionType;
log_list.push(logContent); log_list.push(logContent);
this.$logApi.addlog(logContent) this.$logApi.addlog(logContent);
this.$store.commit("SET_LOG_LIST", log_list); this.$store.commit("SET_LOG_LIST", log_list);
addLog(log_list).then((res) => { addLog(log_list).then((res) => {
console.log("日志文件写入成功"); console.log("日志文件写入成功");
...@@ -818,13 +820,16 @@ export default { ...@@ -818,13 +820,16 @@ export default {
width: 100%; width: 100%;
height: 38.4px; height: 38.4px;
display: flex; display: flex;
font-size: 12.8px;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 12px; font-size: 12px;
color: #333333; color: #4a4a4a;
cursor: pointer; cursor: pointer;
&.active { &.active {
font-weight: bold;
color: #000;
background-color: #ffffff; background-color: #ffffff;
} }
} }
......
...@@ -17,10 +17,11 @@ ...@@ -17,10 +17,11 @@
<view class="profile-box"> <view class="profile-box">
<view class="profile-left"> <view class="profile-left">
<view class="avatar"> <view class="avatar">
<image 井道
<!-- <image
src="@/static/img/add-img/defaultAvatar.png" src="@/static/img/add-img/defaultAvatar.png"
mode="aspectFit" mode="aspectFit"
></image> ></image> -->
</view> </view>
<view class="info"> <view class="info">
<view class="username">井道巡检</view> <view class="username">井道巡检</view>
...@@ -576,7 +577,7 @@ export default { ...@@ -576,7 +577,7 @@ export default {
// 更新日志 // 更新日志
const log_list = this.$store.state.log_list; const log_list = this.$store.state.log_list;
logContent.inspectionType = params.inspectionType; logContent.inspectionType = params.inspectionType;
this.$logApi.addlog(logContent) this.$logApi.addlog(logContent);
log_list.push(logContent); log_list.push(logContent);
this.$store.commit("SET_LOG_LIST", log_list); this.$store.commit("SET_LOG_LIST", log_list);
addLog(log_list).then((res) => { addLog(log_list).then((res) => {
...@@ -719,12 +720,13 @@ export default { ...@@ -719,12 +720,13 @@ export default {
.profile-section { .profile-section {
width: 100%; width: 100%;
// height: 62.4px;
margin-bottom: 10.24px; margin-bottom: 10.24px;
.profile-box { .profile-box {
background-color: #fff; background-color: #fff;
border-radius: 7.68px; border-radius: 7.68px;
padding: 10.24px 20.48px; padding: 10.24px 9.6px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -736,16 +738,23 @@ export default { ...@@ -736,16 +738,23 @@ export default {
.avatar { .avatar {
position: relative; position: relative;
width: 32.4px; width: 44.8px;
height: 32.4px; height: 44.8px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
margin-right: 7.2px; margin-right: 9.6px;
image { color: #4a4a4a;
width: 100%; text-align: center;
height: 100%; font-size: 12.8px;
} line-height: 44.8px;
background: #f2f2f2;
border-radius: 6px;
// image {
// width: 100%;
// height: 100%;
// }
.change-password { .change-password {
position: absolute; position: absolute;
...@@ -862,6 +871,7 @@ export default { ...@@ -862,6 +871,7 @@ export default {
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
margin-bottom: 8px; margin-bottom: 8px;
font-size: 16px;
gap: 16px; gap: 16px;
} }
...@@ -914,7 +924,7 @@ export default { ...@@ -914,7 +924,7 @@ export default {
} }
.tab-text { .tab-text {
font-size: 11.2px; font-size: 12.8px;
color: #333; color: #333;
} }
...@@ -943,9 +953,9 @@ export default { ...@@ -943,9 +953,9 @@ export default {
border-bottom: 0.8px solid #f2f3f5; border-bottom: 0.8px solid #f2f3f5;
.form-label { .form-label {
font-size: 11.2px; font-size: 12.8px;
margin-right: 25.6px; margin-right: 25.6px;
width: 58.4px; width: 60px;
text-align: right; text-align: right;
color: #7c7c7c; color: #7c7c7c;
...@@ -956,13 +966,13 @@ export default { ...@@ -956,13 +966,13 @@ export default {
} }
.conclusion { .conclusion {
color: #c7c7c7; color: #c7c7c7;
font-size: 11.2px; font-size: 12.8px;
&.have { &.have {
color: #000; color: #000;
} }
} }
.label { .label {
font-size: 11.2px; font-size: 12.8px;
} }
.switch-container { .switch-container {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论