Browse Source

调接口

10-plugin-task-start
aBin 4 years ago
parent
commit
a60a86886d
  1. 7
      index.html

7
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" data-pstart="1627560659000" data-rstart="1627564259000" style="height:50px;width:100%">
<div data-tname="分诊" data-pid="1420652719055839232" 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="p1419895659787722752" class="flex flex-row items-center" style="height:100%;width:100%;">
<div class="flex-1 title"></div>
@ -180,8 +180,9 @@
userType: 0
}
});
fetch('http://www.tall.wiki/gateway/qcp/v3.0/patient/aidRecord', {
fetch('https://www.tall.wiki/gateway/qcp/v3.0/patient/aidRecord', {
method: 'POST',
mode: 'cors',
body: params,
headers: new Headers({
'Authorization': 'Bearer ' + that.token ,'Content-Type': 'application/json;charset=utf-8'
@ -289,11 +290,9 @@
if(min<10) {
min = '0' + min
}
console.log(`${year}-${month}-${day} ${hour}:${min}`)
const chooseTime = `${year}-${month}-${day} ${hour}:${min}`
if(chooseTime){
await this.choose(new Date(chooseTime).getTime())
console.log('new Date(chooseTime).getTime(): ', new Date(chooseTime).getTime());
this.cancelTime()
}
},

Loading…
Cancel
Save