|
|
@ -42,6 +42,36 @@ |
|
|
|
<div class="flex-1"> |
|
|
|
<!-- 定期任务面板--> |
|
|
|
<div class="rounded-lg ml-4 bg-white p-3"> |
|
|
|
<div data-tname="信息直报" data-pid="1420652719055839232" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%"> |
|
|
|
<!-- 信息直报插件 --> |
|
|
|
<div data-root="p1419896043390377984" class="flex flex-row items-center" style="height:100%;width:100%;"> |
|
|
|
<div class="flex-1 title" onclick="p1419896043390377984.jumpDetails(this)"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<script> |
|
|
|
var p1419896043390377984 = { |
|
|
|
dom: '', |
|
|
|
|
|
|
|
init() { |
|
|
|
this.dom = document.querySelector("div[data-root=p1419896043390377984]"); |
|
|
|
var domBox = this.dom.parentNode; |
|
|
|
var title = this.dom.querySelector('.title'); |
|
|
|
title.innerHTML = domBox.getAttribute('data-tname') |
|
|
|
}, |
|
|
|
|
|
|
|
// 跳转详情 |
|
|
|
jumpDetails(that) { |
|
|
|
const pId = this.dom.parentNode.getAttribute('data-pid'); |
|
|
|
const rId = this.dom.parentNode.getAttribute('data-rid'); |
|
|
|
const uId = this.dom.parentNode.getAttribute('data-uid'); |
|
|
|
const tId = this.dom.parentNode.getAttribute('data-tid'); |
|
|
|
location.href = `https://www.tall.wiki/qc/infoReport?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`; |
|
|
|
} |
|
|
|
} |
|
|
|
p1419896043390377984.init() |
|
|
|
</script> |
|
|
|
|
|
|
|
<!-- 示例插件1--> |
|
|
|
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="alert('hello')">测试组建1</button> |
|
|
|
<!-- 示例插件2 id=100--> |
|
|
@ -74,10 +104,10 @@ |
|
|
|
<!-- 示例插件1--> |
|
|
|
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="alert('hello')">测试组建1</button> |
|
|
|
<!-- 示例插件2 id=100--> |
|
|
|
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button> |
|
|
|
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p200.show()">测试组建2</button> |
|
|
|
|
|
|
|
<script> |
|
|
|
const p100 = { |
|
|
|
const p200 = { |
|
|
|
name: 'hello tall plugin', |
|
|
|
show() { |
|
|
|
alert(this.name) |
|
|
|