Commit f311bf3c by 张超军

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

parents a42b985f cdf21bc1
......@@ -36,7 +36,7 @@ _axios.interceptors.request.use(
let token = localStorage.getItem("token");
if (token) {
config.headers.Authorization = token;
console.info(config);
// console.info(config);
}
return config;
},
......
......@@ -62,7 +62,19 @@ export default [
title: "指掌纹录入",
auth: "5"
},
component: () => import("@/views/zzwlr/Index.vue")
component: () => import("@/views/zzwlr/Index.vue"),
children: [
{
path: "/drFPTX",
name: "drFPTX",
hidden: false,
meta: {
title: "导入FTPX",
auth: "5"
},
component: () => import("@/views/drFPTX/Index.vue")
}
]
},
{
path: "/zwbj",
......
......@@ -635,10 +635,15 @@ export default {
.then(response => {
if (response.data.code === 0) {
let arr = response.data.ret
for (let i = 0; i < arr.length; i++) {
cityOptions.push(arr[i].hpseqno)
if (this.rowData.length == 1) {
for (var item in arr) {
this.cities = arr[item]
console.log("指位返回列表===>", item, arr);
}
} else {
console.log("多条案件")
}
console.info("指位返回列表===>", arr);
} else {
this.$message.error(response.data.message);
}
......@@ -783,33 +788,18 @@ export default {
if (this.dxcx.domains.length > 0) {
queryRequest.excludeBarcode.push(this.pccx.domains[0].value)
}
// 一条源数据,用户选择指位;多条源数据,用户不选择
if (this.rowData.length == 1) {
let SrcQueryData = {
id: '', // 人员pid
barcode: '', // 条码号
selectedSeqnos: null // 指位(选择)(页面获取)
}; //发查询源数据
let selectedSeqnos = [3, 4];// 指位
for (let i = 0; i < this.rowData.length; i++) {
SrcQueryData.id = this.rowData[i].pid
SrcQueryData.barcode = this.rowData[i].barcode
SrcQueryData.selectedSeqnos = selectedSeqnos;
queryRequest.srcQueryDataList.push(SrcQueryData)
}
} else {
for (let i = 0; i < this.rowData.length; i++) {
let SrcQueryData = {//发查询源数据
id: '', // 人员pid
barcode: '', // 条码号
seqnoList: '' // 指位
};
SrcQueryData.id = this.rowData[i].pid
SrcQueryData.barcode = this.rowData[i].barcode
const seqnoList = []
SrcQueryData.seqnoList = seqnoList;
queryRequest.srcQueryDataList.push(SrcQueryData)
}
// 源数据
let SrcQueryData = {
id: '', // 人员pid
barcode: '', // 条码号
selectedSeqnos: null // 指位(选择)(页面获取)
}; //发查询源数据
let selectedSeqnos = [];// 指位
for (let i = 0; i < this.rowData.length; i++) {
SrcQueryData.id = this.rowData[i].pid
SrcQueryData.barcode = this.rowData[i].barcode
SrcQueryData.selectedSeqnos = selectedSeqnos;
queryRequest.srcQueryDataList.push(SrcQueryData)
}
this.reqParam = queryRequest
} else if (this.type == 'aj') {
......@@ -873,13 +863,17 @@ export default {
}; //发查询源数据
SrcQueryData.id = this.rowData[i].cid
SrcQueryData.barcode = this.rowData[i].barcode
SrcQueryData.selectedSeqnos = this.checkedCities
// SrcQueryData.selectedSeqnos = this.checkedCities
if (this.rowData.length == 1) {
SrcQueryData.selectedSeqnos = this.checkedCities
} else {
SrcQueryData.selectedSeqnos = this.rowData[i].hpseqno
}
queryRequest.srcQueryDataList.push(SrcQueryData)
}
this.reqParam = queryRequest
}
console.log('发请求', this.reqParam)
this.$axios
.post(reqUrl, this.reqParam)
......@@ -891,6 +885,7 @@ export default {
});
cityOptions = []
this.dialogVisible = false;
this.$router.push('/cxyrd')
} else {
this.$message.error(response.data.message);
}
......
......@@ -2,13 +2,20 @@
<div id="home">
<el-container class="layout-container">
<transition name="slide">
<el-aside :width="isCollapse ? '64px' : '280px'" class="aside">
<el-aside
:width="isCollapse ? '64px' : '280px'"
class="aside"
>
<div
class="logo"
:class="{ minLogo: isCollapse }"
@click="$router.push('/Home/Home')"
>
<img class="jh" src="../assets/img/Home/jh.png" alt="" />
<img
class="jh"
src="../assets/img/Home/jh.png"
alt=""
/>
<img
v-show="!isCollapse"
class="title"
......@@ -33,19 +40,35 @@
:collapse="isCollapse"
@select="selectPath"
>
<div v-for="(menu, i) in routes" :key="i">
<el-submenu :index="menu.name" v-if="menu.children">
<div
v-for="(menu, i) in routes"
:key="i"
>
<el-submenu
:index="menu.name"
v-if="menu.children"
>
<template slot="title">
<img
v-if="$route.path != menu.path"
:src="menu.icon_d"
alt=""
/>
<img v-else :src="menu.icon_a" alt="" />
<img
v-else
:src="menu.icon_a"
alt=""
/>
<span v-show="!isCollapse">{{ menu.meta.title }}</span>
</template>
<div v-for="(item, index) in menu.children" :key="index">
<el-menu-item v-if="!item.hidden" :index="item.name">{{
<div
v-for="(item, index) in menu.children"
:key="index"
>
<el-menu-item
v-if="!item.hidden"
:index="item.name"
>{{
item.meta.title
}}</el-menu-item>
</div>
......@@ -59,22 +82,45 @@
:src="menu.icon_d"
alt=""
/>
<img v-else :src="menu.icon_a" alt="" />
<img
v-else
:src="menu.icon_a"
alt=""
/>
<span slot="title">{{ menu.meta.title }}</span>
</el-menu-item>
</div>
</el-menu>
<div class="fz">
<img v-if="!isCollapse" src="../assets/img/Home/logo.png" alt="" />
<img v-else src="../assets/img/Home/fang.png" alt="" />
<img
v-if="!isCollapse"
src="../assets/img/Home/logo.png"
alt=""
/>
<img
v-else
src="../assets/img/Home/fang.png"
alt=""
/>
</div>
</el-aside>
</transition>
<el-container>
<el-header class="header">
<div class="collapse" @click="switchCollapse">
<img v-if="isCollapse" :src="rightImg" alt="" />
<img v-else :src="leftImg" alt="" />
<div
class="collapse"
@click="switchCollapse"
>
<img
v-if="isCollapse"
:src="rightImg"
alt=""
/>
<img
v-else
:src="leftImg"
alt=""
/>
</div>
<div class="options">
<div class="sendFind">发查询</div>
......@@ -83,8 +129,14 @@
<div class="message">
<div class="circle"></div>
</div>
<div class="quit" @click="$router.push('/Home/Home')"></div>
<div class="logout" @click="logout">
<div
class="quit"
@click="$router.push('/Home/Home')"
></div>
<div
class="logout"
@click="logout"
>
<svg-icon
v-show="!isHoverLogout"
icon-class="logout_d"
......@@ -119,7 +171,10 @@
:class="{ active: $route.path == item.path }"
>
<span>{{ item.name }}</span>
<div class="closeIcon" @click.stop="closePaths(item.name)">
<div
class="closeIcon"
@click.stop="closePaths(item.name)"
>
×
</div>
</div>
......@@ -146,7 +201,7 @@ import indexRoutes from "@/router/modules/index";
import { mapGetters } from "vuex";
export default {
name: "Home",
data() {
data () {
return {
searchTxt: "",
routes: indexRoutes[2].children,
......@@ -158,11 +213,14 @@ export default {
isHoverLogout: false
};
},
created() {},
mounted() {
created () { },
mounted () {
this.menuActive = this.$route.name;
console.log(this.$route);
},
updated () {
this.menuActive = this.$route.name;
},
computed: {
...mapGetters(["defaultGoodsImage", "userAuth"])
},
......@@ -173,7 +231,7 @@ export default {
* @return {*}
*/
logout() {
logout () {
// console.log('退出登录');
// this.$router.replace('/login1')
this.$axios.post("/login/login/userLogout").then(res => {
......@@ -190,7 +248,7 @@ export default {
* @return {*}
*/
goSearch() {
goSearch () {
this.searchTxt = "";
console.log(this.searchTxt);
},
......@@ -199,7 +257,7 @@ export default {
* @param {*}
* @return {*}
*/
goManager() {
goManager () {
this.$router.push("/Home/htzwcj");
this.menuActive = "";
},
......@@ -209,7 +267,7 @@ export default {
* @param {*} path
* @return {*}
*/
selectPath(index, path) {
selectPath (index, path) {
this.$router.push({ name: index });
},
/**
......@@ -217,7 +275,7 @@ export default {
* @param {*}
* @return {*}
*/
closePaths(pathName) {
closePaths (pathName) {
let res = this.paths.filter(item => {
return item.name != pathName;
});
......@@ -233,7 +291,7 @@ export default {
* @param {*}
* @return {*}
*/
changeRouter(route) {
changeRouter (route) {
this.$router.push(route.path);
this.menuActive = route.routeName;
},
......@@ -242,18 +300,18 @@ export default {
* @param {*}
* @return {*}
*/
switchCollapse() {
switchCollapse () {
this.isCollapse = !this.isCollapse;
},
handleOpen(key, keyPath) {
handleOpen (key, keyPath) {
console.log(key, keyPath);
},
handleClose(key, keyPath) {
handleClose (key, keyPath) {
console.log(key, keyPath);
}
},
watch: {
$route(newValue, oldValue) {
$route (newValue, oldValue) {
if (newValue.path != "/Home/htzwcj") {
if (this.paths.length == 0) {
this.paths.push({
......
......@@ -4,17 +4,29 @@
<div class="header">
<!-- 头部左侧 -->
<div class="left">
<div><img src="../../assets/img/Home/badges.png" alt="" /></div>
<div><img
src="../../assets/img/Home/badges.png"
alt=""
/></div>
<span><img src="../../assets/img/Home/logo.svg" alt=""/></span>
<span><img
src="../../assets/img/Home/logo.svg"
alt=""
/></span>
</div>
<!-- 头部右侧 -->
<div class="right">
<div>
<img src="../../assets/img/Home/setting.svg" alt="" /> 系统管理
<img
src="../../assets/img/Home/setting.svg"
alt=""
/> 系统管理
</div>
<div class="role">
<img src="../../assets/img/Home/role.svg" alt="" />用户角色
<img
src="../../assets/img/Home/role.svg"
alt=""
/>用户角色
<div class="rolelist">
<ul>
<li>姓名:xxxx</li>
......@@ -25,7 +37,10 @@
</div>
<div @click="logout">
<img src="../../assets/img/Home/exit.svg" alt="" />安全退出
<img
src="../../assets/img/Home/exit.svg"
alt=""
/>安全退出
</div>
</div>
<!-- 主体 -->
......@@ -36,7 +51,10 @@
<div class="todoview">
<div class="todo">
<div>
<img src="../../assets/img/Home/todoview.svg" alt="" />
<img
src="../../assets/img/Home/todoview.svg"
alt=""
/>
</div>
<p>待办工作</p>
</div>
......@@ -58,26 +76,50 @@
<!-- 第一列 -->
<div class="list l1">
<div class="import_images">
<img src="../../assets/img/Home/import_images.svg" alt="" />
<img
src="../../assets/img/Home/import_images.svg"
alt=""
/>
<div>图片导入</div>
</div>
<div class="import_FTP">
<img src="../../assets/img/Home/import_FTP.svg" alt="" />
<div
@click="godrFPTX"
class="import_FTP"
>
<img
src="../../assets/img/Home/import_FTP.svg"
alt=""
/>
<div>导入FPTX</div>
</div>
</div>
<!-- 第二列 -->
<div class="list l2" @click="gosjzygl">
<img src="../../assets/img/Home/query.svg" alt="" />
<div
class="list l2"
@click="gosjzygl"
>
<img
src="../../assets/img/Home/query.svg"
alt=""
/>
<p>发查询</p>
</div>
<!-- 第三列 -->
<div @click="gobdrd" class="list l2 l3">
<img src="../../assets/img/Home/comparison.svg" alt="" />
<div
@click="gobdrd"
class="list l2 l3"
>
<img
src="../../assets/img/Home/comparison.svg"
alt=""
/>
<p>比对认定</p>
</div>
<!-- 第四列 -->
<div @click="gozzwcj" class="list l1 l4">
<div
@click="gozzwcj"
class="list l1 l4"
>
<div class="import_images collect">
<img
src="../../assets/img/Home/collect_new.svg"
......@@ -86,8 +128,14 @@
/>
<div>活体采集</div>
</div>
<div @click="gosjzygl" class="import_FTP management">
<img src="../../assets/img/Home/management.svg" alt="" />
<div
@click="gosjzygl"
class="import_FTP management"
>
<img
src="../../assets/img/Home/management.svg"
alt=""
/>
<div>数据资源管理</div>
</div>
</div>
......@@ -102,22 +150,25 @@ import qs from "qs";
export default {
name: "Home",
data() {
data () {
return {
userInfo: { userName: "admin", passWord: "123456" }
};
},
methods: {
gobdrd() {
godrFPTX () {
this.$router.push("/drFPTX")
},
gobdrd () {
this.$router.push("/cxyrd");
},
gosjzygl() {
gosjzygl () {
this.$router.push("/AllPersonnelBaseIndex/");
},
gozzwcj() {
this.$router.push("/AllPersonnelBaseIndex");
gozzwcj () {
// this.$router.push("/AllPersonnelBaseIndex");
},
logout() {
logout () {
this.$axios.post("/login/login/userLogout").then(res => {
if (res.data.code === 200) {
this.$router.replace("/login1");
......
......@@ -8,26 +8,54 @@
<div class="width100 margin_top24_bottom24">
<div class="display_style">
<span>条码号:</span>
<el-input class="el_input" v-model="reqParam.contrastCustomSearchReq.barcode" placeholder="请输入条码号"></el-input>
<el-input
class="el_input"
v-model="reqParam.contrastCustomSearchReq.barcode"
placeholder="请输入条码号"
></el-input>
</div>
<div class="display_style">
<span>用户ID:</span>
<el-select class="el_select" v-model="reqParam.contrastCustomSearchReq.userid" @change="selectUserInfo">
<el-option v-for="item in userOption" :key="item.userid" :label="item.userdesc" :value="item.userid">
<el-select
class="el_select"
v-model="reqParam.contrastCustomSearchReq.userid"
@change="selectUserInfo"
>
<el-option
v-for="item in userOption"
:key="item.userid"
:label="item.userdesc"
:value="item.userid"
>
</el-option>
</el-select>
</div>
<div class="display_style">
<span>查询ID:</span>
<el-input class="el_input" placeholder="请输入查询ID" v-model="reqParam.contrastCustomSearchReq.qqid"></el-input>
<el-input
class="el_input"
placeholder="请输入查询ID"
v-model="reqParam.contrastCustomSearchReq.qqid"
></el-input>
</div>
<div class="display_style">
<span>任务号:</span>
<el-input class="el_input" placeholder="请输入任务号" v-model="reqParam.contrastCustomSearchReq.qid"></el-input>
<el-input
class="el_input"
placeholder="请输入任务号"
v-model="reqParam.contrastCustomSearchReq.qid"
></el-input>
</div>
<div class="display_style">
<span>发送时间:</span>
<el-date-picker v-model="startEndDate" class="el_data_picker" type="daterange" range-separator="-" start-placeholder="开始时间" end-placeholder="结束时间">
<el-date-picker
v-model="startEndDate"
class="el_data_picker"
type="daterange"
range-separator="-"
start-placeholder="开始时间"
end-placeholder="结束时间"
>
</el-date-picker>
</div>
<!-- <div class="display_style">-->
......@@ -51,11 +79,15 @@
<div class="display_style">
<label>查询类型:</label>
<div v-for="(btn, index) in queryTypeBtns" :key="index">
<div class="btn" @click="getQueryType(btn, 'querytypes')" :class="[
<div
class="btn"
@click="getQueryType(btn, 'querytypes')"
:class="[
reqParam.contrastCustomSearchReq.querytypes.includes(btn.value)
? 'btn-active'
: ''
]">
]"
>
{{ btn.name }}
</div>
</div>
......@@ -63,11 +95,15 @@
<div class="display_style">
<label>优先级:</label>
<div v-for="(btn, index) in queryClassBtns" :key="index">
<div class="btn" @click="getQueryType(btn, 'queryclasss')" :class="[
<div
class="btn"
@click="getQueryType(btn, 'queryclasss')"
:class="[
reqParam.contrastCustomSearchReq.queryclasss.includes(btn.value)
? 'btn-active'
: ''
]">
]"
>
{{ btn.name }}
</div>
</div>
......@@ -75,17 +111,23 @@
<div class="display_style">
<label>是否远程:</label>
<div v-for="(btn, index) in remoteFlagBtns" :key="index">
<div class="btn" @click="getQueryType(btn, 'remoteflags')" :class="[
<div
class="btn"
@click="getQueryType(btn, 'remoteflags')"
:class="[
reqParam.contrastCustomSearchReq.remoteflags.includes(btn.value)
? 'btn-active'
: ''
]">
]"
>
{{ btn.name }}
</div>
</div>
</div>
<div class="display_style">
<el-checkbox><span>显示"{{ account }}"发查询用户查询</span></el-checkbox>
<el-checkbox
><span>显示"{{ account }}"发查询用户查询</span></el-checkbox
>
</div>
</div>
<div class="width100 margin_top24_bottom24 display_style">
......@@ -93,11 +135,15 @@
<!-- -1:无效;0:等待比对;1:正在比对;9:比对出错;10:比对完成(等待认定);11:正在认定;19:认定出错;20:认定完成(等待复核);21:正在复核;29:复核出错;30;复合完成;99:标记删除-->
<div class="btn" @click="allQueryType()">全部</div>
<div v-for="(btn, index) in queryStateBtns" :key="index">
<div class="btn" @click="getQueryType(btn, 'querystates')" :class="[
<div
class="btn"
@click="getQueryType(btn, 'querystates')"
:class="[
reqParam.contrastCustomSearchReq.querystates.includes(btn.value)
? 'btn-active'
: ''
]">
]"
>
{{ btn.name }}
</div>
</div>
......@@ -113,7 +159,14 @@
全部数据&nbsp>
<!-- <span>共找到{{ reqParam.page.total }}</span>-->
</div>
<el-tag style="margin-right: 10px;" :key="index" v-for="(tag, index) in dynamicTags" closable :disable-transitions="false" @close="handleClose(tag)">
<el-tag
style="margin-right: 10px;"
:key="index"
v-for="(tag, index) in dynamicTags"
closable
:disable-transitions="false"
@close="handleClose(tag)"
>
{{ tag.name }}
</el-tag>
</div>
......@@ -124,8 +177,15 @@
<el-dropdown trigger="click">
<el-button type="info">自定义列</el-button>
<el-dropdown-menu slot="dropdown">
<el-checkbox-group v-model="checkedProps" @change="changeCheckbox">
<el-checkbox v-for="(item, index) in defaultTableProps" :label="item.prop" :key="index">
<el-checkbox-group
v-model="checkedProps"
@change="changeCheckbox"
>
<el-checkbox
v-for="(item, index) in defaultTableProps"
:label="item.prop"
:key="index"
>
{{ item.colume }}
</el-checkbox>
</el-checkbox-group>
......@@ -134,7 +194,13 @@
</div>
<!-- 自定义列 止 -->
<!-- 复制条码号 起 -->
<el-button type="info" v-clipboard:copy="barcode" @click="getBarcode" v-clipboard:success="onCopy" v-clipboard:error="onError">
<el-button
type="info"
v-clipboard:copy="barcode"
@click="getBarcode"
v-clipboard:success="onCopy"
v-clipboard:error="onError"
>
复制条码
</el-button>
<!-- 复制条码号 止 -->
......@@ -143,13 +209,38 @@
</div>
</div>
<div class="confirm_main_table">
<el-table class="mineral-table" border @selection-change="handleSelectionChange" height="490" ref="confirmTable" tooltip-effect="dark" :data="list" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" row-key="queryId" @row-click="confirm" @expand-change="hadnlExpandChange">
<el-table-column type="selection" height width="auto" v-if="isSelected"></el-table-column>
<el-table
class="mineral-table"
border
@selection-change="handleSelectionChange"
height="490"
ref="confirmTable"
tooltip-effect="dark"
:data="list"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
row-key="queryId"
@row-click="confirm"
@expand-change="hadnlExpandChange"
>
<el-table-column
type="selection"
height
width="auto"
v-if="isSelected"
></el-table-column>
<el-table-column prop="" label="任务号/查询号" width="155">
<template slot-scope="scope">
<svg-icon style="width: 14px;height: 11px;margin-bottom: 2px ;margin-left: 5px ;" v-if="scope.row.children || scope.row.children === null" icon-class="tree_f">
<svg-icon
style="width: 14px;height: 11px;margin-bottom: 2px ;margin-left: 5px ;"
v-if="scope.row.children || scope.row.children === null"
icon-class="tree_f"
>
</svg-icon>
<svg-icon style="width: 13px;height: 6px;margin: 0 0 3px 0 ;" v-else-if="!scope.row.children || scope.row.children !== null" icon-class="tree_c"></svg-icon>
<svg-icon
style="width: 13px;height: 6px;margin: 0 0 3px 0 ;"
v-else-if="!scope.row.children || scope.row.children !== null"
icon-class="tree_c"
></svg-icon>
{{
scope.row.children || scope.row.children === null
? scope.row.qid
......@@ -163,19 +254,35 @@
</div>
</template>
</el-table-column>
<el-table-column v-for="(item, index) in tableProps" show-overflow-tooltip :key="index" :label="item.colume" :prop="item.prop" :width="item.width">
<el-table-column
v-for="(item, index) in tableProps"
show-overflow-tooltip
:key="index"
:label="item.colume"
:prop="item.prop"
:width="item.width"
>
<template slot-scope="scope">
<template v-if="item.prop === 'querytype'">
<div v-if="scope.row.querytype === '3'" style="color: #FFA219">
{{ scope.row.queryTypeName }}
</div>
<div v-else-if="scope.row.querytype === '0'" style="color: #005FE7">
<div
v-else-if="scope.row.querytype === '0'"
style="color: #005FE7"
>
{{ scope.row.queryTypeName }}
</div>
<div v-else-if="scope.row.querytype === '1'" style="color:#E60012 ">
<div
v-else-if="scope.row.querytype === '1'"
style="color:#E60012 "
>
{{ scope.row.queryTypeName }}
</div>
<div v-else-if="scope.row.querytype === '2'" style="color:#08BD9E">
<div
v-else-if="scope.row.querytype === '2'"
style="color:#08BD9E"
>
{{ scope.row.queryTypeName }}
</div>
<div v-else>
......@@ -213,21 +320,42 @@
}}
</template>
<template v-else>
{{ dataFormat(scope.row, item.prop) }}</template>
{{ dataFormat(scope.row, item.prop) }}</template
>
</template>
</el-table-column>
<el-table-column width="auto" label="操作">
<template slot-scope="scope">
<div class="img" @click="edit(scope.row)" type="text" style="font-size:24px" v-if="scope.row.barcode">
<div
class="img"
@click="edit(scope.row)"
type="text"
style="font-size:24px"
v-if="scope.row.barcode"
>
<i>
<img style="width:16px;height:16px;cursor: pointer;
" :src="editUrl" alt />
<img
style="width:16px;height:16px;cursor: pointer;
"
:src="editUrl"
alt
/>
</i>
</div>
<div v-if="scope.row.barcode" class="img" @click.stop="delOne(scope.row.qqid)" type="text" style="font-size:24px">
<div
v-if="scope.row.barcode"
class="img"
@click.stop="delOne(scope.row.qqid)"
type="text"
style="font-size:24px"
>
<i>
<img style="width:12px;height:14px;cursor: pointer;
" :src="delUrl" alt />
<img
style="width:12px;height:14px;cursor: pointer;
"
:src="delUrl"
alt
/>
</i>
</div>
</template>
......@@ -236,9 +364,11 @@
</div>
</div>
<div class="footer">
<span class="count">共{{ reqParam.page.total }} 条记录 第{{ reqParam.page.currPage }}/{{
<span class="count"
>共{{ reqParam.page.total }} 条记录 第{{ reqParam.page.currPage }}/{{
Tpage
}}页</span>
}}页</span
>
<div class="page">
<el-pagination
class="paging"
......@@ -270,7 +400,7 @@ import "@/icons/tree_c.svg";
export default {
name: "QueryConfirm",
components: { SvgIcon },
data () {
data() {
return {
reqParam: {
page: {
......@@ -364,7 +494,7 @@ export default {
},
watch: {
// 批量处理
checkedProps (val) {
checkedProps(val) {
this.tableProps = this.defaultTableProps.filter(
i => val.indexOf(i.prop) >= 0
);
......@@ -374,7 +504,7 @@ export default {
},
computed: {
// 计算总页数
Tpage () {
Tpage() {
return (
Math.floor(this.reqParam.page.total / this.reqParam.page.pageSize) + 1
);
......@@ -382,7 +512,7 @@ export default {
},
methods: {
// 获取认定列表
search () {
search() {
this.getParam();
// console.info("请求===>", this.reqParam.contrastCustomSearchReq);
this.$axios
......@@ -400,7 +530,7 @@ export default {
});
},
// 格式化参数
getParam () {
getParam() {
if (this.startEndDate !== null) {
this.reqParam.contrastCustomSearchReq.sendTimeStart = moment(
this.startEndDate[0]
......@@ -411,7 +541,7 @@ export default {
}
},
// 选择用户下拉框变化时 当前页为1
selectUserInfo () {
selectUserInfo() {
this.reqParam.page.currPage = 1;
console.info(
"当前选中的用户为-------->",
......@@ -420,11 +550,11 @@ export default {
this.search();
},
// 清空用户id
clearUser () {
clearUser() {
this.reqParam.contrastCustomSearchReq.userid = null;
},
// 获取用户信息
getUserInfo (val) {
getUserInfo(val) {
var userInfo = [];
val.forEach(item => {
var user = {};
......@@ -444,7 +574,7 @@ export default {
// console.info("用户信息==>", this.userOption);
},
// 用户信息去重
unique (arr) {
unique(arr) {
// 需要唯一标识来对数组进行过滤
// 定义常量res,值为一个map对象实例
const res = new Map();
......@@ -455,7 +585,7 @@ export default {
);
},
// 多条件查询 获取查询条件
getQueryType (data, type) {
getQueryType(data, type) {
let { name, value } = data;
let list = this.reqParam.contrastCustomSearchReq[type];
if (list.includes(value)) {
......@@ -473,7 +603,7 @@ export default {
this.search();
},
// 格式化
dataFormat (row, prop) {
dataFormat(row, prop) {
// colnum为使用了formatter的列
// clonum.property为当前列的prop值
// row为当前行,是一个类数组对象,可通过[]拿值
......@@ -484,7 +614,7 @@ export default {
}
},
// 优先级格式化
queryClassFormat (row, colnum) {
queryClassFormat(row, colnum) {
let prop = colnum.property;
let showProp = null;
for (let i = 0; i < this.queryClassList.length; i++) {
......@@ -494,7 +624,7 @@ export default {
return showProp;
},
// 多选删除
delMore () {
delMore() {
// 检查table选择的数据 如果没有选择则不可以删除
if (this.selectionData.length === 0) {
this.$message.error("请选择需要删除的数据!");
......@@ -508,7 +638,7 @@ export default {
this.doDelete(qqid);
},
// 单选删除
delOne (val) {
delOne(val) {
// 将传入的qqid转为数组
let qqid = [];
qqid.push(val);
......@@ -516,7 +646,7 @@ export default {
this.doDelete(qqid);
},
// 请求删除接口
doDelete (qqid) {
doDelete(qqid) {
// 删除确认提示
this.$confirm("是否确定删除已选择的数据?", "提示", {
confirmButtonText: "确定",
......@@ -543,7 +673,7 @@ export default {
});
},
// 认定
confirm (row) {
confirm(row) {
// tt 查重 0
if (row.querytype === "0") {
console.log(row);
......@@ -551,17 +681,26 @@ export default {
if (row.children) {
let routeUrl = this.$router.resolve({
path: "/confirm/TT",
query: { qqid: row.qqid, qid: row.qid, barcode: row.barcode, type: 'father' }
query: {
qqid: row.qqid,
qid: row.qid,
barcode: row.barcode,
type: "father"
}
});
window.open(routeUrl.href, "_blank");
} else {
let routeUrl = this.$router.resolve({
path: "/confirm/TT",
query: { qqid: row.qqid, qid: row.qid, barcode: row.barcode, type: 'son' }
query: {
qqid: row.qqid,
qid: row.qid,
barcode: row.barcode,
type: "son"
}
});
window.open(routeUrl.href, "_blank");
}
} // tl 倒查 1
else if (row.querytype === "1") {
// console.info("倒查", row.querytype);
......@@ -571,14 +710,14 @@ export default {
// 父级
let routeUrl = this.$router.resolve({
path: "/confirm/TL",
query: { qid: row.qid, qqid: row.qqid, type: 'father' }
query: { qid: row.qid, qqid: row.qqid, type: "father" }
});
window.open(routeUrl.href, "_blank");
} else {
// 子级
let routeUrl = this.$router.resolve({
path: "/confirm/TL",
query: { qid: row.qid, qqid: row.qqid, type: 'son' }
query: { qid: row.qid, qqid: row.qqid, type: "son" }
});
window.open(routeUrl.href, "_blank");
}
......@@ -590,22 +729,22 @@ export default {
if (row.children) {
let routeUrl = this.$router.resolve({
path: "/confirm/LT",
query: { qid: row.qid, qqid: row.qqid, type: 'father' }
query: { qid: row.qid, qqid: row.qqid, type: "father" }
});
window.open(routeUrl.href, "_blank");
} else {
let routeUrl = this.$router.resolve({
path: "/confirm/LT",
query: { qid: row.qid, qqid: row.qqid, type: 'son' }
query: { qid: row.qid, qqid: row.qqid, type: "son" }
});
window.open(routeUrl.href, "_blank");
}
}
},
// 编辑
edit () { },
edit() {},
// 展开或关闭行
hadnlExpandChange (row, expanded) {
hadnlExpandChange(row, expanded) {
// 获取展开标志
this.expanded = expanded;
// 获取下标
......@@ -638,6 +777,7 @@ export default {
qid: row.qid,
children: row.children,
queryId: row.queryId,
barcode: row.children[0].barcode,
maxcandidatecnt: row.children[0].maxcandidatecnt,
querytype: row.children[0].querytype,
......@@ -655,12 +795,12 @@ export default {
}
},
// table表格选中获取数据
handleSelectionChange (val) {
handleSelectionChange(val) {
this.selectionData = val;
},
// 复制条码号 获取选中条码值
getBarcode () {
let self = this
getBarcode() {
let self = this;
this.barcode = [];
// if (this.selectionData.length === 0) {
// this.$message.error("请选择需要复制条码号的数据!");
......@@ -674,13 +814,13 @@ export default {
} else {
console.log(this.selectionData);
self.selectionData.forEach(item => {
self.barcode.push(item.barcode)
})
this.barcode = this.barcode.join(',')
self.barcode.push(item.barcode);
});
this.barcode = this.barcode.join(",");
}
},
// 复制成功时的回调函数
onCopy (e) {
onCopy(e) {
this.$message({
type: "success",
// message: "复制条码号:" + this.barcode + "成功!"
......@@ -688,27 +828,27 @@ export default {
});
},
// 复制失败时的回调函数
onError (e) {
onError(e) {
this.$message.error("抱歉,复制条码号失败!");
},
// 自定义展示列 多选框
changeCheckbox () {
changeCheckbox() {
// console.info("默认", this.defaultTableProps);
// console.info("table", this.tableProps);
// console.info("选中", this.checkedProps);
},
// 当期页发生变化
handleCurrPageChange: function (val) {
handleCurrPageChange: function(val) {
this.reqParam.page.currPage = val;
this.search();
},
// 每页展示数量发生变化
handleSizeChange: function (val) {
handleSizeChange: function(val) {
this.reqParam.page.pageSize = val;
this.search();
},
// 标签关闭 isTag:是否为标签点击
handleClose (tag) {
handleClose(tag) {
let { type, value } = tag;
this.dynamicTags = this.dynamicTags.filter(item => item.value !== value);
this.reqParam.contrastCustomSearchReq[
......@@ -719,7 +859,7 @@ export default {
this.search();
},
// 标签生成
tagClick (name) {
tagClick(name) {
if (this.dynamicTags.indexOf(name) === -1) {
this.dynamicTags.push(name);
} else {
......@@ -727,7 +867,7 @@ export default {
}
},
// 全部状态
allQueryType () {
allQueryType() {
let newdynamicTags = [];
this.dynamicTags.forEach((item, index) => {
if (item.type !== "querystates") {
......@@ -739,17 +879,17 @@ export default {
this.reqParam.contrastCustomSearchReq.querytypes = [];
this.search();
},
showHistory () {
showHistory() {
this.historyDialogVisible = true;
},
// 全部数据
clearAll () {
clearAll() {
this.dynamicTags = [];
this.clearParams();
this.search();
},
// 清空筛选条件
clearParams () {
clearParams() {
// this.remoteFlag = null;
this.startEndDate = null;
this.reqParam.page.currPage = 1;
......@@ -772,11 +912,11 @@ export default {
// this.tableProps = this.defaultTableProps;
// },
// 批量操作
batch () {
batch() {
this.isSelected = !this.isSelected;
}
},
mounted () {
mounted() {
this.search();
}
};
......
<template>
<div class="tlDiv">
<div class="tl" :class="{bzActive: isShowbzDialogBg}">
<div class="tl" :class="{ bzActive: isShowbzDialogBg }">
<div class="header">
<div class="label">倒查</div>
<div class="btns">
......@@ -26,7 +26,7 @@
<div class="head-title">
<div class="left">比中</div>
<div class="close" @click="cancelbz">
<img src="@/assets/img/LT/close.png" alt="">
<img src="@/assets/img/LT/close.png" alt="" />
</div>
</div>
<div class="bzdesc">
......@@ -34,65 +34,77 @@
<div class="bzitem">
<div class="bzname">查询类型:</div>
<div class="bzvalue zc">
<div class="dot"></div>倒查
<div class="dot"></div>
倒查
</div>
</div>
<div class="bzitem">
<div class="bzname">现场勘验编号:</div>
<div class="bzvalue">{{xckybh}}</div>
<div class="bzvalue">{{ xckybh }}</div>
</div>
<div class="bzitem">
<div class="bzname">人员编号:</div>
<div class="bzvalue">{{rybh}}</div>
<div class="bzvalue">{{ rybh }}</div>
</div>
<div class="bzitem">
<div class="bzname">案事件编号:</div>
<div class="bzvalue">{{asjbh}}</div>
<div class="bzvalue">{{ asjbh }}</div>
</div>
<div class="bzitem">
<div class="bzname">指位:</div>
<div class="bzvalue">{{zw}}</div>
<div class="bzvalue">{{ zw }}</div>
</div>
<div class="bzitem">
<div class="bzname">序号:</div>
<div class="bzvalue">{{xh}}</div>
<div class="bzvalue">{{ xh }}</div>
</div>
</div>
<div class="bz-target">
<div class="bzitem">
<div class="bzname">比中单位:</div>
<div class="bzvalue">{{bzdw}}</div>
<div class="bzvalue">{{ bzdw }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人:</div>
<div class="bzvalue">{{bzr}}</div>
<div class="bzvalue">{{ bzr }}</div>
</div>
<div class="bzitem">
<div class="bzname">单位代码:</div>
<div class="bzvalue">{{dwdm}}</div>
<div class="bzvalue">{{ dwdm }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人身份证号:</div>
<div class="bzvalue">{{bzrsfzh}}</div>
<div class="bzvalue">{{ bzrsfzh }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中时间:</div>
<div class="bzvalue">{{bzsj}}</div>
<div class="bzvalue">{{ bzsj }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人联系电话:</div>
<el-input class="bzphone" v-model="phone" placeholder="请输入内容"></el-input>
<el-input
class="bzphone"
v-model="phone"
placeholder="请输入内容"
></el-input>
<div class="input-error" v-show="isPhoneError">
<!-- <img src="@/assets/img/inputerror.png" alt=""> -->
<svg-icon icon-class="error" class="icon" />
</div>
<div class="error-desc" v-show="isPhoneError">联系电话不应低于7位数!</div>
<div class="error-desc" v-show="isPhoneError">
联系电话不应低于7位数!
</div>
</div>
</div>
<div class="line"></div>
<div class="bzfooter">
<div class="footer-title">备注</div>
<el-input type="textarea" :rows="5" placeholder="在此输入备注信息" v-model="textarea">
<el-input
type="textarea"
:rows="5"
placeholder="在此输入备注信息"
v-model="textarea"
>
</el-input>
</div>
<div class="bzbtns">
......@@ -103,7 +115,11 @@
</div>
<!-- 认定完成确认框 -->
<div class="rdwcDialog" v-show="isShowrdwcDialogBg" @click="cancelrdwc"></div>
<div
class="rdwcDialog"
v-show="isShowrdwcDialogBg"
@click="cancelrdwc"
></div>
<div class="rdwccontent" v-show="isShowrdwcDialog">
<div class="title">当前候选未全部查看,是否确认认定完成?</div>
<div class="rdwcbtns">
......@@ -116,7 +132,7 @@
<script>
import "@/icons/error.svg";
import Utils from '@/utils/util.js';
import Utils from "@/utils/util.js";
import ImageEd from "../../components/ImageEd.vue";
import TLSrc from "@/views/cxyrd/modules/TLSrc.vue";
import TLCandidate from "@/views/cxyrd/modules/TLCandidate.vue";
......@@ -125,27 +141,27 @@ export default {
components: {
ImageEd,
TLSrc,
TLCandidate,
TLCandidate
},
data () {
data() {
return {
dialog: false,
text: "",
phone: '',
textarea: '',
phone: "",
textarea: "",
isShowbzDialog: false,
isShowbzDialogBg: false,
bzdw: '',
bzr: '',
dwdm: '',
bzrsfzh: '',
bzsj: '',
bzdw: "",
bzr: "",
dwdm: "",
bzrsfzh: "",
bzsj: "",
isPhoneError: false,
asjbh: '',
xh: '',
xckybh: '',
rybh: '',
zw: '',
asjbh: "",
xh: "",
xckybh: "",
rybh: "",
zw: "",
// 是否展示认定完成确认框背景
isShowrdwcDialogBg: false,
// 是否展示认定完成确认框
......@@ -153,13 +169,17 @@ export default {
};
},
watch: {
phone (newValue, oldValue) {
phone(newValue, oldValue) {
if (newValue.length < 7) {
this.isPhoneError = true
document.getElementsByTagName('body')[0].style.setProperty('--phone', '#ff4242');
this.isPhoneError = true;
document
.getElementsByTagName("body")[0]
.style.setProperty("--phone", "#ff4242");
} else {
this.isPhoneError = false
document.getElementsByTagName('body')[0].style.setProperty('--phone', '#606266');
this.isPhoneError = false;
document
.getElementsByTagName("body")[0]
.style.setProperty("--phone", "#606266");
}
}
},
......@@ -169,18 +189,18 @@ export default {
* @param {*}
* @return {*}
*/
confirmrdwc () {
let self = this
this.isShowrdwcDialogBg = false
this.isShowrdwcDialog = false
confirmrdwc() {
let self = this;
this.isShowrdwcDialogBg = false;
this.isShowrdwcDialog = false;
let srcseqno = sessionStorage.getItem('srcseqno') || ''
let destseqno = sessionStorage.getItem('destseqno') || ''
let srcbarcode = sessionStorage.getItem('srcbarcode') || ''
let destbarcode = sessionStorage.getItem('destbarcode') || ''
let qqid = sessionStorage.getItem('qqid') || ''
let qid = sessionStorage.getItem('qid') || ''
let type = sessionStorage.getItem('dctype') || ''
let srcseqno = sessionStorage.getItem("srcseqno") || "";
let destseqno = sessionStorage.getItem("destseqno") || "";
let srcbarcode = sessionStorage.getItem("srcbarcode") || "";
let destbarcode = sessionStorage.getItem("destbarcode") || "";
let qqid = sessionStorage.getItem("qqid") || "";
let qid = sessionStorage.getItem("qid") || "";
let type = sessionStorage.getItem("dctype") || "";
// 1:倒查
let querytype = 1;
this.$axios({
......@@ -200,36 +220,36 @@ export default {
// 跟新列表数据
self.$bus.emit("updateTLSourceData");
console.log(response);
this.$message.success('认定完成!')
if (type == 'son') {
window.close()
this.$message.success("认定完成!");
if (type == "son") {
window.close();
}
})
});
},
/**
* @description: 取消认定完成
* @param {*}
* @return {*}
*/
cancelrdwc () {
this.isShowrdwcDialogBg = false
this.isShowrdwcDialog = false
cancelrdwc() {
this.isShowrdwcDialogBg = false;
this.isShowrdwcDialog = false;
},
/**
* @description: 取消比中
* @param {*}
* @return {*}
*/
cancelbz () {
this.isShowbzDialogBg = false
this.isShowbzDialog = false
cancelbz() {
this.isShowbzDialogBg = false;
this.isShowbzDialog = false;
},
/**
* @description: 确认比中
* @param {*}
* @return {*}
*/
confirmbz () {
confirmbz() {
let self = this;
console.log("比中");
let affirmstatus = "1";
......@@ -254,128 +274,132 @@ export default {
qid,
querytype
}
}).then(response => {
// 跟新列表数据
self.$bus.emit("updateTLSourceData");
console.log(response);
}).catch(err => {
this.$message.error('比中失败!')
})
.then(response => {
// 跟新列表数据
self.$bus.emit("updateTLSourceData");
console.log(response);
})
.catch(err => {
this.$message.error("比中失败!");
});
// 更新电话
this.$axios({
method: 'post',
url: '/api/user/update',
method: "post",
url: "/api/user/update",
data: {
telephone: self.phone
}
}).then(res => {
console.log(res);
}).catch(err => {
this.$message.error('比中失败!')
})
.then(res => {
console.log(res);
})
.catch(err => {
this.$message.error("比中失败!");
});
// 关闭弹窗
this.isShowbzDialog = false
this.isShowbzDialogBg = false
this.isShowbzDialog = false;
this.isShowbzDialogBg = false;
},
/**
* @description: 获取现场勘验编号
* @param {*}
* @return {*}
*/
getUserInfo2 () {
let self = this
getUserInfo2() {
let self = this;
let destbarcode = sessionStorage.getItem("destbarcode") || "";
console.log(destbarcode);
this.$axios({
url: '/api/casestore/casebase',
method: 'get',
url: "/api/casestore/casebase",
method: "get",
params: {
barcode: destbarcode
}
}).then(res => {
if (res.data.code == 0) {
self.xckybh = res.data.ret.kybh
self.xckybh = res.data.ret.kybh;
}
})
});
},
/**
* @description: 获取正查比中下方的数据
* @param {*} id
* @return {*}
*/
getUserInfo (id = 1234) {
let self = this
getUserInfo(id = 1234) {
let self = this;
this.$axios({
method: 'post',
url: '/api/user/searchByUserid',
method: "post",
url: "/api/user/searchByUserid",
data: {
id: id
}
}).then(async res => {
if (res.data.code == 0) {
let data = res.data.ret[0]
let data = res.data.ret[0];
console.log(data);
let dw = await self.$axios({
method: 'get',
url: '/api/code/unit/one/' + data.userunit
})
let time = new Date(data.updatetime)
self.bzsj = Utils.timeStampTurnTime2(time)
self.bzr = data.userdesc
self.dwdm = dw.data.ret.code
self.bzdw = dw.data.ret.name
self.bzrsfzh = data.idcard
self.phone = data.telephone
method: "get",
url: "/api/code/unit/one/" + data.userunit
});
let time = new Date(data.updatetime);
self.bzsj = Utils.timeStampTurnTime2(time);
self.bzr = data.userdesc;
self.dwdm = dw.data.ret.code;
self.bzdw = dw.data.ret.name;
self.bzrsfzh = data.idcard;
self.phone = data.telephone;
}
})
});
},
/**
* @description: 比中
* @param {*}
* @return {*}
*/
Bz () {
Bz() {
console.info("比中");
this.isShowbzDialogBg = true
this.isShowbzDialog = true
this.getUserInfo()
this.getUserInfo2()
this.isShowbzDialogBg = true;
this.isShowbzDialog = true;
this.getUserInfo();
this.getUserInfo2();
// 序号
this.xh = sessionStorage.getItem('backcheckXh')
this.xh = sessionStorage.getItem("backcheckXh");
// 指位
this.judgeZw(Number(sessionStorage.getItem("backcheckCode")))
this.judgeZw(Number(sessionStorage.getItem("backcheckCode")));
// 人员编号
this.rybh = sessionStorage.getItem('srcbarcode')
this.rybh = sessionStorage.getItem("srcbarcode");
// 案件编号
this.asjbh = sessionStorage.getItem('destbarcode')
this.asjbh = sessionStorage.getItem("destbarcode");
// 比中人
this.userdesc = sessionStorage.getItem('userdesc')
this.userdesc = sessionStorage.getItem("userdesc");
},
Rdwc () {
Rdwc() {
console.info("认定完成");
console.log("认定完成");
let qqid = sessionStorage.getItem("qqid") || "";
// 认定之前的操作
this.$axios({
method: 'post',
url: '/api/matchcand/affirm/confirm',
method: "post",
url: "/api/matchcand/affirm/confirm",
data: {
qqid
}
}).then(res => {
console.log(res);
if (!res.data.ret) {
this.isShowrdwcDialogBg = true
this.isShowrdwcDialog = true
this.isShowrdwcDialogBg = true;
this.isShowrdwcDialog = true;
} else {
// 执行认定完成
this.confirmrdwc()
this.confirmrdwc();
}
})
});
},
hideDialog () {
hideDialog() {
this.dialog = true;
},
/**
......@@ -384,23 +408,26 @@ export default {
* @param {*} date
* @return {*}
*/
dateFormat (fmt, date) {
dateFormat(fmt, date) {
let ret;
const opt = {
"Y+": date.getFullYear().toString(), // 年
"m+": (date.getMonth() + 1).toString(), // 月
"d+": date.getDate().toString(), // 日
"H+": date.getHours().toString(), // 时
"M+": date.getMinutes().toString(), // 分
"S+": date.getSeconds().toString() // 秒
"Y+": date.getFullYear().toString(), // 年
"m+": (date.getMonth() + 1).toString(), // 月
"d+": date.getDate().toString(), // 日
"H+": date.getHours().toString(), // 时
"M+": date.getMinutes().toString(), // 分
"S+": date.getSeconds().toString() // 秒
// 有其他格式化字符需求可以继续添加,必须转化成字符串
};
for (let k in opt) {
ret = new RegExp("(" + k + ")").exec(fmt);
if (ret) {
fmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0")))
};
};
fmt = fmt.replace(
ret[1],
ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0")
);
}
}
return fmt;
},
/**
......@@ -408,68 +435,68 @@ export default {
* @param {*} code
* @return {*}
*/
judgeZw (code) {
judgeZw(code) {
console.log(code);
switch (code) {
case 1:
this.zw = '滚动-右拇'
this.zw = "滚动-右拇";
break;
case 2:
this.zw = '滚动-右食'
this.zw = "滚动-右食";
break;
case 3:
this.zw = '滚动-右中'
this.zw = "滚动-右中";
break;
case 4:
this.zw = '滚动-右环'
this.zw = "滚动-右环";
break;
case 5:
this.zw = '滚动-右小'
this.zw = "滚动-右小";
break;
case 6:
this.zw = '滚动-左拇'
this.zw = "滚动-左拇";
break;
case 7:
this.zw = '滚动-左食'
this.zw = "滚动-左食";
break;
case 8:
this.zw = '滚动-左中'
this.zw = "滚动-左中";
break;
case 9:
this.zw = '滚动-左环'
this.zw = "滚动-左环";
break;
case 10:
this.zw = '滚动-左小'
this.zw = "滚动-左小";
break;
case 11:
this.zw = '平面-右拇'
this.zw = "平面-右拇";
break;
case 12:
this.zw = '平面-右食'
this.zw = "平面-右食";
break;
case 13:
this.zw = '平面-右中'
this.zw = "平面-右中";
break;
case 14:
this.zw = '平面-右环'
this.zw = "平面-右环";
break;
case 15:
this.zw = '平面-右小'
this.zw = "平面-右小";
break;
case 16:
this.zw = '平面-左拇'
this.zw = "平面-左拇";
break;
case 17:
this.zw = '平面-左食'
this.zw = "平面-左食";
break;
case 18:
this.zw = '平面-左中'
this.zw = "平面-左中";
break;
case 19:
this.zw = '平面-左环'
this.zw = "平面-左环";
break;
case 20:
this.zw = '平面-左小'
this.zw = "平面-左小";
break;
}
}
......
// 电话验证颜色
$phone: var(--phone, #606266); //#ff4242;
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.rdwcDialog {
position: absolute;
top: 0;
left: 0;
z-index: 100;
width: 100%;
height: 100%;
background: rgba($color: #fff, $alpha: 0.65);
filter: blur(2px);
}
.rdwccontent {
padding: 20px;
box-sizing: border-box;
position: absolute;
top: calc(50% - 300px);
left: calc(50% - 300px);
z-index: 1000;
width: 600px;
height: 152px;
background: #ffffff;
box-shadow: 0px 14px 30px 0px rgba(0, 21, 51, 0.25);
border-radius: 6px;
display: flex;
flex-direction: column;
align-items: center;
.title {
font-size: 16px;
font-family: Microsoft YaHei;
color: #282f3c;
}
.rdwcbtns {
display: flex;
align-items: center;
margin-top: 30px;
.rdwcconfirm,
.rdwccancel {
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
width: 72px;
height: 40px;
background: #ffffff;
border-radius: 4px;
border: 1px solid #aeb5c2;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #2e3846;
}
.rdwcconfirm {
&:hover {
border: 1px solid #055fe7;
color: #055fe7;
}
&:active {
border: 1px solid #044CB9;
color: #044CB9;
}
}
.rdwccancel {
margin-left: 24px;
background: #055fe7;
color: #ffffff;
&:hover {
background: #377FEC;
color: #FFFFFF;
}
&:active {
background: #044CB9;
color: #FFFFFF;
}
}
}
}
.bzDialog {
position: absolute;
top: 0;
......@@ -105,6 +183,35 @@
.bzitem {
width: 338px;
margin-bottom: 20px;
position: relative;
.bzphone {
/deep/.el-input__inner {
color: $phone;
}
}
.error-desc {
position: absolute;
height: 20px;
bottom: -24px;
right: 36px;
font-size: 12px;
font-family: Microsoft YaHei;
color: #FF3745;
}
.input-error {
position: absolute;
width: 16px;
height: 16px;
right: 51px;
top: 6px;
// img {
// object-fit: contain;
// }
.icon {
width: 16px;
height: 16px;
}
}
.bzname {
width: 114px;
}
......
......@@ -3,7 +3,6 @@
<div class="header">
<div class="label">查重</div>
<div class="btns">
<!-- <div style="border: black 1px solid" @click="showDetail">详情</div>-->
<div class="bz-btn" @click="Bz">比中</div>
<div class="rd-btn" @click="Rdwc">认定完成</div>
</div>
......@@ -12,75 +11,101 @@
<div class="data">
<div class="source-data">
<template v-for="(item, index) in sourcedatas">
<div class="source-top">
<div class="barcode">任务号:{{ qid }}</div>
<div class="count">
<img
src="../../assets/img/TT/ttcount.png"
style="width: 14px;height: 14px;margin:0 5px 3px 0"
/>已认定:{{ rdcount }}
<!-- />已认定:{{ qid }}条-->
</div>
</div>
<div class="source-bottom">
<div class="source-count">
{{ index + 1 }}/{{ sourcedatas.length }}
</div>
<div class="source">
<div class="label">查询ID:</div>
<div class="value">{{ currentQqid }}</div>
</div>
<div class="source">
<div class="label">源条码号:</div>
<div class="value">{{ sourcebarcode }}</div>
</div>
<div class="more">
<div class="last">
<img
v-show="index === 0"
@click="last(index)"
style=" cursor: pointer;"
src="../../assets/img/TT/last.png"
/>
<div v-if="sourcedatas.length > 0 && index === activeIndex3">
<div class="source-top">
<div class="barcode">任务号:{{ qid }}</div>
<div class="count">
<img
v-show="index > 0"
style=" cursor: pointer;"
src="../../assets/img/TT/last-active.png"
@click="last(index)"
/>
src="../../assets/img/TT/ttcount.png"
style="width: 14px;height: 14px;margin:0 5px 3px 0"
/>已认定:{{ rdcount }}
<!-- />已认定:{{ qid }}条-->
</div>
<div class="next">
<img
v-show="index === sourcedatas.length - 1"
style=" cursor: pointer;"
src="../../assets/img/TT/next.png"
@click="next(index)"
/>
<img
v-show="index < sourcedatas.length - 1"
style=" cursor: pointer;"
src="../../assets/img/TT/next-active.png"
@click="next(index)"
/>
</div>
<div class="source-bottom">
<div class="source-count">
{{ activeIndex3 + 1 }}/{{ sourcedatas.length }}
</div>
<div class="source">
<div class="label">查询ID:</div>
<div class="value">{{ currentQqid }}</div>
</div>
<div class="source">
<div class="label">源条码号:</div>
<div class="value">{{ sourcebarcode }}</div>
</div>
<div class="more">
<div class="last">
<img
v-show="index === 0"
@click="last(index)"
style=" cursor: pointer;"
src="../../assets/img/TT/last.png"
/>
<img
v-show="index > 0"
style=" cursor: pointer;"
src="../../assets/img/TT/last-active.png"
@click="last(index)"
/>
</div>
<div class="next">
<img
v-show="index === sourcedatas.length - 1"
style=" cursor: pointer;"
src="../../assets/img/TT/next.png"
@click="next(index)"
/>
<img
v-show="index < sourcedatas.length - 1"
style=" cursor: pointer;"
src="../../assets/img/TT/next-active.png"
@click="next(index)"
/>
</div>
</div>
</div>
</div>
<!-- 数据加载中 -->
</template>
</div>
<div class="btns">
<div class="btn" @click="finger">指纹</div>
<div class="btn" @click="plam">掌纹</div>
<div class="btn" @click="face">人像</div>
<div
class="btn"
:class="{ active: isFinger === true }"
@click="finger"
>
指纹
</div>
<div class="btn" :class="{ active: isPlam === true }" @click="plam">
掌纹
</div>
<div class="btn" :class="{ active: isFace === true }" @click="face">
人像
</div>
<br />
<div v-show="isFinger" class="menu middle">
<div class="menu-item" @click="handleSelect(1)">滚动</div>
<div class="menu-item" @click="handleSelect(2)">平面</div>
<div
class="menu-item"
:class="{ active: activeIndex === 1 }"
@click="handleSelect(1)"
>
滚动
</div>
<div
class="menu-item"
:class="{ active: activeIndex === 2 }"
@click="handleSelect(2)"
>
平面
</div>
</div>
</div>
<div class="dest-data">
<el-table
highlight-current-row
:data="tableData"
ref="singleTable"
class="dest-table"
height="150"
@current-change="handleCurrentChange"
......@@ -104,7 +129,7 @@
</div>
</div>
<div class="imgs middle">
<div class="fingers">
<div v-show="isFinger === true" class="fingers">
<div class="data-label">
<div class="source-label"><br /><br /></div>
<div class="dest-label"><br /><br /><br /></div>
......@@ -116,18 +141,24 @@
<div class="outside">
<!-- 源 左手 滚动 -->
<div v-for="(item, index) in sourceFingersLeftR">
<div class="finger-img" @click="showDetail">
<!-- 有指纹图片 -->
<div
class="finger-img"
@dblclick="showDetail(sourceFingersLeftL, index)"
>
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
v-if="fingerLoading"
class="img"
src="@/assets/img/指纹.gif"
/>
<!-- 无指纹图片 -->
<div v-else>
<img src="../../assets/img/fp-loading.gif" />
<!-- 有指纹图片 -->
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
/>
<div v-else>暂无数据</div>
</div>
<!-- <div v-else>无左手滚动源{{ item.name }}指指纹图</div>-->
</div>
<div class="label">{{ item.name }}</div>
</div>
......@@ -135,18 +166,21 @@
<div class="outside">
<!-- 左手 滚动 目标 -->
<div v-for="(item, index) in destFingersLeftR">
<div class="finger-img" @click="showDetail">
<!-- 有指纹图片 -->
<div class="finger-img" @dblclick="showDetail">
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
v-if="fingerLoading"
class="img"
src="@/assets/img/指纹.gif"
/>
<!-- 无指纹图片 -->
<div v-else>
<img src="../../assets/img/fp-loading.gif" />
<!-- 有指纹图片 -->
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
/>
<div v-else>暂无数据</div>
</div>
<!-- <div v-else>无左手滚动源{{ item.name }}指指纹图</div>-->
</div>
<div class="label">{{ item.name }}</div>
</div>
......@@ -154,36 +188,44 @@
<div class="hands">右手</div>
<div class="outside">
<div v-for="(item, index) in sourceFingersRightR">
<div class="finger-img" @click="showDetail">
<!-- 有指纹图片 -->
<div class="finger-img" @dblclick="showDetail">
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
v-if="fingerLoading"
class="img"
src="@/assets/img/指纹.gif"
/>
<!-- 无指纹图片 -->
<div v-else>
<img src="../../assets/img/fp-loading.gif" />
<!-- 有指纹图片 -->
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
/>
<!-- 无指纹图片 -->
<div v-else>暂无数据</div>
</div>
<!-- <div v-else>无左手滚动源{{ item.name }}指指纹图</div>-->
</div>
<div class="label">{{ item.name }}</div>
</div>
</div>
<div class="outside">
<div v-for="(item, index) in destFingersRightR">
<div class="finger-img" @click="showDetail">
<!-- 有指纹图片 -->
<div class="finger-img" @dblclick="showDetail">
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
v-if="fingerLoading"
class="img"
src="@/assets/img/指纹.gif"
/>
<!-- 无指纹图片 -->
<div v-else>
<img src="../../assets/img/fp-loading.gif" />
<!-- 有指纹图片 -->
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
/>
<!-- 无指纹图片 -->
<div v-else>暂无数据</div>
</div>
<!-- <div v-else>无左手滚动源{{ item.name }}指指纹图</div>-->
</div>
<div class="label">{{ item.name }}</div>
</div>
......@@ -195,18 +237,21 @@
<div class="outside">
<!-- 源 左手 滚动 -->
<div v-for="(item, index) in sourceFingersLeftL">
<div class="finger-img" @click="showDetail">
<!-- 有指纹图片 -->
<div class="finger-img" @dblclick="showDetail">
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
v-if="fingerLoading"
class="img"
src="@/assets/img/指纹.gif"
/>
<!-- 无指纹图片 -->
<div v-else>
<img src="../../assets/img/fp-loading.gif" />
<!-- 有指纹图片 -->
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
/>
<div v-else>暂无数据</div>
</div>
<!-- <div v-else>无左手滚动源{{ item.name }}指指纹图</div>-->
</div>
<div class="label">{{ item.name }}</div>
</div>
......@@ -214,18 +259,22 @@
<div class="outside">
<!-- 左手 滚动 目标 -->
<div v-for="(item, index) in destFingersLeftL">
<div class="finger-img" @click="showDetail">
<!-- 有指纹图片 -->
<div class="finger-img" @dblclick="showDetail">
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
v-if="fingerLoading"
class="img"
src="@/assets/img/指纹.gif"
/>
<!-- 无指纹图片 -->
<div v-else>
<img src="../../assets/img/fp-loading.gif" />
<!-- 有指纹图片 -->
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
/>
<!-- 无指纹图片 -->
<div v-else>暂无数据</div>
</div>
<!-- <div v-else>无左手滚动源{{ item.name }}指指纹图</div>-->
</div>
<div class="label">{{ item.name }}</div>
</div>
......@@ -233,36 +282,44 @@
<div class="hands">右手</div>
<div class="outside">
<div v-for="(item, index) in sourceFingersRightL">
<div class="finger-img" @click="showDetail">
<!-- 有指纹图片 -->
<div class="finger-img" @dblclick="showDetail">
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
v-if="fingerLoading"
class="img"
src="@/assets/img/指纹.gif"
/>
<!-- 无指纹图片 -->
<div v-else>
<img src="../../assets/img/fp-loading.gif" />
<!-- 有指纹图片 -->
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
/>
<!-- 无指纹图片 -->
<div v-else>暂无数据</div>
</div>
<!-- <div v-else>无左手滚动源{{ item.name }}指指纹图</div>-->
</div>
<div class="label">{{ item.name }}</div>
</div>
</div>
<div class="outside">
<div v-for="(item, index) in destFingersRightL">
<div class="finger-img" @click="showDetail">
<!-- 有指纹图片 -->
<div class="finger-img" @dblclick="showDetail">
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
v-if="fingerLoading"
class="img"
src="@/assets/img/指纹.gif"
/>
<!-- 无指纹图片 -->
<div v-else>
<img src="../../assets/img/fp-loading.gif" />
<!-- 有指纹图片 -->
<img
v-if="item.img"
:src="'data:image/jpeg;base64,' + item.img"
style="width: 234px;height: 314px;"
/>
<!-- 无指纹图片 -->
<div v-else>暂无数据</div>
</div>
<!-- <div v-else>无左手滚动源{{ item.name }}指指纹图</div>-->
</div>
<div class="label">{{ item.name }}</div>
</div>
......@@ -303,55 +360,67 @@
查重
</div>
</div>
<!-- <div class="bzitem">-->
<!-- <div class="bzname">现场勘验编号:</div>-->
<!-- <div class="bzvalue">K1231231231231231231232</div>-->
<!-- </div>-->
<br />
<div class="bzitem">
<div class="bzname">现场勘验编号:</div>
<div class="bzvalue">K1231231231231231231232</div>
</div>
<div class="bzitem">
<div class="bzname">案事件编号:</div>
<div class="bzvalue">A1231231231231231231232</div>
</div>
<div class="bzitem">
<div class="bzname">人员编号:</div>
<div class="bzvalue">R1231231231231231231232</div>
</div>
<div class="bzitem">
<div class="bzname">序号:</div>
<div class="bzvalue">01</div>
<!-- <el-radio-group v-model="radio">-->
<!-- <el-radio :label="6">是</el-radio>-->
<!-- <el-radio :label="9">否</el-radio>-->
<!-- </el-radio-group>-->
<div class="bzname">源人员编号:</div>
<div class="bzvalue">{{ sourcebarcode }}</div>
</div>
<div class="bzitem">
<div class="bzname">指位</div>
<div class="bzvalue">平面-右拇</div>
<div class="bzname">目标人员编号</div>
<div class="bzvalue">{{ destbarcode }}</div>
</div>
<!-- <div class="bzitem">-->
<!-- <div class="bzname">序号:</div>-->
<!-- <div class="bzvalue">01</div>-->
<!-- &lt;!&ndash; <el-radio-group v-model="radio">&ndash;&gt;-->
<!-- &lt;!&ndash; <el-radio :label="6">是</el-radio>&ndash;&gt;-->
<!-- &lt;!&ndash; <el-radio :label="9">否</el-radio>&ndash;&gt;-->
<!-- &lt;!&ndash; </el-radio-group>&ndash;&gt;-->
<!-- </div>-->
<!-- <div class="bzitem">-->
<!-- <div class="bzname">指位:</div>-->
<!-- <div class="bzvalue">平面-右拇</div>-->
<!-- </div>-->
</div>
<div class="bz-target">
<div class="bzitem">
<div class="bzname">比中单位:</div>
<div class="bzvalue">北京市朝阳区公安局分局</div>
<div class="bzvalue">{{ bzdw }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人:</div>
<div class="bzvalue">张xx</div>
<div class="bzvalue">{{ bzr }}</div>
</div>
<div class="bzitem">
<div class="bzname">单位代码:</div>
<div class="bzvalue">123123123123</div>
<div class="bzvalue">{{ dwdm }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人身份证号:</div>
<div class="bzvalue">412************016</div>
<div class="bzvalue">{{ bzrsfzh }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中时间:</div>
<div class="bzvalue">2021-09-23 14:54</div>
<div class="bzvalue">{{ bzsj }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人联系电话:</div>
<el-input v-model="phone" placeholder="请输入联系电话"></el-input>
<el-input
class="bzphone"
v-model="phone"
placeholder="请输入内容"
></el-input>
<div class="input-error" v-show="isPhoneError">
<!-- <img src="@/assets/img/inputerror.png" alt=""> -->
<svg-icon icon-class="error" class="icon" />
</div>
<div class="error-desc" v-show="isPhoneError">
联系电话不应低于7位数!
</div>
</div>
</div>
<div class="line"></div>
......@@ -371,22 +440,37 @@
</div>
</div>
</div>
<!-- 认定完成确认框 -->
<div
class="rdwcDialog"
v-show="isShowrdwcDialogBg"
@click="cancelrdwc"
></div>
<div class="rdwccontent" v-show="isShowrdwcDialog">
<div class="title">当前候选未全部查看,是否确认认定完成?</div>
<div class="rdwcbtns">
<button class="rdwcconfirm" @click="confirmrdwc">确认</button>
<button class="rdwccancel" @click="cancelrdwc">取消</button>
</div>
</div>
</div>
</template>
<script>
import TTFingerPrint from "./modules/TTFingerPrint.vue";
import TTPlam from "./modules/TTPlam.vue";
import TTFace from "./modules/TTFace.vue";
import Utils from "@/utils/util.js";
import "@/icons/error.svg";
export default {
name: "TT",
components: {
TTFingerPrint,
TTPlam,
TTFace
},
data() {
return {
activeIndex3: 0,
dataType: null,
qid: null,
currentQqid: null,
......@@ -404,9 +488,9 @@ export default {
textarea: "",
sourceloading: false,
destloading: false,
dsetbarcode: "",
destbarcode: "",
sourcebarcode: "",
activeIndex: "1",
activeIndex: 1,
sourcedatas: [],
sourcedatasIndex: -1,
sourcedatasLength: -1,
......@@ -466,19 +550,49 @@ export default {
{ name: "环", code: 14, img: null },
{ name: "小", code: 15, img: null }
],
rdcount: 0 // 认定条数
rdcount: 0, // 认定条数
// 指纹图片加载
fingerLoading: true,
bzdw: "",
bzr: "",
dwdm: "",
bzrsfzh: "",
bzsj: "",
isPhoneError: false,
// 是否展示认定完成确认框背景
isShowrdwcDialogBg: false,
// 是否展示认定完成确认框
isShowrdwcDialog: false
};
},
created() {
this.dataType = this.$route.query.type;
this.qid = this.$route.query.qid;
this.currentQqid = parseInt(this.$route.query.qqid);
this.currentQqid = this.$route.query.qqid;
this.type = this.$route.query.type;
// this.currentQqid = parseInt(this.$route.query.qqid);
this.sourcebarcode = this.$route.query.barcode;
this.getSourceList();
this.activeIndex = 1;
console.log("源qid====>", this.qid);
console.log("源qqid====>", this.currentQqid);
console.log("源barcode====>", this.sourcebarcode);
},
watch: {
phone(newValue, oldValue) {
if (newValue.length < 7) {
this.isPhoneError = true;
document
.getElementsByTagName("body")[0]
.style.setProperty("--phone", "#ff4242");
} else {
this.isPhoneError = false;
document
.getElementsByTagName("body")[0]
.style.setProperty("--phone", "#606266");
}
}
},
methods: {
// 滚动平面选择切换
handleSelect(index) {
......@@ -497,9 +611,11 @@ export default {
let i = index;
this.currentQqid = this.sourcedatas[i - 1].qqid;
this.sourcebarcode = this.sourcedatas[i - 1].barcode;
this.activeIndex3 -= 1;
} else {
this.$message.error("已经是第一条数据了");
}
this.fingerLoading = true;
// 指纹图清空
this.clearsource();
this.cleardest();
......@@ -509,6 +625,7 @@ export default {
this.getSourcePlainFingerPrintDetail(this.sourcebarcode);
// 获取候选列表
this.getMatchcandList();
console.info(this.currentQqid);
console.info(this.sourcebarcode);
},
......@@ -518,9 +635,11 @@ export default {
let i = index;
this.currentQqid = this.sourcedatas[i + 1].qqid;
this.sourcebarcode = this.sourcedatas[i + 1].barcode;
this.activeIndex3 += 1;
} else {
this.$message.error("已经是最后一条数据了");
}
this.fingerLoading = true;
// 指纹图清空
this.clearsource();
this.cleardest();
......@@ -534,29 +653,52 @@ export default {
console.info(this.sourcebarcode);
},
// 获取源数据
getSourceList(qid) {
this.$axios
.post("/api/queryque/standardAll", {
contrastCustomSearchReq: { qid: qid }
})
.then(res => {
if (res.data.code === 0) {
this.sourcedatas = res.data.ret;
this.sourcedatasLength = res.data.ret.length;
}
console.info("源数据", this.sourcedatas);
});
getSourceList() {
let me = this;
if (me.type == "father") {
me.$axios
.post("/api/queryque/standardAll", {
contrastCustomSearchReq: { qid: me.qid }
})
.then(res => {
if (res.data.code === 0) {
me.sourcedatas = res.data.ret;
me.sourcedatasLength = res.data.ret.length;
me.sourcebarcode = res.data.ret[0].barcode;
me.currentQqid = res.data.ret[0].qqid;
}
console.info("源数据", this.sourcedatas);
});
} else {
me.$axios
.post("/api/queryque/standardAll", {
contrastCustomSearchReq: { qqid: me.currentQqid }
})
.then(res => {
if (res.data.code === 0) {
me.sourcedatas = res.data.ret;
me.sourcedatasLength = res.data.ret.length;
}
console.info("源数据", me.sourcedatas);
});
}
},
// 获取候选列表
getMatchcandList() {
if (this.currentQqid !== null) {
this.$axios
.get("/api/query/matchcand/" + this.currentQqid)
let me = this;
if (me.currentQqid !== null) {
me.$axios
.get(
"/api/query/matchcand/" + me.currentQqid + "/" + me.sourcebarcode
)
.then(res => {
if (res.data.code === 0) {
this.tableData = res.data.ret;
me.tableData = res.data.ret;
me.$nextTick(() => {
me.$refs.singleTable.setCurrentRow(me.tableData[0]);
});
}
console.info(" 候选列表", res);
console.info(" 候选列表", res.data.ret);
});
}
},
......@@ -585,6 +727,8 @@ export default {
item.img = element.image;
}
});
// 去掉加载状态
self.fingerLoading = false;
});
}
})
......@@ -615,6 +759,8 @@ export default {
}
});
});
// 去掉加载状态
self.fingerLoading = false;
}
console.log(response);
})
......@@ -646,6 +792,8 @@ export default {
item.img = element.image;
}
});
// 去掉加载状态
self.fingerLoading = false;
});
}
})
......@@ -674,6 +822,8 @@ export default {
item.img = element.image;
}
});
// 去掉加载状态
self.fingerLoading = false;
});
}
console.log(response);
......@@ -684,16 +834,98 @@ export default {
},
handleCurrentChange(val) {
this.destbarcode = val.destbarcode;
console.info(this.destbarcode);
console.info("destbarcode", this.destbarcode);
this.$bus.emit("ccbarcode", this.destbarcode);
},
//比中
Bz() {
this.isShowbzDialogBg = true;
this.isShowbzDialog = true;
console.info("比中弹窗");
// 获取用户信息
this.getUserInfo();
// 比中人
// this.userdesc = sessionStorage.getItem("userdesc");
},
// 获取用户信息
getUserInfo(id = 1) {
let self = this;
this.$axios({
method: "post",
url: "/api/user/searchByUserid",
data: {
id: id
}
}).then(async res => {
if (res.data.code == 0) {
let data = res.data.ret[0];
console.log("userInfo===>", data);
let dw = await self.$axios({
method: "get",
url: "/api/code/unit/one/" + data.userunit
});
let time = new Date(data.updatetime);
self.bzsj = Utils.timeStampTurnTime2(time);
self.bzr = data.userdesc;
self.dwdm = dw.data.ret.code;
self.bzdw = dw.data.ret.name;
self.bzrsfzh = data.idcard;
self.phone = data.telephone;
}
});
},
/**
* @description: 取消认定完成
* @param {*}
* @return {*}
*/
cancelrdwc() {
this.isShowrdwcDialogBg = false;
this.isShowrdwcDialog = false;
},
// 认定完成
Rdwc() {},
Rdwc() {
console.info("认定完成");
// 认定之前的操作
this.$axios
.post("/api/matchcand/affirm/confirm", { qqid: this.currentQqid })
.then(res => {
console.log(res);
if (!res.data.ret) {
this.isShowrdwcDialogBg = true;
this.isShowrdwcDialog = true;
} else {
// 执行认定完成
this.confirmrdwc();
}
});
},
// 确认认定完成
confirmrdwc() {
let self = this;
this.isShowrdwcDialogBg = false;
this.isShowrdwcDialog = false;
// 1:倒查
let querytype = 0;
this.$axios
.post("/api/matchcand/affirm/finish", {
srcbarcode: self.sourcebarcode,
destbarcode: self.destbarcode,
qqid: self.currentQqid,
qid: self.qid,
querytype: querytype
})
.then(response => {
// 跟新列表数据
self.$bus.emit("updateTTSourceData");
console.log(response);
this.$message.success("认定完成!");
if (self.datatype == "son") {
window.close();
}
});
},
// 指纹可见
finger() {
this.isFinger = true;
......@@ -721,6 +953,25 @@ export default {
confirmbz() {
let self = this;
console.log("比中");
let querytype = 0;
this.$axios
.post("/api/matchcand/affirm/hit", {
srcbarcode: self.sourcebarcode,
destbarcode: self.destbarcode,
// affirmstatus: "1"
querytype: "0",
qqid: self.currentQqid
})
.then(response => {
// 跟新列表数据
self.$bus.emit("updateTTSourceData");
console.log(response);
})
.catch(err => {
this.$message.error("比中失败!");
});
self.isShowbzDialogBg = false;
self.isShowbzDialog = false;
},
// 展示详情
showDetail() {
......@@ -796,7 +1047,6 @@ export default {
}
},
mounted() {
this.getSourceList(this.qid);
this.getSourceRollFingerPrintDetail(this.sourcebarcode);
this.getSourcePlainFingerPrintDetail(this.sourcebarcode);
this.getMatchcandList(this.currentQqid);
......@@ -859,6 +1109,7 @@ div {
margin-right: 16px;
text-align: center;
line-height: 32px;
cursor: pointer;
}
.rd-btn {
width: 96px;
......@@ -867,6 +1118,7 @@ div {
border-radius: 4px;
text-align: center;
line-height: 32px;
cursor: pointer;
}
}
}
......@@ -986,10 +1238,16 @@ div {
border-radius: 4px;
border: 1px solid #aeb5c2;
margin: 0 12px 12px 12px;
cursor: pointer;
&:hover {
background: #055fe7;
color: #ffffff;
}
&.active {
background: #055fe7;
color: #ffffff;
}
}
.menu {
border-bottom: 1px solid #eeeeee;
......@@ -1002,10 +1260,18 @@ div {
color: #333333;
font-family: MicrosoftYaHei;
line-height: 40px;
cursor: pointer;
&:hover {
border-bottom: 2px solid #055fe7;
color: #055fe7;
}
&.active {
border-bottom: 2px solid #055fe7;
background: #ffffff;
color: #055fe7;
}
}
}
}
......@@ -1082,6 +1348,10 @@ div {
background: #ffffff;
border-radius: 8px;
border: 1px solid #cccccc;
cursor: pointer;
.img {
margin-top: 35%;
}
}
.label {
width: 100%;
......
<template>
<div class="tt_face">
<!-- <div class="middle"></div>-->
<div class="tt_face_src">
<div class="tt_face_src_label">
<div class="tt_face_src_label_font">源数据</div>
</div>
<div class="faces">
<div class="face_div">
<div class="face"></div>
<div class="face">
<img class="img" src="@/assets/img/正面.gif" />
</div>
<div class="face_label">正面</div>
</div>
<div class="face_div">
<div class="face"></div>
<div class="face">
<img class="img" src="@/assets/img/左侧面.gif" />
</div>
<div class="face_label">左侧面</div>
</div>
<div class="face_div">
<div class="face"></div>
<div class="face">
<img class="img" src="@/assets/img/右侧面.gif" />
</div>
<div class="face_label">右侧面</div>
</div>
<div class="face_div">
<div class="face"></div>
<div class="face">
<img class="img-idcard" src="@/assets/img/身份证.gif" />
</div>
<div class="face_label">身份证照</div>
</div>
</div>
......@@ -30,19 +37,27 @@
</div>
<div class="faces">
<div class="face_div">
<div class="face"></div>
<div class="face">
<img class="img" src="@/assets/img/正面.gif" />
</div>
<div class="face_label">正面</div>
</div>
<div class="face_div">
<div class="face"></div>
<div class="face">
<img class="img" src="@/assets/img/左侧面.gif" />
</div>
<div class="face_label">左侧面</div>
</div>
<div class="face_div">
<div class="face"></div>
<div class="face">
<img class="img" src="@/assets/img/右侧面.gif" />
</div>
<div class="face_label">右侧面</div>
</div>
<div class="face_div">
<div class="face"></div>
<div class="face">
<img class="img-idcard" src="@/assets/img/身份证.gif" />
</div>
<div class="face_label">身份证照</div>
</div>
</div>
......@@ -64,21 +79,23 @@ div {
border: none;
}
.tt_face {
height: 800px;
height: 770px;
width: 1180px;
margin-left: 330px;
}
/*源数据外层*/
.tt_face .tt_face_src {
height: 390px;
/*border: 1px solid darkred;*/
/*border: 1px solid darkred;*/
height: 360px;
width: 100%;
display: flex;
flex-direction: row;
}
/*目标数据外层*/
.tt_face .tt_face_dest {
height: 390px;
height: 360px;
width: 100%;
display: flex;
flex-direction: row;
......@@ -86,7 +103,7 @@ div {
/*源标题*/
.tt_face_src_label {
width: 40px;
height: 340px;
height: 320px;
background: #f6f8fa;
border-radius: 8px 0px 0px 8px;
display: flex;
......@@ -105,10 +122,15 @@ div {
/*-webkit-background-clip: text;*/
/*-webkit-text-fill-color: transparent;*/
}
.img {
margin-top: 30%;
}
.img-idcard {
margin-top: 40%;
}
.tt_face_dest_label {
width: 40px;
height: 340px;
height: 320px;
background: #f6f8fa;
border-radius: 8px 0px 0px 8px;
display: flex;
......@@ -132,7 +154,7 @@ div {
.face_div {
border: #333333 1px solid;
width: 255px;
height: 340px;
height: 320px;
background: #ffffff;
border-radius: 8px;
border: 1px solid #cccccc;
......@@ -140,7 +162,7 @@ div {
}
.face {
width: 255px;
height: 340px;
height: 320px;
}
.face_label {
width: 100%;
......
......@@ -2,12 +2,20 @@
<div class="tt_plam">
<div class="outside">
<div class="slabel">源数据</div>
<div class="palm"></div>
<br />
<div class="palm">
<img class="img" src="@/assets/img/左手.gif" />
</div>
<br />
<div class="left">左掌</div>
</div>
<div class="outside">
<div class="dlabel">目标数据</div>
<div class="palm"></div>
<br />
<div class="palm">
<img class="img" src="@/assets/img/右手.gif" />
</div>
<br />
<div class="palm_label">右掌</div>
</div>
</div>
......@@ -26,19 +34,23 @@ div {
display: inline-block;
border: none;
}
.img {
margin-top: 20%;
}
.tt_plam {
height: 780px;
width: 100%;
overflow-y: scroll;
margin-top: -15px;
}
.outside {
height: 800px;
width: 730px;
height: 740px;
width: 740px;
margin-right: 24px;
}
.palm {
width: 730px;
height: 730px;
width: 660px;
height: 660px;
background: #ffffff;
border-radius: 8px;
border: 1px solid #cccccc;
......
<template>
<div>
<el-radio-group v-model="drlx">
<el-radio :label="3">人员</el-radio>
<el-radio :label="6">案件</el-radio>
<el-radio :label="9">比中关系</el-radio>
</el-radio-group>
<div></div>
<el-radio-group v-model="wjlx">
<el-radio :label="3">FPTX文件</el-radio>
<el-radio :label="6">FTPX文件夹</el-radio>
</el-radio-group>
<!-- <a
href="javascript:;"
class="input-file input-fileup"
>
<i class="iconfont icon-beike"></i>&nbsp;选择文件夹<input
ref="file"
class="fileUploaderClass"
type='file'
name="file"
webkitdirectory
style="position: absolute;left: 50%;top: 20px;"
@change.stop="changesData"
/>
</a> -->
<!-- <el-upload
class="upload-demo"
ref="upload"
action="http://192.168.128.108:8099/api/upload/person"
:on-preview="handlePreview"
:on-remove="handleRemove"
:file-list="fileList"
:auto-upload="false"
>
<el-button
slot="trigger"
size="small"
type="primary"
>选取文件</el-button>
<el-button
style="margin-left: 10px;"
size="small"
type="success"
@click="submitUpload"
>上传到服务器</el-button> -->
<!-- <div
slot="tip"
class="el-upload__tip"
>只能上传jpg/png文件,且不超过500kb</div> -->
<!-- </el-upload> -->
</div>
</template>
<script>
export default {
name: 'drFTPX',
components: {
},
data () {
return {
drlx: 3,
wjlx: 3,
fileList: []
};
},
methods: {
submitUpload () {
this.$refs.upload.submit();
},
handleRemove (file, fileList) {
console.log(file, fileList);
},
handlePreview (file) {
console.log(file);
},
changesData () {
console.log(this.$refs.file.files);
}
}
}
</script>
<style lang="scss" scoped>
div#globalUploader {
height: 100px;
}
</style>
\ No newline at end of file
......@@ -7,17 +7,16 @@
* @FilePath: \founder_vue\src\views\zzwlr\Index.vue
-->
<template>
<div>
指掌纹录入
</div>
<div>
<router-view></router-view>
</div>
</template>
<script>
export default {
}
export default {
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
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