Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡宝山
template_vue
Commits
db6c2d2b
Commit
db6c2d2b
authored
Mar 06, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整预览图片初始大小
parent
7286e169
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
20 deletions
+76
-20
index.vue
src/components/TextToolTip/index.vue
+34
-0
checkList.vue
src/views/checkList.vue
+42
-20
No files found.
src/components/TextToolTip/index.vue
0 → 100644
View file @
db6c2d2b
<
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
>
src/views/checkList.vue
View file @
db6c2d2b
...
...
@@ -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
:
2
9
.7
%
;
margin-left
:
2
4
%
;
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
:
1
5
%
;
margin-left
:
1
2
%
;
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
:
37
px
;
width
:
64
px
;
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
:
2
9
.7
%
;
margin-left
:
2
5
%
;
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
:
37
px
;
width
:
64
px
;
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
:
1
5
%
;
margin-left
:
1
3
%
;
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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment