Browse Source

调接口

13-plugin-medical-skill
aBin 4 years ago
parent
commit
64521332c4
  1. 13
      index.html

13
index.html

@ -47,7 +47,7 @@
<!-- 示例插件2 id=100-->
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button>
<div data-tname="医技结论" data-pid="1402932548627206144" data-uid="1323567842540523520" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-tname="医技结论" data-pid="1420652719055839232" data-uid="1323567842540523520" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<!-- 医技插件 -->
<div data-root="p1419895788024373248" class="flex flex-row items-center" style="height:100%;width:100%;" onclick="p1419895788024373248.jumpDetails(this)">
<div class="flex-1 title"></div>
@ -118,8 +118,9 @@
}
});
fetch('http://www.tall.wiki/gateway/qcp/v3.0/patient/subordinate', {
fetch('https://www.tall.wiki/gateway/qcp/v3.0/patient/subordinate', {
method: 'POST',
mode: 'cors',
body: params,
headers: new Headers({
'Authorization': 'Bearer ' + that.token ,'Content-Type': 'application/json;charset=utf-8'
@ -176,10 +177,10 @@
// 跳转详情
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');
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/medicalSkill?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`;
}
}

Loading…
Cancel
Save