Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
digital-construction
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
张牧越
digital-construction
Commits
a84a0647
Commit
a84a0647
authored
Jul 28, 2023
by
张牧越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
2c0af2a2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
87 deletions
+0
-87
Index.vue
src/components/construction/Index.vue
+0
-53
noloadingRequest.js
src/utils/noloadingRequest.js
+0
-16
request.js
src/utils/request.js
+0
-18
No files found.
src/components/construction/Index.vue
View file @
a84a0647
...
@@ -545,59 +545,6 @@ export default {
...
@@ -545,59 +545,6 @@ export default {
document
.
getElementById
(
"step-scroll"
).
style
.
width
=
document
.
getElementById
(
"step-scroll"
).
style
.
width
=
20
*
res
.
data
.
progress_data
.
length
+
"%"
;
20
*
res
.
data
.
progress_data
.
length
+
"%"
;
}
}
console
.
log
(
this
.
progressDetail
.
step
);
console
.
log
(
this
.
progressDetail
.
progress_data
);
const
timeArray
=
this
.
progressDetail
.
progress_data
.
map
((
item
)
=>
{
return
new
Date
(
item
.
over_date
).
getTime
();
});
let
todayTs
=
new
Date
(
this
.
getTime
()).
getTime
();
console
.
log
(
timeArray
.
indexOf
(
todayTs
));
if
(
timeArray
.
indexOf
(
todayTs
)
==
-
1
)
{
let
insertIndex
=
timeArray
.
findIndex
((
item
)
=>
{
return
item
>
todayTs
;
});
if
(
insertIndex
>
this
.
progressDetail
.
step
)
{
this
.
progressDetail
.
progress_data
.
splice
(
this
.
progressDetail
.
step
,
0
,
{
over_date
:
this
.
getTime
(),
status_text
:
"当前进度"
,
type
:
"wait"
,
name
:
"当时日期"
,
}
);
this
.
progressDetail
.
step
=
this
.
progressDetail
.
step
+
1
;
this
.
$nextTick
(()
=>
{
let
wait_step
=
document
.
getElementById
(
"step-scroll"
)
.
getElementsByClassName
(
"el-step"
);
let
wait_line
=
wait_step
[
insertIndex
-
1
].
getElementsByClassName
(
"el-step__line-inner"
)[
0
];
wait_line
.
style
.
cssText
=
"transition-delay: 150ms; width: 100%!important;border-width:0px!important"
;
});
}
else
{
this
.
progressDetail
.
progress_data
.
splice
(
insertIndex
,
0
,
{
over_date
:
this
.
getTime
(),
status_text
:
"当前进度"
,
name
:
"当时日期"
,
});
this
.
$nextTick
(()
=>
{
let
wait_step
=
document
.
getElementById
(
"step-scroll"
)
.
getElementsByClassName
(
"el-step"
);
let
wait_line
=
wait_step
[
insertIndex
-
1
].
getElementsByClassName
(
"el-step__line-inner"
)[
0
];
wait_line
.
style
.
cssText
=
"transition-delay: 150ms; width: 100%!important"
;
});
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
element
=
document
.
getElementById
(
"scroll-container"
);
const
element
=
document
.
getElementById
(
"scroll-container"
);
this
.
autoScrollX
(
1
,
50
,
1500
,
element
);
this
.
autoScrollX
(
1
,
50
,
1500
,
element
);
...
...
src/utils/noloadingRequest.js
View file @
a84a0647
import
axios
from
'axios'
import
axios
from
'axios'
import
{
Message
}
from
'element-ui'
;
import
{
Message
}
from
'element-ui'
;
const
getLocationParams
=
(
keyWords
)
=>
{
// 提取路由值(字符串)
let
href
=
window
.
location
.
href
;
// 从占位符开始截取路由(不包括占位符)
let
query
=
href
.
substring
(
href
.
indexOf
(
"?"
)
+
1
);
// 根据 & 切割字符串
let
vars
=
query
.
split
(
"&"
);
for
(
let
i
=
0
;
i
<
vars
.
length
;
i
++
)
{
let
pair
=
vars
[
i
].
split
(
"="
);
// 根据指定的参数名去筛选参数值
if
(
pair
[
0
]
==
keyWords
)
{
return
pair
[
1
];
}
}
return
""
;
};
const
noLoadingrequest
=
axios
.
create
({
const
noLoadingrequest
=
axios
.
create
({
withCredentials
:
false
,
withCredentials
:
false
,
})
})
...
...
src/utils/request.js
View file @
a84a0647
...
@@ -6,24 +6,6 @@ import _ from 'lodash';
...
@@ -6,24 +6,6 @@ import _ from 'lodash';
let
loadingInstance
;
//loading 实例
let
loadingInstance
;
//loading 实例
let
needLoadingRequestCount
=
0
;
//当前正在请求的数量
let
needLoadingRequestCount
=
0
;
//当前正在请求的数量
const
getLocationParams
=
(
keyWords
)
=>
{
// 提取路由值(字符串)
let
href
=
window
.
location
.
href
;
// 从占位符开始截取路由(不包括占位符)
let
query
=
href
.
substring
(
href
.
indexOf
(
"?"
)
+
1
);
// 根据 & 切割字符串
let
vars
=
query
.
split
(
"&"
);
for
(
let
i
=
0
;
i
<
vars
.
length
;
i
++
)
{
let
pair
=
vars
[
i
].
split
(
"="
);
// 根据指定的参数名去筛选参数值
if
(
pair
[
0
]
==
keyWords
)
{
return
pair
[
1
];
}
}
return
""
;
};
function
showLoading
()
{
function
showLoading
()
{
let
main
=
document
.
querySelector
(
'#app'
)
//获取dom节点
let
main
=
document
.
querySelector
(
'#app'
)
//获取dom节点
if
(
main
)
{
if
(
main
)
{
...
...
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