Commit dd285764 by 李伟康

修复BUG

1 parent a2709a76
......@@ -261,7 +261,6 @@ export default {
delete params.activityTime
console.log(JSON.parse(JSON.stringify(params)))
const res = await this.$apis.redenvelope[targetName](params)
console.log(res)
if (res) {
this.$message({
message: params.id ? '编辑成功' : '创建成功',
......@@ -287,7 +286,7 @@ export default {
this.$refs.file.value = ''
const res = await this.$apis.redenvelope[target](params)
if (res) {
if (res.failCount > 0) {
if (res.totalCount == 0 || res.failCount > 0) {
this.fileError = res.errorUrl
this.$message.error('红包链接导入失败')
this.configForm.exportUrl = ''
......
......@@ -143,7 +143,7 @@ export default {
this.$refs.file.value = ''
const res = await this.$apis.redenvelope.checkImport({ importType, exportUrl: url })
if (res) {
if (res.failCount > 0) {
if (res.totalCount == 0 || res.failCount > 0) {
this.fileError = res.errorUrl
this.$message.error('红包记录导入失败')
this.recordForm.exportUrl = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!