Commit e1466a36 by li_hongchao

网络请求整合封装

比中信息审核按新框架改造
parent 57414ac7
...@@ -15,36 +15,41 @@ ...@@ -15,36 +15,41 @@
<script> <script>
export default { export default {
created() { created() {
logger.logo()
// console.log(document.body.scrollHeight) // console.log(document.body.scrollHeight)
var lett = this; var lett = this
document.onkeydown = function (e) { document.onkeydown = function (e) {
var key = window.event.keyCode; var key = window.event.keyCode
if (key == 13) { if (key == 13) {
lett.$bus.emit("enter"); lett.$bus.emit('enter')
}
} }
};
}, },
}; }
</script> </script>
<style lang="scss"> <style lang="scss">
/*每个页面公共css */ /*每个页面公共css */
@import "assets/styles/main.scss"; @import "assets/styles/main.scss";
#app {
#app {
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
} }
@font-face {
@font-face {
font-family: "MicrosoftYaHei-Bold"; font-family: "MicrosoftYaHei-Bold";
src: url("../src/assets/font/MSYHBD.ttf") format("truetype"); src: url("../src/assets/font/MSYHBD.ttf") format("truetype");
} }
@font-face {
@font-face {
font-family: "MicrosoftYaHei"; font-family: "MicrosoftYaHei";
src: url("../src/assets/font/MSYH.ttf") format("truetype"); src: url("../src/assets/font/MSYH.ttf") format("truetype");
} }
.boxShadow {
.boxShadow {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -53,32 +58,38 @@ export default { ...@@ -53,32 +58,38 @@ export default {
// background: url('~@/assets/img/shadow.png') 0 0 / cover; // background: url('~@/assets/img/shadow.png') 0 0 / cover;
z-index: -100; z-index: -100;
opacity: 0.65; opacity: 0.65;
} }
// 滚动条的宽度
/deep/ .el-table__body-wrapper::-webkit-scrollbar { // 滚动条的宽度
/deep/ .el-table__body-wrapper::-webkit-scrollbar {
width: 6px; // 横向滚动条 width: 6px; // 横向滚动条
height: 6px; // 纵向滚动条 必写 height: 6px; // 纵向滚动条 必写
} }
.el-message {
.el-message {
z-index: 999999 !important; z-index: 999999 !important;
} }
// 滚动条的滑块
/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb { // 滚动条的滑块
/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
background-color: #dadde0; background-color: #dadde0;
border-radius: 3px; border-radius: 3px;
} }
// 表头
/deep/ .has-gutter { // 表头
/deep/ .has-gutter {
font-weight: normal; font-weight: normal;
th { th {
font-size: 14px; font-size: 14px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #282f3c; color: #282f3c;
font-weight: normal; font-weight: normal;
} }
} }
// 修改多选框样式
/deep/ .el-checkbox.is-checked { // 修改多选框样式
/deep/ .el-checkbox.is-checked {
.el-checkbox__label { .el-checkbox__label {
color: #333333; color: #333333;
} }
...@@ -89,23 +100,25 @@ export default { ...@@ -89,23 +100,25 @@ export default {
border-color: #055fe7; border-color: #055fe7;
} }
} }
} }
</style> </style>
<style lang="scss"> <style lang="scss">
/deep/.el-message { /deep/ .el-message {
justify-content: flex-start !important; justify-content: flex-start !important;
} }
.el-message-box__message { .el-message-box__message {
margin: 23px 24px 17px 24px; margin: 23px 24px 17px 24px;
font-size: 14px; font-size: 14px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #333333; color: #333333;
p { p {
line-height: 4rem !important; line-height: 4rem !important;
} }
} }
.el-message-box__btns {
.el-message-box__btns {
margin-bottom: 24px; margin-bottom: 24px;
padding-bottom: 24px; padding-bottom: 24px;
// 交换 确定 取消 按钮的位置 // 交换 确定 取消 按钮的位置
...@@ -120,6 +133,7 @@ export default { ...@@ -120,6 +133,7 @@ export default {
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #ffffff; color: #ffffff;
} }
.el-button:nth-child(2) { .el-button:nth-child(2) {
float: left; float: left;
margin-left: 23%; margin-left: 23%;
...@@ -132,8 +146,9 @@ export default { ...@@ -132,8 +146,9 @@ export default {
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #2e3846; color: #2e3846;
} }
} }
.screenSave {
.screenSave {
margin-right: 0 !important; margin-right: 0 !important;
// background: #ffffff!important; // background: #ffffff!important;
// border-radius: 4px!important; // border-radius: 4px!important;
...@@ -141,8 +156,9 @@ export default { ...@@ -141,8 +156,9 @@ export default {
// font-size: 14px!important; // font-size: 14px!important;
// font-family: MicrosoftYaHei!important; // font-family: MicrosoftYaHei!important;
// color: #2e3846!important; // color: #2e3846!important;
} }
.el-message-box {
.el-message-box {
position: relative; position: relative;
display: inline-block; display: inline-block;
width: 26.25rem; width: 26.25rem;
...@@ -159,17 +175,20 @@ export default { ...@@ -159,17 +175,20 @@ export default {
-webkit-backface-visibility: hidden; -webkit-backface-visibility: hidden;
backface-visibility: hidden; backface-visibility: hidden;
z-index: 99999; z-index: 99999;
} }
.el-message-box__status {
.el-message-box__status {
display: none !important; display: none !important;
} }
.el-popconfirm__main {
.el-popconfirm__main {
margin: 23px 24px 17px 24px; margin: 23px 24px 17px 24px;
font-size: 14px; font-size: 14px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #333333; color: #333333;
} }
.el-popconfirm__action {
.el-popconfirm__action {
margin-bottom: 24px; margin-bottom: 24px;
padding-bottom: 24px; padding-bottom: 24px;
...@@ -185,6 +204,7 @@ export default { ...@@ -185,6 +204,7 @@ export default {
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #ffffff; color: #ffffff;
} }
.el-button:nth-child(2) { .el-button:nth-child(2) {
float: left; float: left;
margin-left: 23%; margin-left: 23%;
...@@ -197,5 +217,5 @@ export default { ...@@ -197,5 +217,5 @@ export default {
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #2e3846; color: #2e3846;
} }
} }
</style> </style>
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
*/ */
import Vue from 'vue' import Vue from 'vue'
import './plugins/axios' import './plugins/axios'
import fHttp from './request/http.js'
import NetUtil from './netmgr/NetUtil'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import store from './store' import store from './store'
...@@ -65,6 +67,8 @@ Vue.prototype.$util = Util ...@@ -65,6 +67,8 @@ Vue.prototype.$util = Util
window.util = Util window.util = Util
window.logger = LoggerUtil window.logger = LoggerUtil
window.user = UserUtil window.user = UserUtil
window.fHttp = fHttp
window.NetUtil = NetUtil
Vue.use(VueWechatTitle) Vue.use(VueWechatTitle)
Vue.use(VueClipboard) Vue.use(VueClipboard)
Vue.use(VueBus) Vue.use(VueBus)
......
const api = {
api: '/api',
security: '/security'
}
export default api
import bzxxsh from '../netmgr/bzxxgl/bzxxsh'
export default {
bzxxsh
}
const api = { import addrType from '../../netmgr/NetAddressType'
bzxxsh: '/api/hit',
}
export default api
export function queryShList(_that, _parameter) { const _path = {
return _that.$axios({ bzxxsh: addrType.api + '/hit',
method: 'post',
url: api.bzxxsh + '/queryAllSh',
headers: {
'Content-Type': 'application/json'
},
data: _parameter
})
} }
export default {
shList(_parameter) {
return fHttp.postJson(_path.bzxxsh + '/queryAllSh', _parameter)
},
sh(_parameter) {
return fHttp.postJson(_path.bzxxsh + '/udateShzt', _parameter)
},
export function bzxxSh(_that, _parameter) { updateJrzg(_parameter) {
return _that.$axios({ return fHttp.postJson(_path.bzxxsh + '/updateJrzg', _parameter)
method: 'post',
url: api.bzxxsh + '/udateShzt',
headers: {
'Content-Type': 'application/json'
}, },
data: _parameter
})
}
export function bzxxZg(_that, _parameter) { plsb(_parameter) { // 批量上报
return _that.$axios({ return fHttp.postJson(_path.bzxxsh + '/insertBeach', _parameter)
method: 'post',
url: api.bzxxsh + '/updateJrzg',
headers: {
'Content-Type': 'application/json'
}, },
data: _parameter
})
}
export function bzxxPlSb(_that, _parameter) { // 批量上报
return _that.$axios({
method: 'post',
url: api.bzxxsh + '/insertBeach',
headers: {
'Content-Type': 'application/json'
},
data: _parameter
})
} }
...@@ -98,7 +98,6 @@ _axios.interceptors.response.use( ...@@ -98,7 +98,6 @@ _axios.interceptors.response.use(
if (error) { if (error) {
hideLoading(); hideLoading();
} }
// NProgress.done();
return Promise.reject(error); return Promise.reject(error);
} }
); );
......
import axios from 'axios'
import {Message, MessageBox} from 'element-ui'
import qs from 'qs'
import {ACCESS_TOKEN} from '../store/mutation-types'
import router from '../router'
import {showLoading, hideLoading} from '@/utils/requestLoading'
// debugger
axios.defaults.timeout = 0
axios.defaults.headers = {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json'
}
axios.defaults.responseType = 'json'
var instance = axios.create({// post 常规请求
headers: {
'Content-Type': 'multipart/form-data'
}
})
var json = axios.create({ // post json
headers: {
'Content-Type': 'application/json'
}
})
var down = axios.create({ // 文件下载
headers: {
'Content-Type': 'application/json'
},
})
// 初始化参数
let initConfig = (config) => {
if (config.url.indexOf('/login/myLoginForm') <= 0) {
const token = localStorage.getItem(ACCESS_TOKEN)
if (token) {
config.headers['Authorization'] = token // 让每个请求携带自定义 token 请根据实际情况自行修改
config.headers.BrowserHeader = 'H5'
}
}
config.cancelToken = new axios.CancelToken(cancel => {
if (!window._axiosPromiseArr) {
window._axiosPromiseArr = []
}
window._axiosPromiseArr.push({cancel})
})
// 判断当前请求是否设置了不显示Loading,默认显示
if (config.loading !== false) {
showLoading(config.loadingTarget) // 如果设置了targer,使用设置的target,比如el-table
}
// console.log('initConfig', config)
return config
}
let onError = (error) => {
if (error) {
hideLoading()
}
let result = {
code: -1,
message: ''
}
if (error.toString().indexOf('400') > 0) {
result.code = 400
result.message = '失败(400):客户端错误!'
} else if (error.toString().indexOf('403') > 0) {
result.code = 403
result.message = '失败(403):您的权限不足!'
} else if (error.toString().indexOf('404') > 0) {
result.code = 404
result.message = '失败(404):网络请求不存在!'
} else if (error.toString().indexOf('500') > 0) {
result.code = 500
result.message = '失败(500):服务器异常!'
} else if (error.toString().indexOf('501') > 0) {
result.code = 501
result.message = '失败(501):您的操作被取消或不允许提交!'
} else if (error.toString().indexOf('timeout') > 0) {
result.code = -1
result.message = '请求超时,请检查网络连接!'
} else if (error.toString().indexOf('Cancel') > 0) {
result.code = -1
result.message = '取消请求成功!'
} else {// 其他未知异常
result.code = -1
result.message = '未知错误:' + error.toString()
}
let errorMsg = error + '-------' + result.message
// Promise.reject(new Error(errorMsg))
logger.error(errorMsg)
return result
}
let onResponse = (response) => {
if (!response) return
if (response.headers && response.headers.token) localStorage.setItem(ACCESS_TOKEN, response.headers.token)
if (response.config && response.config.loading !== false) hideLoading(response.config.loadingTarget)
let status = response.data.code
let message = response.data.message
if (status === 0) {
// return response.data
} else if (status === '200') {
response.data.code = 0
} else if (status === 401) {
response.data.message = message === '未登录' ? '登陆超时,请重新登录!' : message
} else {
response.data.message = '未知异常:' + message
}
return response.data
}
// request 请求拦截器
axios.interceptors.request.use(
config => {
config.headers['Content-Type'] = 'application/json'
config = initConfig(config)
return config
}, onError)
// response 响应拦截器
axios.interceptors.response.use(onResponse, onError)
instance.interceptors.request.use(
config => {
config = initConfig(config)
return config
}, onError)
instance.interceptors.response.use(onResponse, onError)
json.interceptors.request.use(
config => {
config.headers['Content-Type'] = 'application/json'
config = initConfig(config)
return config
}, onError)
json.interceptors.response.use(onResponse, onError)
var resTimer
let handleError = (response) => {
if (!response) return
let code = response.code
let message = response.message
switch (code) {
case 401:
if (resTimer) clearTimeout(resTimer)
resTimer = setTimeout(() => {
hideLoading()
MessageBox.confirm(message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonClass: 'screenSave',
closeOnPressEscape: false,
closeOnClickModal: false,
showCancelButton: false,
showClose: false,
type: 'warning'
}).then(() => {
localStorage.removeItem('token')
router.replace('/Login')
}).catch(() => {
})
}, 500)
break
}
Message({
message: message,
type: 'error'
})
}
let parseResponse = (resolve, reject, response) => {
if (response && response.code === 0) {
resolve(response)
} else {
handleError(response)
resolve(response)
}
}
export default {
/**
* 封装get方法
*/
get(url, params) {
return new Promise((resolve, reject) => {
axios
.get(url, {
params: params
})
.then(response => {
logger.net(data, url, response)
parseResponse(resolve, reject, response)
})
.catch(err => {
Promise.reject(err)
})
})
},
/**
* 封装post请求
*/
post(url, params) {
return new Promise((resolve, reject) => {
axios.post(url, qs.stringify(params))
.then(response => {
logger.net(data, url, response)
parseResponse(resolve, reject, response)
})
.catch(err => {
Promise.reject(err)
})
})
},
/**
* 封装post请求 multipart/form-data
*/
postform(url, data) {
return new Promise((resolve, reject) => {
instance.post(url, data).then(response => {
logger.net(data, url, response)
parseResponse(resolve, reject, response)
})
}).catch(err => {
Promise.reject(err)
})
},
/**
* 封装post请求 文件下载
*/
postdown(url, data) {
return new Promise((resolve, reject) => {
down.post(url, data).then(response => {
logger.net(data, url, response)
parseResponse(resolve, reject, response)
})
}).catch(err => {
Promise.reject(err)
})
},
/**
* 封装post请求 json格式
*/
postJson(url, data) {
return new Promise((resolve, reject) => {
json.post(url, data).then(response => {
logger.net(data, url, response)
parseResponse(resolve, reject, response)
})
}).catch(err => {
Promise.reject(err)
})
},
cancel() {// 取消当前网络请求
if (window._axiosPromiseArr) {
window._axiosPromiseArr.forEach((ele, index) => {// 切换路由时,关闭当前页面请求
if (ele) {
ele.cancel()
delete window._axiosPromiseArr[index]
}
})
}
},
// get, post, postform, postdown, postJson
}
...@@ -6,45 +6,45 @@ ...@@ -6,45 +6,45 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\router\index.js * @FilePath: \指纹系统\founder_vue\src\router\index.js
*/ */
import Vue from "vue"; import Vue from 'vue'
import VueRouter from "vue-router"; import VueRouter from 'vue-router'
import store from "../store"; import store from '../store'
import { getToken } from "../utils/auth"; import {getToken} from '../utils/auth'
import { Message } from "element-ui"; import {Message} from 'element-ui'
import indexRoutes from "./modules/index"; import indexRoutes from './modules/index'
const originalPush = VueRouter.prototype.push; const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) { VueRouter.prototype.push = function push(location) {
if (location && typeof location == "string" && location.indexOf("http") != -1) if (location && typeof location == 'string' && location.indexOf('http') != -1)
return window.location.open(location, "_self"); return window.location.open(location, '_self')
return originalPush.call(this, location).catch(err => err); return originalPush.call(this, location).catch(err => err)
}; }
const originalResolve = VueRouter.prototype.resolve; const originalResolve = VueRouter.prototype.resolve
VueRouter.prototype.pushToTab = function pushToTab(location) { VueRouter.prototype.pushToTab = function pushToTab(location) {
if (!location) return; if (!location) return
if (location && typeof location == "string" && location.indexOf("http") != -1) if (location && typeof location == 'string' && location.indexOf('http') != -1)
return window.open(location, "_blank"); return window.open(location, '_blank')
const { href } = originalResolve.call(this, location); const {href} = originalResolve.call(this, location)
window.open(href, "_blank"); window.open(href, '_blank')
}; }
Vue.use(VueRouter); Vue.use(VueRouter)
const mainRouters = [ const mainRouters = [
...indexRoutes, ...indexRoutes,
{ {
path: "*", path: '*',
name: "error", name: 'error',
component: () => import("@/views/index/error.vue") component: () => import('@/views/index/error.vue')
}, },
]; ]
const router = new VueRouter({ const router = new VueRouter({
// mode: "history", // mode: "history",
// base: process.env.BASE_URL, // base: process.env.BASE_URL,
routes: mainRouters routes: mainRouters
}); })
// router.beforeEach((to, from, next) => { // router.beforeEach((to, from, next) => {
// const token = getToken(); // const token = getToken();
...@@ -66,24 +66,34 @@ const router = new VueRouter({ ...@@ -66,24 +66,34 @@ const router = new VueRouter({
// }); // });
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
// if(window._axiosPromiseArr){
// window._axiosPromiseArr.forEach((ele, index) => {// 切换路由时,关闭当前页面请求
// if (ele) {
// ele.cancel()
// delete window._axiosPromiseArr[index]
// }
// })
// }
fHttp.cancel() // 切换路由时,关闭当前页面所有请求
if (from.name == 'ryzwbj' || from.name == 'ajzwbj') { if (from.name == 'ryzwbj' || from.name == 'ajzwbj') {
sessionStorage.clear() sessionStorage.clear()
} }
store.commit('loading/setPreRoute', from.name) store.commit('loading/setPreRoute', from.name)
let token = localStorage.getItem('token'); let token = localStorage.getItem('token')
if (to.path != '/Login' && to.path != '/') { if (to.path != '/Login' && to.path != '/') {
if (token) { if (token) {
next(); next()
} else { } else {
next('/Login') next('/Login')
} }
} else { } else {
if (localStorage.getItem('token')) { if (localStorage.getItem('token')) {
next('/index'); next('/index')
}else{ } else {
next(); next()
} }
} }
}) })
export default router; export default router
export const ACCESS_TOKEN = 'token'
export const USER_TYPE = 'userInfo'
// export const CONTENT_WIDTH_TYPE = {
// Fluid: 'Fluid',
// Fixed: 'Fixed'
// }
export default function PrintLog(title, content, tag) {
if (!title && !content) {
return
}
if (!tag) {
tag = '^_^'
}
// console.log('')
console.log('----------------------------' + tag + '----------------------------')
if (title && content) {
console.log(' 标题:', title)
console.log(' 内容:', content)
} else if (title) {
console.log(' ', title)
} else if (content) {
console.log(' ', content)
}
console.log('----------------------------' + tag + '----------------------------')
console.log('')
}
export function PrintNetInfo(url, request, response) {
var tag = '^_^'
// console.log('')
console.log('----------------------------' + tag + '----------------------------')
if (url) {
console.log(' 请求接口:', url)
}
if (request) {
console.log(' 请求参数:', request)
}
if (response) {
console.log(' 请求结果:', response)
}
console.log('----------------------------' + tag + '----------------------------')
console.log('')
}
...@@ -76,23 +76,52 @@ const _LOGO3 = ' ...@@ -76,23 +76,52 @@ const _LOGO3 = '
' \n' + ' \n' +
' ' ' '
const LOGOS = {_LOGO1, _LOGO2, _LOGO3} const LOGOS = [_LOGO1, _LOGO2, _LOGO3]
export default { export default {
net(request, url, response) {
if (!this.isOpenLog()) return
console.log(TOP_LEFT_CORNER + DOUBLE_DIVIDER)
console.log(HORIZONTAL_LINE + ' ' + url)
console.log(MIDDLE_CORNER + SINGLE_DIVIDER)
console.log(HORIZONTAL_LINE + ' ' + formatJson(request))
console.log(MIDDLE_CORNER + SINGLE_DIVIDER)
console.log(HORIZONTAL_LINE + ' ' + formatJson(response))
console.log(BOTTOM_LEFT_CORNER + DOUBLE_DIVIDER)
},
json(val) { json(val) {
// console.log('json', Math.random() * 3)
if (!this.isOpenLog()) return if (!this.isOpenLog()) return
console.log(TOP_LEFT_CORNER + DOUBLE_DIVIDER) console.log(TOP_LEFT_CORNER + DOUBLE_DIVIDER)
console.info(formatJson(val)) console.info(formatJson(val))
console.log(BOTTOM_LEFT_CORNER + DOUBLE_DIVIDER) console.log(BOTTOM_LEFT_CORNER + DOUBLE_DIVIDER)
}, },
info(tag, val) {
if (!this.isOpenLog()) return
if (val) {
console.log(tag, TOP_LEFT_CORNER + DOUBLE_DIVIDER)
console.log(tag + ' '+ HORIZONTAL_LINE , val)
console.log(tag, BOTTOM_LEFT_CORNER + DOUBLE_DIVIDER)
} else {
console.log(TOP_LEFT_CORNER + DOUBLE_DIVIDER)
console.log(HORIZONTAL_LINE + ' ', tag)
console.log(BOTTOM_LEFT_CORNER + DOUBLE_DIVIDER)
}
},
error(val) {
if (!this.isOpenLog()) return
console.error(TOP_LEFT_CORNER + DOUBLE_DIVIDER)
console.error(HORIZONTAL_LINE + ' ' + val)
console.error(BOTTOM_LEFT_CORNER + DOUBLE_DIVIDER)
},
logo() { logo() {
Math.random() * 3 let index = Math.floor((Math.random() * LOGOS.length))
console.log(LOGOS[index])
}, },
isOpenLog() { isOpenLog() {
return true return process.env.NODE_ENV === 'development' ? true : false
} }
} }
...@@ -102,8 +131,8 @@ const TOP_LEFT_CORNER = '┌' ...@@ -102,8 +131,8 @@ const TOP_LEFT_CORNER = '┌'
const BOTTOM_LEFT_CORNER = '└' const BOTTOM_LEFT_CORNER = '└'
const MIDDLE_CORNER = '├' const MIDDLE_CORNER = '├'
const HORIZONTAL_LINE = '│' const HORIZONTAL_LINE = '│'
const DOUBLE_DIVIDER = '────────────────────────────────────────────────────────' const DOUBLE_DIVIDER = '──────────────────────────────────────────────────────────────────────────────────────'
const SINGLE_DIVIDER = '┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄' const SINGLE_DIVIDER = '┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄'
var formatJson = function (json, options) { var formatJson = function (json, options) {
var reg = null, var reg = null,
......
import PrintLog from './LogcatUtil'
const _DEFAULT_KEYS = [ const _DEFAULT_KEYS = [
'公安厅', '公安厅',
...@@ -10,7 +9,7 @@ const _DEFAULT_KEYS = [ ...@@ -10,7 +9,7 @@ const _DEFAULT_KEYS = [
'中队', '中队',
] ]
const _TAG = '\\src\\utils\\LogcatUtil.js' const _TAG = 'src/utils/ZzjgUtil.js'
export default { export default {
...@@ -47,15 +46,15 @@ export default { ...@@ -47,15 +46,15 @@ export default {
let parseStr = function (keyArrs, content) { let parseStr = function (keyArrs, content) {
if (!keyArrs) { if (!keyArrs) {
if (isOpenLogger()) PrintLog('解析关键字', '解析关键字为空', _TAG) if (isOpenLogger()) logger.info('解析关键字', '解析关键字为空', _TAG)
return [] return []
} }
if (!content || content === '' || content === 'null') { if (!content || content === '' || content === 'null') {
if (isOpenLogger()) PrintLog('解析内容', '解析内容为空', _TAG) if (isOpenLogger()) logger.info('解析内容', '解析内容为空', _TAG)
return [] return []
} }
if (isOpenLogger()) PrintLog('解析关键字', keyArrs, _TAG) if (isOpenLogger()) logger.info('解析关键字', keyArrs, _TAG)
if (isOpenLogger()) PrintLog('解析内容', content, _TAG) if (isOpenLogger()) logger.info('解析内容', content, _TAG)
let arrs = [] let arrs = []
let temp = content let temp = content
...@@ -79,7 +78,7 @@ let parseStr = function (keyArrs, content) { ...@@ -79,7 +78,7 @@ let parseStr = function (keyArrs, content) {
if (arrs.length === 0) { if (arrs.length === 0) {
arrs.push(content) arrs.push(content)
} }
if (isOpenLogger()) PrintLog('解析结果', arrs, _TAG) if (isOpenLogger()) logger.info('解析结果', arrs, _TAG)
return arrs return arrs
} }
......
...@@ -47,17 +47,7 @@ axios.interceptors.response.use( ...@@ -47,17 +47,7 @@ axios.interceptors.response.use(
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
if (relUrlIp == '47.92.225.109') {
// window.open('http://47.92.225.109:8300/#/login', '_blank')
window.location.href = 'http://47.92.225.109:8300/#/login';
} else if (relUrlIp == '26.3.13.120') {
window.location.href = 'http://26.3.13.120:8050/#/login';
} else if (relUrlIp == '10.142.16.177') {
window.location.href = 'http://10.142.16.177:8050/#/login';
} else {
// window.open('http://localhost:8080/#/login', '_blank')
window.location.href = 'http://localhost:8080/#/login';
}
}) })
} }
if (status < 0) { if (status < 0) {
...@@ -151,9 +141,6 @@ export function postform (url, data) { ...@@ -151,9 +141,6 @@ export function postform (url, data) {
/** /**
* 封装post请求 文件下载 * 封装post请求 文件下载
* @param url
* @param data
* @returns {Promise}
*/ */
export function postdown (url, data) { export function postdown (url, data) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
</template> </template>
<script> <script>
import PrintLog from '../../utils/LogcatUtil'
import {bzxxPlSb, bzxxSh, bzxxZg} from '../../netmgr/bzxxgl/bzxxsh'
export default { export default {
name: 'BzxxsfOpt', name: 'BzxxsfOpt',
...@@ -146,7 +144,7 @@ export default { ...@@ -146,7 +144,7 @@ export default {
init() { init() {
var _that = this var _that = this
_that.isStRole = _that.isSt _that.isStRole = _that.isSt
console.log('bzxxsfOpt-isSt', _that.isSt) // logger.info('bzxxsfOpt-isSt', _that.isSt)
_that.initShItem() _that.initShItem()
}, },
/** /**
...@@ -236,8 +234,6 @@ export default { ...@@ -236,8 +234,6 @@ export default {
break break
} }
console.log('ruleForm @@@@@@@@@@@@@@@@@@@@@@@', _that.parentRuleForm)
if (_path) { if (_path) {
let query = { let query = {
isFromSh: 'true', isFromSh: 'true',
...@@ -347,7 +343,7 @@ export default { ...@@ -347,7 +343,7 @@ export default {
doSh(fhzt, shzt, desc = '') { doSh(fhzt, shzt, desc = '') {
let TITLE = '审核' let TITLE = '审核'
let _that = this let _that = this
PrintLog('item:', JSON.stringify(_that.shInfo)) logger.info('item:', JSON.stringify(_that.shInfo))
var ruleForm = {} var ruleForm = {}
ruleForm.querytype = _that.shInfo.querytype ruleForm.querytype = _that.shInfo.querytype
ruleForm.id = _that.shInfo.id ruleForm.id = _that.shInfo.id
...@@ -356,20 +352,30 @@ export default { ...@@ -356,20 +352,30 @@ export default {
ruleForm.des = desc ruleForm.des = desc
ruleForm.level = _that.getLevel() ruleForm.level = _that.getLevel()
PrintLog(TITLE + '请求参数', ruleForm) // PrintLog(TITLE + '请求参数', ruleForm)
bzxxSh(_that, ruleForm).then(res => { NetUtil.bzxxsh
PrintLog(TITLE + '返回结果', res, _that.TAG) .sh(ruleForm)
if (res.data.code === 0) { .then(res => {
if (res.code === 0) {
_that.$emit('refresh', _that.shInfo) _that.$emit('refresh', _that.shInfo)
_that.initShItem() _that.initShItem()
} else {
} }
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
_that.$message.error('异常' + err)
}) })
// bzxxSh(_that, ruleForm).then(res => {
// PrintLog(TITLE + '返回结果', res, _that.TAG)
// if (res.data.code === 0) {
// _that.$emit('refresh', _that.shInfo)
// _that.initShItem()
// } else {
//
// }
// }).catch(err => {
// PrintLog(TITLE + '异常', err, _that.TAG)
// _that.$message.error('异常' + err)
// })
}, },
doZg(zgzt, desc = '') { doZg(zgzt, desc = '') {
...@@ -382,20 +388,32 @@ export default { ...@@ -382,20 +388,32 @@ export default {
ruleForm.des = desc ruleForm.des = desc
ruleForm.level = _that.getLevel() ruleForm.level = _that.getLevel()
PrintLog(TITLE + '请求参数', ruleForm) // PrintLog(TITLE + '请求参数', ruleForm)
// PrintLog(TITLE + '接口', 'updateJrzg') // PrintLog(TITLE + '接口', 'updateJrzg')
bzxxZg(_that, ruleForm).then(res => { NetUtil.bzxxsh
PrintLog(TITLE + '返回结果', res, _that.TAG) .updateJrzg(ruleForm)
if (res.data.code === 0) { .then(res => {
// PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.code === 0) {
_that.$emit('refresh', _that.shInfo) _that.$emit('refresh', _that.shInfo)
_that.initShItem() _that.initShItem()
} else {
} }
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
}) })
// bzxxZg(_that, ruleForm).then(res => {
// PrintLog(TITLE + '返回结果', res, _that.TAG)
// if (res.data.code === 0) {
// _that.$emit('refresh', _that.shInfo)
// _that.initShItem()
// } else {
//
// }
// }).catch(err => {
// PrintLog(TITLE + '异常', err, _that.TAG)
// })
}, },
doPlSb() { doPlSb() {
...@@ -409,21 +427,31 @@ export default { ...@@ -409,21 +427,31 @@ export default {
ruleForm.status = '3' ruleForm.status = '3'
ruleForm.level = _that.getLevel() ruleForm.level = _that.getLevel()
PrintLog(TITLE + '请求参数', ruleForm, _that.TAG) // PrintLog(TITLE + '请求参数', ruleForm, _that.TAG)
// PrintLog(TITLE + '接口', '/api/hit/insertBeach', _that.TAG) // PrintLog(TITLE + '接口', '/api/hit/insertBeach', _that.TAG)
bzxxPlSb(_that, ruleForm) NetUtil.bzxxsh
.bzxxPlSb(ruleForm)
.then(res => { .then(res => {
PrintLog(TITLE + '返回结果', res, _that.TAG) // PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.data.code === 0) { if (res.code === 0) {
_that.$emit('refresh', _that.shInfo) _that.$emit('refresh', _that.shInfo)
_that.initShItem() _that.initShItem()
} }
}) })
.catch(err => {
PrintLog(TITLE + '异常', err.toString(), _that.TAG) // bzxxPlSb(_that, ruleForm)
this.$message.error('失败原因:' + err.toString()) // .then(res => {
}) // PrintLog(TITLE + '返回结果', res, _that.TAG)
// if (res.data.code === 0) {
// _that.$emit('refresh', _that.shInfo)
// _that.initShItem()
// }
// })
// .catch(err => {
// PrintLog(TITLE + '异常', err.toString(), _that.TAG)
// this.$message.error('失败原因:' + err.toString())
// })
}, },
}, },
} }
......
...@@ -333,8 +333,6 @@ ...@@ -333,8 +333,6 @@
<script> <script>
import Cascader from '@/components/Cascader.vue' import Cascader from '@/components/Cascader.vue'
import bzxxsfOpt from '../bzxxgl/BzxxsfOpt.vue' import bzxxsfOpt from '../bzxxgl/BzxxsfOpt.vue'
import PrintLog from '../../utils/LogcatUtil'
import {queryShList, bzxxPlSb} from '../../netmgr/bzxxgl/bzxxsh'
import ZzjgUtil from '../../utils/ZzjgUtil.js' import ZzjgUtil from '../../utils/ZzjgUtil.js'
export default { export default {
...@@ -440,7 +438,7 @@ export default { ...@@ -440,7 +438,7 @@ export default {
// _that.initTestData() // _that.initTestData()
_that.getData() _that.getData()
console.log('bzxxsH-isSt', _that.isSt) // console.log('bzxxsH-isSt', _that.isSt)
}, },
computed: { computed: {
roleArr() { roleArr() {
...@@ -487,7 +485,7 @@ export default { ...@@ -487,7 +485,7 @@ export default {
item.width = item.width * scalePercent item.width = item.width * scalePercent
_that.checkedProps.push(item.prop) _that.checkedProps.push(item.prop)
}) })
PrintLog('tableColumns', _that.tableColumns) logger.info('tableColumns', _that.tableColumns)
}, },
changeCheckbox(val) { changeCheckbox(val) {
let _that = this let _that = this
...@@ -496,7 +494,7 @@ export default { ...@@ -496,7 +494,7 @@ export default {
item.isShow = val.indexOf(item.prop) >= 0 item.isShow = val.indexOf(item.prop) >= 0
} }
) )
PrintLog('checkedProps', _that.checkedProps) logger.info('checkedProps', _that.checkedProps)
}, },
getShState(info) { getShState(info) {
let _that = this let _that = this
...@@ -559,7 +557,7 @@ export default { ...@@ -559,7 +557,7 @@ export default {
kk: '' kk: ''
}) })
} }
console.log('initTestData', JSON.stringify(_that.tableDate)) // console.log('initTestData', JSON.stringify(_that.tableDate))
}, },
commitShAction() { // 确定 commitShAction() { // 确定
...@@ -643,7 +641,7 @@ export default { ...@@ -643,7 +641,7 @@ export default {
for (let key in _that.ruleForm) { for (let key in _that.ruleForm) {
_that.ruleForm[key] = '' _that.ruleForm[key] = ''
} }
PrintLog('resetForm-ruleForm', JSON.stringify(_that.ruleForm)) logger.info('resetForm-ruleForm', JSON.stringify(_that.ruleForm))
_that.getData() _that.getData()
}, },
bzxxsfOptRefresh(data) { bzxxsfOptRefresh(data) {
...@@ -695,28 +693,38 @@ export default { ...@@ -695,28 +693,38 @@ export default {
_that.ruleForm.level = _that.getLevel() _that.ruleForm.level = _that.getLevel()
PrintLog('查询审核列表' + '请求参数', JSON.stringify(_that.ruleForm), _that.TAG) // PrintLog('查询审核列表' + '请求参数', JSON.stringify(_that.ruleForm), _that.TAG)
PrintLog('查询审核列表' + '接口', '/api/hit/queryAllSh', _that.TAG) // PrintLog('查询审核列表' + '接口', '/api/hit/queryAllSh', _that.TAG)
queryShList(_that, _that.ruleForm) NetUtil.bzxxsh.shList(_that.ruleForm)
.then(res => { .then(res => {
PrintLog('查询审核列表' + '返回结果', res, _that.TAG) if (res.code === 0) {
if (res.data.code === 0) { _that.tableDate = res.ret.rows
logger.json(res.data) _that.total = res.ret.total
_that.tableDate = res.data.ret.rows
_that.total = res.data.ret.total
_that.totalPage = Math.ceil(_that.total / _that.pageSize) _that.totalPage = Math.ceil(_that.total / _that.pageSize)
} else {
_that.tableDate = []
_that.total = 0
_that.totalPage = 0
}
_that.refreshItemsData() _that.refreshItemsData()
}
}) })
.catch(err => {
PrintLog('查询审核列表' + '异常', err.toString(), _that.TAG) // queryShList(_that, _that.ruleForm)
this.$message.error('失败原因:' + err.toString()) // .then(res => {
}) // PrintLog('查询审核列表' + '返回结果', res, _that.TAG)
// if (res.code === 0) {
// // logger.json(res.data)
// _that.tableDate = res.data.ret.rows
// _that.total = res.data.ret.total
// _that.totalPage = Math.ceil(_that.total / _that.pageSize)
// } else {
// _that.tableDate = []
// _that.total = 0
// _that.totalPage = 0
// }
// _that.refreshItemsData()
// })
// .catch(err => {
// PrintLog('查询审核列表' + '异常', err, _that.TAG)
// this.$message.error('失败原因:' + err.toString())
// })
}, },
onSbxxListener() { onSbxxListener() {
...@@ -771,20 +779,29 @@ export default { ...@@ -771,20 +779,29 @@ export default {
// ruleForm.username = username // ruleForm.username = username
ruleForm.level = _that.getLevel() ruleForm.level = _that.getLevel()
PrintLog(TITLE + '请求参数', ruleForm, _that.TAG) // PrintLog(TITLE + '请求参数', ruleForm, _that.TAG)
PrintLog(TITLE + '接口', '/api/hit/insertBeach', _that.TAG) // PrintLog(TITLE + '接口', '/api/hit/insertBeach', _that.TAG)
bzxxPlSb(_that, ruleForm) NetUtil.bzxxsh
.plsb(ruleForm)
.then(res => { .then(res => {
PrintLog(TITLE + '返回结果', res, _that.TAG) // PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.data.code === 0) { if (res.code === 0) {
_that.getData() _that.getData()
} }
}) })
.catch(err => {
PrintLog(TITLE + '异常', err.toString(), _that.TAG) // bzxxPlSb(_that, ruleForm)
this.$message.error('失败原因:' + err.toString()) // .then(res => {
}) // PrintLog(TITLE + '返回结果', res, _that.TAG)
// if (res.data.code === 0) {
// _that.getData()
// }
// })
// .catch(err => {
// PrintLog(TITLE + '异常', err.toString(), _that.TAG)
// this.$message.error('失败原因:' + err.toString())
// })
}, },
onFztmSuccess(e) { onFztmSuccess(e) {
...@@ -811,7 +828,7 @@ export default { ...@@ -811,7 +828,7 @@ export default {
}) })
_that.fztm_ytmh = _that.fztm_ytmh.join(',') _that.fztm_ytmh = _that.fztm_ytmh.join(',')
} }
PrintLog('fztm_ytmh', _that.fztm_ytmh) // PrintLog('fztm_ytmh', _that.fztm_ytmh)
} }
}, },
watch: { watch: {
......
...@@ -217,8 +217,6 @@ ...@@ -217,8 +217,6 @@
<script> <script>
import {mapState} from 'vuex' import {mapState} from 'vuex'
import ImageEd from '@/components/ImageEd.vue' import ImageEd from '@/components/ImageEd.vue'
import PrintLog from '../../utils/LogcatUtil'
import {bzxxSh} from '../../netmgr/bzxxgl/bzxxsh'
export default { export default {
name: 'fhxxLT', name: 'fhxxLT',
...@@ -557,13 +555,10 @@ export default { ...@@ -557,13 +555,10 @@ export default {
ruleForm.des = _that.fhyj ruleForm.des = _that.fhyj
ruleForm.level = _that.curLevel ruleForm.level = _that.curLevel
PrintLog(TITLE + '请求参数', ruleForm) NetUtil.bzxxsh
// PrintLog(TITLE + '接口', 'udateShzt') .sh(ruleForm)
.then(res => {
bzxxSh(_that, ruleForm).then(res => { if (res.code === 0) {
PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.data.code === 0) {
// _that.$router.go(-1)//返回上一层
let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level
_that.$router.replace({ _that.$router.replace({
path: _path, path: _path,
...@@ -572,9 +567,6 @@ export default { ...@@ -572,9 +567,6 @@ export default {
} }
}) })
} }
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
_that.$message.error('异常' + err)
}) })
}, },
......
...@@ -206,8 +206,6 @@ ...@@ -206,8 +206,6 @@
<script> <script>
import {mapState} from 'vuex' import {mapState} from 'vuex'
import ImageEd from '@/components/ImageEd.vue' import ImageEd from '@/components/ImageEd.vue'
import {bzxxSh} from '../../netmgr/bzxxgl/bzxxsh'
import PrintLog from '../../utils/LogcatUtil'
export default { export default {
name: 'fhxxLT', name: 'fhxxLT',
...@@ -603,11 +601,10 @@ export default { ...@@ -603,11 +601,10 @@ export default {
ruleForm.des = _that.fhyj ruleForm.des = _that.fhyj
ruleForm.level = _that.curLevel ruleForm.level = _that.curLevel
PrintLog(TITLE + '请求参数', ruleForm) NetUtil.bzxxsh
// PrintLog(TITLE + '接口', 'udateShzt') .sh(ruleForm)
bzxxSh(_that, ruleForm).then(res => { .then(res => {
PrintLog(TITLE + '返回结果', res, _that.TAG) if (res.code === 0) {
if (res.data.code === 0) {
let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level
_that.$router.replace({ _that.$router.replace({
path: _path, path: _path,
...@@ -616,9 +613,6 @@ export default { ...@@ -616,9 +613,6 @@ export default {
} }
}) })
} }
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
_that.$message.error('异常' + err)
}) })
}, },
}, },
......
...@@ -225,8 +225,6 @@ ...@@ -225,8 +225,6 @@
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import ImageEd from '@/components/ImageEd.vue' import ImageEd from '@/components/ImageEd.vue'
import PrintLog from '../../utils/LogcatUtil'
import { bzxxSh } from '../../netmgr/bzxxgl/bzxxsh'
export default { export default {
name: 'fhxxLT', name: 'fhxxLT',
...@@ -613,12 +611,10 @@ export default { ...@@ -613,12 +611,10 @@ export default {
ruleForm.des = _that.fhyj ruleForm.des = _that.fhyj
ruleForm.level = _that.curLevel ruleForm.level = _that.curLevel
PrintLog(TITLE + '请求参数', ruleForm) NetUtil.bzxxsh
// PrintLog(TITLE + '接口', 'udateShzt') .sh(ruleForm)
.then(res => {
bzxxSh(_that, ruleForm).then(res => { if (res.code === 0) {
PrintLog(TITLE + '返回结果', res, _that.TAG)
if (res.data.code === 0) {
let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level
_that.$router.replace({ _that.$router.replace({
path: _path, path: _path,
...@@ -627,9 +623,6 @@ export default { ...@@ -627,9 +623,6 @@ export default {
} }
}) })
} }
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
_that.$message.error('异常' + err)
}) })
}, },
......
...@@ -33,10 +33,12 @@ ...@@ -33,10 +33,12 @@
<div class="btn" :class="{ active: isFinger == true }" @click="finger"> <div class="btn" :class="{ active: isFinger == true }" @click="finger">
指纹 指纹
</div> </div>
<div class="btn" :class="{ active: isPlam == true, hui: zhihui }" @click="zhihui ? () => {} : plam()"> <div class="btn" :class="{ active: isPlam == true, hui: zhihui }"
@click="zhihui ? () => {} : plam()">
掌纹 掌纹
</div> </div>
<div class="btn" :class="{ active: isFace == true, hui: zhihui }" @click="zhihui ? () => {} : face()"> <div class="btn" :class="{ active: isFace == true, hui: zhihui }"
@click="zhihui ? () => {} : face()">
人像 人像
</div> </div>
<br /> <br />
...@@ -52,7 +54,8 @@ ...@@ -52,7 +54,8 @@
</div> </div>
<!-- 目标数据 --> <!-- 目标数据 -->
<div class="dest-data"> <div class="dest-data">
<el-table highlight-current-row :data="tableData" ref="singleTable" class="dest-table" :height="height" :row-class-name="tableRowClassName"> <el-table highlight-current-row :data="tableData" ref="singleTable" class="dest-table"
:height="height" :row-class-name="tableRowClassName">
<el-table-column prop="destbarcode" label="目标条码号" width="auto"> <el-table-column prop="destbarcode" label="目标条码号" width="auto">
<div slot-scope="scope"> <div slot-scope="scope">
{{ scope.row.destbarcode }} {{ scope.row.destbarcode }}
...@@ -89,7 +92,8 @@ ...@@ -89,7 +92,8 @@
<div class="finger-img" @dblclick=" <div class="finger-img" @dblclick="
showDetail(item, index, 'sourceFingersRightR') showDetail(item, index, 'sourceFingersRightR')
"> ">
<img v-if="fingerLoading" class="img" src="@/assets/img/fingerprint.gif" /> <img v-if="fingerLoading" class="img"
src="@/assets/img/fingerprint.gif" />
<div class="relative" v-else> <div class="relative" v-else>
<!-- 有指纹图片 --> <!-- 有指纹图片 -->
<div v-if="souceDel == true" class="wtx"> <div v-if="souceDel == true" class="wtx">
...@@ -122,7 +126,8 @@ ...@@ -122,7 +126,8 @@
<div class="finger-img" @dblclick=" <div class="finger-img" @dblclick="
showDetail(item, index, 'destFingersRightR') showDetail(item, index, 'destFingersRightR')
"> ">
<img v-if="fingerLoading" class="img" src="@/assets/img/fingerprint.gif" /> <img v-if="fingerLoading" class="img"
src="@/assets/img/fingerprint.gif" />
<div class="relative" v-else> <div class="relative" v-else>
<div v-if="targetDel == true" class="wtx"> <div v-if="targetDel == true" class="wtx">
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
...@@ -159,7 +164,8 @@ ...@@ -159,7 +164,8 @@
<div class="finger-img" @dblclick=" <div class="finger-img" @dblclick="
showDetail(item, index, 'sourceFingersLeftR') showDetail(item, index, 'sourceFingersLeftR')
"> ">
<img v-if="fingerLoading" class="img" src="@/assets/img/fingerprint.gif" /> <img v-if="fingerLoading" class="img"
src="@/assets/img/fingerprint.gif" />
<div class="relative" v-else> <div class="relative" v-else>
<div v-if="souceDel == true" class="wtx"> <div v-if="souceDel == true" class="wtx">
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
...@@ -193,7 +199,8 @@ ...@@ -193,7 +199,8 @@
<div class="finger-img" @dblclick=" <div class="finger-img" @dblclick="
showDetail(item, index, 'destFingersLeftR') showDetail(item, index, 'destFingersLeftR')
"> ">
<img v-if="fingerLoading" class="img" src="@/assets/img/fingerprint.gif" /> <img v-if="fingerLoading" class="img"
src="@/assets/img/fingerprint.gif" />
<div class="relative" v-else> <div class="relative" v-else>
<div v-if="targetDel == true" class="wtx"> <div v-if="targetDel == true" class="wtx">
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
...@@ -237,7 +244,8 @@ ...@@ -237,7 +244,8 @@
<div class="finger-img" @dblclick=" <div class="finger-img" @dblclick="
showDetail(item, index, 'sourceFingersRightL') showDetail(item, index, 'sourceFingersRightL')
"> ">
<img v-if="fingerLoading" class="img" src="@/assets/img/fingerprint.gif" /> <img v-if="fingerLoading" class="img"
src="@/assets/img/fingerprint.gif" />
<div class="relative" v-else> <div class="relative" v-else>
<div v-if="souceDel == true" class="wtx"> <div v-if="souceDel == true" class="wtx">
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
...@@ -270,7 +278,8 @@ ...@@ -270,7 +278,8 @@
<div class="finger-img" @dblclick=" <div class="finger-img" @dblclick="
showDetail(item, index, 'destFingersRightL') showDetail(item, index, 'destFingersRightL')
"> ">
<img v-if="fingerLoading" class="img" src="@/assets/img/fingerprint.gif" /> <img v-if="fingerLoading" class="img"
src="@/assets/img/fingerprint.gif" />
<div class="relative" v-else> <div class="relative" v-else>
<div v-if="targetDel == true" class="wtx"> <div v-if="targetDel == true" class="wtx">
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
...@@ -307,7 +316,8 @@ ...@@ -307,7 +316,8 @@
<div class="finger-img" @dblclick=" <div class="finger-img" @dblclick="
showDetail(item, index, 'sourceFingersLeftL') showDetail(item, index, 'sourceFingersLeftL')
"> ">
<img v-if="fingerLoading" class="img" src="@/assets/img/fingerprint.gif" /> <img v-if="fingerLoading" class="img"
src="@/assets/img/fingerprint.gif" />
<div class="relative" v-else> <div class="relative" v-else>
<div v-if="souceDel == true" class="wtx"> <div v-if="souceDel == true" class="wtx">
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
...@@ -341,7 +351,8 @@ ...@@ -341,7 +351,8 @@
<div class="finger-img" @dblclick=" <div class="finger-img" @dblclick="
showDetail(item, index, 'destFingersLeftL') showDetail(item, index, 'destFingersLeftL')
"> ">
<img v-if="fingerLoading" class="img" src="@/assets/img/fingerprint.gif" /> <img v-if="fingerLoading" class="img"
src="@/assets/img/fingerprint.gif" />
<div class="relative" v-else> <div class="relative" v-else>
<div v-if="targetDel == true" class="wtx"> <div v-if="targetDel == true" class="wtx">
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
...@@ -375,12 +386,17 @@ ...@@ -375,12 +386,17 @@
</div> </div>
</div> </div>
</div> </div>
<t-t-plam v-show="isPlam == true" :sonSouceDel="souceDel" @logbg="isShowbzDialogBg = true" :sonTargetDel="targetDel" :scouceCode="scouceCode" :targetCode="targetCode" :plamDetail="plamDetail"></t-t-plam> <t-t-plam v-show="isPlam == true" :sonSouceDel="souceDel" @logbg="isShowbzDialogBg = true"
<t-t-face v-show="isFace == true" :faceDetail="faceDetail" @logbg="isShowbzDialogBg = true" :sonSouceDel="souceDel" :sonTargetDel="targetDel" :scouceCode="scouceCode" :isFace="isFace" :targetCode="targetCode"></t-t-face> :sonTargetDel="targetDel" :scouceCode="scouceCode" :targetCode="targetCode"
:plamDetail="plamDetail"></t-t-plam>
<t-t-face v-show="isFace == true" :faceDetail="faceDetail" @logbg="isShowbzDialogBg = true"
:sonSouceDel="souceDel" :sonTargetDel="targetDel" :scouceCode="scouceCode"
:isFace="isFace" :targetCode="targetCode"></t-t-face>
</div> </div>
</div> </div>
<div class="jiantou" ref="jiantou" style="width: 100px; height: 100px" v-show="isFinger" @click="jiantoudianji"> <div class="jiantou" ref="jiantou" style="width: 100px; height: 100px" v-show="isFinger"
@click="jiantoudianji">
<img src="@/assets/img/jiantou.gif" alt="" width="100px" height="100px" /> <img src="@/assets/img/jiantou.gif" alt="" width="100px" height="100px" />
</div> </div>
</div> </div>
...@@ -393,7 +409,8 @@ ...@@ -393,7 +409,8 @@
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
<span class="cccccc">图像已删除</span> <span class="cccccc">图像已删除</span>
</div> </div>
<img v-else-if="sourceImgdetail && souceDel == false" :src="'data:image/jpeg;base64,' + sourceImgdetail" style="width: 100%; height: 100%" /> <img v-else-if="sourceImgdetail && souceDel == false" :src="'data:image/jpeg;base64,' + sourceImgdetail"
style="width: 100%; height: 100%" />
<div v-else-if="!sourceImgdetail && souceDel == false" class="wtx"> <div v-else-if="!sourceImgdetail && souceDel == false" class="wtx">
<img src="@/assets/img/TT/zwtp.png" /> <img src="@/assets/img/TT/zwtp.png" />
<span class="cccccc">暂无图像</span> <span class="cccccc">暂无图像</span>
...@@ -404,7 +421,8 @@ ...@@ -404,7 +421,8 @@
<img src="@/assets/img/TT/tuxiangdel.png" /> <img src="@/assets/img/TT/tuxiangdel.png" />
<span class="cccccc">图像已删除</span> <span class="cccccc">图像已删除</span>
</div> </div>
<img v-else-if="destImgdetail && targetDel == false" :src="'data:image/jpeg;base64,' + destImgdetail" style="width: 100%; height: 100%" /> <img v-else-if="destImgdetail && targetDel == false" :src="'data:image/jpeg;base64,' + destImgdetail"
style="width: 100%; height: 100%" />
<div v-else-if="!destImgdetail && targetDel == false" class="wtx"> <div v-else-if="!destImgdetail && targetDel == false" class="wtx">
<img src="@/assets/img/TT/zwtp.png" /> <img src="@/assets/img/TT/zwtp.png" />
<span class="cccccc">暂无图像</span> <span class="cccccc">暂无图像</span>
...@@ -476,7 +494,8 @@ ...@@ -476,7 +494,8 @@
<div class="label-value" :title="allData.hjdzDzmc">{{allData.hjdzDzmc}}</div> <div class="label-value" :title="allData.hjdzDzmc">{{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>
...@@ -537,7 +556,8 @@ ...@@ -537,7 +556,8 @@
</div> </div>
</div> </div>
<div class="content-area2"> <div class="content-area2">
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="allData.destPersonBz" disabled> <el-input type="textarea" :rows="3" placeholder="请输入内容"
v-model="allData.destPersonBz" disabled>
</el-input> </el-input>
</div> </div>
</div> </div>
...@@ -630,19 +650,17 @@ ...@@ -630,19 +650,17 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import {mapState} from 'vuex'
import 'swiper/dist/css/swiper.css' import 'swiper/dist/css/swiper.css'
import { swiper, swiperSlide } from 'vue-awesome-swiper' import {swiper, swiperSlide} from 'vue-awesome-swiper'
import TTPlam from './modules/TTPlam.vue' import TTPlam from './modules/TTPlam.vue'
import TTFace from './modules/TTFace.vue' import TTFace from './modules/TTFace.vue'
import '@/icons/error.svg' import '@/icons/error.svg'
import Swiper from '@/components/swiperbzxx.vue' import Swiper from '@/components/swiperbzxx.vue'
import PrintLog from '../../utils/LogcatUtil'
import { bzxxSh } from '../../netmgr/bzxxgl/bzxxsh'
export default { export default {
name: 'fhxxLT', name: 'fhxxLT',
data () { data() {
return { return {
fhxxTTShow: false, fhxxTTShow: false,
srcbarcode: '', srcbarcode: '',
...@@ -749,60 +767,60 @@ export default { ...@@ -749,60 +767,60 @@ export default {
sourceImgdetail: '', sourceImgdetail: '',
destImgdetail: '', destImgdetail: '',
sourceFingersLeftR: [ sourceFingersLeftR: [
{ name: '拇', code: 6, img: null }, {name: '拇', code: 6, img: null},
{ name: '食', code: 7, img: null }, {name: '食', code: 7, img: null},
{ name: '中', code: 8, img: null }, {name: '中', code: 8, img: null},
{ name: '环', code: 9, img: null }, {name: '环', code: 9, img: null},
{ name: '小', code: 10, img: null }, {name: '小', code: 10, img: null},
], ],
sourceFingersRightR: [ sourceFingersRightR: [
{ name: '拇', code: 1, img: null }, {name: '拇', code: 1, img: null},
{ name: '食', code: 2, img: null }, {name: '食', code: 2, img: null},
{ name: '中', code: 3, img: null }, {name: '中', code: 3, img: null},
{ name: '环', code: 4, img: null }, {name: '环', code: 4, img: null},
{ name: '小', code: 5, img: null }, {name: '小', code: 5, img: null},
], ],
sourceFingersLeftL: [ sourceFingersLeftL: [
{ name: '拇', code: 16, img: null }, {name: '拇', code: 16, img: null},
{ name: '食', code: 17, img: null }, {name: '食', code: 17, img: null},
{ name: '中', code: 18, img: null }, {name: '中', code: 18, img: null},
{ name: '环', code: 19, img: null }, {name: '环', code: 19, img: null},
{ name: '小', code: 20, img: null }, {name: '小', code: 20, img: null},
], ],
sourceFingersRightL: [ sourceFingersRightL: [
{ name: '拇', code: 11, img: null }, {name: '拇', code: 11, img: null},
{ name: '食', code: 12, img: null }, {name: '食', code: 12, img: null},
{ name: '中', code: 13, img: null }, {name: '中', code: 13, img: null},
{ name: '环', code: 14, img: null }, {name: '环', code: 14, img: null},
{ name: '小', code: 15, img: null }, {name: '小', code: 15, img: null},
], ],
destFingersLeftR: [ destFingersLeftR: [
{ name: '拇', code: 6, img: null }, {name: '拇', code: 6, img: null},
{ name: '食', code: 7, img: null }, {name: '食', code: 7, img: null},
{ name: '中', code: 8, img: null }, {name: '中', code: 8, img: null},
{ name: '环', code: 9, img: null }, {name: '环', code: 9, img: null},
{ name: '小', code: 10, img: null }, {name: '小', code: 10, img: null},
], ],
destFingersRightR: [ destFingersRightR: [
{ name: '拇', code: 1, img: null }, {name: '拇', code: 1, img: null},
{ name: '食', code: 2, img: null }, {name: '食', code: 2, img: null},
{ name: '中', code: 3, img: null }, {name: '中', code: 3, img: null},
{ name: '环', code: 4, img: null }, {name: '环', code: 4, img: null},
{ name: '小', code: 5, img: null }, {name: '小', code: 5, img: null},
], ],
destFingersLeftL: [ destFingersLeftL: [
{ name: '拇', code: 16, img: null }, {name: '拇', code: 16, img: null},
{ name: '食', code: 17, img: null }, {name: '食', code: 17, img: null},
{ name: '中', code: 18, img: null }, {name: '中', code: 18, img: null},
{ name: '环', code: 19, img: null }, {name: '环', code: 19, img: null},
{ name: '小', code: 20, img: null }, {name: '小', code: 20, img: null},
], ],
destFingersRightL: [ destFingersRightL: [
{ name: '拇', code: 11, img: null }, {name: '拇', code: 11, img: null},
{ name: '食', code: 12, img: null }, {name: '食', code: 12, img: null},
{ name: '中', code: 13, img: null }, {name: '中', code: 13, img: null},
{ name: '环', code: 14, img: null }, {name: '环', code: 14, img: null},
{ name: '小', code: 15, img: null }, {name: '小', code: 15, img: null},
], ],
rdcount: 0, // 认定条数 rdcount: 0, // 认定条数
// 指纹图片加载 // 指纹图片加载
...@@ -885,7 +903,7 @@ export default { ...@@ -885,7 +903,7 @@ export default {
swiperSlide, swiperSlide,
Swiper, Swiper,
}, },
created () { created() {
let w1 = 1920 let w1 = 1920
let w2 = window.innerWidth let w2 = window.innerWidth
...@@ -912,7 +930,7 @@ export default { ...@@ -912,7 +930,7 @@ export default {
} }
this.getData() this.getData()
}, },
mounted () { mounted() {
this.finger() this.finger()
this.$bus.on('ccbarcode', (code) => { this.$bus.on('ccbarcode', (code) => {
...@@ -943,7 +961,7 @@ export default { ...@@ -943,7 +961,7 @@ export default {
} }
}, },
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' ? '审核' : '复核'
...@@ -954,7 +972,7 @@ export default { ...@@ -954,7 +972,7 @@ export default {
/** /**
* 打开复核详情信息卡 * 打开复核详情信息卡
*/ */
openFhxxTT () { openFhxxTT() {
this.fhxxTTShow = true this.fhxxTTShow = true
this.isShowbzDialogBg = true this.isShowbzDialogBg = true
this.isShowbzDialogBg = true this.isShowbzDialogBg = true
...@@ -962,7 +980,7 @@ export default { ...@@ -962,7 +980,7 @@ export default {
/** /**
* 取消查看详情 * 取消查看详情
*/ */
cancelbz () { cancelbz() {
this.isShowbzDialogBg = false this.isShowbzDialogBg = false
this.isShowbzDialog = false this.isShowbzDialog = false
this.cancelDetail() this.cancelDetail()
...@@ -973,7 +991,7 @@ export default { ...@@ -973,7 +991,7 @@ export default {
/** /**
* 確認解除比中关系 * 確認解除比中关系
*/ */
confirmRelieveChange () { confirmRelieveChange() {
let self = this let self = this
this.$axios({ this.$axios({
method: 'post', method: 'post',
...@@ -1007,10 +1025,10 @@ export default { ...@@ -1007,10 +1025,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('请填写不通过意见!')
...@@ -1045,7 +1063,7 @@ export default { ...@@ -1045,7 +1063,7 @@ export default {
/** /**
* 未通过 * 未通过
*/ */
noPassChange () { noPassChange() {
let self = this let self = this
if (self.isFromSh === 'true') { if (self.isFromSh === 'true') {
self.doSh(false) self.doSh(false)
...@@ -1084,7 +1102,7 @@ export default { ...@@ -1084,7 +1102,7 @@ export default {
/** /**
* 通过 * 通过
*/ */
passChange () { passChange() {
let self = this let self = this
if (self.isFromSh === 'true') { if (self.isFromSh === 'true') {
self.doSh(true) self.doSh(true)
...@@ -1123,7 +1141,7 @@ export default { ...@@ -1123,7 +1141,7 @@ export default {
/** /**
* 获取数据 * 获取数据
*/ */
getData () { getData() {
let self = this let self = this
this.$axios({ this.$axios({
method: 'post', method: 'post',
...@@ -1164,7 +1182,7 @@ export default { ...@@ -1164,7 +1182,7 @@ export default {
}) })
}, },
doSh (isPass) { doSh(isPass) {
let TITLE = '审核' let TITLE = '审核'
let _that = this let _that = this
var ruleForm = {} var ruleForm = {}
...@@ -1185,12 +1203,11 @@ export default { ...@@ -1185,12 +1203,11 @@ export default {
ruleForm.des = _that.fhyj ruleForm.des = _that.fhyj
ruleForm.level = _that.curLevel ruleForm.level = _that.curLevel
PrintLog(TITLE + '请求参数', ruleForm)
// PrintLog(TITLE + '接口', 'udateShzt')
bzxxSh(_that, ruleForm).then(res => { NetUtil.bzxxsh
PrintLog(TITLE + '返回结果', res, _that.TAG) .sh(ruleForm)
if (res.data.code === 0) { .then(res => {
if (res.code === 0) {
let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level let _path = _that.curLevel === '0' ? '/dsBzxxsh' : '/stBzxxsh' // 市级 0 省级 1 字段名:level
_that.$router.replace({ _that.$router.replace({
path: _path, path: _path,
...@@ -1199,14 +1216,11 @@ export default { ...@@ -1199,14 +1216,11 @@ export default {
} }
}) })
} }
}).catch(err => {
PrintLog(TITLE + '异常', err, _that.TAG)
_that.$message.error('异常' + err)
}) })
}, },
// 滚动平面选择切换 // 滚动平面选择切换
handleSelect (index) { handleSelect(index) {
this.activeIndex = index this.activeIndex = index
//console.info(this.activeIndex); //console.info(this.activeIndex);
if (index == 1) { if (index == 1) {
...@@ -1216,7 +1230,7 @@ export default { ...@@ -1216,7 +1230,7 @@ export default {
//console.info("平面指纹"); //console.info("平面指纹");
} }
}, },
jiantoudianji () { jiantoudianji() {
if (this.btnPlace == 'top') { if (this.btnPlace == 'top') {
this.btnPlace = 'bottom' this.btnPlace = 'bottom'
this.$refs.swiper1.swiper.slideNext(1500) this.$refs.swiper1.swiper.slideNext(1500)
...@@ -1230,7 +1244,7 @@ export default { ...@@ -1230,7 +1244,7 @@ export default {
// 获取源平面指纹图 // 获取源平面指纹图
getSourcePlainFingerPrintDetail (barcode, type) { getSourcePlainFingerPrintDetail(barcode, type) {
let self = this let self = this
this.loadingIndex++ this.loadingIndex++
// 平面 // 平面
...@@ -1269,12 +1283,12 @@ export default { ...@@ -1269,12 +1283,12 @@ export default {
}) })
}, },
// 获取源滚动指纹图 // 获取源滚动指纹图
getSourceRollFingerPrintDetail (barcode, type) { getSourceRollFingerPrintDetail(barcode, type) {
this.loadingIndex++ this.loadingIndex++
let self = this let self = this
// 滚动 源数据 // 滚动 源数据
this.$axios this.$axios
.post('/api/png/roll/barcode', { barcode: barcode }) .post('/api/png/roll/barcode', {barcode: barcode})
.then(function (response) { .then(function (response) {
console.log(response) console.log(response)
self.loadingIndex-- self.loadingIndex--
...@@ -1305,7 +1319,7 @@ export default { ...@@ -1305,7 +1319,7 @@ export default {
}) })
}, },
// 获取目标的滚动指纹图 // 获取目标的滚动指纹图
getDestRollFingerPrintDetail (barcode) { getDestRollFingerPrintDetail(barcode) {
let self = this let self = this
this.loadingIndex++ this.loadingIndex++
// 平面 目标 // 平面 目标
...@@ -1344,12 +1358,12 @@ export default { ...@@ -1344,12 +1358,12 @@ export default {
}) })
}, },
// 获取目标的平面指纹图 // 获取目标的平面指纹图
getDestPlainFingerPrintDetail (barcode) { getDestPlainFingerPrintDetail(barcode) {
let self = this let self = this
this.loadingIndex++ this.loadingIndex++
// 滚动 目标数据 // 滚动 目标数据
this.$axios this.$axios
.post('/api/png/roll/barcode', { barcode: this.destbarcode }) .post('/api/png/roll/barcode', {barcode: this.destbarcode})
.then(function (response) { .then(function (response) {
self.loadingIndex-- self.loadingIndex--
if (response.data.code == 0) { if (response.data.code == 0) {
...@@ -1379,7 +1393,7 @@ export default { ...@@ -1379,7 +1393,7 @@ export default {
}, },
// 比中与认定完成添加样式 // 比中与认定完成添加样式
tableRowClassName ({ row, column, rowIndex, columnIndex }) { tableRowClassName({row, column, rowIndex, columnIndex}) {
//console.log("row", row.clickLog); //console.log("row", row.clickLog);
// 比中的行 // 比中的行
if (row.affirmstatus == '2' || row.affirmstatus == '3') { if (row.affirmstatus == '2' || row.affirmstatus == '3') {
...@@ -1395,29 +1409,29 @@ export default { ...@@ -1395,29 +1409,29 @@ export default {
}, },
// 指纹可见 // 指纹可见
finger () { finger() {
this.isFinger = true this.isFinger = true
this.isPlam = false this.isPlam = false
this.isFace = false this.isFace = false
this.$bus.emit('fhxxTT', { isPlam: this.isPlam, isFace: this.isFace }) this.$bus.emit('fhxxTT', {isPlam: this.isPlam, isFace: this.isFace})
}, },
// 掌纹可见 // 掌纹可见
plam () { plam() {
this.isPlam = true this.isPlam = true
this.isFinger = false this.isFinger = false
this.isFace = false this.isFace = false
this.$bus.emit('fhxxTT', { isPlam: this.isPlam, isFace: this.isFace }) this.$bus.emit('fhxxTT', {isPlam: this.isPlam, isFace: this.isFace})
}, },
// 人像可见 // 人像可见
face () { face() {
this.isFace = true this.isFace = true
this.isFinger = false this.isFinger = false
this.isPlam = false this.isPlam = false
this.$bus.emit('fhxxTT', { isPlam: this.isPlam, isFace: this.isFace }) this.$bus.emit('fhxxTT', {isPlam: this.isPlam, isFace: this.isFace})
}, },
// 展示详情 // 展示详情
showDetail (fingerData, index, name) { showDetail(fingerData, index, name) {
//console.info("指纹详情==》", fingerData); //console.info("指纹详情==》", fingerData);
//console.info("指纹详情", index); //console.info("指纹详情", index);
//console.info(name); //console.info(name);
...@@ -1458,73 +1472,73 @@ export default { ...@@ -1458,73 +1472,73 @@ export default {
this.destImgdetail = destimg this.destImgdetail = destimg
}, },
// 取消详情 // 取消详情
cancelDetail () { cancelDetail() {
this.isShowDetail = false this.isShowDetail = false
this.isShowbzDialogBg = false this.isShowbzDialogBg = false
}, },
// 清空源指纹图 // 清空源指纹图
clearsource () { clearsource() {
(this.sourceFingersLeftR = [ (this.sourceFingersLeftR = [
{ name: '拇', code: 6, img: null }, {name: '拇', code: 6, img: null},
{ name: '食', code: 7, img: null }, {name: '食', code: 7, img: null},
{ name: '中', code: 8, img: null }, {name: '中', code: 8, img: null},
{ name: '环', code: 9, img: null }, {name: '环', code: 9, img: null},
{ name: '小', code: 10, img: null }, {name: '小', code: 10, img: null},
]), ]),
(this.sourceFingersRightR = [ (this.sourceFingersRightR = [
{ name: '拇', code: 1, img: null }, {name: '拇', code: 1, img: null},
{ name: '食', code: 2, img: null }, {name: '食', code: 2, img: null},
{ name: '中', code: 3, img: null }, {name: '中', code: 3, img: null},
{ name: '环', code: 4, img: null }, {name: '环', code: 4, img: null},
{ name: '小', code: 5, img: null }, {name: '小', code: 5, img: null},
]), ]),
(this.sourceFingersLeftL = [ (this.sourceFingersLeftL = [
{ name: '拇', code: 16, img: null }, {name: '拇', code: 16, img: null},
{ name: '食', code: 17, img: null }, {name: '食', code: 17, img: null},
{ name: '中', code: 18, img: null }, {name: '中', code: 18, img: null},
{ name: '环', code: 19, img: null }, {name: '环', code: 19, img: null},
{ name: '小', code: 20, img: null }, {name: '小', code: 20, img: null},
]), ]),
(this.sourceFingersRightL = [ (this.sourceFingersRightL = [
{ name: '拇', code: 11, img: null }, {name: '拇', code: 11, img: null},
{ name: '食', code: 12, img: null }, {name: '食', code: 12, img: null},
{ name: '中', code: 13, img: null }, {name: '中', code: 13, img: null},
{ name: '环', code: 14, img: null }, {name: '环', code: 14, img: null},
{ name: '小', code: 15, img: null }, {name: '小', code: 15, img: null},
]) ])
}, },
// 清空目标指纹图 // 清空目标指纹图
cleardest () { cleardest() {
(this.destFingersLeftR = [ (this.destFingersLeftR = [
{ name: '拇', code: 6, img: null }, {name: '拇', code: 6, img: null},
{ name: '食', code: 7, img: null }, {name: '食', code: 7, img: null},
{ name: '中', code: 8, img: null }, {name: '中', code: 8, img: null},
{ name: '环', code: 9, img: null }, {name: '环', code: 9, img: null},
{ name: '小', code: 10, img: null }, {name: '小', code: 10, img: null},
]), ]),
(this.destFingersRightR = [ (this.destFingersRightR = [
{ name: '拇', code: 1, img: null }, {name: '拇', code: 1, img: null},
{ name: '食', code: 2, img: null }, {name: '食', code: 2, img: null},
{ name: '中', code: 3, img: null }, {name: '中', code: 3, img: null},
{ name: '环', code: 4, img: null }, {name: '环', code: 4, img: null},
{ name: '小', code: 5, img: null }, {name: '小', code: 5, img: null},
]), ]),
(this.destFingersLeftL = [ (this.destFingersLeftL = [
{ name: '拇', code: 16, img: null }, {name: '拇', code: 16, img: null},
{ name: '食', code: 17, img: null }, {name: '食', code: 17, img: null},
{ name: '中', code: 18, img: null }, {name: '中', code: 18, img: null},
{ name: '环', code: 19, img: null }, {name: '环', code: 19, img: null},
{ name: '小', code: 20, img: null }, {name: '小', code: 20, img: null},
]), ]),
(this.destFingersRightL = [ (this.destFingersRightL = [
{ name: '拇', code: 11, img: null }, {name: '拇', code: 11, img: null},
{ name: '食', code: 12, img: null }, {name: '食', code: 12, img: null},
{ name: '中', code: 13, img: null }, {name: '中', code: 13, img: null},
{ name: '环', code: 14, img: null }, {name: '环', code: 14, img: null},
{ name: '小', code: 15, img: null }, {name: '小', code: 15, img: null},
]) ])
}, },
scrollFunc (e) { scrollFunc(e) {
e = e || window.event e = e || window.event
if (this.flag) { if (this.flag) {
return 0 return 0
...@@ -1557,7 +1571,7 @@ export default { ...@@ -1557,7 +1571,7 @@ export default {
}, },
watch: { watch: {
souceDel: { souceDel: {
handler (val) { handler(val) {
if (!val && !this.targetDel) { if (!val && !this.targetDel) {
this.zhihui = false this.zhihui = false
} else { } else {
...@@ -1568,7 +1582,7 @@ export default { ...@@ -1568,7 +1582,7 @@ export default {
immediate: true, immediate: true,
}, },
targetDel: { targetDel: {
handler (val) { handler(val) {
if (!val && !this.souceDel) { if (!val && !this.souceDel) {
this.zhihui = false this.zhihui = false
} else { } else {
...@@ -1578,7 +1592,7 @@ export default { ...@@ -1578,7 +1592,7 @@ export default {
}, },
immediate: true, immediate: true,
}, },
phone (newValue, oldValue) { phone(newValue, oldValue) {
if (newValue.length < 7) { if (newValue.length < 7) {
this.isPhoneError = true this.isPhoneError = true
document document
...@@ -1591,17 +1605,17 @@ export default { ...@@ -1591,17 +1605,17 @@ export default {
.style.setProperty('--phone', '#606266') .style.setProperty('--phone', '#606266')
} }
}, },
srcbarcode (val) { srcbarcode(val) {
this.finger() this.finger()
this.scouceCode = val this.scouceCode = val
}, },
destbarcode (val) { destbarcode(val) {
this.finger() this.finger()
this.targetCode = val this.targetCode = val
}, },
screenLoading (val) { screenLoading(val) {
}, },
loadingIndex (val, oldval) { loadingIndex(val, oldval) {
if (oldval == 0) { if (oldval == 0) {
this.screenLoading = true this.screenLoading = true
} }
...@@ -1613,7 +1627,7 @@ export default { ...@@ -1613,7 +1627,7 @@ export default {
} }
}, },
}, },
beforeDestroy () { beforeDestroy() {
this.$bus.off('fhxxTT') this.$bus.off('fhxxTT')
}, },
} }
......
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