|
|
@ -47,7 +47,17 @@ |
|
|
|
<!-- 示例插件2 id=100--> |
|
|
|
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button> |
|
|
|
|
|
|
|
<div data-tname="考勤" data-pid="1473556016628244480" data-uid="1217647686598135808" data-rid="1473556018582790144" data-tid="tid444" data-did="did555" style="height:500px;width:100%"> |
|
|
|
<div data-tname="考勤" |
|
|
|
data-pid="1473556016628244480" |
|
|
|
data-uid="1217647686598135808" |
|
|
|
data-rid="1473556018582790144" |
|
|
|
data-token="eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTM2MTQwOTksInN1YiI6IjE0ODE0NTg3NDEyOTU3MTQzMDQiLCJhdXRoSWQiOiIxNDgxNDU4NzQxNTMwNTk1MzI4IiwiZXhwIjoxNjUzNjIxMjk5fQ.kM15-gERv5j5qWBeWEG0kDxLWMJesHInnwFQnUaKcGg" |
|
|
|
data-url="http://101.201.226.163:7320/v1.0" |
|
|
|
data-type="1" |
|
|
|
data-tid="tid444" |
|
|
|
data-did="did555" |
|
|
|
style="height:500px;width:100%" |
|
|
|
> |
|
|
|
<!-- 考勤插件 --> |
|
|
|
<div data-root="p1473554031225085952" style="height: 100%; width: 100%;"> |
|
|
|
<div class="pb-3 flex justify-between items-center"> |
|
|
@ -364,10 +374,26 @@ |
|
|
|
|
|
|
|
// 跳转详情 |
|
|
|
jumpDetails(that) { |
|
|
|
// const pId = this.dom.parentNode.getAttribute('data-pid'); |
|
|
|
// const uId = this.dom.parentNode.getAttribute('data-uid'); |
|
|
|
// const rId = this.dom.parentNode.getAttribute('data-rid'); |
|
|
|
// location.href = `https://test.tall.wiki/checkwork/?pid=${pId}&uid=${uId}&rid=${rId}`; |
|
|
|
|
|
|
|
const pId = this.dom.parentNode.getAttribute('data-pid'); |
|
|
|
const uId = this.dom.parentNode.getAttribute('data-uid'); |
|
|
|
const token = this.dom.parentNode.getAttribute('data-token'); |
|
|
|
const rId = this.dom.parentNode.getAttribute('data-rid'); |
|
|
|
location.href = `https://test.tall.wiki/checkwork/?pid=${pId}&uid=${uId}&rid=${rId}`; |
|
|
|
const url = this.dom.parentNode.getAttribute('data-url'); |
|
|
|
const type = this.dom.parentNode.getAttribute('data-type') ? 1 : 0; |
|
|
|
const longitude = this.dom.parentNode.getAttribute('data-longitude'); |
|
|
|
const latitude = this.dom.parentNode.getAttribute('data-latitude'); |
|
|
|
const path = "http://101.201.226.163/tall/v4.0.0/pages/detailWebview/detailWebview"; |
|
|
|
const param = `pid=${pId}&uid=${uId}&rid=${rId}&token=${token}&url=${url}&longitude=${longitude}&latitude=${latitude}`; |
|
|
|
if (type === 1) { |
|
|
|
sessionStorage.setItem('targetUrl', `http://101.201.226.163/leaveProcess/?${param}`); |
|
|
|
} else { |
|
|
|
location.href = `${path}/?url=${encodeURIComponent(param)}`; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
p1473554031225085952.init() |
|
|
|