Commit bbe9dbf2 by li_hongchao

添加异常捕获

parent 2ed6a950
......@@ -340,7 +340,6 @@ export default {
_that.isShowing = val
},
doSh(fhzt, shzt, desc = '') {
let TITLE = '审核'
let _that = this
logger.info('item:', JSON.stringify(_that.shInfo))
var ruleForm = {}
......@@ -358,11 +357,11 @@ export default {
_that.$emit('refresh', _that.shInfo)
_that.initShItem()
}
}).catch(err => {
})
},
doZg(zgzt, desc = '') {
let TITLE = '审核'
let _that = this
var ruleForm = {}
ruleForm.querytype = _that.shInfo.querytype
......@@ -378,11 +377,11 @@ export default {
_that.$emit('refresh', _that.shInfo)
_that.initShItem()
}
}).catch(err => {
})
},
doPlSb() {
let TITLE = '上报'
let _that = this
let ruleForm = {}
var ids = []
......@@ -393,12 +392,13 @@ export default {
ruleForm.level = _that.getLevel()
NetUtil.bzxxsh
.bzxxPlSb(ruleForm)
.plsb(ruleForm)
.then(res => {
if (res.code === 0) {
_that.$emit('refresh', _that.shInfo)
_that.initShItem()
}
}).catch(err => {
})
},
},
......
......@@ -700,6 +700,7 @@ export default {
_that.totalPage = Math.ceil(_that.total / _that.pageSize)
_that.refreshItemsData()
}
}).catch(err => {
})
},
......@@ -762,6 +763,7 @@ export default {
if (res.code === 0) {
_that.getData()
}
}).catch(err => {
})
},
......
......@@ -566,6 +566,7 @@ export default {
}
})
}
}).catch(err => {
})
},
......
......@@ -612,6 +612,7 @@ export default {
}
})
}
}).catch(err => {
})
},
},
......
......@@ -71,7 +71,8 @@
<div class="label-value">{{allData.hjdzDzmc}}</div>
</div>
<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>
</div>
</div>
......@@ -121,7 +122,8 @@
<div class="label-value">{{allData.ajjb}}</div>
</div> -->
<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>
</div>
</div>
......@@ -223,12 +225,12 @@
</template>
<script>
import { mapState } from 'vuex'
import {mapState} from 'vuex'
import ImageEd from '@/components/ImageEd.vue'
export default {
name: 'fhxxLT',
data () {
data() {
return {
// 確認解除彈窗
isRelieveVisible: false,
......@@ -288,15 +290,15 @@ export default {
loading_sd: (state) => state.loading.loading_sd,
}),
},
mounted () {
if(localStorage.getItem('userInfo')) {
mounted() {
if (localStorage.getItem('userInfo')) {
this.bzrName = JSON.parse(localStorage.getItem('userInfo')).name
}
if (this.$route.query.formData) {
this.formData = this.$route.query.formData
}
},
created () {
created() {
console.log(this.$route)
this.id = this.$route.params.id
if (this.$route.query.isFromSh) {
......@@ -314,10 +316,10 @@ export default {
this.getData()
},
methods: {
getShOrFhName () {
getShOrFhName() {
let _that = this
if (_that.isFromSh === 'true') {
return _that.isSh === 'true'? '审核' : '复核'
return _that.isSh === 'true' ? '审核' : '复核'
} else {
return '复核'
}
......@@ -325,7 +327,7 @@ export default {
/**
* 获取指纹(人员)图片
*/
getPersonPic () {
getPersonPic() {
let self = this
if (self.allData.bzxxZwXh) {
if (self.allData.bzxxZwXh > 30) {
......@@ -382,7 +384,7 @@ export default {
/**
* 获取指纹(案件)图片
*/
getCasePic () {
getCasePic() {
let self = this
this.$axios({
method: 'post',
......@@ -403,7 +405,7 @@ export default {
/**
* 確認解除比中关系
*/
confirmRelieveChange () {
confirmRelieveChange() {
let self = this
this.$axios({
method: 'post',
......@@ -437,10 +439,10 @@ export default {
/**
* 解除比中关系
*/
relieveChange () {
relieveChange() {
this.isRelieveVisible = true
},
gotoProgress (isPass) {// 进入处理逻辑
gotoProgress(isPass) {// 进入处理逻辑
let _that = this
if (!isPass && !_that.fhyj) {
this.$message.error('请填写不通过意见!')
......@@ -475,9 +477,9 @@ export default {
/**
* 未通过
*/
noPassChange () {
noPassChange() {
let self = this
if (self.isFromSh=== 'true') {
if (self.isFromSh === 'true') {
self.doSh(false)
return
}
......@@ -514,9 +516,9 @@ export default {
/**
* 通过
*/
passChange () {
passChange() {
let self = this
if (self.isFromSh=== 'true') {
if (self.isFromSh === 'true') {
self.doSh(true)
return
}
......@@ -553,7 +555,7 @@ export default {
/**
* 获取数据
*/
getData () {
getData() {
let self = this
this.$axios({
method: 'post',
......@@ -572,7 +574,7 @@ export default {
leftBarcode: res.data.ret.ysxtAsjxgrybh,
rightBarcode: res.data.ret.ysxtAsjbh
})
if(this.bzrName == this.allData.bzrXm) {
if (this.bzrName == this.allData.bzrXm) {
this.jcbzFlag = true
} else {
this.jcbzFlag = false
......@@ -589,7 +591,7 @@ export default {
})
},
doSh (isPass) {
doSh(isPass) {
let TITLE = '审核'
let _that = this
var ruleForm = {}
......@@ -598,7 +600,7 @@ export default {
let shzt // 1 审核无效 2 审核有效
let fhzt //1 代表 复核无效,2 代表 复核有效
if (_that.isSh=== 'true') {
if (_that.isSh === 'true') {
shzt = isPass ? '2' : '1'
fhzt = '2'
} else {
......@@ -622,6 +624,7 @@ export default {
}
})
}
}).catch(err => {
})
},
......
......@@ -1216,6 +1216,7 @@ export default {
}
})
}
}).catch(err => {
})
},
......
......@@ -98,8 +98,8 @@ module.exports = {
// target: "http://127.0.0.1:8099",
// target: "http://47.92.225.109:5602",
// target: "http://www.meetfood.cn:2390", // 湖南-线上
// target:"http://zwpt.xzclub.top:9333/",
target: "http://192.168.128.102:8099", // 江
target:"http://zwpt.xzclub.top:9333/",
// target: "http://192.168.128.102:8099", // 江
ws: true,
changeOrigin: true,
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