Commit da8a7015 by 胡悦

xiugai

1 parent 9a837160
......@@ -349,8 +349,7 @@ export default {
}).catch(err => {
this.IdChange[0] = 0
this.basicLoading = false
console.log(err)
notice.errorTips('查询失败')
notice.errorTips(err)
})
},
assignBasicInfo() {
......@@ -381,10 +380,10 @@ export default {
this.staffTableData.data = res.merchantPersonals
this.IdChange[1] = 0
this.staffLoading = false
}).catch(() => {
}).catch((err) => {
this.IdChange[1] = 0
this.staffLoading = false
notice.errorTips('查询失败')
notice.errorTips(err)
})
},
// 分组信息
......@@ -395,10 +394,10 @@ export default {
this.groupTableData.data = res.merchantGroups
this.IdChange[2] = 0
this.groupLoading = false
}).catch(() => {
}).catch((err) => {
this.IdChange[2] = 0
this.groupLoading = false
notice.errorTips('查询失败')
notice.errorTips(err)
})
},
// 分组信息-详情
......@@ -409,8 +408,8 @@ export default {
request.req(params).then(res => {
res.parentMerchantLevel && (this.parentLevelTableData.data = [res.parentMerchantLevel])
res.childMerchantLevels && (this.childLevelTableData.data = res.childMerchantLevels)
}).catch(() => {
notice.errorTips('查询失败')
}).catch((err) => {
notice.errorTips(err)
})
},
detailVisible() {
......
......@@ -72,6 +72,11 @@ export default {
watch: {
dialogVisible(val) {
this.$validator.errors.clear()
if (!val) {
setTimeout(() => {
this.addParams = { groupName: '', businessCode: '' }
}, 400)
}
}
},
data() {
......@@ -179,7 +184,7 @@ export default {
})
.catch(err => {
this.tableLoading = false
console.log(err)
notice.errorTips(err)
})
},
getBusinessList() {
......@@ -192,7 +197,7 @@ export default {
})
.catch(err => {
this.tableLoading = false
console.log(err)
notice.errorTips(err)
})
},
handleSizeChange(val) {
......@@ -228,7 +233,7 @@ export default {
notice.okTips()
this.dialogVisible = !this.dialogVisible
})
.catch(err => console.log(err))
.catch(err => notice.errorTips(err))
},
// 关闭新增分组弹出框
handleClose() {
......
......@@ -109,6 +109,7 @@ import { groupDetailMethods, request } from '@/api'
import AddBusiness from './addBusiness'
import { resetSearch } from '@/common/common'
import { CityArea } from '../components'
import notice from '@/common/notice'
export default {
name: 'detail',
components: {
......@@ -252,7 +253,7 @@ export default {
})
.catch(err => {
this.tableLoading = false
console.log(err)
notice.errorTips(err)
})
},
handleSizeChange(val) {
......@@ -276,7 +277,7 @@ export default {
})
.catch(err => {
this.tableLoading = false
console.log(err)
notice.errorTips(err)
})
},
// 打开高级搜索弹出框
......
......@@ -97,6 +97,7 @@
</template>
<script>
import notice from '@/common/notice'
import { CityArea } from '../components'
import { businessManagenMethods, request } from '@/api'
const isPhone = {
......@@ -173,7 +174,7 @@ export default {
request.req(params).then(res => {
this.channelList = res.merchantDictList
}).catch(err => {
console.log(err)
notice.errorTips(err)
})
},
getCityArea(params) {
......
......@@ -98,6 +98,7 @@
</template>
<script>
import notice from '@/common/notice'
import { CityArea } from '../components'
import { businessManagenMethods, request } from '@/api'
export default {
......@@ -145,7 +146,7 @@ export default {
request.req(params).then(res => {
this.channelList = res.merchantDictList
}).catch(err => {
console.log(err)
notice.errorTips(err)
})
},
handleClose() {
......
......@@ -175,8 +175,7 @@ export default {
resetSearch(this.merchantSearch)
this.tableLoading = false
}).catch(err => {
console.log(err)
notice.errorTips('查询失败')
notice.errorTips(err)
resetSearch(this.merchantSearch)
this.tableLoading = false
})
......@@ -190,8 +189,7 @@ export default {
this.handleAddHide()
this.loadingGetList()
}).catch(err => {
console.log(err)
notice.errorTips('新增失败')
notice.errorTips(err)
})
},
// 接口请求-end
......
......@@ -149,9 +149,8 @@ export default {
this.tableData.data = res.merchantDictList
this.tableLoading = false
}).catch(err => {
console.log(err)
this.tableLoading = false
notice.errorTips('查询失败')
notice.errorTips(err)
})
},
businessCreate() {
......@@ -162,8 +161,7 @@ export default {
this.showDialog()
this.loadingGetList()
}).catch(err => {
console.log(err)
notice.errorTips('新增失败')
notice.errorTips(err)
})
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!