Commit bbe9dbf2 by li_hongchao

添加异常捕获

parent 2ed6a950
...@@ -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,12 +392,13 @@ export default { ...@@ -393,12 +392,13 @@ 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,6 +700,7 @@ export default { ...@@ -700,6 +700,7 @@ export default {
_that.totalPage = Math.ceil(_that.total / _that.pageSize) _that.totalPage = Math.ceil(_that.total / _that.pageSize)
_that.refreshItemsData() _that.refreshItemsData()
} }
}).catch(err => {
}) })
}, },
...@@ -762,6 +763,7 @@ export default { ...@@ -762,6 +763,7 @@ export default {
if (res.code === 0) { if (res.code === 0) {
_that.getData() _that.getData()
} }
}).catch(err => {
}) })
}, },
......
...@@ -566,6 +566,7 @@ export default { ...@@ -566,6 +566,7 @@ export default {
} }
}) })
} }
}).catch(err => {
}) })
}, },
......
...@@ -612,6 +612,7 @@ export default { ...@@ -612,6 +612,7 @@ export default {
} }
}) })
} }
}).catch(err => {
}) })
}, },
}, },
......
...@@ -71,7 +71,8 @@ ...@@ -71,7 +71,8 @@
<div class="label-value">{{allData.hjdzDzmc}}</div> <div class="label-value">{{allData.hjdzDzmc}}</div>
</div> </div>
<div class="content-area2"> <div class="content-area2">
<el-input type="textarea" :rows="3" placeholder="暂无内容" v-model="allData.personBz" disabled> <el-input type="textarea" :rows="3" placeholder="暂无内容"
v-model="allData.personBz" disabled>
</el-input> </el-input>
</div> </div>
</div> </div>
...@@ -121,7 +122,8 @@ ...@@ -121,7 +122,8 @@
<div class="label-value">{{allData.ajjb}}</div> <div class="label-value">{{allData.ajjb}}</div>
</div> --> </div> -->
<div class="content-area"> <div class="content-area">
<el-input type="textarea" :rows="3" placeholder="暂无内容" v-model="allData.jyaq" disabled> <el-input type="textarea" :rows="3" placeholder="暂无内容" v-model="allData.jyaq"
disabled>
</el-input> </el-input>
</div> </div>
</div> </div>
...@@ -223,12 +225,12 @@ ...@@ -223,12 +225,12 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import {mapState} from 'vuex'
import ImageEd from '@/components/ImageEd.vue' import ImageEd from '@/components/ImageEd.vue'
export default { export default {
name: 'fhxxLT', name: 'fhxxLT',
data () { data() {
return { return {
// 確認解除彈窗 // 確認解除彈窗
isRelieveVisible: false, isRelieveVisible: false,
...@@ -288,15 +290,15 @@ export default { ...@@ -288,15 +290,15 @@ export default {
loading_sd: (state) => state.loading.loading_sd, loading_sd: (state) => state.loading.loading_sd,
}), }),
}, },
mounted () { mounted() {
if(localStorage.getItem('userInfo')) { if (localStorage.getItem('userInfo')) {
this.bzrName = JSON.parse(localStorage.getItem('userInfo')).name this.bzrName = JSON.parse(localStorage.getItem('userInfo')).name
} }
if (this.$route.query.formData) { if (this.$route.query.formData) {
this.formData = this.$route.query.formData this.formData = this.$route.query.formData
} }
}, },
created () { created() {
console.log(this.$route) console.log(this.$route)
this.id = this.$route.params.id this.id = this.$route.params.id
if (this.$route.query.isFromSh) { if (this.$route.query.isFromSh) {
...@@ -314,10 +316,10 @@ export default { ...@@ -314,10 +316,10 @@ export default {
this.getData() this.getData()
}, },
methods: { methods: {
getShOrFhName () { getShOrFhName() {
let _that = this let _that = this
if (_that.isFromSh === 'true') { if (_that.isFromSh === 'true') {
return _that.isSh === 'true'? '审核' : '复核' return _that.isSh === 'true' ? '审核' : '复核'
} else { } else {
return '复核' return '复核'
} }
...@@ -325,7 +327,7 @@ export default { ...@@ -325,7 +327,7 @@ export default {
/** /**
* 获取指纹(人员)图片 * 获取指纹(人员)图片
*/ */
getPersonPic () { getPersonPic() {
let self = this let self = this
if (self.allData.bzxxZwXh) { if (self.allData.bzxxZwXh) {
if (self.allData.bzxxZwXh > 30) { if (self.allData.bzxxZwXh > 30) {
...@@ -382,7 +384,7 @@ export default { ...@@ -382,7 +384,7 @@ export default {
/** /**
* 获取指纹(案件)图片 * 获取指纹(案件)图片
*/ */
getCasePic () { getCasePic() {
let self = this let self = this
this.$axios({ this.$axios({
method: 'post', method: 'post',
...@@ -403,7 +405,7 @@ export default { ...@@ -403,7 +405,7 @@ export default {
/** /**
* 確認解除比中关系 * 確認解除比中关系
*/ */
confirmRelieveChange () { confirmRelieveChange() {
let self = this let self = this
this.$axios({ this.$axios({
method: 'post', method: 'post',
...@@ -437,10 +439,10 @@ export default { ...@@ -437,10 +439,10 @@ export default {
/** /**
* 解除比中关系 * 解除比中关系
*/ */
relieveChange () { relieveChange() {
this.isRelieveVisible = true this.isRelieveVisible = true
}, },
gotoProgress (isPass) {// 进入处理逻辑 gotoProgress(isPass) {// 进入处理逻辑
let _that = this let _that = this
if (!isPass && !_that.fhyj) { if (!isPass && !_that.fhyj) {
this.$message.error('请填写不通过意见!') this.$message.error('请填写不通过意见!')
...@@ -475,9 +477,9 @@ export default { ...@@ -475,9 +477,9 @@ export default {
/** /**
* 未通过 * 未通过
*/ */
noPassChange () { noPassChange() {
let self = this let self = this
if (self.isFromSh=== 'true') { if (self.isFromSh === 'true') {
self.doSh(false) self.doSh(false)
return return
} }
...@@ -514,9 +516,9 @@ export default { ...@@ -514,9 +516,9 @@ export default {
/** /**
* 通过 * 通过
*/ */
passChange () { passChange() {
let self = this let self = this
if (self.isFromSh=== 'true') { if (self.isFromSh === 'true') {
self.doSh(true) self.doSh(true)
return return
} }
...@@ -553,7 +555,7 @@ export default { ...@@ -553,7 +555,7 @@ export default {
/** /**
* 获取数据 * 获取数据
*/ */
getData () { getData() {
let self = this let self = this
this.$axios({ this.$axios({
method: 'post', method: 'post',
...@@ -572,7 +574,7 @@ export default { ...@@ -572,7 +574,7 @@ export default {
leftBarcode: res.data.ret.ysxtAsjxgrybh, leftBarcode: res.data.ret.ysxtAsjxgrybh,
rightBarcode: res.data.ret.ysxtAsjbh rightBarcode: res.data.ret.ysxtAsjbh
}) })
if(this.bzrName == this.allData.bzrXm) { if (this.bzrName == this.allData.bzrXm) {
this.jcbzFlag = true this.jcbzFlag = true
} else { } else {
this.jcbzFlag = false this.jcbzFlag = false
...@@ -589,7 +591,7 @@ export default { ...@@ -589,7 +591,7 @@ export default {
}) })
}, },
doSh (isPass) { doSh(isPass) {
let TITLE = '审核' let TITLE = '审核'
let _that = this let _that = this
var ruleForm = {} var ruleForm = {}
...@@ -598,7 +600,7 @@ export default { ...@@ -598,7 +600,7 @@ export default {
let shzt // 1 审核无效 2 审核有效 let shzt // 1 审核无效 2 审核有效
let fhzt //1 代表 复核无效,2 代表 复核有效 let fhzt //1 代表 复核无效,2 代表 复核有效
if (_that.isSh=== 'true') { if (_that.isSh === 'true') {
shzt = isPass ? '2' : '1' shzt = isPass ? '2' : '1'
fhzt = '2' fhzt = '2'
} else { } else {
...@@ -622,6 +624,7 @@ export default { ...@@ -622,6 +624,7 @@ export default {
} }
}) })
} }
}).catch(err => {
}) })
}, },
......
...@@ -1216,6 +1216,7 @@ export default { ...@@ -1216,6 +1216,7 @@ 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