Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
component-lib
Project
Project
Details
Activity
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
郭铭瑶
component-lib
Commits
27941f7d
Commit
27941f7d
authored
Nov 17, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加装电梯列表字段更改
parent
ada8726c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
22 deletions
+17
-22
serve.vue
dev/serve.vue
+0
-7
index.vue
src/lib/A013/index.vue
+17
-15
No files found.
dev/serve.vue
View file @
27941f7d
...
@@ -32,13 +32,6 @@ function copyName(name) {
...
@@ -32,13 +32,6 @@ function copyName(name) {
document
.
execCommand
(
'Copy'
)
document
.
execCommand
(
'Copy'
)
document
.
body
.
removeChild
(
input
)
document
.
body
.
removeChild
(
input
)
}
}
document
.
addEventListener
(
'dblclick'
,
(
e
)
=>
{
console
.
log
(
e
)
console
.
log
(
e
.
target
?.
_uid
)
e
.
target
?.
classList
?.
add
(
'need-update'
)
// e.target.innerText = 'test'
})
</
script
>
</
script
>
<
style
lang=
"stylus"
scoped
>
<
style
lang=
"stylus"
scoped
>
...
...
src/lib/A013/index.vue
View file @
27941f7d
...
@@ -114,24 +114,27 @@ function fetchList() {
...
@@ -114,24 +114,27 @@ function fetchList() {
params
,
params
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
// 0-可加装 1-较难加装 2-不可加装
//
//
0-可加装 1-较难加装 2-不可加装
const
switchType
=
(
type
)
=>
{
//
const switchType = (type) => {
switch
(
type
)
{
//
switch (type) {
case
'0'
:
//
case '0':
return
'可加装'
//
return '可加装'
case
'1'
:
//
case '1':
return
'较难加装'
//
return '较难加装'
case
'2'
:
//
case '2':
return
'不可加装'
//
return '不可加装'
default
:
//
default:
return
''
//
return ''
}
//
}
}
//
}
list
.
value
=
(
res
?.
data
?.
content
||
[]).
map
((
item
)
=>
({
list
.
value
=
(
res
?.
data
?.
content
||
[]).
map
((
item
)
=>
({
...
item
,
...
item
,
name
:
item
.
stNameFrst
,
name
:
item
.
stNameFrst
,
address
:
item
.
unitAddr
,
address
:
item
.
unitAddr
,
status
:
switchType
(
item
.
evaluateType
),
status
:
curTab
.
value
===
'7'
?
item
.
finishInstallationTime
?.
split
(
' '
)?.[
0
]
||
'暂无'
:
item
.
startInstallationTime
?.
split
(
' '
)?.[
0
]
||
'暂无'
,
}))
}))
})
})
}
}
...
@@ -140,7 +143,6 @@ fetchList()
...
@@ -140,7 +143,6 @@ fetchList()
function
onClick
(
data
)
{
function
onClick
(
data
)
{
bus
.
emit
(
'elevatorInfo'
,
data
)
bus
.
emit
(
'elevatorInfo'
,
data
)
}
}
</
script
>
</
script
>
<
style
lang=
"stylus"
scoped
>
<
style
lang=
"stylus"
scoped
>
...
...
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