Commit db6c2d2b authored by 高宇's avatar 高宇

调整预览图片初始大小

parent 7286e169
<template>
<el-tooltip
:content="text"
effect="dark"
:disabled="disabledShow || text === undefined || text === null || (text.length <= maxLength)"
placement="top"
>
<span v-if="text === undefined || text === null || text.length <= maxLength">
{{ text || '' }}
</span>
<span v-else>
{{ text.substring(0, maxLength) + '...' }}
</span>
<div style="" slot="content">
{{ text || '' }}
</div>
</el-tooltip>
</template>
<script>
export default {
name: "TextToolTip",
props: ['text', 'maxLength', 'disabledShow'],
data() {
return {};
},
created() {},
methods: {},
watch: {},
};
</script>
<style scoped>
</style>
......@@ -139,9 +139,14 @@
/>
<el-button class="clearButton" icon="el-icon-delete" circle @click="clearForm(index)" />
</div>
<div class="Value">{{ item.differenceValue }}</div>
<div class="averageValue">{{ item.differenceValue1 }}</div>
<div class="compareValue">{{ item.differenceValue2 }}</div>
<div class="Value">
<TextToolTip :text="item.differenceValue" :max-length="8" :disabled-show="false"></TextToolTip></div>
<div class="averageValue">
<TextToolTip :text="item.differenceValue1" :max-length="8" :disabled-show="false"></TextToolTip>
</div>
<div class="compareValue">
<TextToolTip :text="item.differenceValue2" :max-length="8" :disabled-show="false"></TextToolTip>
</div>
</div>
</div>
<!-- 添加按钮 -->
......@@ -195,9 +200,14 @@
@click="clearInspectionFormTwo(index)"
/>
</div>
<div class="Value">{{ item.differenceValue }}</div>
<div class="averageValue">{{ item.differenceValue1 }}</div>
<div class="compareValue">{{ item.differenceValue2 }}</div>
<div class="Value">
<TextToolTip :text="item.differenceValue" :max-length="8" :disabled-show="false"></TextToolTip></div>
<div class="averageValue">
<TextToolTip :text="item.differenceValue1" :max-length="8" :disabled-show="false"></TextToolTip>
</div>
<div class="compareValue">
<TextToolTip :text="item.differenceValue2" :max-length="8" :disabled-show="false"></TextToolTip>
</div>
</div>
</div>
<!-- 添加按钮 -->
......@@ -268,7 +278,8 @@
@click="clearInspectionFormThree(index)"
/>
</div>
<div class="Value">{{ item.differenceValue }}</div>
<div class="Value">
<TextToolTip :text="item.differenceValue" :max-length="8" :disabled-show="false"></TextToolTip></div>
</div>
</div>
</div>
......@@ -534,13 +545,13 @@
<el-radio label="2">不合格</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="备注:">
<el-form-item label="备注:" class="remarksDiv">
<el-input
v-model="inspectInfoList.remarks"
type="textarea"
:disabled="(controlsForm.controls ==='1'&& controlsForm.approveStatus ==='1')
|| (controlsForm.controls == '3' && controlsForm.approveStatus === '1') || (controlsForm.controls ==='3'&&controlsForm.approveStatus === '9' )"
:rows="4"
:rows="6"
placeholder="请输入备注"
/>
</el-form-item>
......@@ -604,9 +615,11 @@ import { addIncomeInspectInfo, approveInformation, getIncomeInspectInfo } from '
import { parseTime } from '@/utils'
import { getInfo } from '@/api/login'
import { downLoadFile } from '@/utils/checkList'
import TextToolTip from '@/components/TextToolTip/index'
export default {
name: 'CheckList',
components: { TextToolTip},
data() {
return {
rules: {
......@@ -2023,7 +2036,7 @@ export default {
padding-bottom: 16px;
.compareValue {
margin-left: 29.7%;
margin-left: 24%;
font-size: 14px;
font-family: Microsoft YaHei, Microsoft YaHei-400;
font-weight: 400;
......@@ -2091,7 +2104,8 @@ export default {
.Value {
//margin-left: 20px;
//margin-top: 8px;
width: 37px;
//border: 1px solid;
width: 64px;
height: 18px;
font-size: 14px;
font-family: Microsoft YaHei, Microsoft YaHei-400;
......@@ -2104,12 +2118,13 @@ export default {
}
.averageValue {
width: 64px;
font-family: Microsoft YaHei, Microsoft YaHei-400;
font-weight: 400;
font-size: 14px;
text-align: LEFT;
color: #0057ff;
margin-left: 15%;
margin-left: 12%;
margin-top: -3%;
}
......@@ -2119,7 +2134,8 @@ export default {
font-family: Microsoft YaHei, Microsoft YaHei-400;
font-weight: 400;
color: #606266;
margin-left: 15%;
margin-left: 12%;
//margin-left: 15%;
display: flex;
align-items: center;
......@@ -2207,14 +2223,14 @@ export default {
.Value {
//margin-left: 20px;
//margin-top: 8px;
width: 37px;
width: 64px;
height: 18px;
font-size: 14px;
font-family: Microsoft YaHei, Microsoft YaHei-400;
font-weight: 400;
text-align: LEFT;
color: #0057ff;
margin-left: 30%;
margin-left: 27%;
margin-top: -3%;
}
}
......@@ -2419,7 +2435,7 @@ export default {
padding-bottom: 16px;
.compareValue {
margin-left: 29.7%;
margin-left: 25%;
font-size: 14px;
font-family: Microsoft YaHei, Microsoft YaHei-400;
font-weight: 400;
......@@ -2486,7 +2502,7 @@ export default {
.Value {
//margin-left: 20px;
//margin-top: 8px;
width: 37px;
width: 64px;
height: 18px;
font-size: 14px;
font-family: Microsoft YaHei, Microsoft YaHei-400;
......@@ -2499,12 +2515,13 @@ export default {
}
.averageValue {
margin-left: 12%;
font-family: Microsoft YaHei, Microsoft YaHei-400;
font-weight: 400;
font-size: 14px;
text-align: LEFT;
color: #0057ff;
margin-left: 15%;
width: 64px;
margin-top: -3%;
}
......@@ -2514,7 +2531,7 @@ export default {
font-family: Microsoft YaHei, Microsoft YaHei-400;
font-weight: 400;
color: #606266;
margin-left: 15%;
margin-left: 13%;
display: flex;
align-items: center;
......@@ -2922,9 +2939,14 @@ export default {
}
.inspectionResults {
width: 31%;
width: 64%;
margin-top: 40px;
margin-left: 10%;
.remarksDiv{
::v-deep .el-form-item__content{
display: flex;
}
}
}
.partIv {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment