Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
Overview
Overview
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
fengzhaoyu
schedule
Commits
852ada78
Commit
852ada78
authored
Apr 15, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.roboming.com/fengzhaoyu/schedule
into dev
parents
53efb5cd
d7d0558a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
683 deletions
+52
-683
myDynamic.js
PageComponents/myDynamic/myDynamic.js
+0
-180
taskList.js
components/taskList/taskList.js
+0
-1
package-lock.json
package-lock.json
+10
-479
package.json
package.json
+1
-2
createMeeting.axml
pages/createMeeting/createMeeting.axml
+1
-1
schedule.js
pages/scheduleList/schedule.js
+5
-2
scheduleList.js
pages/scheduleList/scheduleList.js
+32
-18
utils.js
utils/utils.js
+3
-0
No files found.
PageComponents/myDynamic/myDynamic.js
deleted
100644 → 0
View file @
53efb5cd
import
{
getDynamicList
,
meetingCollection
,
updateMeetingTask
}
from
"../../api/request"
;
import
{
getCreateShowTime
}
from
"../../utils/utils"
;
import
create
from
'dd-store'
;
create
.
Component
({
mixins
:
[],
data
:
{
traceTime
:
'1970-03-01 00:00:00'
,
isStopBodyScroll
:
false
,
dynamicList
:
[],
current
:
1
,
pages
:
1
,
loading
:
true
},
props
:
{},
didMount
()
{
this
.
getPages
(
1
);
},
didUpdate
()
{
console
.
log
(
this
.
data
.
dynamicList
,
111
)
},
didUnmount
()
{
},
methods
:
{
setBodyDisableScroll
(
isStopBodyScroll
)
{
this
.
setData
({
isStopBodyScroll
})
},
//点击页面关闭侧滑模块
closeSwipe
()
{
if
(
this
.
$store
.
closeActiveSwipe
)
{
this
.
$store
.
closeActiveSwipe
()
}
},
getPages
(
current
,
callBack
)
{
getDynamicList
({
current
,
size
:
10
}).
then
(
res
=>
{
if
(
!
res
.
data
.
data
)
{
this
.
setData
({
loading
:
false
})
return
;
}
const
dynamicList
=
res
.
data
.
data
.
records
.
map
((
item
,
index
)
=>
{
for
(
let
i
=
0
;
i
<
item
.
meetingLogDataList
.
length
;
i
++
)
{
item
.
meetingLogDataList
[
i
].
meetingLogResource
.
groupId
=
item
.
groupId
if
(
item
.
meetingLogDataList
[
i
].
creatorInfo
)
{
item
.
meetingLogDataList
[
i
].
creatorInfo
=
JSON
.
parse
(
item
.
meetingLogDataList
[
i
].
creatorInfo
);
}
if
(
item
.
meetingLogDataList
[
i
].
createTime
)
{
item
.
meetingLogDataList
[
i
].
createTime
=
getCreateShowTime
(
item
.
meetingLogDataList
[
i
].
createTime
);
}
let
itemData
=
item
.
meetingLogDataList
[
i
].
meetingLogResource
;
if
(
itemData
)
{
if
(
itemData
.
taskInfos
||
itemData
.
fileInfos
)
{
if
(
itemData
.
creatorInfo
)
{
itemData
.
creatorInfo
=
JSON
.
parse
(
itemData
.
creatorInfo
);
}
if
(
itemData
.
fileInfos
)
{
itemData
.
fileInfos
=
JSON
.
parse
(
itemData
.
fileInfos
);
}
if
(
itemData
.
taskInfos
)
{
itemData
.
taskInfos
=
JSON
.
parse
(
itemData
.
taskInfos
);
}
if
(
itemData
.
acceptorInfo
)
{
itemData
.
acceptorInfo
=
JSON
.
parse
(
itemData
.
acceptorInfo
);
}
}
}
}
return
item
});
//第一页数据会重新请求需要替换
if
(
current
===
1
)
{
this
.
setData
({
dynamicList
});
}
else
{
const
newDynamicList
=
this
.
data
.
dynamicList
.
concat
(
dynamicList
);
this
.
setData
({
dynamicList
:
newDynamicList
});
}
this
.
setData
({
loading
:
false
,
current
:
res
.
data
.
data
.
current
,
pages
:
res
.
data
.
data
.
pages
,
});
if
(
callBack
)
{
callBack
()
}
});
},
changeCollection
(
e
)
{
const
{
index
,
scheduleId
,
collection
}
=
e
.
target
.
dataset
;
meetingCollection
({
scheduleId
,
collection
}).
then
(
res
=>
{
//取消置顶
if
(
collection
===
"N"
)
{
// 重新获取第一页的数据
this
.
getPages
(
1
,
()
=>
{
dd
.
showToast
({
content
:
'取消成功'
})
});
}
else
{
//置顶
const
dynamicList
=
this
.
data
.
dynamicList
;
const
replaceItem
=
dynamicList
[
index
];
dynamicList
[
index
].
traceTime
=
res
.
data
.
data
;
dynamicList
.
splice
(
index
,
1
);
dynamicList
.
unshift
(
replaceItem
);
this
.
setData
({
dynamicList
:
dynamicList
},
()
=>
{
dd
.
showToast
({
content
:
'置顶成功'
})
});
}
});
},
onScrollToLower
()
{
if
(
this
.
data
.
current
<
this
.
data
.
pages
)
{
this
.
getPages
(
this
.
data
.
current
+
1
);
}
},
onChangeTaskStatusOnList
(
e
)
{
const
data
=
{
groupId
:
e
.
groupId
,
scheduleId
:
e
.
scheduleId
,
resourceType
:
"task"
,
creatorId
:
getApp
().
globalData
.
userid
,
creatorInfo
:
getApp
().
globalData
.
userInfo
,
id
:
e
.
id
,
logType
:
"task_status_modify"
,
taskStatus
:
e
.
status
};
updateMeetingTask
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
let
dataIndex1
=
""
;
let
dataIndex2
=
""
;
this
.
data
.
dynamicList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
scheduleId
===
e
.
scheduleId
)
{
dataIndex1
=
index
;
item
.
meetingLogDataList
.
forEach
((
it
,
index2
)
=>
{
if
(
it
.
meetingLogResource
.
id
==
e
.
id
)
{
dataIndex2
=
index2
;
}
});
}
});
const
setData
=
`dynamicList[
${
dataIndex1
}
].meetingLogDataList[
${
dataIndex2
}
].meetingLogResource.taskStatus`
;
this
.
setData
({
[
setData
]:
e
.
status
});
}
});
},
nextPage
(
event
)
{
this
.
$store
.
data
.
tabBarIndex
=
'0'
this
.
update
()
dd
.
navigateTo
({
url
:
`./../meetingDetail/meetingDetail?scheduleItem=
${
JSON
.
stringify
(
event
.
currentTarget
.
dataset
.
item
)}
`
});
},
}
});
components/taskList/taskList.js
View file @
852ada78
...
...
@@ -7,7 +7,6 @@ Component({
isCanEdit
:
true
},
didMount
()
{
console
.
log
(
this
.
props
.
taskList
,
1111
)
},
didUpdate
()
{
},
...
...
package-lock.json
View file @
852ada78
...
...
@@ -2,499 +2,30 @@
"requires"
:
true
,
"lockfileVersion"
:
1
,
"dependencies"
:
{
"ajv"
:
{
"version"
:
"6.12.0"
,
"resolved"
:
"https://registry.npm.taobao.org/ajv/download/ajv-6.12.0.tgz?cache=0&sync_timestamp=1582379551272&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fajv%2Fdownload%2Fajv-6.12.0.tgz"
,
"integrity"
:
"sha1-BtYLlth7hFSlrauobnhU2mKdtLc="
,
"optional"
:
true
,
"requires"
:
{
"fast-deep-equal"
:
"^3.1.1"
,
"fast-json-stable-stringify"
:
"^2.0.0"
,
"json-schema-traverse"
:
"^0.4.1"
,
"uri-js"
:
"^4.2.2"
}
},
"asap"
:
{
"version"
:
"2.0.6"
,
"resolved"
:
"https://registry.npm.taobao.org/asap/download/asap-2.0.6.tgz"
,
"integrity"
:
"sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY="
,
"optional"
:
true
},
"asn1"
:
{
"version"
:
"0.2.4"
,
"resolved"
:
"https://registry.npm.taobao.org/asn1/download/asn1-0.2.4.tgz"
,
"integrity"
:
"sha1-jSR136tVO7M+d7VOWeiAu4ziMTY="
,
"optional"
:
true
,
"requires"
:
{
"safer-buffer"
:
"~2.1.0"
}
},
"assert-plus"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npm.taobao.org/assert-plus/download/assert-plus-1.0.0.tgz"
,
"integrity"
:
"sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
,
"optional"
:
true
},
"asynckit"
:
{
"version"
:
"0.4.0"
,
"resolved"
:
"https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz"
,
"integrity"
:
"sha1-x57Zf380y48robyXkLzDZkdLS3k="
,
"optional"
:
true
},
"aws-sign2"
:
{
"version"
:
"0.7.0"
,
"resolved"
:
"https://registry.npm.taobao.org/aws-sign2/download/aws-sign2-0.7.0.tgz"
,
"integrity"
:
"sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
,
"optional"
:
true
},
"aws4"
:
{
"version"
:
"1.9.1"
,
"resolved"
:
"https://registry.npm.taobao.org/aws4/download/aws4-1.9.1.tgz"
,
"integrity"
:
"sha1-fjPY99RJs/ZzzXLeuavcVS2+Uo4="
,
"optional"
:
true
},
"bcrypt-pbkdf"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npm.taobao.org/bcrypt-pbkdf/download/bcrypt-pbkdf-1.0.2.tgz"
,
"integrity"
:
"sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4="
,
"optional"
:
true
,
"requires"
:
{
"tweetnacl"
:
"^0.14.3"
}
},
"caseless"
:
{
"version"
:
"0.12.0"
,
"resolved"
:
"https://registry.npm.taobao.org/caseless/download/caseless-0.12.0.tgz"
,
"integrity"
:
"sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
,
"optional"
:
true
},
"clone"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npm.taobao.org/clone/download/clone-2.1.2.tgz"
,
"integrity"
:
"sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18="
},
"combined-stream"
:
{
"version"
:
"1.0.8"
,
"resolved"
:
"https://registry.npm.taobao.org/combined-stream/download/combined-stream-1.0.8.tgz"
,
"integrity"
:
"sha1-w9RaizT9cwYxoRCoolIGgrMdWn8="
,
"optional"
:
true
,
"requires"
:
{
"delayed-stream"
:
"~1.0.0"
}
},
"core-util-is"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz"
,
"integrity"
:
"sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
,
"optional"
:
true
},
"dashdash"
:
{
"version"
:
"1.14.1"
,
"resolved"
:
"https://registry.npm.taobao.org/dashdash/download/dashdash-1.14.1.tgz"
,
"integrity"
:
"sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA="
,
"optional"
:
true
,
"requires"
:
{
"assert-plus"
:
"^1.0.0"
}
},
"dd-store"
:
{
"version"
:
"1.8.4"
,
"resolved"
:
"https://registry.npm.taobao.org/dd-store/download/dd-store-1.8.4.tgz"
,
"integrity"
:
"sha1-ao5Y1Pis9gJZ9zV8rw1cbnTl+O8="
},
"delayed-stream"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npm.taobao.org/delayed-stream/download/delayed-stream-1.0.0.tgz"
,
"integrity"
:
"sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
,
"optional"
:
true
},
"ecc-jsbn"
:
{
"version"
:
"0.1.2"
,
"resolved"
:
"https://registry.npm.taobao.org/ecc-jsbn/download/ecc-jsbn-0.1.2.tgz"
,
"integrity"
:
"sha1-OoOpBOVDUyh4dMVkt1SThoSamMk="
,
"optional"
:
true
,
"requires"
:
{
"jsbn"
:
"~0.1.0"
,
"safer-buffer"
:
"^2.1.0"
}
},
"errno"
:
{
"version"
:
"0.1.7"
,
"resolved"
:
"https://registry.npm.taobao.org/errno/download/errno-0.1.7.tgz"
,
"integrity"
:
"sha1-RoTXF3mtOa8Xfj8AeZb3xnyFJhg="
,
"optional"
:
true
,
"requires"
:
{
"prr"
:
"~1.0.1"
}
},
"extend"
:
{
"version"
:
"3.0.2"
,
"resolved"
:
"https://registry.npm.taobao.org/extend/download/extend-3.0.2.tgz"
,
"integrity"
:
"sha1-+LETa0Bx+9jrFAr/hYsQGewpFfo="
,
"optional"
:
true
},
"extsprintf"
:
{
"version"
:
"1.3.0"
,
"resolved"
:
"https://registry.npm.taobao.org/extsprintf/download/extsprintf-1.3.0.tgz"
,
"integrity"
:
"sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
,
"optional"
:
true
},
"fast-deep-equal"
:
{
"version"
:
"3.1.1"
,
"resolved"
:
"https://registry.npm.taobao.org/fast-deep-equal/download/fast-deep-equal-3.1.1.tgz"
,
"integrity"
:
"sha1-VFFFB3xQFJHjOxXsQIwpQ3bpSuQ="
,
"optional"
:
true
},
"fast-json-stable-stringify"
:
{
"version"
:
"2.1.0"
,
"resolved"
:
"https://registry.npm.taobao.org/fast-json-stable-stringify/download/fast-json-stable-stringify-2.1.0.tgz?cache=0&sync_timestamp=1576340291001&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffast-json-stable-stringify%2Fdownload%2Ffast-json-stable-stringify-2.1.0.tgz"
,
"integrity"
:
"sha1-h0v2nG9ATCtdmcSBNBOZ/VWJJjM="
,
"optional"
:
true
},
"forever-agent"
:
{
"version"
:
"0.6.1"
,
"resolved"
:
"https://registry.npm.taobao.org/forever-agent/download/forever-agent-0.6.1.tgz"
,
"integrity"
:
"sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
,
"optional"
:
true
},
"form-data"
:
{
"version"
:
"2.3.3"
,
"resolved"
:
"https://registry.npm.taobao.org/form-data/download/form-data-2.3.3.tgz"
,
"integrity"
:
"sha1-3M5SwF9kTymManq5Nr1yTO/786Y="
,
"optional"
:
true
,
"requires"
:
{
"asynckit"
:
"^0.4.0"
,
"combined-stream"
:
"^1.0.6"
,
"mime-types"
:
"^2.1.12"
}
},
"getpass"
:
{
"version"
:
"0.1.7"
,
"resolved"
:
"https://registry.npm.taobao.org/getpass/download/getpass-0.1.7.tgz"
,
"integrity"
:
"sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo="
,
"optional"
:
true
,
"requires"
:
{
"assert-plus"
:
"^1.0.0"
}
},
"graceful-fs"
:
{
"version"
:
"4.2.3"
,
"resolved"
:
"https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-4.2.3.tgz"
,
"integrity"
:
"sha1-ShL/G2A3bvCYYsIJPt2Qgyi+hCM="
,
"optional"
:
true
},
"har-schema"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npm.taobao.org/har-schema/download/har-schema-2.0.0.tgz"
,
"integrity"
:
"sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
,
"optional"
:
true
},
"har-validator"
:
{
"version"
:
"5.1.3"
,
"resolved"
:
"https://registry.npm.taobao.org/har-validator/download/har-validator-5.1.3.tgz"
,
"integrity"
:
"sha1-HvievT5JllV2de7ZiTEQ3DUPoIA="
,
"optional"
:
true
,
"requires"
:
{
"ajv"
:
"^6.5.5"
,
"har-schema"
:
"^2.0.0"
}
},
"http-signature"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npm.taobao.org/http-signature/download/http-signature-1.2.0.tgz"
,
"integrity"
:
"sha1-muzZJRFHcvPZW2WmCruPfBj7rOE="
,
"optional"
:
true
,
"requires"
:
{
"assert-plus"
:
"^1.0.0"
,
"jsprim"
:
"^1.2.2"
,
"sshpk"
:
"^1.7.0"
}
},
"image-size"
:
{
"version"
:
"0.5.5"
,
"resolved"
:
"https://registry.npm.taobao.org/image-size/download/image-size-0.5.5.tgz"
,
"integrity"
:
"sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w="
,
"optional"
:
true
},
"is-typedarray"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz"
,
"integrity"
:
"sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
,
"optional"
:
true
},
"isstream"
:
{
"version"
:
"0.1.2"
,
"resolved"
:
"https://registry.npm.taobao.org/isstream/download/isstream-0.1.2.tgz"
,
"integrity"
:
"sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
,
"optional"
:
true
},
"jsbn"
:
{
"version"
:
"0.1.1"
,
"resolved"
:
"https://registry.npm.taobao.org/jsbn/download/jsbn-0.1.1.tgz"
,
"integrity"
:
"sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
,
"optional"
:
true
},
"json-schema"
:
{
"version"
:
"0.2.3"
,
"resolved"
:
"https://registry.npm.taobao.org/json-schema/download/json-schema-0.2.3.tgz"
,
"integrity"
:
"sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
,
"optional"
:
true
},
"json-schema-traverse"
:
{
"version"
:
"0.4.1"
,
"resolved"
:
"https://registry.npm.taobao.org/json-schema-traverse/download/json-schema-traverse-0.4.1.tgz"
,
"integrity"
:
"sha1-afaofZUTq4u4/mO9sJecRI5oRmA="
,
"optional"
:
true
},
"json-stringify-safe"
:
{
"version"
:
"5.0.1"
,
"resolved"
:
"https://registry.npm.taobao.org/json-stringify-safe/download/json-stringify-safe-5.0.1.tgz"
,
"integrity"
:
"sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
,
"optional"
:
true
},
"jsprim"
:
{
"version"
:
"1.4.1"
,
"resolved"
:
"https://registry.npm.taobao.org/jsprim/download/jsprim-1.4.1.tgz"
,
"integrity"
:
"sha1-MT5mvB5cwG5Di8G3SZwuXFastqI="
,
"optional"
:
true
,
"requires"
:
{
"assert-plus"
:
"1.0.0"
,
"extsprintf"
:
"1.3.0"
,
"json-schema"
:
"0.2.3"
,
"verror"
:
"1.10.0"
}
},
"less"
:
{
"version"
:
"3.11.1"
,
"resolved"
:
"https://registry.npm.taobao.org/less/download/less-3.11.1.tgz?cache=0&sync_timestamp=1581400737293&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fless%2Fdownload%2Fless-3.11.1.tgz"
,
"integrity"
:
"sha1-xr8I454CQE/mswej3/+v3FW9NuI="
,
"requires"
:
{
"clone"
:
"^2.1.2"
,
"errno"
:
"^0.1.1"
,
"graceful-fs"
:
"^4.1.2"
,
"image-size"
:
"~0.5.0"
,
"mime"
:
"^1.4.1"
,
"mkdirp"
:
"^0.5.0"
,
"promise"
:
"^7.1.1"
,
"request"
:
"^2.83.0"
,
"source-map"
:
"~0.6.0"
,
"tslib"
:
"^1.10.0"
}
"version"
:
"1.9.0"
,
"resolved"
:
"https://registry.npm.taobao.org/dd-store/download/dd-store-1.9.0.tgz"
,
"integrity"
:
"sha1-j1MeKLaZGRm8YKFxSPqeG7oUI5c="
},
"luxon"
:
{
"version"
:
"1.22.2"
,
"resolved"
:
"https://registry.npmjs.org/luxon/-/luxon-1.22.2.tgz"
,
"integrity"
:
"sha512-vq6eSaOOw1fKob+JXwfu0e3/UFUT4G4HTFRJab7dch8J1OdOGW/vXqCiJsY7rm2In+5gKNYx0EtnYT0Tc5V4Qw=="
,
"optional"
:
true
},
"mime"
:
{
"version"
:
"1.6.0"
,
"resolved"
:
"https://registry.npm.taobao.org/mime/download/mime-1.6.0.tgz"
,
"integrity"
:
"sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE="
,
"optional"
:
true
},
"mime-db"
:
{
"version"
:
"1.43.0"
,
"resolved"
:
"https://registry.npm.taobao.org/mime-db/download/mime-db-1.43.0.tgz?cache=0&sync_timestamp=1578281104943&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-db%2Fdownload%2Fmime-db-1.43.0.tgz"
,
"integrity"
:
"sha1-ChLgUCZQ5HPXNVNQUOfI9OtPrlg="
,
"optional"
:
true
},
"mime-types"
:
{
"version"
:
"2.1.26"
,
"resolved"
:
"https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.26.tgz?cache=0&sync_timestamp=1578282585871&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-types%2Fdownload%2Fmime-types-2.1.26.tgz"
,
"integrity"
:
"sha1-nJIfwJt+FJpl39wNpNIJlyALCgY="
,
"optional"
:
true
,
"requires"
:
{
"mime-db"
:
"1.43.0"
}
},
"minimist"
:
{
"version"
:
"1.2.5"
,
"resolved"
:
"https://registry.npm.taobao.org/minimist/download/minimist-1.2.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fminimist%2Fdownload%2Fminimist-1.2.5.tgz"
,
"integrity"
:
"sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI="
,
"optional"
:
true
},
"mkdirp"
:
{
"version"
:
"0.5.5"
,
"resolved"
:
"https://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.5.tgz"
,
"integrity"
:
"sha1-2Rzv1i0UNsoPQWIOJRKI1CAJne8="
,
"optional"
:
true
,
"requires"
:
{
"minimist"
:
"^1.2.5"
}
},
"oauth-sign"
:
{
"version"
:
"0.9.0"
,
"resolved"
:
"https://registry.npm.taobao.org/oauth-sign/download/oauth-sign-0.9.0.tgz"
,
"integrity"
:
"sha1-R6ewFrqmi1+g7PPe4IqFxnmsZFU="
,
"optional"
:
true
},
"performance-now"
:
{
"version"
:
"2.1.0"
,
"resolved"
:
"https://registry.npm.taobao.org/performance-now/download/performance-now-2.1.0.tgz"
,
"integrity"
:
"sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
,
"optional"
:
true
},
"promise"
:
{
"version"
:
"7.3.1"
,
"resolved"
:
"https://registry.npm.taobao.org/promise/download/promise-7.3.1.tgz"
,
"integrity"
:
"sha1-BktyYCsY+Q8pGSuLG8QY/9Hr078="
,
"optional"
:
true
,
"requires"
:
{
"asap"
:
"~2.0.3"
}
},
"prr"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npm.taobao.org/prr/download/prr-1.0.1.tgz"
,
"integrity"
:
"sha1-0/wRS6BplaRexok/SEzrHXj19HY="
,
"optional"
:
true
},
"psl"
:
{
"version"
:
"1.8.0"
,
"resolved"
:
"https://registry.npm.taobao.org/psl/download/psl-1.8.0.tgz"
,
"integrity"
:
"sha1-kyb4vPsBOtzABf3/BWrM4CDlHCQ="
,
"optional"
:
true
},
"punycode"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npm.taobao.org/punycode/download/punycode-2.1.1.tgz"
,
"integrity"
:
"sha1-tYsBCsQMIsVldhbI0sLALHv0eew="
,
"version"
:
"1.23.0"
,
"resolved"
:
"https://registry.npm.taobao.org/luxon/download/luxon-1.23.0.tgz"
,
"integrity"
:
"sha1-I7dIrQ8tVJTcTSh4wZJ4weZRQQw="
,
"optional"
:
true
},
"qs"
:
{
"version"
:
"6.5.2"
,
"resolved"
:
"https://registry.npm.taobao.org/qs/download/qs-6.5.2.tgz"
,
"integrity"
:
"sha1-yzroBuh0BERYTvFUzo7pjUA/PjY="
,
"optional"
:
true
},
"request"
:
{
"version"
:
"2.88.2"
,
"resolved"
:
"https://registry.npm.taobao.org/request/download/request-2.88.2.tgz"
,
"integrity"
:
"sha1-1zyRhzHLWofaBH4gcjQUb2ZNErM="
,
"optional"
:
true
,
"requires"
:
{
"aws-sign2"
:
"~0.7.0"
,
"aws4"
:
"^1.8.0"
,
"caseless"
:
"~0.12.0"
,
"combined-stream"
:
"~1.0.6"
,
"extend"
:
"~3.0.2"
,
"forever-agent"
:
"~0.6.1"
,
"form-data"
:
"~2.3.2"
,
"har-validator"
:
"~5.1.3"
,
"http-signature"
:
"~1.2.0"
,
"is-typedarray"
:
"~1.0.0"
,
"isstream"
:
"~0.1.2"
,
"json-stringify-safe"
:
"~5.0.1"
,
"mime-types"
:
"~2.1.19"
,
"oauth-sign"
:
"~0.9.0"
,
"performance-now"
:
"^2.1.0"
,
"qs"
:
"~6.5.2"
,
"safe-buffer"
:
"^5.1.2"
,
"tough-cookie"
:
"~2.5.0"
,
"tunnel-agent"
:
"^0.6.0"
,
"uuid"
:
"^3.3.2"
}
},
"rrule"
:
{
"version"
:
"2.6.4"
,
"resolved"
:
"https://registry.npm
js.org/rrule/-
/rrule-2.6.4.tgz"
,
"integrity"
:
"sha
512-sLdnh4lmjUqq8liFiOUXD5kWp/FcnbDLPwq5YAc/RrN6120XOPb86Ae5zxF7ttBVq8O3LxjjORMEit1baluahA=
="
,
"resolved"
:
"https://registry.npm
.taobao.org/rrule/download
/rrule-2.6.4.tgz"
,
"integrity"
:
"sha
1-f08x/aErxySbsXbIkRCam8RI4DU
="
,
"requires"
:
{
"luxon"
:
"^1.21.3"
,
"tslib"
:
"^1.10.0"
}
},
"safe-buffer"
:
{
"version"
:
"5.2.0"
,
"resolved"
:
"https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.0.tgz"
,
"integrity"
:
"sha1-t02uxJsRSPiMZLaNSbHoFcHy9Rk="
,
"optional"
:
true
},
"safer-buffer"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npm.taobao.org/safer-buffer/download/safer-buffer-2.1.2.tgz"
,
"integrity"
:
"sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo="
,
"optional"
:
true
},
"source-map"
:
{
"version"
:
"0.6.1"
,
"resolved"
:
"https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1571657176668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz"
,
"integrity"
:
"sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
,
"optional"
:
true
},
"sshpk"
:
{
"version"
:
"1.16.1"
,
"resolved"
:
"https://registry.npm.taobao.org/sshpk/download/sshpk-1.16.1.tgz"
,
"integrity"
:
"sha1-+2YcC+8ps520B2nuOfpwCT1vaHc="
,
"optional"
:
true
,
"requires"
:
{
"asn1"
:
"~0.2.3"
,
"assert-plus"
:
"^1.0.0"
,
"bcrypt-pbkdf"
:
"^1.0.0"
,
"dashdash"
:
"^1.12.0"
,
"ecc-jsbn"
:
"~0.1.1"
,
"getpass"
:
"^0.1.1"
,
"jsbn"
:
"~0.1.0"
,
"safer-buffer"
:
"^2.0.2"
,
"tweetnacl"
:
"~0.14.0"
}
},
"tough-cookie"
:
{
"version"
:
"2.5.0"
,
"resolved"
:
"https://registry.npm.taobao.org/tough-cookie/download/tough-cookie-2.5.0.tgz?cache=0&sync_timestamp=1584646121003&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftough-cookie%2Fdownload%2Ftough-cookie-2.5.0.tgz"
,
"integrity"
:
"sha1-zZ+yoKodWhK0c72fuW+j3P9lreI="
,
"optional"
:
true
,
"requires"
:
{
"psl"
:
"^1.1.28"
,
"punycode"
:
"^2.1.1"
}
},
"tslib"
:
{
"version"
:
"1.11.1"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz"
,
"integrity"
:
"sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA=="
},
"tunnel-agent"
:
{
"version"
:
"0.6.0"
,
"resolved"
:
"https://registry.npm.taobao.org/tunnel-agent/download/tunnel-agent-0.6.0.tgz"
,
"integrity"
:
"sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0="
,
"optional"
:
true
,
"requires"
:
{
"safe-buffer"
:
"^5.0.1"
}
},
"tweetnacl"
:
{
"version"
:
"0.14.5"
,
"resolved"
:
"https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz?cache=0&sync_timestamp=1581364203962&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftweetnacl%2Fdownload%2Ftweetnacl-0.14.5.tgz"
,
"integrity"
:
"sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
,
"optional"
:
true
},
"uri-js"
:
{
"version"
:
"4.2.2"
,
"resolved"
:
"https://registry.npm.taobao.org/uri-js/download/uri-js-4.2.2.tgz"
,
"integrity"
:
"sha1-lMVA4f93KVbiKZUHwBCupsiDjrA="
,
"optional"
:
true
,
"requires"
:
{
"punycode"
:
"^2.1.0"
}
},
"uuid"
:
{
"version"
:
"3.4.0"
,
"resolved"
:
"https://registry.npm.taobao.org/uuid/download/uuid-3.4.0.tgz"
,
"integrity"
:
"sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4="
,
"optional"
:
true
},
"verror"
:
{
"version"
:
"1.10.0"
,
"resolved"
:
"https://registry.npm.taobao.org/verror/download/verror-1.10.0.tgz"
,
"integrity"
:
"sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA="
,
"optional"
:
true
,
"requires"
:
{
"assert-plus"
:
"^1.0.0"
,
"core-util-is"
:
"1.0.2"
,
"extsprintf"
:
"^1.2.0"
}
"resolved"
:
"https://registry.npm.taobao.org/tslib/download/tslib-1.11.1.tgz"
,
"integrity"
:
"sha1-6xXRKIJ/vuKEFUnhcfRe0zisfjU="
}
}
}
package.json
View file @
852ada78
{
"dependencies"
:
{
"
dd-store
"
:
"^1.8.4"
,
"
less
"
:
"^3.11.1"
,
"
dd-store
"
:
"^1.9.0"
,
"
rrule
"
:
"^2.6.4"
}
}
pages/createMeeting/createMeeting.axml
View file @
852ada78
...
...
@@ -12,7 +12,7 @@
</view>
<!-- $data.$data.roomId locationName 地点 -->
<view class="place">
<view class="iconicon_room
1
iconfont icon " a:if="{{$data.roomId}}">
<view class="iconicon_room iconfont icon " a:if="{{$data.roomId}}">
</view>
<view class="iconicon_location1 iconfont icon {{$data.locationName ? '' : 'noValueIcon'}}" a:else>
</view>
...
...
pages/scheduleList/schedule.js
View file @
852ada78
...
...
@@ -38,11 +38,14 @@ export function getExcludeDate(data = []) {
// 返回跨天数
export
function
getNextDateList
(
startTime
,
endTime
)
{
// if (startTime.getTime() == new Date('2020/4/15 23:55').getTime()) {
// debugger
// }
let
days
=
0
;
const
nextDateList
=
[];
if
(
startTime
.
getDate
()
!==
endTime
.
getDate
())
{
//同一个月
if
(
startTime
.
getMonth
()
!
==
endTime
.
getMonth
())
{
if
(
startTime
.
getMonth
()
==
endTime
.
getMonth
())
{
days
=
endTime
.
getDate
()
-
startTime
.
getDate
();
}
//跨月
...
...
@@ -55,7 +58,7 @@ export function getNextDateList(startTime, endTime) {
//跨一个月 不考虑
}
//返回跨天的日期数组
for
(
let
i
=
1
;
i
<=
days
;
i
++
)
{
for
(
let
i
=
0
;
i
<=
days
;
i
++
)
{
const
newDate
=
new
Date
(
startTime
);
const
nextDate
=
toLocaleDateString
(
new
Date
(
newDate
.
setDate
(
newDate
.
getDate
()
+
i
)));
nextDateList
.
push
(
nextDate
)
...
...
pages/scheduleList/scheduleList.js
View file @
852ada78
...
...
@@ -56,6 +56,7 @@ create.Page({
this
.
getPages
(
1
);
//获取日程列表
this
.
getData
();
this
.
isFirstLoad
=
true
;
},
//动态列表侧滑的时候禁止页面上下滑动
setBodyDisableScroll
(
isStopBodyScroll
)
{
...
...
@@ -82,6 +83,7 @@ create.Page({
}
const
dynamicList
=
res
.
data
.
data
.
records
.
map
((
item
,
index
)
=>
{
for
(
let
i
=
0
;
i
<
item
.
meetingLogDataList
.
length
;
i
++
)
{
if
(
item
.
meetingLogDataList
[
i
].
creatorInfo
)
{
item
.
meetingLogDataList
[
i
].
creatorInfo
=
JSON
.
parse
(
item
.
meetingLogDataList
[
i
].
creatorInfo
...
...
@@ -94,6 +96,7 @@ create.Page({
}
let
itemData
=
item
.
meetingLogDataList
[
i
].
meetingLogResource
;
if
(
itemData
)
{
itemData
.
groupId
=
item
.
groupId
if
(
itemData
.
taskInfos
||
itemData
.
fileInfos
)
{
if
(
itemData
.
creatorInfo
)
{
itemData
.
creatorInfo
=
JSON
.
parse
(
itemData
.
creatorInfo
);
...
...
@@ -240,7 +243,8 @@ create.Page({
thisDayEndTime
:
getFormatDate
(
endTime
,
'HH:mm'
),
confirmAttendance
:
item
.
confirmAttendance
,
title
:
item
.
title
,
id
:
item
.
id
id
:
item
.
id
,
isBeOverdue
:
currentDate
.
getTime
()
>
endTime
.
getTime
()
?
true
:
false
};
//模板会议id为空
if
(
type
==
'repeat'
)
{
...
...
@@ -248,31 +252,35 @@ create.Page({
pushItem
.
id
=
''
}
if
(
DateMap
.
has
(
toLocaleDateString
(
startTime
)))
{
DateMap
.
get
(
toLocaleDateString
(
startTime
)).
push
(
pushItem
)
}
// 如果是跨天会议,需要手动在今天以后的其他天 添加会议日程
const
nextDateList
=
getNextDateList
(
startTime
,
endTime
);
if
(
nextDateList
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
nextDateList
.
length
;
i
++
)
{
// 如果是跨天会议,需要手动在起始天以后的其他天 添加会议日程
const
nextDateList
=
getNextDateList
(
startTime
,
endTime
);
//返回日期包括起始天
if
(
nextDateList
.
length
>
1
)
{
pushItem
.
isDaySpan
=
true
;
pushItem
.
isFewDays
=
1
;
pushItem
.
isfirstDayOrEndDay
=
'0'
// 0 第一天,1中间的天,2结束的天
pushItem
.
duration
=
nextDateList
.
length
;
for
(
let
i
=
1
;
i
<
nextDateList
.
length
;
i
++
)
{
if
(
DateMap
.
has
(
nextDateList
[
i
]))
{
DateMap
.
get
(
nextDateList
[
i
]).
push
({
DateMap
.
get
(
nextDateList
[
i
]).
unshift
({
...
pushItem
,
isDaySpan
:
true
,
isfirstDayOrEndDay
:
i
===
0
?
"0"
:
i
===
nextDateList
.
length
?
"2"
:
"1"
,
// 0 第一天,1中间的天,2结束的天
isFewDays
:
i
+
1
,
duration
:
nextDateList
.
length
+
1
,
isBeOverdue
:
currentDate
.
getTime
()
>
endTime
.
getTime
()
?
true
:
false
isfirstDayOrEndDay
:
nextDateList
.
length
-
1
===
i
?
"2"
:
"1"
,
// 0 第一天,1中间的天,2结束的天
});
}
}
}
if
(
DateMap
.
has
(
toLocaleDateString
(
startTime
)))
{
DateMap
.
get
(
toLocaleDateString
(
startTime
)).
push
(
pushItem
)
}
},
// 根据接口返回数据生成填充DateMap
setDateMapByResponse
(
response
)
{
if
(
response
)
{
const
repeatIdList
=
[];
//重复会议的ID
// 处理重复会议 templateList
console
.
log
(
'deal templateList'
)
response
.
templateList
.
forEach
(
item
=>
{
repeatIdList
.
push
(
item
.
id
)
// 生成rrules规则
...
...
@@ -311,21 +319,23 @@ create.Page({
}
});
console
.
log
(
'deal scheduleList'
)
// 处理单次会议 scheduleList
response
.
scheduleList
.
forEach
(
item
=>
{
if
(
!
item
.
scheduleTemplateId
)
{
this
.
setDateMapValue
(
new
Date
(
item
.
startTime
.
replace
(
/-/g
,
'/'
)),
new
Date
(
item
.
endTime
.
replace
(
/-/g
,
'/'
)),
item
);
}
//
if (!item.scheduleTemplateId) {
//
this.setDateMapValue(new Date(item.startTime.replace(/-/g, '/')), new Date(item.endTime.replace(/-/g, '/')), item);
//
}
// 有scheduleTemplateId则是虚拟会议转成实体会议,需要替换rrule生成的模板会议
else
if
(
repeatIdList
.
includes
(
item
.
scheduleTemplateId
))
{
if
(
repeatIdList
.
includes
(
item
.
scheduleTemplateId
))
{
const
list
=
DateMap
.
get
(
toLocaleDateString
(
new
Date
(
item
.
planDate
.
replace
(
/-/g
,
'/'
))))
||
[];
list
.
forEach
((
o
,
index
)
=>
{
if
(
o
.
scheduleTemplateId
==
item
.
scheduleTemplateId
)
{
list
.
splice
(
index
,
1
,
item
)
list
.
splice
(
index
,
1
);
}
});
}
this
.
setDateMapValue
(
new
Date
(
item
.
startTime
.
replace
(
/-/g
,
'/'
)),
new
Date
(
item
.
endTime
.
replace
(
/-/g
,
'/'
)),
item
);
});
}
},
...
...
@@ -608,5 +618,9 @@ create.Page({
if
(
tabbar
==
'1'
&&
lastTimeTabBarIndex
==
tabbar
)
{
this
.
backToToday
();
}
if
(
this
.
isFirstLoad
)
{
this
.
backToToday
();
this
.
isFirstLoad
=
false
;
}
}
});
utils/utils.js
View file @
852ada78
...
...
@@ -30,6 +30,9 @@ export function debounce(fn, delay) {
Symbol 分隔符号
*/
export
function
getFormatDate
(
time
,
format
,
symbol
)
{
if
(
typeof
time
==
'string'
)
{
time
=
new
Date
(
time
.
replace
(
/-/g
,
'/'
))
}
format
=
format
?
format
:
"yyyyMMdd HH:mm:ss"
;
symbol
=
symbol
?
symbol
:
""
;
let
year
=
time
.
getFullYear
();
...
...
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