Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
c1b779cc
Commit
c1b779cc
authored
May 11, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
151afdae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
edit.vue
pages/technology/details/edit.vue
+8
-2
No files found.
pages/technology/details/edit.vue
View file @
c1b779cc
...
...
@@ -121,12 +121,18 @@ export default {
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
.
resourceId
=
[
r
.
result
.
resourceType
,
r
.
result
.
resourceId
];
});
},
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
if
(
this
.
entity
.
resourceId
.
length
>
1
)
{
this
.
entity
.
resourceId
=
this
.
entity
.
resourceId
[
1
];
}
else
{
this
.
entity
.
resourceId
=
null
;
}
if
(
this
.
entity
.
isOutside
!=
1
)
{
this
.
entity
.
outsideTime
=
0
;
}
...
...
@@ -160,8 +166,8 @@ export default {
this
.
entity
.
equipTypeId
=
items
.
id
;
},
resourceChange
(
v
,
items
)
{
this
.
entity
.
resourceType
=
Number
(
items
[
0
].
value
)
;
this
.
entity
.
resourceId
=
items
[
1
].
value
;
this
.
entity
.
resourceType
=
items
[
0
].
value
;
this
.
entity
.
resourceId
=
v
;
this
.
entity
.
resourceCode
=
items
[
1
].
__label
;
}
},
...
...
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