Commit 52e1ab07 by yancanhua

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

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