Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-manager-ui
Commits
3aff41da
Commit
3aff41da
authored
May 09, 2025
by
王晓旭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/device-manager-ui
parents
948301ae
b0ef8dc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
src/views/device/drawershow.vue
src/views/device/drawershow.vue
+5
-5
src/views/device/list.vue
src/views/device/list.vue
+3
-2
No files found.
src/views/device/drawershow.vue
View file @
3aff41da
...
@@ -266,10 +266,7 @@ export default {
...
@@ -266,10 +266,7 @@ export default {
},
},
methods
:
{
methods
:
{
beforeSubmit
(
data
){
data
.
defectsLiabilityPeriod
=
new
Date
(
data
.
defectsLiabilityPeriod
)
return
data
},
changeProduct
(
val
)
{
changeProduct
(
val
)
{
this
.
form
.
productCode
=
this
.
dict
.
productCode
[
val
];
this
.
form
.
productCode
=
this
.
dict
.
productCode
[
val
];
},
},
...
@@ -294,7 +291,7 @@ export default {
...
@@ -294,7 +291,7 @@ export default {
this
.
reset
();
this
.
reset
();
this
.
urls
.
currUrl
=
"
/device/add
"
;
this
.
urls
.
currUrl
=
"
/device/add
"
;
this
.
pageInfo
.
type
=
"
add
"
;
this
.
pageInfo
.
type
=
"
add
"
;
this
.
form
.
siteId
=
row
.
siteId
;
this
.
siteId
=
row
.
siteId
;
this
.
siteName
=
row
.
siteName
;
this
.
siteName
=
row
.
siteName
;
this
.
siteCode
=
row
.
siteCode
;
this
.
siteCode
=
row
.
siteCode
;
this
.
getData
();
this
.
getData
();
...
@@ -319,6 +316,9 @@ export default {
...
@@ -319,6 +316,9 @@ export default {
if
(
this
.
pageInfo
.
type
==
"
add
"
||
this
.
pageInfo
.
type
==
"
edit
"
)
{
if
(
this
.
pageInfo
.
type
==
"
add
"
||
this
.
pageInfo
.
type
==
"
edit
"
)
{
this
.
form
.
siteName
=
this
.
siteName
;
this
.
form
.
siteName
=
this
.
siteName
;
this
.
form
.
siteCode
=
this
.
siteCode
;
this
.
form
.
siteCode
=
this
.
siteCode
;
this
.
form
.
siteId
=
this
.
siteId
;
console
.
log
(
"
this.form.siteId
"
,
this
.
form
.
siteId
)
}
}
},
},
...
...
src/views/device/list.vue
View file @
3aff41da
...
@@ -470,7 +470,8 @@ export default {
...
@@ -470,7 +470,8 @@ export default {
this
.
info
=
this
.
$route
.
query
;
this
.
info
=
this
.
$route
.
query
;
this
.
query
=
{
siteId
:
this
.
siteId
};
this
.
query
=
{
siteId
:
this
.
siteId
};
this
.
upload
.
headers
.
Authorization
=
window
.
sessionStorage
.
getItem
(
"
token
"
)
||
""
this
.
upload
.
headers
.
Authorization
=
window
.
sessionStorage
.
getItem
(
"
token
"
)
||
""
console
.
log
(
this
.
upload
);
console
.
log
(
"
upload
"
,
this
.
upload
);
console
.
log
(
"
query
"
,
this
.
$route
.
query
);
this
.
$get
(
"
/sitestat/siteInfo
"
,
{
this
.
$get
(
"
/sitestat/siteInfo
"
,
{
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
})
})
...
@@ -555,7 +556,7 @@ export default {
...
@@ -555,7 +556,7 @@ export default {
row
.
siteId
=
this
.
siteId
;
row
.
siteId
=
this
.
siteId
;
row
.
siteName
=
this
.
siteName
;
row
.
siteName
=
this
.
siteName
;
row
.
siteCode
=
this
.
siteCode
;
row
.
siteCode
=
this
.
siteCode
;
console
.
log
((
this
.
siteId
))
this
.
$refs
.
drawerform
.
add
(
row
);
this
.
$refs
.
drawerform
.
add
(
row
);
},
},
/** 重写编辑方法 */
/** 重写编辑方法 */
...
...
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