|
@@ -143,21 +143,22 @@ export default {
|
|
|
if (res.Ret === 200) {
|
|
|
// 0成功 1部分失败 -1全部失败
|
|
|
let str = `
|
|
|
- <h2 style="margin-bottom:30px">上传成功</h2>
|
|
|
- <p>本次共成功导入${res.Data.SuccessCount}条数据</p>
|
|
|
+ <h2 style="margin-bottom:30px">${this.$t('MsgPrompt.upload_success_msg')}</h2>
|
|
|
+ <p> ${this.$t('ManualEntryPage.upload_tip_msg',{success_count:res.Data.SuccessCount})}</p>
|
|
|
`;
|
|
|
+ // 本次共成功导入${res.Data.SuccessCount}条数据
|
|
|
if (res.Data.Status === 1) {
|
|
|
// this.$message.warning('部分导入失败')
|
|
|
str = `
|
|
|
- <h2 style="margin-bottom:30px">部分数据上传成功!</h2>
|
|
|
- <p>本次共成功导入${res.Data.SuccessCount}条数据,失败${res.Data.FailCount}条</p>
|
|
|
- <a style="display:inline;color:#5882EF;" href="${this.downloadErrorlist}" download>下载失败列表</a>
|
|
|
+ <h2 style="margin-bottom:30px">${this.$t('MsgPrompt.upload_some_msg')}</h2>
|
|
|
+ <p>${this.$t('ManualEntryPage.upload_tip_msg2',{success_count:res.Data.SuccessCount,fail_count:res.Data.FailCount})}</p>
|
|
|
+ <a style="display:inline;color:#5882EF;" href="${this.downloadErrorlist}" download>${this.$t('ManualEntryPage.down_fail_list2')}</a>
|
|
|
`;
|
|
|
} else if (res.Data.Status === -1) {
|
|
|
// this.$message.success("导入成功!");
|
|
|
str = `
|
|
|
- <h2 style="margin-bottom:30px">上传失败!</h2>
|
|
|
- <a style="display:inline;color:#5882EF;" href="${this.downloadErrorlist}" download>下载失败列表</a>
|
|
|
+ <h2 style="margin-bottom:30px">${this.$t('MsgPrompt.upload_fail_msg')}</h2>
|
|
|
+ <a style="display:inline;color:#5882EF;" href="${this.downloadErrorlist}" download>${this.$t('ManualEntryPage.down_fail_list2')}</a>
|
|
|
`;
|
|
|
}
|
|
|
this.$alert(str, "", {
|