|
@@ -722,20 +722,9 @@ export default {
|
|
this.spinning = false
|
|
this.spinning = false
|
|
this.isInster = false
|
|
this.isInster = false
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- if (res.data && res.data.length) {
|
|
|
|
- const tipInfo = res.data
|
|
|
|
- this.$info({
|
|
|
|
- title: '提示',
|
|
|
|
- content: tipInfo,
|
|
|
|
- centered: true,
|
|
|
|
- okText: '知道了'
|
|
|
|
- })
|
|
|
|
- this.$emit('error', 'borrow', 'add')
|
|
|
|
- } else {
|
|
|
|
- this.$message.success('累计产品添加成功', 2.5)
|
|
|
|
- this.resetSearchForm(true)
|
|
|
|
- this.$emit('refash', 'borrow', 'add')
|
|
|
|
- }
|
|
|
|
|
|
+ this.$message.success('累计产品添加成功', 2.5)
|
|
|
|
+ this.resetSearchForm(true)
|
|
|
|
+ this.$emit('refash', 'borrow', 'add')
|
|
} else {
|
|
} else {
|
|
this.$emit('error', 'borrow', 'add')
|
|
this.$emit('error', 'borrow', 'add')
|
|
}
|
|
}
|