Commit c64a8fcf by 张超军

Merge branch 'dev_zwpt' of http://47.92.108.28/changchao/founder_vue into dev_zwpt

parents e28aded9 75d0adb9
......@@ -82,7 +82,13 @@ const LOGOS = {_LOGO1, _LOGO2, _LOGO3}
export default {
json(val) {
if (!this.isOpenLog()) return
console.log(formatJson(val))
console.log(TOP_LEFT_CORNER + DOUBLE_DIVIDER)
console.info(formatJson(val))
console.log(BOTTOM_LEFT_CORNER + DOUBLE_DIVIDER)
},
logo() {
Math.random() * 3
},
isOpenLog() {
......@@ -92,11 +98,18 @@ export default {
}
const TOP_LEFT_CORNER = '┌'
const BOTTOM_LEFT_CORNER = '└'
const MIDDLE_CORNER = '├'
const HORIZONTAL_LINE = '│'
const DOUBLE_DIVIDER = '────────────────────────────────────────────────────────'
const SINGLE_DIVIDER = '┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄'
var formatJson = function (json, options) {
var reg = null,
formatted = json,
pad = 0,
PADDING = ' '
PADDING = ' '
options = options || {}
options.newlineAfterColonIfBeforeBraceOrBracket = (options.newlineAfterColonIfBeforeBraceOrBracket === true) ? true : false
options.spaceAfterColon = (options.spaceAfterColon === false) ? false : true
......@@ -106,7 +119,6 @@ var formatJson = function (json, options) {
json = JSON.parse(json)
json = JSON.stringify(json)
}
console.log('json', json)
reg = /([\{\}])/g
json = json.replace(reg, '\r\n$1\r\n')
reg = /([\[\]])/g
......@@ -130,7 +142,7 @@ var formatJson = function (json, options) {
(json.split('\r\n')).forEach(function (node, index) {
var i = 0,
indent = 0,
padding = ''
padding = HORIZONTAL_LINE
if (node.match(/\{$/) || node.match(/\[$/)) {
indent = 1
......@@ -141,7 +153,6 @@ var formatJson = function (json, options) {
} else {
indent = 0
}
for (i = 0; i < pad; i++) {
padding += PADDING
}
......
......@@ -17,17 +17,17 @@ export default {
localStorage.setItem(_USER_INFO_KEY, JSON.stringify(userInfo))
},
isStRole() {// 是否省厅角色
let userInfo = this.getUser()
// console.log('用户信息:', userInfo)
let username = userInfo.username
// console.log('用户名称:', username)
if (username === '123123') {// 省级 123123,市级 321321
return true
} else {
return false
}
},
// isStRole() {// 是否省厅角色
// let userInfo = this.getUser()
// // console.log('用户信息:', userInfo)
// let username = userInfo.username
// // console.log('用户名称:', username)
// if (username === '123123') {// 省级 123123,市级 321321
// return true
// } else {
// return false
// }
// },
}
......
......@@ -47,15 +47,15 @@ export default {
let parseStr = function (keyArrs, content) {
if (!keyArrs) {
PrintLog('解析关键字', '解析关键字为空', _TAG)
if (isOpenLogger()) PrintLog('解析关键字', '解析关键字为空', _TAG)
return []
}
if (!content || content === '' || content === 'null') {
PrintLog('解析内容', '解析内容为空', _TAG)
if (isOpenLogger()) PrintLog('解析内容', '解析内容为空', _TAG)
return []
}
PrintLog('解析关键字', keyArrs, _TAG)
PrintLog('解析内容', content, _TAG)
if (isOpenLogger()) PrintLog('解析关键字', keyArrs, _TAG)
if (isOpenLogger()) PrintLog('解析内容', content, _TAG)
let arrs = []
let temp = content
......@@ -79,6 +79,10 @@ let parseStr = function (keyArrs, content) {
if (arrs.length === 0) {
arrs.push(content)
}
PrintLog('解析结果', arrs, _TAG)
if (isOpenLogger()) PrintLog('解析结果', arrs, _TAG)
return arrs
}
let isOpenLogger = function () {
return false
}
......@@ -221,7 +221,7 @@ export default {
routeChangeType: 'change',
// 人像信息
rxInfoEnlarge: {},
isStRole: false,
// isStRole: false,
}
},
mounted() {
......@@ -256,7 +256,7 @@ export default {
self.rxInfoEnlarge = rxInfoEnlarge
})
this.isStRole = user.isStRole()
// this.isStRole = user.isStRole()
},
updated() {
this.menuActive = this.$route.name
......
......@@ -49,6 +49,10 @@ export default {
props: {
params: {
type: Object
},
isSt: {
type: Boolean,
default: true,
}
},
data() {
......@@ -79,6 +83,7 @@ export default {
SHYX: {value: '05', name: '审核有效'},
YSB: {value: '06', name: '已上报'},
},
parentRuleForm: [],
}
},
created() {
......@@ -89,6 +94,10 @@ export default {
_that.init()
},
methods: {
updateParentRuleForm(val) {
let _that = this
_that.parentRuleForm = val
},
getShState() {
let _that = this
if (_that.isStRole && _that.shInfo.shzt === '0') {
......@@ -113,12 +122,12 @@ export default {
}
}
},
getUserName() { // 省级 123123,市级 321321
getLevel() { // 市级 0 省级 1 字段名:level
let _that = this
if (_that.isStRole) {
return '123123'
return 1
} else {
return '321321'
return 0
}
},
getSbName() {
......@@ -136,7 +145,8 @@ export default {
},
init() {
var _that = this
_that.isStRole = user.isStRole()
_that.isStRole = _that.isSt
console.log('bzxxsfOpt-isSt', _that.isSt)
_that.initShItem()
},
/**
......@@ -225,10 +235,15 @@ export default {
_path = 'fhxxLL/' + _that.shInfo.id
break
}
console.log('ruleForm @@@@@@@@@@@@@@@@@@@@@@@', _that.parentRuleForm)
if (_path) {
let query = {
isFromSh: 'true',
level: _that.isStRole ? 1 : 0, // 市级 0 省级 1 字段名:level
isSh: isSh,
formData: JSON.stringify(_that.parentRuleForm),
shxx: JSON.stringify(_that.shInfo)
}
let routeUrl = _that.$router.resolve({
......@@ -339,10 +354,7 @@ export default {
ruleForm.fhzt = fhzt
ruleForm.shzt = shzt
ruleForm.des = desc
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
ruleForm.username = username
ruleForm.level = _that.getLevel()
PrintLog(TITLE + '请求参数', ruleForm)
......@@ -368,10 +380,7 @@ export default {
ruleForm.id = _that.shInfo.id
ruleForm.status = zgzt
ruleForm.des = desc
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
ruleForm.username = username
// ruleForm.username = _that.getUserName()
ruleForm.level = _that.getLevel()
PrintLog(TITLE + '请求参数', ruleForm)
// PrintLog(TITLE + '接口', 'updateJrzg')
......@@ -398,10 +407,7 @@ export default {
ruleForm.querytype = _that.shInfo.querytype
ruleForm.ids = ids
ruleForm.status = '3'
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
ruleForm.username = username
// ruleForm.username = _that.getUserName()
ruleForm.level = _that.getLevel()
PrintLog(TITLE + '请求参数', ruleForm, _that.TAG)
// PrintLog(TITLE + '接口', '/api/hit/insertBeach', _that.TAG)
......
......@@ -110,13 +110,13 @@
v-clipboard:error="onFztmError"
v-if="isSt? roleArr.includes('G-3-1') : roleArr.includes('G-2-1')"
>
复制条码
</div>
<!-- <div class="fztm btn" v-clipboard:copy="fztm_ytmh" @click="">-->
<!-- 删除-->
<!-- </div>-->
<!-- <div class="fztm btn" v-clipboard:copy="fztm_ytmh" @click="">-->
<!-- 删除-->
<!-- </div>-->
<div class="fztm btn" @click="onSbxxListener">
{{ sbBtnName }}
......@@ -281,7 +281,8 @@
<el-table-column prop="prop" label="操作" :width="czWidth" fixed="right" style="background: white">
<template slot-scope="scope">
<bzxxsf-opt :ref="getShxxOpt(scope.row.id)" :params="scope.row" @refresh="bzxxsfOptRefresh"
<bzxxsf-opt :ref="getShxxOpt(scope.row.id)" :params="scope.row" :is-st="isStRole"
@refresh="bzxxsfOptRefresh"
@commitaction="openActionDes"
></bzxxsf-opt>
</template>
......@@ -429,7 +430,7 @@ export default {
},
created() {
let _that = this
_that.isStRole = user.isStRole()
_that.isStRole = _that.isSt
if (_that.isStRole) {
_that.sbBtnName = '上报公安部'
} else {
......@@ -439,8 +440,7 @@ export default {
// _that.initTestData()
_that.getData()
console.log('isSt', _that.isSt)
console.log('bzxxsH-isSt', _that.isSt)
},
computed: {
roleArr() {
......@@ -522,12 +522,12 @@ export default {
}
}
},
getUserName() { // 省级 123123,市级 321321
getLevel() { // 市级 0 省级 1 字段名:level
let _that = this
if (_that.isStRole) {
return '123123'
return 1
} else {
return '321321'
return 0
}
},
getShBtns() {
......@@ -693,10 +693,7 @@ export default {
_that.ruleForm.querytype = 2
}
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
_that.ruleForm.username = username
// _that.ruleForm.username = _that.getUserName()
_that.ruleForm.level = _that.getLevel()
PrintLog('查询审核列表' + '请求参数', JSON.stringify(_that.ruleForm), _that.TAG)
PrintLog('查询审核列表' + '接口', '/api/hit/queryAllSh', _that.TAG)
......@@ -705,7 +702,7 @@ export default {
.then(res => {
PrintLog('查询审核列表' + '返回结果', res, _that.TAG)
if (res.data.code === 0) {
logger.test(res.data.ret.rows)
logger.json(res.data)
_that.tableDate = res.data.ret.rows
_that.total = res.data.ret.total
_that.totalPage = Math.ceil(_that.total / _that.pageSize)
......@@ -769,10 +766,10 @@ export default {
ruleForm.querytype = _that.ruleForm.querytype
ruleForm.ids = ids
ruleForm.status = '3'
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
ruleForm.username = username
// ruleForm.username = _that.getUserName()
// let userInfo = JSON.parse(localStorage.getItem('userInfo'))
// let username = userInfo.username
// ruleForm.username = username
ruleForm.level = _that.getLevel()
PrintLog(TITLE + '请求参数', ruleForm, _that.TAG)
PrintLog(TITLE + '接口', '/api/hit/insertBeach', _that.TAG)
......@@ -817,6 +814,19 @@ export default {
PrintLog('fztm_ytmh', _that.fztm_ytmh)
}
},
watch: {
ruleForm() {
let _that = this
if (this.tableDate && _that.tableDate.length > 0) {
_that.tableDate.forEach(item => {
var shxxOpt = _that.getShxxOpt(item.id)
if (_that.$refs[shxxOpt]) {
_that.$refs[shxxOpt].updateParentRuleForm(_that.ruleForm)
}
})
}
}
},
}
const initRuleFrom = {
......
......@@ -261,6 +261,7 @@ export default {
bzbz: '',
},
isFromSh: false,
curLevel: -1,
isSh: false,
shxx: '',
// 比中人姓名
......@@ -297,6 +298,10 @@ export default {
if (this.$route.query.isSh) {
this.isSh = this.$route.query.isSh
}
if (this.$route.query.level) {
this.curLevel = this.$route.query.level
}
if (this.$route.query.shxx) {
this.shxx = JSON.parse(this.$route.query.shxx)
}
......@@ -550,11 +555,7 @@ export default {
ruleForm.fhzt = fhzt
ruleForm.shzt = shzt
ruleForm.des = _that.fhyj
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
ruleForm.username = username
ruleForm.level = _that.curLevel
PrintLog(TITLE + '请求参数', ruleForm)
// PrintLog(TITLE + '接口', 'udateShzt')
......@@ -562,7 +563,14 @@ export default {
bzxxSh(_that, ruleForm).then(res => {
PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.data.code === 0) {
_that.$router.go(-1)//返回上一层
// _that.$router.go(-1)//返回上一层
let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level
_that.$router.replace({
path: _path,
query: {
formData: _that.formData
}
})
}
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
......
......@@ -7,209 +7,211 @@
* @FilePath: \指纹系统\founder_vue\src\views\bzxxgl\fhxxLT.vue
-->
<template>
<div class="fhxxLT" id="fhxxLT">
<div class="fhxxLTDom" :class="{ bzActive: loading_sd}">
<div class="fhxxLT-left">
<div class="line-imageEd"></div>
<ImageEd class="fhxxLT-imageEd"></ImageEd>
</div>
<div class="fhxxLT-right">
<div class="fhxx-top">
<div class="fhxx-title">{{getShOrFhName()}}信息-正查</div>
<div class="scroll-content">
<div class="fhxx-top-top">
<div class="fhxx-top-top-left">
<div class="fhxx-top-top-left-title">
<div class="title-line"></div>
<div class="title-name">案件信息</div>
</div>
<div class="fhxx-top-top-left-content">
<div class="content-item">
<div class="label-name">案事件编号:</div>
<div class="label-value">{{allData.ysxtAsjbh}}</div>
</div>
<div class="content-item">
<div class="label-name">现场勘验编号:</div>
<div class="label-value">{{allData.xckybh}}</div>
</div>
<div class="content-item">
<div class="label-name">案发地点:</div>
<div class="label-value">{{allData.asjfsddDzmc}}</div>
</div>
<div class="content-item">
<div class="label-name">发案日期:</div>
<div class="label-value">{{allData.farq &&
<div class="fhxxLT" id="fhxxLT">
<div class="fhxxLTDom" :class="{ bzActive: loading_sd}">
<div class="fhxxLT-left">
<div class="line-imageEd"></div>
<ImageEd class="fhxxLT-imageEd"></ImageEd>
</div>
<div class="fhxxLT-right">
<div class="fhxx-top">
<div class="fhxx-title">{{getShOrFhName()}}信息-正查</div>
<div class="scroll-content">
<div class="fhxx-top-top">
<div class="fhxx-top-top-left">
<div class="fhxx-top-top-left-title">
<div class="title-line"></div>
<div class="title-name">案件信息</div>
</div>
<div class="fhxx-top-top-left-content">
<div class="content-item">
<div class="label-name">案事件编号:</div>
<div class="label-value">{{allData.ysxtAsjbh}}</div>
</div>
<div class="content-item">
<div class="label-name">现场勘验编号:</div>
<div class="label-value">{{allData.xckybh}}</div>
</div>
<div class="content-item">
<div class="label-name">案发地点:</div>
<div class="label-value">{{allData.asjfsddDzmc}}</div>
</div>
<div class="content-item">
<div class="label-name">发案日期:</div>
<div class="label-value">{{allData.farq &&
$moment(allData.farq).format('YYYY-MM-DD')}}
</div>
</div>
<div class="content-item">
<div class="label-name">现场指纹枚数:</div>
<div class="label-value">{{allData.lathpcount}}</div>
</div>
<div class="content-item">
<div class="label-name">源逻辑库:</div>
<div class="label-value">{{allData.srcLogicDatabaseName}}</div>
</div>
<div class="content-area">
<el-input type="textarea" :rows="3" placeholder="暂无内容" v-model="allData.jyaq" disabled>
</el-input>
</div>
</div>
</div>
<div class="fhxx-top-top-right">
<div class="fhxx-top-top-left-title">
<div class="title-line"></div>
<div class="title-name">人员信息</div>
</div>
<div class="fhxx-top-top-left-content">
<div class="content-item">
<div class="label-name">人员编号:</div>
<div class="label-value">{{allData.ysxtAsjxgrybh}}</div>
</div>
<div class="content-item content-item2">
<div class="label-name">姓名:</div>
<div class="label-value">
<span>{{allData.xm}}</span>
<div class="label-name2">别名/绰号:</div>
<div class="label-value2">{{allData.bmch}}</div>
</div>
</div>
<div class="content-item">
<div class="label-name">性别:</div>
<div class="label-value">{{allData.xb}}</div>
</div>
<div class="content-item">
<div class="label-name">民族:</div>
<div class="label-value">{{allData.mz}}</div>
</div>
<div class="content-item">
<div class="label-name">出生日期:</div>
<div class="label-value">{{allData.csrq &&
</div>
</div>
<div class="content-item">
<div class="label-name">现场指纹枚数:</div>
<div class="label-value">{{allData.lathpcount}}</div>
</div>
<div class="content-item">
<div class="label-name">源逻辑库:</div>
<div class="label-value">{{allData.srcLogicDatabaseName}}</div>
</div>
<div class="content-area">
<el-input type="textarea" :rows="3" placeholder="暂无内容" v-model="allData.jyaq"
disabled>
</el-input>
</div>
</div>
</div>
<div class="fhxx-top-top-right">
<div class="fhxx-top-top-left-title">
<div class="title-line"></div>
<div class="title-name">人员信息</div>
</div>
<div class="fhxx-top-top-left-content">
<div class="content-item">
<div class="label-name">人员编号:</div>
<div class="label-value">{{allData.ysxtAsjxgrybh}}</div>
</div>
<div class="content-item content-item2">
<div class="label-name">姓名:</div>
<div class="label-value">
<span>{{allData.xm}}</span>
<div class="label-name2">别名/绰号:</div>
<div class="label-value2">{{allData.bmch}}</div>
</div>
</div>
<div class="content-item">
<div class="label-name">性别:</div>
<div class="label-value">{{allData.xb}}</div>
</div>
<div class="content-item">
<div class="label-name">民族:</div>
<div class="label-value">{{allData.mz}}</div>
</div>
<div class="content-item">
<div class="label-name">出生日期:</div>
<div class="label-value">{{allData.csrq &&
$moment(allData.csrq).format('YYYY-MM-DD')}}
</div>
</div>
<div class="content-item">
<div class="label-name">目标逻辑库:</div>
<div class="label-value">{{allData.destLogicDatabaseName}}</div>
</div>
<div class="content-item">
<div class="label-name">现住址详情:</div>
<div class="label-value">{{allData.xzzDzmc}}</div>
</div>
<div class="content-item">
<div class="label-name">户籍地详址:</div>
<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>
</div>
</div>
</div>
</div>
<div class="fhxx-top-line"></div>
<div class="fhxx-top-bottom">
<div class="fhxx-top-top-left-title">
<div class="title-line"></div>
<div class="title-name">比中信息</div>
</div>
<div class="fhxx-top-bottom-content">
<div class="fhxx-top-bottom-left">
<div class="content-item">
<div class="label-name red">序号:</div>
<div class="label-value red">{{allData.bzxxXh}}</div>
</div>
<div class="content-item">
<div class="label-name">比中单位:</div>
<div class="label-value" :title="allData.bzdwGajgmc">{{allData.bzdwGajgmc}}
</div>
</div>
<div class="content-item">
<div class="label-name">单位代码:</div>
<div class="label-value">{{allData.bzdwGajgjgdm}}</div>
</div>
<div class="content-item">
<div class="label-name">比中时间:</div>
<div class="label-value">{{allData.bzsj &&
$moment(allData.bzsj).format('YYYY-MM-DD HH:mm')}}
</div>
</div>
</div>
<div class="fhxx-top-bottom-right">
<div class="content-item">
<div class="label-name red">指位:</div>
<div class="label-value red">{{allData.bzxxZw}}</div>
</div>
<div class="content-item">
<div class="label-name">比中人:</div>
<div class="label-value">{{allData.bzrXm}}</div>
</div>
<div class="content-item">
<div class="label-name">比中人身份证号:</div>
<div class="label-value">{{allData.bzrGmsfhm}}</div>
</div>
<div class="content-item">
<div class="label-name">比中人联系电话:</div>
<div class="label-value">{{allData.bzrLxdh}}</div>
</div>
</div>
</div>
<div class="bzxx-textarea">
<el-input type="textarea" :rows="3" placeholder="暂无内容" v-model="allData.bzbz" disabled>
</el-input>
</div>
</div>
</div>
</div>
<div class="content-item">
<div class="label-name">目标逻辑库:</div>
<div class="label-value">{{allData.destLogicDatabaseName}}</div>
</div>
<div class="content-item">
<div class="label-name">现住址详情:</div>
<div class="label-value">{{allData.xzzDzmc}}</div>
</div>
<div class="content-item">
<div class="label-name">户籍地详址:</div>
<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>
</div>
</div>
</div>
</div>
<div class="fhxx-top-line"></div>
<div class="fhxx-top-bottom">
<div class="fhxx-top-top-left-title">
<div class="title-line"></div>
<div class="title-name">比中信息</div>
</div>
<div class="fhxx-top-bottom-content">
<div class="fhxx-top-bottom-left">
<div class="content-item">
<div class="label-name red">序号:</div>
<div class="label-value red">{{allData.bzxxXh}}</div>
</div>
<div class="content-item">
<div class="label-name">比中单位:</div>
<div class="label-value" :title="allData.bzdwGajgmc">{{allData.bzdwGajgmc}}
<div class="fhxx-bottom">
<div class="fhxx-bottom-title">{{getShOrFhName()}}意见</div>
<div class="fhxx-bottom-textarea">
<el-input type="textarea" :rows="3" placeholder="在此输入意见" v-model="fhyj">
</el-input>
</div>
</div>
<div class="content-item">
<div class="label-name">单位代码:</div>
<div class="label-value">{{allData.bzdwGajgjgdm}}</div>
</div>
<div class="content-item">
<div class="label-name">比中时间:</div>
<div class="label-value">{{allData.bzsj &&
$moment(allData.bzsj).format('YYYY-MM-DD HH:mm')}}
</div>
</div>
</div>
<div class="fhxx-top-bottom-right">
<div class="content-item">
<div class="label-name red">指位:</div>
<div class="label-value red">{{allData.bzxxZw}}</div>
</div>
<div class="content-item">
<div class="label-name">比中人:</div>
<div class="label-value">{{allData.bzrXm}}</div>
</div>
<div class="content-item">
<div class="label-name">比中人身份证号:</div>
<div class="label-value">{{allData.bzrGmsfhm}}</div>
</div>
<div class="content-item">
<div class="label-name">比中人联系电话:</div>
<div class="label-value">{{allData.bzrLxdh}}</div>
</div>
<div class="fhxx-btns">
<div class="pass" @click="gotoProgress(true)">通过</div>
<div class="no-pass" @click="gotoProgress(false)">未通过</div>
<div v-show="!isFromSh && jcbzFlag" class="relieve" @click="relieveChange">解除比中关系</div>
<el-tooltip class="item" effect="dark" content="只有认定人才能解除比中关系" placement="top">
<div v-show="!isFromSh && !jcbzFlag" class="relieve jcbzFlag">解除比中关系</div>
</el-tooltip>
</div>
</div>
<div class="bzxx-textarea">
<el-input type="textarea" :rows="3" placeholder="暂无内容" v-model="allData.bzbz" disabled>
</el-input>
</div>
</div>
</div>
</div>
<div class="fhxx-bottom">
<div class="fhxx-bottom-title">{{getShOrFhName()}}意见</div>
<div class="fhxx-bottom-textarea">
<el-input type="textarea" :rows="3" placeholder="在此输入意见" v-model="fhyj">
</el-input>
</div>
<!-- 确认解除 -->
<div class="relieveDialog" v-show="isRelieveVisible">
<div class="close">
<i class="iconfont icon-danchuangguanbianniu" @click="isRelieveVisible=false"></i>
</div>
<div class="desc">是否确认解除比中关系?</div>
<div class="btns">
<div class="btn confirmBtn" @click="confirmRelieveChange">确认</div>
<div class="btn cancelBtn" @click="isRelieveVisible=false">取消</div>
</div>
</div>
<div class="fhxx-btns">
<div class="pass" @click="gotoProgress(true)">通过</div>
<div class="no-pass" @click="gotoProgress(false)">未通过</div>
<div v-show="!isFromSh && jcbzFlag" class="relieve" @click="relieveChange">解除比中关系</div>
<el-tooltip class="item" effect="dark" content="只有认定人才能解除比中关系" placement="top">
<div v-show="!isFromSh && !jcbzFlag" class="relieve jcbzFlag">解除比中关系</div>
</el-tooltip>
<!-- 加载动画 -->
<div class="loading" v-show="loading_sd">
<div class="loading-finger">
<img src="@/assets/img/loadingfinger.gif" alt="" />
</div>
<div class="loading-name">
<img src="@/assets/img/loadingtxt.gif" alt="" />
</div>
</div>
</div>
</div>
<!-- 确认解除 -->
<div class="relieveDialog" v-show="isRelieveVisible">
<div class="close">
<i class="iconfont icon-danchuangguanbianniu" @click="isRelieveVisible=false"></i>
</div>
<div class="desc">是否确认解除比中关系?</div>
<div class="btns">
<div class="btn confirmBtn" @click="confirmRelieveChange">确认</div>
<div class="btn cancelBtn" @click="isRelieveVisible=false">取消</div>
</div>
</div>
<!-- 加载动画 -->
<div class="loading" v-show="loading_sd">
<div class="loading-finger">
<img src="@/assets/img/loadingfinger.gif" alt="" />
</div>
<div class="loading-name">
<img src="@/assets/img/loadingtxt.gif" alt="" />
</div>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
import {mapState} from 'vuex'
import ImageEd from '@/components/ImageEd.vue'
import { bzxxSh } from '../../netmgr/bzxxgl/bzxxsh'
import {bzxxSh} from '../../netmgr/bzxxgl/bzxxsh'
import PrintLog from '../../utils/LogcatUtil'
export default {
name: 'fhxxLT',
data () {
data() {
return {
// 確認解除彈窗
isRelieveVisible: false,
......@@ -250,6 +252,7 @@ export default {
bzbz: ''
},
isFromSh: false,
curLevel: -1,
isSh: false,
shxx: '',
// 比中人姓名
......@@ -268,7 +271,7 @@ export default {
loading_sd: (state) => state.loading.loading_sd,
}),
},
created () {
created() {
console.log(this.$route)
this.id = this.$route.params.id
// PrintLog('query', this.$route.query)
......@@ -278,12 +281,16 @@ export default {
if (this.$route.query.isSh) {
this.isSh = this.$route.query.isSh
}
if (this.$route.query.level) {
this.curLevel = this.$route.query.level
}
if (this.$route.query.shxx) {
this.shxx = JSON.parse(this.$route.query.shxx)
}
this.getData()
},
mounted () {
mounted() {
if (this.$route.query.formData) {
this.formData = this.$route.query.formData
}
......@@ -292,7 +299,7 @@ export default {
}
},
methods: {
getShOrFhName () {
getShOrFhName() {
let _that = this
if (_that.isFromSh === 'true') {
return _that.isSh === 'true' ? '审核' : '复核'
......@@ -303,9 +310,9 @@ export default {
/**
* 获取指纹(人员)图片
*/
getPersonPic () {
getPersonPic() {
let self = this
console.log(self.allData.bzxxZwXh);
console.log(self.allData.bzxxZwXh)
if (self.allData.bzxxZwXh) {
if (self.allData.bzxxZwXh > 30) {
// 掌纹
......@@ -363,7 +370,7 @@ export default {
/**
* 获取指纹(案件)图片
*/
getLftPic () {
getLftPic() {
let self = this
if (this.allData.bzxxXh) {
this.$axios({
......@@ -388,7 +395,7 @@ export default {
/**
* 確認解除比中关系
*/
confirmRelieveChange () {
confirmRelieveChange() {
let self = this
this.$axios({
method: 'post',
......@@ -422,11 +429,11 @@ export default {
/**
* 解除比中关系
*/
relieveChange () {
relieveChange() {
this.isRelieveVisible = true
},
gotoProgress (isPass) {// 进入处理逻辑
gotoProgress(isPass) {// 进入处理逻辑
let _that = this
if (!isPass && !_that.fhyj) {
this.$message.error('请填写不通过意见!')
......@@ -461,7 +468,7 @@ export default {
/**
* 未通过
*/
noPassChange () {
noPassChange() {
let self = this
if (self.isFromSh === 'true') {
self.doSh(false)
......@@ -500,7 +507,7 @@ export default {
/**
* 通过
*/
passChange () {
passChange() {
let self = this
if (self.isFromSh === 'true') {
self.doSh(true)
......@@ -539,7 +546,7 @@ export default {
/**
* 获取右侧详情
*/
getData () {
getData() {
let self = this
this.$axios({
method: 'post',
......@@ -571,7 +578,7 @@ export default {
})
},
doSh (isPass) {
doSh(isPass) {
let TITLE = '审核'
let _that = this
var ruleForm = {}
......@@ -590,18 +597,20 @@ export default {
ruleForm.fhzt = fhzt
ruleForm.shzt = shzt
ruleForm.des = _that.fhyj
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
ruleForm.username = username
ruleForm.level = _that.curLevel
PrintLog(TITLE + '请求参数', ruleForm)
// PrintLog(TITLE + '接口', 'udateShzt')
bzxxSh(_that, ruleForm).then(res => {
PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.data.code === 0) {
_that.$router.go(-1)//返回上一层
let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level
_that.$router.replace({
path: _path,
query: {
formData: _that.formData
}
})
}
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
......@@ -609,7 +618,7 @@ export default {
})
},
},
destroyed () {
destroyed() {
this.$bus.off('formDataLT_back')
},
}
......
......@@ -271,6 +271,7 @@ export default {
bzbz: ''
},
isFromSh: false,
curLevel: -1,
isSh: false,
shxx: '',
// 比中人姓名
......@@ -307,6 +308,9 @@ export default {
if (this.$route.query.isSh) {
this.isSh = this.$route.query.isSh
}
if (this.$route.query.level) {
this.curLevel = this.$route.query.level
}
if (this.$route.query.shxx) {
this.shxx = JSON.parse(this.$route.query.shxx)
}
......@@ -603,11 +607,7 @@ export default {
ruleForm.fhzt = fhzt
ruleForm.shzt = shzt
ruleForm.des = _that.fhyj
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
ruleForm.username = username
ruleForm.level = _that.curLevel
PrintLog(TITLE + '请求参数', ruleForm)
// PrintLog(TITLE + '接口', 'udateShzt')
......@@ -615,7 +615,13 @@ export default {
bzxxSh(_that, ruleForm).then(res => {
PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.data.code === 0) {
_that.$router.go(-1)//返回上一层
let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level
_that.$router.replace({
path: _path,
query: {
formData: _that.formData
}
})
}
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
......
......@@ -883,6 +883,7 @@ export default {
nysj: '',
},
isFromSh: false,
curLevel: -1,
isSh: false,
shxx: '',
// 比中人姓名
......@@ -925,6 +926,9 @@ export default {
if (this.$route.query.isSh) {
this.isSh = this.$route.query.isSh
}
if (this.$route.query.level) {
this.curLevel = this.$route.query.level
}
if (this.$route.query.shxx) {
this.shxx = JSON.parse(this.$route.query.shxx)
}
......@@ -1201,11 +1205,7 @@ export default {
ruleForm.fhzt = fhzt
ruleForm.shzt = shzt
ruleForm.des = _that.fhyj
let userInfo = JSON.parse(localStorage.getItem('userInfo'))
let username = userInfo.username
ruleForm.username = username
ruleForm.level = _that.curLevel
PrintLog(TITLE + '请求参数', ruleForm)
// PrintLog(TITLE + '接口', 'udateShzt')
......@@ -1213,7 +1213,13 @@ export default {
bzxxSh(_that, ruleForm).then(res => {
PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.data.code === 0) {
_that.$router.go(-1)//返回上一层
let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level
_that.$router.replace({
path: _path,
query: {
formData: _that.formData
}
})
}
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
......
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