Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
3e94494a
Commit
3e94494a
authored
Dec 01, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改甘特图缩放的问题
parent
829ac4ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
27 deletions
+26
-27
unit.vue
...-mes/src/privateComponents/components/MBOMConfig/unit.vue
+22
-23
index.vue
...views/assemblyPlanManagement/instructionsIssued/index.vue
+4
-4
No files found.
applications/dee-mes/src/privateComponents/components/MBOMConfig/unit.vue
View file @
3e94494a
...
...
@@ -213,6 +213,28 @@ export default {
}
var
zoomConfig
=
{
levels
:
[
[
{
unit
:
'month'
,
// step: 1,
format
:
function
(
date
)
{
var
month
=
(
new
Date
(
date
).
getFullYear
()
-
2007
)
*
12
+
new
Date
(
date
).
getMonth
()
+
1
return
month
+
'月'
// ganttAg.date.getWeek(date)
}
},
{
unit
:
'week'
,
format
:
function
(
date
)
{
var
newDate
=
new
Date
(
date
)
var
oldDate
=
new
Date
(
'2007/01/01'
)
var
days
=
(
newDate
-
oldDate
)
/
(
1
*
24
*
60
*
60
*
7
*
1000
)
return
Math
.
ceil
(
days
+
1
)
+
'周'
// ganttAss.date.getWeek(date)
}
}
],
[
{
unit
:
'week'
,
...
...
@@ -247,29 +269,6 @@ export default {
unit
:
'hour'
,
format
:
'%H'
}
],
[
{
unit
:
'month'
,
// step: 1,
format
:
function
(
date
)
{
var
month
=
(
new
Date
(
date
).
getFullYear
()
-
2007
)
*
12
+
new
Date
(
date
).
getMonth
()
+
1
return
month
+
'月'
// ganttAg.date.getWeek(date)
}
},
{
unit
:
'week'
,
format
:
function
(
date
)
{
var
newDate
=
new
Date
(
date
)
var
oldDate
=
new
Date
(
'2007/01/01'
)
var
days
=
(
newDate
-
oldDate
)
/
(
1
*
24
*
60
*
60
*
7
*
1000
)
return
Math
.
ceil
(
days
+
1
)
+
'周'
// ganttAss.date.getWeek(date)
}
}
]
],
startDate
:
new
Date
(
'2007/01/01'
),
...
...
applications/dee-mes/src/views/assemblyPlanManagement/instructionsIssued/index.vue
View file @
3e94494a
...
...
@@ -461,12 +461,12 @@ export default {
this
.
searchFormData
.
aoName
=
''
this
.
searchFormData
.
actualEnd
=
''
this
.
activeName
=
tab
.
index
if
(
this
.
activeName
===
'1'
)
{
this
.
defaultPercent
=
100
this
.
groupPage
=
1
this
.
groupTotal
=
0
this
.
groupDropList
=
[]
this
.
getGroupList
()
if
(
this
.
activeName
===
'1'
)
{
this
.
defaultPercent
=
100
}
else
{
this
.
defaultPercent
=
80
}
...
...
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