Browse Source

信息直报插件

20-plugin-information
aBin 4 years ago
parent
commit
980e93a1aa
  1. 28
      index.html

28
index.html

@ -42,6 +42,34 @@
<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>
const p1419896043390377984 = {
init() {
var dom = document.querySelector("div[data-root=p1419896043390377984]");
var domBox = dom.parentNode;
var title = dom.querySelector('.title');
title.innerHTML = domBox.getAttribute('data-tname')
},
// 跳转详情
jumpDetails(that) {
const pId = that.parentNode.parentNode.getAttribute('data-pid');
const rId = that.parentNode.parentNode.getAttribute('data-rid');
const uId = that.parentNode.parentNode.getAttribute('data-uid');
const tId = that.parentNode.parentNode.getAttribute('data-tid');
location.href = 'https://www.kdocs.cn/l/cpcTuiekDTNm';
}
}
p1419896043390377984.init()
</script>
<!-- 示例插件1-->
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="alert('hello')">测试组建1</button>
<!-- 示例插件2 id=100-->

Loading…
Cancel
Save