Browse Source

员工工资信息

tall-salary-manage
xuesinan 4 years ago
parent
commit
eff450af90
  1. 11
      index.html

11
index.html

@ -47,12 +47,12 @@
<!-- 示例插件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="1458327559317233664" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-tname="工资条" data-pid="1458721470879637504" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-root="p1458699343338151936" class="w-full">
<div class="flex justify-between items-center">
<div class="text-sm">导入员工工资信息表</div>
<div class="relative flex items-center" id="uploadTable">
<button class="px-3 py-0.5 text-sm text-white rounded-sm" style="background-color: #1890FF;">导入</button>
<button class="px-3 py-0.5 text-sm text-white rounded" style="background-color: #1890FF;">导入</button>
<input class="input-file absolute z-10 opacity-0" type="file" name="files" id="file" multiple>
</div>
</div>
@ -130,16 +130,13 @@
importStaffSalaryInfo(formData) {
let that = this;
var url = 'https://test.tall.wiki/gateway/defaultwbs/salary/import';
var url = 'https://test.tall.wiki/gateway/defaultwbs/salary/import?projectId=' + that.projectId;
fetch(url, {
method: 'POST',
headers: new Headers({
'Authorization': 'Bearer ' + that.token
}),
body: JSON.stringify({
param: formData,
projectId: that.projectId
})
body: formData
})
.then(function(response) {
return response.json();

Loading…
Cancel
Save