Commit 627a9fe2 by cwq0219

修改提示信息

1 parent e7a3cc84
......@@ -348,7 +348,8 @@ export default {
this.IdChange[0] = 0
}).catch(err => {
this.IdChange[0] = 0
notice.errorTips(err)
console.log(err)
notice.errorTips('查询失败')
})
},
assignBasicInfo() {
......@@ -375,10 +376,10 @@ export default {
this.staffTableData.data = res.merchantPersonals
this.IdChange[1] = 0
this.staffLoading = false
}).catch(err => {
}).catch(() => {
this.IdChange[1] = 0
this.staffLoading = false
notice.errorTips(err)
notice.errorTips('查询失败')
})
},
// 分组信息
......@@ -389,10 +390,10 @@ export default {
this.groupTableData.data = res.merchantGroups
this.IdChange[2] = 0
this.groupLoading = false
}).catch(err => {
}).catch(() => {
this.IdChange[2] = 0
this.groupLoading = false
notice.errorTips(err)
notice.errorTips('查询失败')
})
},
// 分组信息-详情
......@@ -403,8 +404,8 @@ export default {
request.req(params).then(res => {
res.parentMerchantLevel && (this.parentLevelTableData.data = [res.parentMerchantLevel])
res.childMerchantLevels && (this.childLevelTableData.data = res.childMerchantLevels)
}).catch(err => {
notice.errorTips(err)
}).catch(() => {
notice.errorTips('查询失败')
})
},
detailVisible() {
......
......@@ -175,7 +175,8 @@ export default {
resetSearch(this.merchantSearch)
this.tableLoading = false
}).catch(err => {
notice.errorTips(err)
console.log(err)
notice.errorTips('查询失败')
resetSearch(this.merchantSearch)
this.tableLoading = false
})
......@@ -190,7 +191,7 @@ export default {
this.loadingGetList()
}).catch(err => {
console.log(err)
notice.errorTips(err)
notice.errorTips('新增失败')
})
},
// 接口请求-end
......
......@@ -149,8 +149,9 @@ export default {
this.tableData.data = res.merchantDictList
this.tableLoading = false
}).catch(err => {
console.log(err)
this.tableLoading = false
notice.errorTips(err)
notice.errorTips('查询失败')
})
},
businessCreate() {
......@@ -161,7 +162,8 @@ export default {
this.showDialog()
this.loadingGetList()
}).catch(err => {
notice.errorTips(err)
console.log(err)
notice.errorTips('新增失败')
})
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!