|
|
@ -167,17 +167,20 @@ const submitFormSuccess = (response: any) => { |
|
|
|
} |
|
|
|
// 拼接提示语 |
|
|
|
const data = response.data |
|
|
|
let text = '上传成功数量:' + data.createUsernames.length + ';' |
|
|
|
for (let username of data.createUsernames) { |
|
|
|
text += '< ' + username + ' >' |
|
|
|
const create = response.data.importResult[0] |
|
|
|
const update = response.data.importResult[1] |
|
|
|
const failure = response.data.importResult[2] |
|
|
|
let text = '上传成功数量:' + data[create].length + ';' |
|
|
|
for (let name of data[create]) { |
|
|
|
text += '< ' + name + ' >' |
|
|
|
} |
|
|
|
text += '更新成功数量:' + data.updateUsernames.length + ';' |
|
|
|
for (const username of data.updateUsernames) { |
|
|
|
text += '< ' + username + ' >' |
|
|
|
text += '更新成功数量:' + data[update].length + ';' |
|
|
|
for (const name of data[update]) { |
|
|
|
text += '< ' + name + ' >' |
|
|
|
} |
|
|
|
text += '更新失败数量:' + Object.keys(data.failureUsernames).length + ';' |
|
|
|
for (const username in data.failureUsernames) { |
|
|
|
text += '< ' + username + ': ' + data.failureUsernames[username] + ' >' |
|
|
|
text += '更新失败数量:' + Object.keys(data[failure]).length + ';' |
|
|
|
for (const name in data[failure]) { |
|
|
|
text += '< ' + name + ': ' + data[failure][name] + ' >' |
|
|
|
} |
|
|
|
message.alert(text) |
|
|
|
|
|
|
|