|
@ -57,7 +57,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
const p100 = { |
|
|
var p100 = { |
|
|
name: 'hello tall plugin', |
|
|
name: 'hello tall plugin', |
|
|
show() { |
|
|
show() { |
|
|
alert(this.name) |
|
|
alert(this.name) |
|
@ -69,12 +69,12 @@ |
|
|
var domChild = document.querySelectorAll('div[data-root=p1419895863458930688]>div'); |
|
|
var domChild = document.querySelectorAll('div[data-root=p1419895863458930688]>div'); |
|
|
domChild[0].innerHTML = domBox.getAttribute('data-tname'); |
|
|
domChild[0].innerHTML = domBox.getAttribute('data-tname'); |
|
|
})() |
|
|
})() |
|
|
const p1419895863458930688 = { |
|
|
var p1419895863458930688 = { |
|
|
jumpDetails(that) { |
|
|
jumpDetails(that) { |
|
|
const pId = that.parentNode.getAttribute('data-pid'); |
|
|
var pId = that.parentNode.getAttribute('data-pid'); |
|
|
const rId = that.parentNode.getAttribute('data-rid'); |
|
|
var rId = that.parentNode.getAttribute('data-rid'); |
|
|
const uId = that.parentNode.getAttribute('data-uid'); |
|
|
var uId = that.parentNode.getAttribute('data-uid'); |
|
|
const tId = that.parentNode.getAttribute('data-tid'); |
|
|
var tId = that.parentNode.getAttribute('data-tid'); |
|
|
console.log(pId) |
|
|
console.log(pId) |
|
|
location.href = `https://www.tall.wiki/qc/treatmentPlan?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`; |
|
|
location.href = `https://www.tall.wiki/qc/treatmentPlan?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`; |
|
|
} |
|
|
} |
|
@ -101,7 +101,7 @@ |
|
|
<!-- 示例插件2 id=100--> |
|
|
<!-- 示例插件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="p100.show()">测试组建2</button> |
|
|
<script> |
|
|
<script> |
|
|
const p100 = { |
|
|
var p100 = { |
|
|
name: 'hello tall plugin', |
|
|
name: 'hello tall plugin', |
|
|
show() { |
|
|
show() { |
|
|
alert(this.name) |
|
|
alert(this.name) |
|
|