Commit 52e1ab07 by yancanhua

fix: 操作日志超出自动换行

1 parent 2064a2fb
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div v-if="alllist.length !== index + 1" class="progressBox-line"></div> <div v-if="alllist.length !== index + 1" class="progressBox-line"></div>
</div> </div>
<div class="log-title"> <div class="log-title">
<div v-if="item.description" class="logBox-content"> <div v-if="item.description" class="logBox-content" :title="item.description || '-'">
{{ item.description || '-' }} {{ item.description || '-' }}
</div> </div>
<div class="logBox-time"> <div class="logBox-time">
...@@ -110,9 +110,8 @@ export default class OperationLog extends Vue { ...@@ -110,9 +110,8 @@ export default class OperationLog extends Vue {
color: #777c85; color: #777c85;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
overflow: hidden; word-wrap: break-word;
text-overflow: ellipsis; word-break: break-word;
white-space: nowrap;
} }
.logBox-content span { .logBox-content span {
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
<div v-if="alllist.length !== index + 1" class="progressBox-line"></div> <div v-if="alllist.length !== index + 1" class="progressBox-line"></div>
</div> </div>
<div class="log-title"> <div class="log-title">
<div v-if="item.description || item.operationContent" class="logBox-content">{{ item.description || item.operationContent }}</div> <div v-if="item.description || item.operationContent" :title="item.description || item.operationContent" class="logBox-content">
{{ item.description || item.operationContent }}
</div>
<div class="logBox-time"> <div class="logBox-time">
<div class="logBox-point" v-if="item.updateNameCnFirst">{{ item.updateNameCnFirst }}</div> <div class="logBox-point" v-if="item.updateNameCnFirst">{{ item.updateNameCnFirst }}</div>
<span class="p-l-4">{{ item.operatorName }}</span> <span class="p-l-4">{{ item.operatorName }}</span>
...@@ -103,15 +105,13 @@ export default class OperationLog extends Vue { ...@@ -103,15 +105,13 @@ export default class OperationLog extends Vue {
.logBox-content { .logBox-content {
width: 100%; width: 100%;
height: 20px;
line-height: 20px; line-height: 20px;
float: left; float: left;
color: #2F3133; color: #2F3133;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
overflow: hidden; word-wrap: break-word;
text-overflow: ellipsis; word-break: break-word;
white-space: nowrap;
} }
.logBox-content span { .logBox-content span {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<script lang="ts"> <script lang="ts">
import { Component, Hook, Vue } from "vue-facing-decorator"; import { Component, Hook, Vue } from "vue-facing-decorator";
import { onLoad } from "@dcloudio/uni-app"; import { onLoad, onShow } from "@dcloudio/uni-app";
import { AuctionController } from "@/api/AuctionController"; import { AuctionController } from "@/api/AuctionController";
import { AuthService } from "@/common/AuthService"; import { AuthService } from "@/common/AuthService";
...@@ -27,19 +27,25 @@ export default class InspectionPreview extends Vue { ...@@ -27,19 +27,25 @@ export default class InspectionPreview extends Vue {
that.aucvehId = option.aucvehId; that.aucvehId = option.aucvehId;
that.getReportVehicleData(option.vehicleId); that.getReportVehicleData(option.vehicleId);
that.getVehicleDetail(option.aucvehId); that.getVehicleDetail(option.aucvehId);
});
// 每次都加载
onShow(() => {
const that = this;
setTimeout(() => { setTimeout(() => {
that.toLoginPage(option); that.toLoginPage();
}, 1600); }, 1600);
}); });
} }
toLoginPage(option: any) { toLoginPage() {
const authService: AuthService = this.$auth; const that = this;
const authService: AuthService = that.$auth;
if (!authService.isLogin()) { if (!authService.isLogin()) {
uni.showToast({ uni.showToast({
title: '请先登录', icon: 'none', duration: 2000, complete: function () { title: '请先登录', icon: 'none', duration: 2000, complete: function () {
setTimeout(() => { setTimeout(() => {
uni.navigateTo({ url: '/pages/LoginPage?vehicleId=' + option.vehicleId + '&aucvehId=' + option.aucvehId }); uni.navigateTo({ url: '/pages/LoginPage?vehicleId=' + that.vehicleId + '&aucvehId=' + that.aucvehId });
}, 1200); }, 1200);
} }
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!