Commit bbe9dbf2 by li_hongchao

添加异常捕获

parent 2ed6a950
...@@ -210,7 +210,7 @@ export default { ...@@ -210,7 +210,7 @@ export default {
break break
} }
} }
// logger.info('操作选项初始化', _that.curOpt) // logger.info('操作选项初始化', _that.curOpt)
}, },
/** /**
...@@ -340,7 +340,6 @@ export default { ...@@ -340,7 +340,6 @@ export default {
_that.isShowing = val _that.isShowing = val
}, },
doSh(fhzt, shzt, desc = '') { doSh(fhzt, shzt, desc = '') {
let TITLE = '审核'
let _that = this let _that = this
logger.info('item:', JSON.stringify(_that.shInfo)) logger.info('item:', JSON.stringify(_that.shInfo))
var ruleForm = {} var ruleForm = {}
...@@ -358,11 +357,11 @@ export default { ...@@ -358,11 +357,11 @@ export default {
_that.$emit('refresh', _that.shInfo) _that.$emit('refresh', _that.shInfo)
_that.initShItem() _that.initShItem()
} }
}) }).catch(err => {
})
}, },
doZg(zgzt, desc = '') { doZg(zgzt, desc = '') {
let TITLE = '审核'
let _that = this let _that = this
var ruleForm = {} var ruleForm = {}
ruleForm.querytype = _that.shInfo.querytype ruleForm.querytype = _that.shInfo.querytype
...@@ -378,11 +377,11 @@ export default { ...@@ -378,11 +377,11 @@ export default {
_that.$emit('refresh', _that.shInfo) _that.$emit('refresh', _that.shInfo)
_that.initShItem() _that.initShItem()
} }
}) }).catch(err => {
})
}, },
doPlSb() { doPlSb() {
let TITLE = '上报'
let _that = this let _that = this
let ruleForm = {} let ruleForm = {}
var ids = [] var ids = []
...@@ -393,13 +392,14 @@ export default { ...@@ -393,13 +392,14 @@ export default {
ruleForm.level = _that.getLevel() ruleForm.level = _that.getLevel()
NetUtil.bzxxsh NetUtil.bzxxsh
.bzxxPlSb(ruleForm) .plsb(ruleForm)
.then(res => { .then(res => {
if (res.code === 0) { if (res.code === 0) {
_that.$emit('refresh', _that.shInfo) _that.$emit('refresh', _that.shInfo)
_that.initShItem() _that.initShItem()
} }
}) }).catch(err => {
})
}, },
}, },
} }
......
...@@ -700,7 +700,8 @@ export default { ...@@ -700,7 +700,8 @@ export default {
_that.totalPage = Math.ceil(_that.total / _that.pageSize) _that.totalPage = Math.ceil(_that.total / _that.pageSize)
_that.refreshItemsData() _that.refreshItemsData()
} }
}) }).catch(err => {
})
}, },
onSbxxListener() { onSbxxListener() {
...@@ -762,7 +763,8 @@ export default { ...@@ -762,7 +763,8 @@ export default {
if (res.code === 0) { if (res.code === 0) {
_that.getData() _that.getData()
} }
}) }).catch(err => {
})
}, },
onFztmSuccess(e) { onFztmSuccess(e) {
......
...@@ -566,7 +566,8 @@ export default { ...@@ -566,7 +566,8 @@ export default {
} }
}) })
} }
}) }).catch(err => {
})
}, },
}, },
......
...@@ -612,7 +612,8 @@ export default { ...@@ -612,7 +612,8 @@ export default {
} }
}) })
} }
}) }).catch(err => {
})
}, },
}, },
destroyed() { destroyed() {
......
...@@ -1216,7 +1216,8 @@ export default { ...@@ -1216,7 +1216,8 @@ export default {
} }
}) })
} }
}) }).catch(err => {
})
}, },
// 滚动平面选择切换 // 滚动平面选择切换
......
...@@ -98,8 +98,8 @@ module.exports = { ...@@ -98,8 +98,8 @@ module.exports = {
// target: "http://127.0.0.1:8099", // target: "http://127.0.0.1:8099",
// target: "http://47.92.225.109:5602", // target: "http://47.92.225.109:5602",
// target: "http://www.meetfood.cn:2390", // 湖南-线上 // target: "http://www.meetfood.cn:2390", // 湖南-线上
// target:"http://zwpt.xzclub.top:9333/", target:"http://zwpt.xzclub.top:9333/",
target: "http://192.168.128.102:8099", // 江 // target: "http://192.168.128.102:8099", // 江
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment