Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
seeta-device
/
deviceManage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0686f02e
authored
Sep 15, 2021
by
温丽香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blob显示样式优化
1 parent
1fdef2b9
Pipeline
#4446
passed
in 1 minute 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
src/views/DataList/edit.vue
src/views/DataList/edit.vue
View file @
0686f02
...
@@ -43,7 +43,9 @@
...
@@ -43,7 +43,9 @@
<el-table-column
v-for=
"index of totalColumns"
:key=
"index"
:label=
"`列${index}`"
:min-width=
"index === columnIndex ? '220px' : ''"
>
<el-table-column
v-for=
"index of totalColumns"
:key=
"index"
:label=
"`列${index}`"
:min-width=
"index === columnIndex ? '220px' : ''"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex"
>
<div
style=
"display: flex"
>
<span
type=
"text"
v-if=
"scope.row.id !== ''"
class=
"cell-span"
>
{{
scope
.
row
.
binary
[
index
-
1
]
}}
</span>
<span
type=
"text"
v-if=
"scope.row.id !== ''"
class=
"cell-span"
>
<span
:class=
"
{ 'cell-blob': scope.row.binary[index - 1] === 'blob' }">
{{
scope
.
row
.
binary
[
index
-
1
]
}}
</span>
</span>
<pack-select
v-if=
"scope.row.id === ''"
v-model=
"scope.row.binary[index - 1].type"
@
blur=
"handleBlur"
@
change=
"value => handleTypeChange(value, scope.row.binary[index - 1])"
placeholder=
"请选择"
class=
"none-display"
style=
"margin-right: 10px"
>
<pack-select
v-if=
"scope.row.id === ''"
v-model=
"scope.row.binary[index - 1].type"
@
blur=
"handleBlur"
@
change=
"value => handleTypeChange(value, scope.row.binary[index - 1])"
placeholder=
"请选择"
class=
"none-display"
style=
"margin-right: 10px"
>
<el-option
<el-option
v-for=
"item in typeOptions"
v-for=
"item in typeOptions"
...
@@ -444,6 +446,14 @@ export default {
...
@@ -444,6 +446,14 @@ export default {
height
:
32px
height
:
32px
line-height
:
32px
line-height
:
32px
padding-left
:
10px
padding-left
:
10px
.cell-blob
display
:
inline-block
height
:
26px
line-height
:
26px
padding
:
0
10px
color
:
#fff
background
:
#ccc
border-radius
:
4px
.buttons
.buttons
position
:
absolute
position
:
absolute
bottom
:
0
bottom
:
0
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment