Browse Source

制定培训计划

tiaosheng-ms
jarvis 4 years ago
parent
commit
269d65b107
  1. 29
      index.html

29
index.html

@ -45,7 +45,7 @@
<div data-tname="考勤" data-pid="1433332016270811136" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-root="p1432643387798069248" style="height:100%;width:100%;">
<div class="title"></div>
<div class="flex justify-between mt-4">
<div class="flex justify-between">
<div class="text-sm">制定培训计划</div>
<div id="submitProject" class="nightClockBtn bg-blue-500 text-xs rounded-md py-1 px-3 text-white">提交</div>
</div>
@ -55,7 +55,7 @@
</div>
<div class="border-2 w-full mt-2.5 flex justify-between p-2 text-sm">
<p style="color: #999999;">文件上传</p>
<button>上传</button>
<div onclick="p1432643387798069248.upload()">上传</div>
</div>
</div>
</div>
@ -109,6 +109,31 @@
});
},
// 文件上传
upload(){
// console.log(1);
// var input = document.createElement("input");
// input.type = "file";
// input.click();
// input.onchange = function(){
// var file = input.files[0];
// var form = new FormData();
// form.append("file", file); //第一个参数是后台读取的请求key值
// form.append("fileName", file.name);
// form.append("other", "666666"); //实际业务的其他请求参数
// var xhr = new XMLHttpRequest();
// var action = "http://localhost:8080/upload.do"; //上传服务的接口地址
// xhr.open("POST", action);
// xhr.send(form); //发送表单数据
// xhr.onreadystatechange = function(){
// if(xhr.readyState==4 && xhr.status==200){
// var resultObj = JSON.parse(xhr.responseText);
// //处理返回的数据......
// }
// }
// }
},
// 跳转详情
jumpDetails(that) {
const pId = this.dom.parentNode.getAttribute('data-pid');

Loading…
Cancel
Save