Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f111d919
authored
Jan 04, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
07bd569a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
src/views/work/edit.vue
src/views/work/order.vue
src/views/work/edit.vue
View file @
f111d91
...
...
@@ -294,19 +294,28 @@ export default {
if
(
n
)
{
this
.
getInfo
();
this
.
getLogList
();
this
.
scrollTo
(
"orderInfo"
);
}
},
immediate
:
true
,
},
type
:
{
handler
:
function
(
n
,
o
)
{
if
(
n
==
3
)
{
switch
(
n
)
{
case
3
:
this
.
formRules
=
this
.
activeRules
;
this
.
isDisabled
=
true
;
}
else
{
break
;
case
2
:
this
.
formRules
=
this
.
editFormRules
;
this
.
isDisabled
=
false
;
break
;
default
:
this
.
formRules
=
{};
this
.
isDisabled
=
false
;
break
;
}
this
.
scrollTo
(
"orderInfo"
);
},
immediate
:
true
,
},
...
...
@@ -431,6 +440,9 @@ export default {
// 控制页面滚动
scrollTo
(
refName
)
{
var
element
=
this
.
$refs
[
refName
];
if
(
!
element
){
return
false
;
}
const
top
=
element
.
offsetTop
;
console
.
log
(
top
);
window
.
document
.
querySelector
(
".dialog_content"
).
scrollTop
=
top
-
60
;
...
...
@@ -641,7 +653,8 @@ export default {
//
justify-content
:
space-between
;
font-size
:
14px
;
color
:
#999
;
.name,.time
{
.name,
.time
{
margin-right
:
16px
;
}
}
...
...
src/views/work/order.vue
View file @
f111d91
...
...
@@ -151,7 +151,7 @@
</div>
</div>
<
template
>
<edit-order
v-if=
"showWorkDialog"
ref=
"editOrderCom"
:id=
"orderId"
:type=
"orderType"
@
change=
"onEditChange"
></edit-order>
<edit-order
ref=
"editOrderCom"
:id=
"orderId"
:type=
"orderType"
@
change=
"onEditChange"
></edit-order>
</
template
>
<
template
slot=
"footer"
>
<el-button
type=
"primary"
size=
"small"
:loading=
"aloading"
v-if=
"orderType == 3"
@
click=
"activeDevice()"
>
激活
</el-button>
...
...
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