Browse Source

15治疗方案界面const修改

15-plugin-zlfangan
aBin 4 years ago
parent
commit
456dc596ba
  1. 14
      index.html

14
index.html

@ -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)

Loading…
Cancel
Save