Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
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 900e60d3
authored
Dec 01, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
预览排序调整
1 parent
7d1c6757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
src/views/task/addTask/index.vue
src/views/task/addTask/index.vue
View file @
900e60d
...
...
@@ -661,30 +661,31 @@ export default {
let
date
=
new
Date
(
item
.
activityTime
)
let
d2
=
date
.
getMonth
()
+
1
+
'月'
+
date
.
getDate
()
+
'日'
item
.
activityTime
=
d2
let
newMissionList
let
shareFlag
=
true
while
(
shareFlag
)
{
// shareFlag = false
// 获取分享指标索引
let
missonType
=
item
.
missionList
.
findIndex
((
itm
)
=>
{
return
itm
.
missonType
==
2
})
if
(
missonType
==
-
1
)
{
if
(
newMissionList
)
{
item
.
missionList
=
JSON
.
parse
(
JSON
.
stringify
(
newMissionList
)
).
reverse
()
}
else
{
item
.
missionList
=
item
.
missionList
.
reverse
()
}
shareFlag
=
false
return
}
// // 将分享指标置顶
let
shareItem
=
item
.
missionList
.
splice
(
missonType
,
1
)
newMissionList
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
missionList
))
newMissionList
.
push
(
shareItem
[
0
])
}
item
.
missionList
=
item
.
missionList
.
reverse
()
// let newMissionList
// let shareFlag = true
// while (shareFlag) {
// // shareFlag = false
// // 获取分享指标索引
// let missonType = item.missionList.findIndex((itm) => {
// return itm.missonType == 2
// })
// if (missonType == -1) {
// if (newMissionList) {
// item.missionList = JSON.parse(
// JSON.stringify(newMissionList)
// ).reverse()
// } else {
// item.missionList = item.missionList.reverse()
// }
// shareFlag = false
// return
// }
// // // 将分享指标置顶
// let shareItem = item.missionList.splice(missonType, 1)
// newMissionList = JSON.parse(JSON.stringify(item.missionList))
// newMissionList.push(shareItem[0])
// }
})
this
.
$refs
.
preView
.
init
(
this
.
dateList
)
// }, 500)
...
...
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