|
|
@ -33,9 +33,11 @@ |
|
|
|
const p1419897059909312512 = { |
|
|
|
name: 'pluginPatientList', |
|
|
|
jumpDetail(that) { |
|
|
|
console.log(that.parentNode.parentNode); |
|
|
|
console.log('data-pid',that.parentNode.parentNode.getAttribute('data-pid')); |
|
|
|
location.href = 'https://www.baidu.com'; |
|
|
|
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.tall.wiki/qc/patientList?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`; |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
@ -91,10 +93,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) |
|
|
|