Browse Source

16知情谈话插件

11-plugin-be-present
aBin 4 years ago
parent
commit
b4808ac9ba
  1. 37
      index.html

37
index.html

@ -47,26 +47,26 @@
<!-- 示例插件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>
<div data-tname="急诊医生到场" data-pid="1402932548627206144" data-uid="1323567842540523520" data-rid="rid333" data-tid="tid444" data-did="did555" data-pstart="1627560659000" data-rstart="1627564259000" style="height:50px;width:100%"> <div data-tname="知情谈话" data-pid="1402932548627206144" data-uid="1323567842540523520" data-rid="rid333" data-tid="tid444" data-did="did555" data-pstart="1627560659000" data-rstart="1627564259000" style="height:50px;width:100%">
<!-- 到场插件 --> <!-- 到场插件 -->
<div data-root="p1419895701453938688" class="flex flex-row items-center" style="height:100%;width:100%;"> <div data-root="p1419895899999707136" class="flex flex-row items-center" style="height:100%;width:100%;">
<div class="flex-1 title"></div> <div class="flex-1 title"></div>
<div class="flex flex-nowrap startBtn mr-2"> <div class="flex flex-nowrap startBtn mr-2">
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p1419895701453938688.show(this)">开始</button> <button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p1419895899999707136.show(this)">开始</button>
</div> </div>
<div class="flex flex-nowrap statusBtn mr-2 font-bold" style="display:none" onclick="p1419895701453938688.jumpDetails(this)"> <div class="flex flex-nowrap statusBtn mr-2 font-bold" style="display:none" onclick="p1419895899999707136.jumpDetails(this)">
<span class="mr-3 startTime"></span> <span class="mr-3 startTime"></span>
<span class="text-red-500 disparity"></span> <span class="text-red-500 disparity"></span>
</div> </div>
<div class="flex flex-row-reverse items-center" onclick="p1419895701453938688.jumpDetails(this)"> <div class="flex flex-row-reverse items-center" onclick="p1419895899999707136.jumpDetails(this)">
<img style="height:16px" src="https://www.tall.wiki/staticrec/photos/right.png"> <img style="height:16px" src="https://www.tall.wiki/staticrec/photos/right.png">
</div> </div>
<div class="time-box w-screen h-screen fixed z-10" style="background: rgba(0,0,0,0.65);top:0;left:0;display:none"> <div class="time-box w-screen h-screen fixed z-10" style="background: rgba(0,0,0,0.65);top:0;left:0;display:none">
<div class="flex flex-col h-2/6 absolute w-full" style="background:#fff;bottom: 0;"> <div class="flex flex-col h-2/6 absolute w-full" style="background:#fff;bottom: 0;">
<div class="flex justify-between p-2 border-gray-200 border-b-2" style="height:44px;"> <div class="flex justify-between p-2 border-gray-200 border-b-2" style="height:44px;">
<div class="text-gray-500" onclick="p1419895701453938688.cancelTime()">取消</div> <div class="text-gray-500" onclick="p1419895899999707136.cancelTime()">取消</div>
<div>分诊时间</div> <div>分诊时间</div>
<div class="text-blue-500" onclick="p1419895701453938688.changeTime()">确定</div> <div class="text-blue-500" onclick="p1419895899999707136.changeTime()">确定</div>
</div> </div>
<div class="flex flex-1 items-center overflow-hidden"> <div class="flex flex-1 items-center overflow-hidden">
<div class="h-full flex flex-row text-center w-1/6 overflow-x-hidden relative"> <div class="h-full flex flex-row text-center w-1/6 overflow-x-hidden relative">
@ -116,7 +116,7 @@
</div> </div>
<script> <script>
const p1419895701453938688 = { const p1419895899999707136 = {
token: '', token: '',
dom: '', dom: '',
projectId: '', projectId: '',
@ -124,7 +124,7 @@
realStart: '', realStart: '',
init() { init() {
this.dom = document.querySelector("div[data-root=p1419895701453938688]"); this.dom = document.querySelector("div[data-root=p1419895899999707136]");
var domBox = this.dom.parentNode; var domBox = this.dom.parentNode;
var title = this.dom.querySelector('.title'); var title = this.dom.querySelector('.title');
title.innerHTML = domBox.getAttribute('data-tname') title.innerHTML = domBox.getAttribute('data-tname')
@ -170,24 +170,27 @@
*/ */
choose(time){ choose(time){
const that = this; const that = this;
console.log(that.token)
const params = JSON.stringify({ const params = JSON.stringify({
param: { param: {
codeAndAnswerList: [ codeAndAnswerList: [
{ {
answer: time, answer: time,
questionCode: 'JZYSDC' questionCode: 'ZQTH'
} }
], ],
projectId: that.projectId, projectId: that.projectId,
userType: 0 userType: 0
} }
}); });
fetch('http://www.tall.wiki/gateway/qcp/v3.0/patient/aidRecord', { fetch('https://www.tall.wiki/gateway/qcp/v3.0/patient/aidRecord', {
headers: {
'Authorization': 'Bearer ' + that.token,
'Content-Type': 'application/json;charset=utf-8'
},
method: 'POST', method: 'POST',
body: params, mode: 'no-cors',
headers: new Headers({ body: params
'Authorization': 'Bearer ' + that.token ,'Content-Type': 'application/json;charset=utf-8'
})
}).then(function(response) { }).then(function(response) {
return response.json(); return response.json();
}).catch(function(error){ }).catch(function(error){
@ -246,7 +249,7 @@
const rId = that.parentNode.parentNode.getAttribute('data-rid'); const rId = that.parentNode.parentNode.getAttribute('data-rid');
const uId = that.parentNode.parentNode.getAttribute('data-uid'); const uId = that.parentNode.parentNode.getAttribute('data-uid');
const tId = that.parentNode.parentNode.getAttribute('data-tid'); const tId = that.parentNode.parentNode.getAttribute('data-tid');
location.href = `https://www.tall.wiki/qc/information?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`; location.href = `https://www.tall.wiki/qc/treatment?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`;
}, },
// 取消时间 // 取消时间
@ -356,7 +359,7 @@
} }
} }
} }
p1419895701453938688.init() p1419895899999707136.init()
</script> </script>
</div> </div>
</div> </div>

Loading…
Cancel
Save