Commit da8a7015 by 胡悦

xiugai

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