Browse Source

上传写入数据库

qin_26
herenshan112 2 weeks ago
parent
commit
170b9d6692
  1. 6
      src/views/hr/archives/unitpage/batchImport.vue

6
src/views/hr/archives/unitpage/batchImport.vue

@ -118,7 +118,7 @@ const uploadTrue = (response: any, uploadFile: UploadFile, uploadFiles: UploadFi
@ 功能: 写入数据库 @ 功能: 写入数据库
*/ */
const insetPeopleCont = () => { const insetPeopleCont = () => {
// console.log("===============", jiBuQiVal, totalNum.value); console.log("启动数据写入数据库===============》", jiBuQiVal, totalNum.value,jiBuQiVal < totalNum.value);
if (jiBuQiVal < totalNum.value) { if (jiBuQiVal < totalNum.value) {
let sendData = { let sendData = {
meritsYearIng: meritsYearIng.value, meritsYearIng: meritsYearIng.value,
@ -127,9 +127,9 @@ const insetPeopleCont = () => {
number: jiBuQiVal, number: jiBuQiVal,
orgId: tempForm.orgId.toString(), orgId: tempForm.orgId.toString(),
}; };
// console.log("", sendData); console.log("启动数据写入数据库", sendData);
analysisRedisOrgExelect(sendData).then((data: any) => { analysisRedisOrgExelect(sendData).then((data: any) => {
// console.log("11111",data,data.data.msgStr) console.log("启动数据写入11111数据库",data,data.data.msgStr)
peopleMsg.value.push(data.data.msgStr); peopleMsg.value.push(data.data.msgStr);
jiBuQiVal++; jiBuQiVal++;
// if (jibuq+ 1 >= totalNum.value){ // if (jibuq+ 1 >= totalNum.value){

Loading…
Cancel
Save