Commit 9d6f4dab by 张超军

冲突

parents 4c7bf783 2880cf39
......@@ -5,7 +5,9 @@
margin: 0;
box-sizing: border-box;
}
body {
overflow: hidden;
}
.disabel {
border: none !important;
background-color: #ecedf1 !important;
......
<!--
* @Author: your name
* @Date: 2021-11-15 14:15:58
* @LastEditTime: 2021-11-30 13:45:59
* @LastEditTime: 2021-12-09 15:57:53
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\components\confrim.vue
-->
<template>
<el-tooltip
class="item"
effect="dark"
:content="valStr"
:disabled="disable"
placement="top-start"
:open-delay="1000"
>
<div :style="{ width: width + 'rem' }">
<el-cascader
v-model="form[id]"
......@@ -23,6 +31,7 @@
>
</el-cascader>
</div>
</el-tooltip>
</template>
<script>
export default {
......@@ -31,8 +40,28 @@ export default {
options: [],
casVal: null,
placeholder: "请选择",
valStr: "",
valTempStr: "",
};
},
watch: {
form: {
handler(val) {
//保存选中的label
setTimeout(() => {
//获取提示的中文
this.valStr = $(this.$refs.cascader.$el).find("input").val();
//如果是单位,从后截图6位中文然后赋值
if (!this.codeName) {
this.valTempStr = this.getTemplateStr(this.valStr);
$(this.$refs.cascader.$el).find("input").val(this.valTempStr);
}
}, 0);
},
immediate: true,
deep: true,
},
},
props: {
props: {
type: Object,
......@@ -56,13 +85,38 @@ export default {
},
codeName: String,
},
computed: {
disable() {
if (this.valStr?.trim() == "" || this.form[this.id]?.trim() == "") {
return true;
} else {
return false;
}
},
},
methods: {
change(val) {
let newVal = val;
if (!newVal) newVal = "";
this.$set(this.form, this.id, newVal);
//选择完以后关闭下拉版
this.$refs.cascader.dropDownVisible = false;
},
getTemplateStr(str) {
let newStr;
let index = str.indexOf("[");
if (index >= 0) {
if (index > 6) {
newStr = "..." + str.slice(index - 6);
}
if (index <= 6) {
newStr = str;
}
} else {
newStr = "";
}
return newStr;
},
getTreeData(data) {
if (data && data.length > 0) {
return data.map((item) => ({
......
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-10 09:46:36
* @LastEditTime: 2021-12-11 14:19:58
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\plugins\axios.js
......@@ -65,10 +65,14 @@ _axios.interceptors.request.use(
_axios.interceptors.response.use(
function (response) {
if (response.headers.token) localStorage.setItem("token", response.headers.token);
if (response.config.loading !== false) {
hideLoading(response.config.loadingTarget);
// console.log(response.config.loadingTarget);
}
if (response.data.code == 401) {
if (resTimer) clearTimeout(resTimer)
resTimer = setTimeout(() => {
MessageBox.confirm('登陆超时请重新登录, 是否继续?', '提示', {
MessageBox.confirm(response.data.message == '未登录' ? '登陆超时请重新登录, 是否继续?' : response.data.message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......@@ -77,10 +81,7 @@ _axios.interceptors.response.use(
}).catch(() => {
});
}, 500);
}
if (response.config.loading !== false) {
hideLoading(response.config.loadingTarget);
// console.log(response.config.loadingTarget);
return;
}
// NProgress.done();
return response;
......
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-11 11:44:03
* @LastEditTime: 2021-12-11 14:20:10
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\router\index.js
......
/*
* @Author: your name
* @Date: 2021-11-04 11:12:33
* @LastEditTime: 2021-12-05 20:34:25
* @LastEditTime: 2021-12-09 10:08:11
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\store\modules\zwbj.js
*/
import { SET_LOADING, SET_JUMPROUTE, SET_PREROUTE, SET_WILLROUTE, SET_SMALLLOADING, SET_LOADINGSD } from "./mutations-types";
import { SET_LOADING, SET_JUMPROUTE, SET_PREROUTE, SET_WILLROUTE, SET_SMALLLOADING, SET_LOADINGSD, SET_GLASS } from "./mutations-types";
const state = {
// 是否处于加载中
loading: false,
......@@ -18,28 +18,33 @@ const state = {
// 即将要跳转的路由
willRoute: '',
// 手动路由加载
loading_sd: false
loading_sd: false,
//全局毛玻璃
groundGlassBoo: false,
};
const mutations = {
[SET_LOADING] (state, content) {
[SET_LOADING](state, content) {
state.loading = content
},
[SET_JUMPROUTE] (state, content) {
[SET_JUMPROUTE](state, content) {
state.jumproute = content
},
[SET_PREROUTE] (state, content) {
[SET_PREROUTE](state, content) {
state.preRoute = content
},
[SET_WILLROUTE] (state, content) {
[SET_WILLROUTE](state, content) {
state.willRoute = content
},
[SET_SMALLLOADING] (state, content) {
[SET_SMALLLOADING](state, content) {
state.smallLoading = content
},
[SET_LOADINGSD] (state, content) {
[SET_LOADINGSD](state, content) {
state.loading_sd = content
},
[SET_GLASS](state, content) {
state.groundGlassBoo = content
},
};
const actions = {
......
/*
* @Author: your name
* @Date: 2021-11-04 13:14:49
* @LastEditTime: 2021-12-06 11:46:37
* @LastEditTime: 2021-12-09 10:07:50
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\store\modules\mutations-types.js
......@@ -43,3 +43,5 @@ export const SET_LOADINGSD = 'setLoadingSd'
// 是否切换到了人像
export const SET_ISFACE = 'setIsFace'
// 记录全局毛玻璃是否开启
export const SET_GLASS = 'setGlass'
/*
* @Author: your name
* @Date: 2021-11-26 16:37:59
* @LastEditTime: 2021-12-07 20:15:55
* @LastEditTime: 2021-12-09 17:10:50
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\utils\requestLoading.js
......
......@@ -98,8 +98,8 @@
>
<span v-html="'&nbsp;&nbsp;'"></span>
<i
class="el-icon-info"
style="color: #055fe7; font-size: 15px"
class="iconfont icon-tanhao1"
style="color: #055fe7; font-size: 16px; margin: 0 0.625rem;"
></i>
已选择
<span style="color: #055fe7">{{ multipleSelection.length }}</span> 项​
......@@ -135,18 +135,21 @@
prop="ysxtAsjxgrybh"
label="人员编号"
:width="width1"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="xm"
label="姓名"
:width="width2"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="zjhm"
label="身份证号"
:width="width3"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -505,7 +508,7 @@ export default {
width3: 180,
width2: 100,
width1: 220,
height: 550,
height: 500,
disabled: false, // 新增人员按钮状态
isShowTjddl: false, // 添加到队列
isShowGz: false, // 关注
......@@ -1418,4 +1421,7 @@ export default {
}
}
}
/deep/.el-table--enable-row-transition .el-table__body td.el-table__cell {
height: 55px;
}
</style>
......@@ -141,8 +141,8 @@
>
<span v-html="'&nbsp;&nbsp;'"></span>
<i
class="el-icon-info"
style="color: #055fe7; font-size: 15px"
class="iconfont icon-tanhao1"
style="color: #055fe7; font-size: 16px; margin: 0 0.625rem;"
></i>
已选择
<span style="color: #055fe7">{{ multipleSelection.length }}</span> 项​
......@@ -171,6 +171,7 @@
hasChildren: 'hasChildren',
}"
@selection-change="handleSelectionChange"
@expand-change="hadnlExpandChange1"
>
<el-table-column
type="selection"
......@@ -220,6 +221,7 @@
prop="barcode"
label="人员编号"
:width="width2"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -257,12 +259,30 @@
label="数据类型"
:width="width2"
>
<template slot-scope="scope">
<div>
<span>{{scope.row.dataTypeName}}</span>
<span
class='tz'
v-if="scope.row.featureName"
>特征</span>
</div>
</template>
</el-table-column>
<el-table-column
prop="exportName"
label="导出模式"
width="auto"
>
<template slot-scope="scope">
<div>
<span>{{scope.row.exportName}}</span>
<span
class='tm'
v-if="scope.row.declassificationName"
>脱密</span>
</div>
</template>
</el-table-column>
</el-table>
</div>
......@@ -282,6 +302,7 @@
hasChildren: 'hasChildren',
}"
@selection-change="handleSelectionChange"
@expand-change="hadnlExpandChange2"
>
<el-table-column
type="selection"
......@@ -331,6 +352,7 @@
prop="barcode"
label="案事件编号"
:width="width4"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -344,6 +366,15 @@
label="导出模式"
:width="width1"
>
<template slot-scope="scope">
<div>
<span>{{scope.row.exportName}}</span>
<span
class='tm'
v-if="scope.row.declassificationName"
>脱密</span>
</div>
</template>
</el-table-column>
<el-table-column width="auto">
</el-table-column>
......@@ -418,6 +449,7 @@ export default {
multipleSelection: [], // 表单选择项目
isShowTip: false, //批量操作提示
selectBoo: false,// 是否批量操作
expanded: false, // 展开标志
};
},
created () {
......@@ -535,6 +567,116 @@ export default {
this.$message.error("抱歉,复制条码号失败!");
}
},
// 展开或关闭行
hadnlExpandChange1 (row, expanded) {
// console.log(row, expanded, "hadnlExpandChange1")
// let oldObj = row;
// 获取展开标志
this.expanded = expanded;
// 获取下标
var i = this.tableDate1.findIndex((table) => table.sequenceNumber === row.sequenceNumber);
// var i = this.tableData.findIndex(table => table.id === row.id);
console.log(i, 112233);
if (expanded) {
this.tableDate1[i] = {
taskNumber: row.taskNumber,
sequenceNumber: row.sequenceNumber,
personExportRecordGrandchildren: row.personExportRecordGrandchildren,
// qid: row.qid,
// children: row.children,
// queryId: row.queryId,
expanded: true,
};
this.$forceUpdate();
} else {
//console.info("折叠时row数据", this.list[i]);
this.tableDate1[i] = {
taskNumber: row.taskNumber,
sequenceNumber: row.sequenceNumber,
personExportRecordGrandchildren: row.personExportRecordGrandchildren,
barcode: row.personExportRecordGrandchildren[0].barcode,
collectIdName: row.personExportRecordGrandchildren[0].collectIdName,
collectIdCard: row.personExportRecordGrandchildren[0].collectIdCard,
dataType: row.personExportRecordGrandchildren[0].dataType,
dataTypeName: row.personExportRecordGrandchildren[0].dataTypeName,
declassificationName: row.personExportRecordGrandchildren[0].declassificationName,
declassificationStatus: row.personExportRecordGrandchildren[0].declassificationStatus,
exportName: row.personExportRecordGrandchildren[0].exportName,
exportTime: row.personExportRecordGrandchildren[0].exportTime,
exportType: row.personExportRecordGrandchildren[0].exportType,
failReason: row.personExportRecordGrandchildren[0].failReason,
featureName: row.personExportRecordGrandchildren[0].featureName,
featureStatus: row.personExportRecordGrandchildren[0].featureStatus,
id: row.personExportRecordGrandchildren[0].id,
picCount: row.personExportRecordGrandchildren[0].picCount,
plainCount: row.personExportRecordGrandchildren[0].plainCount,
plamCount: row.personExportRecordGrandchildren[0].plamCount,
rollCount: row.personExportRecordGrandchildren[0].rollCount,
status: row.personExportRecordGrandchildren[0].status,
statusName: row.personExportRecordGrandchildren[0].statusName,
expanded: false,
};
//console.log(this.list[i]);
this.$forceUpdate();
// //console.info("塞完数据的row", this.list[i]);
}
},
// 展开或关闭行
hadnlExpandChange2 (row, expanded) {
console.log(row, expanded, "hadnlExpandChange2")
// let oldObj = row;
// 获取展开标志
this.expanded = expanded;
// 获取下标
var i = this.tableDate2.findIndex((table) => table.sequenceNumber === row.sequenceNumber);
// var i = this.tableData.findIndex(table => table.id === row.id);
console.log(i, 112233);
if (expanded) {
this.tableDate2[i] = {
taskNumber: row.taskNumber,
sequenceNumber: row.sequenceNumber,
caseExportRecordGrandchildren: row.caseExportRecordGrandchildren,
// qid: row.qid,
// children: row.children,
// queryId: row.queryId,
expanded: true,
};
this.$forceUpdate();
} else {
//console.info("折叠时row数据", this.list[i]);
this.tableDate2[i] = {
taskNumber: row.taskNumber,
sequenceNumber: row.sequenceNumber,
caseExportRecordGrandchildren: row.caseExportRecordGrandchildren,
barcode: row.caseExportRecordGrandchildren[0].barcode,
collectIdName: row.caseExportRecordGrandchildren[0].collectIdName,
collectIdCard: row.caseExportRecordGrandchildren[0].collectIdCard,
dataType: row.caseExportRecordGrandchildren[0].dataType,
dataTypeName: row.caseExportRecordGrandchildren[0].dataTypeName,
declassificationName: row.caseExportRecordGrandchildren[0].declassificationName,
declassificationStatus: row.caseExportRecordGrandchildren[0].declassificationStatus,
exportName: row.caseExportRecordGrandchildren[0].exportName,
exportTime: row.caseExportRecordGrandchildren[0].exportTime,
exportType: row.caseExportRecordGrandchildren[0].exportType,
failReason: row.caseExportRecordGrandchildren[0].failReason,
featureName: row.caseExportRecordGrandchildren[0].featureName,
featureStatus: row.caseExportRecordGrandchildren[0].featureStatus,
id: row.caseExportRecordGrandchildren[0].id,
picCount: row.caseExportRecordGrandchildren[0].picCount,
plainCount: row.caseExportRecordGrandchildren[0].plainCount,
plamCount: row.caseExportRecordGrandchildren[0].plamCount,
rollCount: row.caseExportRecordGrandchildren[0].rollCount,
status: row.caseExportRecordGrandchildren[0].status,
statusName: row.caseExportRecordGrandchildren[0].statusName,
expanded: false,
};
//console.log(this.list[i]);
this.$forceUpdate();
// //console.info("塞完数据的row", this.list[i]);
}
},
/**
* @description: 是否是批量操作
* @param {*}
......@@ -661,6 +803,34 @@ export default {
};
</script>
<style scoped lang="scss">
// 特征
.tz {
display: inline-block;
width: 32px;
height: 20px;
background: #ddebff;
border-radius: 2px;
font-size: 12px;
font-family: MicrosoftYaHei;
color: #055fe7;
line-height: 20px;
text-align: center;
margin-left: 8px;
}
// 脱密
.tm {
display: inline-block;
width: 32px;
height: 20px;
background: #ffebed;
border-radius: 2px;
font-size: 12px;
font-family: MicrosoftYaHei;
color: #e60012;
line-height: 20px;
text-align: center;
margin-left: 8px;
}
// 隐藏掉table多选框
.delSelection /deep/.el-table-column--selection .cell {
display: none;
......@@ -999,4 +1169,15 @@ export default {
background-repeat: no-repeat;
transform: rotate(180deg) !important;
}
.el-table tr {
height: 55px;
}
.el-checkbox__input.is-checked .el-checkbox__inner {
background-color: #006aff;
border-color: #006aff;
}
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: #006aff;
border-color: #006aff;
}
</style>
......@@ -217,8 +217,8 @@
>
<span v-html="'&nbsp;&nbsp;'"></span>
<i
class="el-icon-info"
style="color: #055fe7; font-size: 15px"
class="iconfont icon-tanhao1"
style="color: #055fe7; font-size: 16px; margin: 0 0.625rem;"
></i>
已选择
<span style="color: #055fe7">{{ multipleSelection.length }}</span> 项​
......@@ -258,6 +258,7 @@
prop="followPerson.barcode"
label="人员编号"
:width="width2"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -279,6 +280,7 @@
prop="followPerson.idcard"
label="身份证号"
:width="width3"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -297,13 +299,14 @@
@click="handleClick(scope.row)"
>
<div
class="icon bj"
class="icon-div "
@click="handleClick(scope.row)"
>
<img
<!-- <img
src="../../assets/img/qbryk/bj.svg"
alt=""
/>
/> -->
<span class="iconfont">&#xe635;</span>
</div>
</el-tooltip>
<!-- <el-tooltip
......@@ -331,13 +334,14 @@
:open-delay="500"
>
<div
class="icon look"
class="icon-div "
@click="isShowFcxBtn1(scope.row)"
>
<img
<!-- <img
src="../../assets/img/qbryk/search.svg"
alt=""
/>
/> -->
<span class="iconfont">&#xe607;</span>
</div>
</el-tooltip>
<el-tooltip
......@@ -348,13 +352,14 @@
:open-delay="500"
>
<div
class="icon bz"
class="icon-div "
@click.stop="isShowFztmBtn(scope.row)"
>
<img
<!-- <img
src="../../assets/img/qbryk/bz.svg"
alt=""
/>
/> -->
<span class="iconfont">&#xe605;</span>
</div>
</el-tooltip>
<el-tooltip
......@@ -366,21 +371,21 @@
>
<div
@click.stop
class="icon del"
class="icon-div "
>
<el-popconfirm
placement="top-start"
:hide-icon="true"
confirm-button-text="确认"
@confirm="qxgz(scope.row.followPerson.personId)"
class="icon del"
title="确认要取消关注吗?该操作无法撤消!"
>
<div slot="reference">
<img
<!-- <img
src="../../assets/img/qbryk/qxgz.svg"
alt=""
/>
/> -->
<span class="iconfont">&#xe60a;</span>
</div>
</el-popconfirm>
</div>
......@@ -417,6 +422,7 @@
prop="followCase.barcode"
label="案事件编号"
:width="width6"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -430,6 +436,7 @@
prop="followCase.collectunitName"
label="提取单位"
:width="width3"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -455,13 +462,14 @@
@click="handleClick(scope.row)"
>
<div
class="icon bj"
class="icon-div "
@click="handleClick(scope.row)"
>
<img
<!-- <img
src="../../assets/img/qbryk/bj.svg"
alt=""
/>
/> -->
<span class="iconfont">&#xe635;</span>
</div>
</el-tooltip>
<!-- <el-tooltip
......@@ -490,13 +498,14 @@
:open-delay="500"
>
<div
class="icon look"
class="icon-div "
@click="isShowFcxBtn1(scope.row)"
>
<img
<!-- <img
src="../../assets/img/qbryk/search.svg"
alt=""
/>
/> -->
<span class="iconfont">&#xe607;</span>
</div>
</el-tooltip>
<el-tooltip
......@@ -507,13 +516,14 @@
:open-delay="500"
>
<div
class="icon bz"
class="icon-div "
@click.stop="isShowFztmBtn(scope.row)"
>
<img
<!-- <img
src="../../assets/img/qbryk/bz.svg"
alt=""
/>
/> -->
<span class="iconfont">&#xe605;</span>
</div>
</el-tooltip>
<el-tooltip
......@@ -525,21 +535,21 @@
>
<div
@click.stop
class="icon del"
class="icon-div "
>
<el-popconfirm
placement="top-start"
:hide-icon="true"
confirm-button-text="确认"
@confirm="qxgzAj(scope.row.followCase.caseId)"
class="icon del"
title="确认要取消关注该数据吗?该操作无法撤消!"
>
<div slot="reference">
<img
<!-- <img
src="../../assets/img/qbryk/qxgz.svg"
alt=""
/>
/> -->
<span class="iconfont">&#xe60a;</span>
</div>
</el-popconfirm>
</div>
......@@ -1209,40 +1219,6 @@ export default {
};
</script>
<style lang="scss">
.el-message-box__message {
margin: 23px 24px 17px 24px;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #333333;
}
.el-message-box__btns {
margin-bottom: 24px;
padding-bottom: 24px;
// 交换 确定 取消 按钮的位置
.el-button:nth-child(1) {
float: right;
margin-right: 23%;
width: 72px;
height: 40px;
background: #055fe7;
border-radius: 4px;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #ffffff;
}
.el-button:nth-child(2) {
float: left;
margin-left: 23%;
width: 72px;
height: 40px;
background: #ffffff;
border-radius: 4px;
border: 1px solid #aeb5c2;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #2e3846;
}
}
.el-popconfirm__main {
margin: 23px 24px 17px 24px;
font-size: 14px;
......@@ -1461,6 +1437,25 @@ export default {
object-fit: fill;
}
}
.icon-div {
width: 20px;
height: 20px;
display: flex;
overflow: visible;
background: white;
margin-right: 14px;
}
.iconfont {
width: 16px;
height: 16px;
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
color: #055fe7;
object-fit: fill;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.ops {
display: flex;
}
......@@ -1545,4 +1540,15 @@ export default {
}
}
}
/deep/.el-table--enable-row-transition .el-table__body td.el-table__cell {
height: 55px;
}
/deep/.el-checkbox__input.is-checked .el-checkbox__inner {
background-color: #006aff;
border-color: #006aff;
}
/deep/.el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: #006aff;
border-color: #006aff;
}
</style>
......@@ -30,7 +30,7 @@
<div class='sjx l1'>
<span class="span1">案件编号:</span>
<span class="span2">{{this.ysajjbxx.ysxtAsjbh}}</span>
<span class="span3">比中</span>
<span :class="fcxInfo.hitStatus==1?'span3':'span3 wbz'">比中</span>
</div>
<div class='sjx l2'>
<span class="span1">现勘编号:</span>
......@@ -184,6 +184,7 @@ export default {
lastQueryTime: '',
queryCount: '',
queryType: '',
hitStatus: '',
},
CaseImg: [ // 案件图像
],
......@@ -263,6 +264,7 @@ export default {
this.fcxInfo.lastQueryTime = response.data.ret.lastQueryTime
this.fcxInfo.queryCount = response.data.ret.queryCount
this.fcxInfo.queryType = response.data.ret.queryType
this.fcxInfo.hitStatus = response.data.ret.hitStatus
//console.info("查询结果===>", this.tableDate);
// this.userInfo = this.getUserInfo(this.tableDate);
} else {
......@@ -332,11 +334,21 @@ export default {
}
.zwDivBody {
display: flex;
justify-content: space-between;
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
height: 580px;
> div {
&:nth-of-type(5n) {
margin-right: 0;
.zw {
margin-right: 0 !important;
}
}
}
.zw {
width: 110px;
margin-right: 18px;
.zwImg {
width: 110px;
height: 110px;
......@@ -421,6 +433,10 @@ export default {
line-height: 24px;
margin-left: 10px;
}
.wbz {
background-color: #ecedf1;
color: #aeafb4;
}
}
.l2 {
margin: 15px 0;
......
......@@ -30,7 +30,7 @@
<div class='sjx l1'>
<span class="span1">人员编号:</span>
<span class="span2">{{ysryjbxx.ysxtAsjxgrybh}}</span>
<span class="span3">比中</span>
<span :class="fcxInfo.hitStatus==1?'span3':'span3 wbz'">比中</span>
</div>
<div class='sjx l2'>
<span class="span1">姓名:</span>
......@@ -400,6 +400,7 @@ export default {
lastQueryTime: '',
queryCount: '',
queryType: '',
hitStatus: '',
},
RollImgNum: 0, // 滚动指纹个数
PlainImgNum: 0,// 平面指纹个数
......@@ -613,6 +614,7 @@ export default {
this.fcxInfo.lastQueryTime = response.data.ret.lastQueryTime
this.fcxInfo.queryCount = response.data.ret.queryCount
this.fcxInfo.queryType = response.data.ret.queryType
this.fcxInfo.hitStatus = response.data.ret.hitStatus
//console.info("查询结果===>", this.tableDate);
// this.userInfo = this.getUserInfo(this.tableDate);
} else {
......@@ -634,6 +636,10 @@ export default {
this.PlainImgfingerLoading = true // 平面加载
this.PlamLoading = true// 掌纹加载
this.FaceLoading = true// 人像加载
this.RollImgNum = 0 // 滚动指纹个数
this.PlainImgNum = 0// 平面指纹个数
this.PalmImgNum = 0// 掌纹个数
this.FaceImgNum = 0// 人像个数
this.radio1 = 1
this.RollImg = [ // 滚动
{ name: "右拇", code: 1, img: null },
......@@ -679,6 +685,10 @@ export default {
this.PlainImgfingerLoading = true // 平面加载
this.PlamLoading = true// 掌纹加载
this.FaceLoading = true// 人像加载
this.RollImgNum = 0 // 滚动指纹个数
this.PlainImgNum = 0// 平面指纹个数
this.PalmImgNum = 0// 掌纹个数
this.FaceImgNum = 0// 人像个数
this.radio1 = 1
this.RollImg = [ // 滚动
{ name: "右拇", code: 1, img: null },
......@@ -998,6 +1008,10 @@ export default {
line-height: 24px;
margin-left: 10px;
}
.wbz {
background-color: #ecedf1;
color: #aeafb4;
}
}
.l2 {
margin: 15px 0;
......
......@@ -90,8 +90,8 @@
>
<span v-html="'&nbsp;&nbsp;'"></span>
<i
class="el-icon-info"
style="color:#055FE7;font-size:.9375rem"
class="iconfont icon-tanhao1"
style="color: #055fe7; font-size: 16px; margin: 0 0.625rem;"
></i>
已选择<span style="color:#055FE7">{{multipleSelection.length}}</span>项​
<!-- <span v-html="'&nbsp;&nbsp;'"></span> -->
......@@ -124,6 +124,7 @@
prop="ysxtAsjbh"
label="案事件编号"
:width="width1"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -137,6 +138,7 @@
prop="xckybh"
label="现勘编号"
:width="width1"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -457,7 +459,7 @@ export default {
width3: 100,
width2: 180,
width1: 220,
height: 550,
height: 500,
isShowAjxxk: false,// 案件信息卡
disabled: false, // 新增案件按钮状态
isShowTjddl: false,// 添加到队列
......@@ -1294,4 +1296,7 @@ const datas1 = [
}
}
}
/deep/.el-table--enable-row-transition .el-table__body td.el-table__cell {
height: 55px;
}
</style>
......@@ -140,7 +140,7 @@ export default {
},
logout() {
this.$axios
.get("/login/login/logout")
.get("/security/logout")
.then((res) => {
if (res.data.code == 200) {
localStorage.removeItem("token"); //删除名称为“token”的信息。
......@@ -158,7 +158,7 @@ export default {
},
created() {
sessionStorage.setItem("crumbs", []);
this.userInfo = JSON.parse(localStorage.getItem("userInfo")).user;
this.userInfo = JSON.parse(localStorage.getItem("userInfo"));
console.log(this.userInfo);
},
};
......
......@@ -42,7 +42,7 @@
></SelectCode>
</div>
<div class="clear-btn" @click="clear" v-if="newStr">清空</div>
<div class="btn" @click="search">筛选用户组</div>
<div class="btn" @click="search('yes')">筛选用户组</div>
</div>
<div class="operation">
<div class="btn1" @click="batch">批量操作</div>
......@@ -207,7 +207,9 @@
</div>
<div class="footer">
<span class="count"
>共{{ tableData.length }} 条记录 第{{ page.page }}/{{ Tpage }}页</span
>共{{ total }} 条记录 第{{
searchParams.page > countPage ? countPage : searchParams.page
}}/{{ countPage }}页</span
>
<div class="page">
<el-pagination
......@@ -215,11 +217,11 @@
background
@size-change="handleSizeChange"
@current-change="handleCurrPageChange"
:current-page="page.page"
:current-page="searchParams.page"
:page-sizes="[10, 20, 50, 100]"
:page-size="page.total"
:page-size="searchParams.size"
layout="prev, pager, next"
:total="page.count"
:total="total"
>
</el-pagination>
</div>
......@@ -740,16 +742,8 @@ export default {
name: "",
dwCode: "",
groupRole: [],
// usergroup.append('Id', "用户组Id");
// groupname,
// groupdesc,
// userId(多个用户id之间用逗号隔开),
// username(多个用户名之间用逗号隔开),
// roleId(多个角色id之间用逗号隔开),
// rolename(多个角色名之间用逗号隔开),
// status(激活状态:0未激活;1已激活)
// usergroup.append('page', "数据查询当前页码");//必填
// usergroup.append('total', "每页显示的数据条数");//必填
page: 1,
size: 10,
},
page: {
total: 20,
......@@ -809,9 +803,13 @@ export default {
userAddCheckList: [],
userAddArr: [],
src: require("@/assets/img/police-badge.png"),
total: 0,
};
},
computed: {
countPage() {
return Math.ceil(this.total / 10) > 0 ? Math.ceil(this.total / 10) : 1;
},
// 计算总页数
Tpage() {
return Math.floor(this.page.count / this.page.total) + 1;
......@@ -819,7 +817,7 @@ export default {
newStr() {
let str = "";
for (let key in this.searchParams) {
if (key != "page" && key != "groupRole") {
if (key != "page" && key != "groupRole" && key != "size") {
str += this.searchParams[key].trim();
}
if (key == "groupRole") {
......@@ -881,14 +879,14 @@ export default {
},
clear() {
for (let key in this.searchParams) {
if (key != "page" || key != "groupRole") {
if (key != "page" && key != "groupRole" && key != "size") {
this.$set(this.searchParams, key, "");
}
if (key == "groupRole") {
this.$set(this.searchParams, key, []);
}
}
this.search();
this.search("yes");
},
//角色设置前端动效
settingPerson(item, minus, add) {
......@@ -1043,7 +1041,7 @@ export default {
}, 500);
this.getAddUserList();
this.getUserList();
this.search();
this.search("yes");
}
});
})
......@@ -1063,12 +1061,12 @@ export default {
},
// 当期页发生变化
handleCurrPageChange: function (val) {
this.page.page = val;
this.searchParams.page = val;
this.search();
},
// 每页展示数量发生变化
handleSizeChange: function (val) {
this.page.total = val;
this.searchParams.size = val;
this.search();
},
// 打开新增弹窗
......@@ -1201,7 +1199,7 @@ export default {
}, 800);
this.isShowAddUserDialogBg = false;
this.isShowAddUserDialog = false;
this.search();
this.search("yes");
} else if (res.data.code == 400 || res.data.code == 500) {
setTimeout(() => {
this.$message.error(res.data.detail);
......@@ -1296,7 +1294,7 @@ export default {
}),
}).then((res) => {
if (res.data.code == 200 && res.data.info == "success") {
this.search();
this.search("yes");
setTimeout(() => {
this.$message.success("删除成功");
this.offMultiple();
......@@ -1305,8 +1303,12 @@ export default {
});
},
// 搜索
search() {
search(boo) {
let params = {};
if (boo) {
this.$set(this.searchParams, "page", 1);
this.$set(this.searchParams, "size", 10);
}
for (let key in this.searchParams) {
if (key == "groupRole") {
params[key] = this.searchParams[key].join();
......@@ -1314,7 +1316,6 @@ export default {
params[key] = this.searchParams[key];
}
}
this.$axios({
url: "/security/user-groups/search",
method: "post",
......@@ -1324,8 +1325,10 @@ export default {
},
}).then((res) => {
if (res.data.code == 200) {
this.tableData = res.data.detail;
this.allTableData = res.data.detail;
let result = res.data.detail;
this.tableData = result.userGroups;
this.allTableData = result.userGroups;
this.total = result.total;
this.key++;
}
});
......@@ -1333,7 +1336,8 @@ export default {
},
activated() {
this.$bus.on("enter", () => {
this.search();
if (this.$store.state.loading.groundGlassBoo) return;
this.search("yes");
});
},
deactivated() {
......@@ -1343,11 +1347,11 @@ export default {
this.$bus.off("enter");
},
mounted() {
this.search();
this.search("yes");
this.$bus.on("enter", () => {
this.search();
if (this.$store.state.loading.groundGlassBoo) return;
this.search("yes");
});
debugger;
this.$nextTick(() => {
document.body.appendChild(this.$refs.isShowEditGroupDialog);
document.body.appendChild(this.$refs.isShowAddUserDialog);
......@@ -1356,7 +1360,6 @@ export default {
});
},
destroyed() {
debugger;
$(".groupAddDialog").remove();
$(".groupEditDialog").remove();
$(".groupJueseDialog").remove();
......
......@@ -488,7 +488,7 @@
import "@/icons/group-item.svg";
import qs from "qs";
export default {
name: "UserPermission",
// name: "UserPermission",
data() {
return {
id: "",
......
......@@ -74,7 +74,7 @@
></SelectCode>
</div>
<div class="clear" @click="userClear" v-if="newStr1">清空</div>
<div class="btn" @click="searchUser">筛选用户</div>
<div class="btn" @click="searchUser('yes')">筛选用户</div>
</div>
<!-- 用户表格-->
<div class="table">
......@@ -218,9 +218,9 @@
<!-- 用户分页-->
<div class="footer">
<span class="count"
>共{{ userTableData.length }} 条记录 第{{ userPage.page }}/{{
userTpage
}}页</span
>共{{ userTotal }} 条记录 第{{
userPage.page > userCont ? userCont : userPage.page
}}/{{ userCont }}</span
>
<div class="page">
<el-pagination
......@@ -228,10 +228,10 @@
background
@size-change="userHandleSizeChange"
@current-change="userHandleCurrPageChange"
:current-page="userPage.page"
:page-size="userPage.total"
:current-page="userSearchParams.page"
:page-size="userSearchParams.size"
layout="prev, pager, next"
:total="userPage.count"
:total="userTotal"
>
</el-pagination>
</div>
......@@ -285,7 +285,7 @@
></SelectCode>
</div>
<div class="clear" @click="groupClear" v-if="newStr2">清空</div>
<div class="btn" @click="searchGroup">筛选用户组</div>
<div class="btn" @click="searchGroup('yes')">筛选用户组</div>
</div>
<!-- 用户组表格-->
<div class="table">
......@@ -295,7 +295,7 @@
ref="multipleTable"
:data="groupTableData"
:key="key2"
class="table"
class="table groupTable"
>
<el-table-column
prop="name"
......@@ -439,9 +439,11 @@
<!-- 用户组分页-->
<div class="footer">
<span class="count"
>共{{ groupTableData.length }} 条记录 第{{ grouppage.page }}/{{
groupTpage
}}页</span
>共{{ groupTotal }} 条记录 第{{
groupSearchParams.page > groupCont
? groupCont
: groupSearchParams.page
}}/{{ groupCont }}页</span
>
<div class="page">
<el-pagination
......@@ -449,10 +451,10 @@
background
@size-change="groupHandleSizeChange"
@current-change="groupHandleCurrPageChange"
:current-page="grouppage.page"
:page-size="grouppage.total"
:current-page="groupSearchParams.page"
:page-size="groupSearchParams.size"
layout="prev, pager, next"
:total="grouppage.count"
:total="groupTotal"
>
</el-pagination>
</div>
......@@ -591,6 +593,8 @@ export default {
unitCode: "",
roleId: [],
permissionId: [],
page: 1,
size: 10,
},
userPage: {
total: 20,
......@@ -614,15 +618,29 @@ export default {
name: "",
dwCode: "",
groupRole: [],
page: 1,
size: 10,
},
grouppage: {
total: 20,
count: 0,
page: 1,
},
userTotal: 0,
groupTotal: 0,
};
},
computed: {
userCont() {
return Math.ceil(this.userTotal / 10) > 0
? Math.ceil(this.userTotal / 10)
: 1;
},
groupCont() {
return Math.ceil(this.groupTotal / 10) > 0
? Math.ceil(this.groupTotal / 10)
: 1;
},
// 计算总页数
userTpage() {
return Math.floor(this.userPage.count / this.userPage.total) + 1;
......@@ -630,7 +648,7 @@ export default {
newStr2() {
let str = "";
for (let key in this.groupSearchParams) {
if (key != "page" && key != "groupRole") {
if (key != "page" && key != "groupRole" && key != "size") {
str += this.groupSearchParams[key].trim();
}
if (key == "groupRole") {
......@@ -646,7 +664,8 @@ export default {
key != "page" &&
key != "roleId" &&
key != "userGroupId" &&
key != "permissionId"
key != "permissionId" &&
key != "size"
) {
str += this.userSearchParams[key].trim();
}
......@@ -760,12 +779,13 @@ export default {
},
// 用户清空
userClear() {
// userSearchParams
debugger;
for (let key in this.userSearchParams) {
if (
key != "page" ||
key != "userGroupId" ||
key != "roleId" ||
key != "page" &&
key != "size" &&
key != "userGroupId" &&
key != "roleId" &&
key != "permissionId"
) {
this.$set(this.userSearchParams, key, "");
......@@ -774,36 +794,39 @@ export default {
this.$set(this.userSearchParams, key, []);
}
}
this.searchUser();
this.searchUser("yes");
},
// 用户组清空
groupClear() {
for (let key in this.groupSearchParams) {
if (key != "page" || key != "groupRole") {
if (key != "page" && key != "groupRole" && key != "size") {
this.$set(this.groupSearchParams, key, "");
}
if (key == "groupRole") {
this.$set(this.groupSearchParams, key, []);
}
}
this.searchGroup();
this.searchGroup("yes");
},
// 用户当期页发生变化
userHandleCurrPageChange: function (val) {
this.userPage.page = val;
this.userSearchParams.page = val;
this.searchUser();
},
// 用户每页展示数量发生变化
userHandleSizeChange: function (val) {
this.userPage.total = val;
this.userSearchParams.size = val;
this.searchUser();
},
// 获取用户信息
searchUser() {
searchUser(boo) {
//console.info("搜索用户列表");
let params = {};
if (boo) {
this.$set(this.userSearchParams, "page", 1);
this.$set(this.userSearchParams, "size", 10);
}
for (let key in this.userSearchParams) {
if (key == "userGroupId" || key == "roleId" || key == "permissionId") {
params[key] = this.userSearchParams[key].join();
......@@ -820,7 +843,9 @@ export default {
},
}).then((res) => {
if (res.data.code == 200) {
this.userTableData = res.data.detail;
let result = res.data.detail;
this.userTableData = result.users;
this.userTotal = result.total;
this.key1++;
}
});
......@@ -838,18 +863,22 @@ export default {
},
// 用户组当前页发生变化
groupHandleCurrPageChange: function (val) {
this.grouppage.page = val;
this.groupSearchParams.page = val;
this.searchGroup();
},
// 用户组每页展示数量发生变化
groupHandleSizeChange: function (val) {
this.grouppage.total = val;
this.groupSearchParams.size = val;
this.searchGroup();
},
// 获取用户组信息
searchGroup() {
searchGroup(boo) {
let params = {};
if (boo) {
this.$set(this.groupSearchParams, "page", 1);
this.$set(this.groupSearchParams, "size", 10);
}
for (let key in this.groupSearchParams) {
if (key == "groupRole") {
params[key] = this.groupSearchParams[key].join();
......@@ -857,6 +886,7 @@ export default {
params[key] = this.groupSearchParams[key];
}
}
this.$axios({
url: "/security/user-groups/search",
method: "post",
......@@ -866,7 +896,9 @@ export default {
},
}).then((res) => {
if (res.data.code == 200) {
this.groupTableData = res.data.detail;
let result = res.data.detail;
this.groupTableData = result.userGroups;
this.groupTotal = result.total;
this.key2++;
}
});
......@@ -969,10 +1001,11 @@ export default {
},
activated() {
this.$bus.on("enter", () => {
if (this.$store.state.loading.groundGlassBoo) return;
if (this.isUser) {
this.searchUser();
this.searchUser("yes");
} else {
this.searchGroup();
this.searchGroup("yes");
}
});
},
......@@ -984,15 +1017,16 @@ export default {
},
mounted() {
this.$bus.on("enter", () => {
if (this.$store.state.loading.groundGlassBoo) return;
if (this.isUser) {
this.searchUser();
this.searchUser("yes");
} else {
this.searchGroup();
this.searchGroup("yes");
}
});
this.isUser = true;
if (this.isUser) {
this.searchUser();
this.searchUser("yes");
}
this.$nextTick(() => {
document.body.appendChild(this.$refs.isShowUserDialog);
......@@ -1009,6 +1043,9 @@ export default {
<style scoped lang="scss">
@import "scss/group";
@import "scss/permission";
.groupTable {
height: 550px !important;
}
.el-table /deep/ {
.el-tooltip {
width: 100% !important;
......
......@@ -491,7 +491,7 @@ export default {
if (item) {
let id = this.diyRoleList.length + 20 + "copy";
var roleitem = {
name: item.name + "_copy",
name: "请输入名称",
value: "",
flag: false,
code: this.diyRoleList.length,
......@@ -520,11 +520,14 @@ export default {
// 保存
save() {
let self = this;
//如果是添加角色
if (this.customAddUser.length > 0) {
//如果选的用户不是添加的用户
if (this.diyRoleItemIndex !== this.customAddUser[0].id) {
let userObj = this.diyRoleList.find(
(i) => i.id == this.diyRoleItemIndex
);
debugger;
//修改
let obj = {
id: this.diyRoleItemIndex,
......@@ -535,7 +538,7 @@ export default {
return;
}
console.log(this.customAddUser);
//如果位置在新增的用户就新增
let name = this.customAddUser[0].value;
let checkArr = this.checkList;
let params = {
......@@ -571,12 +574,12 @@ export default {
}, 800);
} else {
setTimeout(() => {
this.$message.success("新增角色失败!");
this.$message.error(res.data.detail);
}, 800);
}
});
} else {
//修改
//修改角色
let userObj = this.diyRoleList.find(
(i) => i.id == this.diyRoleItemIndex
);
......@@ -589,6 +592,7 @@ export default {
this.editUserRole(obj);
}
},
//选中主的全选子的,取消主的取消全部子的
handleCheckAllChange(boo, id) {
let obj = this.permissionDataList.find((i) => i.id == id);
let sonArr = obj.children.map((i) => i.id);
......@@ -619,12 +623,15 @@ export default {
this.checkList = [];
}
}
//分开button,重构数据
this.defaultRoleBtns = result.filter((i) => i.defaultFlag == 1);
this.diyRoleList = result.filter((i) => {
this.diyRoleList = JSON.parse(JSON.stringify(result)).filter(
(i) => {
i.value = i.name;
i.name = "请输入名称";
return i.defaultFlag == 0;
});
}
);
//console.log(1111111, this.diyRoleList);
let arr = [...this.diyRoleList, ...this.defaultRoleBtns];
let obj = arr.find((i) => i.id == this.diyRoleItemIndex);
......@@ -644,6 +651,13 @@ export default {
this.$message.error("请选择角色后操作");
return;
}
if (
this.customAddUser.length > 0 &&
this.btnCheckList.includes(this.customAddUser[0].id)
) {
this.$message.error("请保存后进行删除操作");
return;
}
let ids = this.btnCheckList.join(",");
let boo = this.btnCheckList.find((i) => i == this.diyRoleItemIndex);
let loading = this.$loading({
......@@ -688,7 +702,7 @@ export default {
let id = this.diyRoleList.length + 20 + "l";
var roleitem = {
value: "",
name: "自定义" + (this.diyRoleList.length + 1),
name: "请输入名称",
flag: false,
code: this.diyRoleList.length,
edit: true,
......@@ -748,6 +762,10 @@ export default {
this.$message.success("更新成功");
}, 500);
this.resetEdit();
} else {
setTimeout(() => {
this.$message.error(res.data.detail);
}, 500);
}
});
},
......@@ -761,6 +779,7 @@ export default {
this.viewSelect(item);
this.diyRoleItemIndex = item.id;
},
// 选中的权限
viewSelect(item) {
this.checkList =
(item.permissions && item.permissions.map((i) => i.id)) || [];
......@@ -774,7 +793,7 @@ export default {
this.diyRoleItemIndex = item.id;
this.viewSelect(item);
},
// 编辑
// 编辑以后出现输入框的一系列细节
editDiyRoleItem(item) {
let edit = item.edit;
let index = this.diyRoleList.findIndex((i) => i.id == item.id);
......
......@@ -54,7 +54,7 @@
></SelectCode>
</div>
<div class="clear-btn" @click="clear" v-if="newStr">清空</div>
<div class="btn" @click="search">筛选用户</div>
<div class="btn" @click="search('yes')">筛选用户</div>
</div>
<div class="operation">
<div class="btn1" @click="batch">批量操作</div>
......@@ -242,7 +242,9 @@
</div>
<div class="footer">
<span class="count"
>共{{ tableData.length }} 条记录 第{{ page.page }}/{{ Tpage }}页</span
>共{{ total }} 条记录 第{{
searchParams.page > countPage ? countPage : searchParams.page
}}/{{ countPage }}页</span
>
<div class="page">
<el-pagination
......@@ -250,11 +252,11 @@
background
@size-change="handleSizeChange"
@current-change="handleCurrPageChange"
:current-page="page.page"
:current-page="searchParams.page"
:page-sizes="[10, 20, 50, 100]"
:page-size="page.total"
:page-size="searchParams.size"
layout="prev, pager, next"
:total="page.count"
:total="total"
>
</el-pagination>
</div>
......@@ -404,6 +406,7 @@
<el-input
placeholder="请输入用户名"
class="input-info"
disabled
maxlength="8"
show-word-limit
v-model="editFormParams.username"
......@@ -725,12 +728,15 @@ export default {
unitCode: "",
roleId: [],
permissionId: [],
page: 1,
size: 10,
},
page: {
total: 10,
count: 0,
page: 1,
},
total: 0,
// 选中数据
multipleSelection: [],
isShowTip: false, //批量操作提示
......@@ -750,6 +756,9 @@ export default {
};
},
computed: {
countPage() {
return Math.ceil(this.total / 10) > 0 ? Math.ceil(this.total / 10) : 1;
},
newWidth() {
let w1 = 1920;
let w2 = window.innerWidth;
......@@ -787,7 +796,8 @@ export default {
key != "page" &&
key != "roleId" &&
key != "userGroupId" &&
key != "permissionId"
key != "permissionId" &&
key != "size"
) {
str += this.searchParams[key].trim();
}
......@@ -823,7 +833,7 @@ export default {
}, 800);
this.isShowAddUserDialog = false;
this.isShowAddUserDialogBg = false;
this.search();
this.search("yes");
} else if (res.data.code == 400 || res.data.code == 500) {
setTimeout(() => {
this.$message.error(res.data.detail);
......@@ -902,10 +912,11 @@ export default {
clear() {
for (let key in this.searchParams) {
if (
key != "page" ||
key != "userGroupId" ||
key != "roleId" ||
key != "permissionId"
key != "page" &&
key != "userGroupId" &&
key != "roleId" &&
key != "permissionId" &&
key != "size"
) {
this.$set(this.searchParams, key, "");
}
......@@ -913,11 +924,14 @@ export default {
this.$set(this.searchParams, key, []);
}
}
this.search();
this.search("yes");
},
search() {
search(boo) {
let params = {};
if (boo) {
this.$set(this.searchParams, "page", 1);
this.$set(this.searchParams, "size", 10);
}
for (let key in this.searchParams) {
if (key == "userGroupId" || key == "roleId" || key == "permissionId") {
params[key] = this.searchParams[key].join();
......@@ -925,9 +939,6 @@ export default {
params[key] = this.searchParams[key];
}
}
console.log(params); ///////////////////
//console.info("搜索用户列表");
this.$axios({
url: "/security/users/search",
method: "post",
......@@ -937,8 +948,10 @@ export default {
},
}).then((res) => {
if (res.data.code == 200) {
this.tableData = res.data.detail;
this.allTableData = res.data.detail;
let result = res.data.detail;
this.tableData = result.users;
this.allTableData = result.users;
this.total = result.total;
this.key++;
}
});
......@@ -970,12 +983,12 @@ export default {
},
// 当期页发生变化
handleCurrPageChange: function (val) {
this.page.page = val;
this.searchParams.page = val;
this.search();
},
// 每页展示数量发生变化
handleSizeChange: function (val) {
this.page.total = val;
this.searchParams.size = val;
this.search();
},
// 打开新增弹窗
......@@ -1104,7 +1117,7 @@ export default {
}),
}).then((res) => {
if (res.data.code == 200 && res.data.info == "success") {
this.search();
this.search("yes");
setTimeout(() => {
this.$message.success("删除成功");
this.offMultiple();
......@@ -1118,7 +1131,8 @@ export default {
},
activated() {
this.$bus.on("enter", () => {
this.search();
if (this.$store.state.loading.groundGlassBoo) return;
this.search("yes");
});
},
deactivated() {
......@@ -1128,9 +1142,10 @@ export default {
this.$bus.off("enter");
},
mounted() {
this.search();
this.search("yes");
this.$bus.on("enter", () => {
this.search();
if (this.$store.state.loading.groundGlassBoo) return;
this.search("yes");
});
this.$nextTick(() => {
document.body.appendChild(this.$refs.addUserDialog);
......
......@@ -412,7 +412,7 @@
<script>
export default {
name: "UserPermission",
// name: "UserPermission",
data() {
return {
id: "",
......
......@@ -223,9 +223,12 @@
}
}
.table-data {
height: 580px;
.table-data /deep/{
height: 530px;
width: 100%;
.el-table {
height: 510px!important;
}
.tagsBox {
display: flex;
.el-tooltip {
......@@ -329,6 +332,7 @@
}
}
.el-table /deep/ {
.is-checked {
.el-checkbox__inner {
background: #055fe7;
......
......@@ -181,9 +181,12 @@
}
}
}
.table-data {
height: 580px;
.table-data /deep/ {
height: 530px;
width: 100%;
.el-table {
height: 510px !important;
}
.tagsBox {
display: flex;
.el-tooltip {
......
......@@ -13,6 +13,11 @@
<div class="lt_main_left">
<LLSrc
:src-data="qid"
@sourceObj="
(val) => {
sourceObj = val;
}
"
@switchName="
(val) => {
fingerShowType = val;
......@@ -27,7 +32,14 @@
<ImageEd></ImageEd>
</div>
<div class="lt_main_right">
<LLCandidate :fingerShowType="fingerShowType"></LLCandidate>
<LLCandidate
:fingerShowType="fingerShowType"
@targetObj="
(val) => {
targetObj = val;
}
"
></LLCandidate>
</div>
</div>
</div>
......@@ -59,7 +71,7 @@
串查
</div>
</div>
<div class="bzitem">
<div class="bzitem" style="visibility: hidden">
<div class="bzname">现场勘验编号:</div>
<div class="bzvalue">{{ xckybh }}</div>
</div>
......@@ -115,30 +127,31 @@
<div class="bz-target">
<div class="bzitem">
<div class="bzname">比中单位:</div>
<div class="bzvalue">{{ bzdw }}</div>
<div class="bzvalue">{{ bzr.unitName }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人:</div>
<div class="bzvalue">{{ bzr }}</div>
<div class="bzvalue">{{ bzr.name }}</div>
</div>
<div class="bzitem">
<div class="bzname">单位代码:</div>
<div class="bzvalue">{{ dwdm }}</div>
<div class="bzvalue">{{ bzr.unitCode }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人身份证号:</div>
<div class="bzvalue">{{ bzrsfzh }}</div>
<div class="bzvalue">{{ bzr.idCard }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中时间:</div>
<div class="bzvalue">{{ bzsj }}</div>
<div class="bzvalue">{{ bzr.bzTime }}</div>
</div>
<div class="bzitem">
<div class="bzname">比中人联系电话:</div>
<el-input
class="bzphone"
v-model="phone"
v-model="bzr.phoneNumber"
placeholder="请输入内容"
disabled
></el-input>
<div class="input-error" v-show="isPhoneError">
<!-- <img src="@/assets/img/inputerror.png" alt=""> -->
......@@ -233,10 +246,23 @@ export default {
xckybh: "",
rybh: "",
zw: "",
//比中人信息
bzr: {
bzTime: "",
idCard: "",
phoneNumber: "",
name: "",
unitCode: "",
unitName: "",
},
// 是否展示认定完成确认框背景
isShowrdwcDialogBg: false,
// 是否展示认定完成确认框
isShowrdwcDialog: false,
//当前选中的源对象
sourceObj: {},
//当前选中的目标对象
targetObj: {},
};
},
created() {
......@@ -336,27 +362,35 @@ export default {
return;
}
// 3:串查
let querytype = 3;
let queryType = "3";
this.$axios({
method: "post",
url: "/api/matchcand/affirm/hit",
data: {
affirmstatus,
srcseqno,
destseqno,
srcseqno: parseInt(srcseqno),
destseqno: parseInt(destseqno),
srcbarcode,
destbarcode,
qqid,
qid,
querytype,
qqid: parseInt(qqid),
qid: parseInt(qid),
queryType,
affirmDescribe: self.textarea,
userName: self.bzr.name,
idCard: self.bzr.idCard,
tel: self.bzr.phoneNumber,
unit: self.bzr.unitName,
unitCode: self.bzr.unitCode,
affirmtime: new Date(self.bzr.bzTime),
},
})
.then((response) => {
if(response.data.code == 0){
// 跟新列表数据
self.$bus.emit("updateFinderSource");
//console.log(response);
this.$message.success("比中成功!");
}else{
this.$message.error(response.data.message)
}
})
.catch((err) => {
this.$message.error("比中失败!");
......@@ -398,6 +432,7 @@ export default {
"xh",
sessionStorage.getItem("destseqno") || ""
);
this.$set(this.bzr, "bzTime", result.time);
}
});
},
......@@ -422,33 +457,9 @@ export default {
}
}
this.$set(self.source, "xh", sessionStorage.getItem("zcseq") || "");
this.$set(this.bzr, "bzTime", result.time);
}
});
// this.$axios({
// method: "post",
// url: "/api/user/searchByUserid",
// data: {
// id: id,
// },
// loading: false,
// }).then(async (res) => {
// if (res.data.code == 0) {
// let data = res.data.ret[0];
// //console.log(data);
// let dw = await self.$axios({
// method: "get",
// url: "/api/code/unit/one/" + data.userunit,
// loading: false,
// });
// 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: 比中
......@@ -456,12 +467,26 @@ export default {
* @return {*}
*/
Bz() {
if (
(this.targetObj.affirmstatus == 2 ||
this.targetObj.affirmstatus == 3) &&
(this.sourceObj.affirmstatus == 2 || this.sourceObj.affirmstatus == 3)
) {
this.$message.error("已经比中过的数据无法再次比中!");
return;
}
let params = JSON.parse(localStorage.getItem("userInfo"));
for (let key in this.bzr) {
this.bzr[key] = params[key];
}
this.getUserInfo();
this.getUserInfo2();
this.asjbh = sessionStorage.getItem("srcbarcode");
this.xh = sessionStorage.getItem("srcseqno");
this.rybh = sessionStorage.getItem("destbarcode");
this.judgeZw(Number(sessionStorage.getItem("destseqno")));
this.isShowbzDialogBg = true;
this.isShowbzDialog = true;
},
......
......@@ -25,8 +25,8 @@
@change="selectUserInfo"
>
<el-option
v-for="item in userOption"
:key="item.userid"
v-for="(item,index) in userOption"
:key="index"
:label="item.userdesc"
:value="item.userid"
>
......@@ -34,10 +34,10 @@
</el-select>
</div>
<div class="display_style">
<span>任务号/查询ID:</span>
<span>查询ID:</span>
<el-input
class="el_input"
placeholder="请输入任务号/查询ID"
placeholder="请输入查询ID"
v-model="reqParam.contrastCustomSearchReq.qqid"
></el-input>
</div>
......@@ -62,6 +62,9 @@
range-separator="-"
start-placeholder="开始时间"
end-placeholder="结束时间"
:picker-options="{
disabledDate: disabledDate,
}"
>
</el-date-picker>
</div>
......@@ -624,6 +627,13 @@ export default {
},
},
methods: {
disabledDate(a) {
if (a.getTime() > new Date().getTime()) {
return true;
} else {
return false;
}
},
// 获取认定列表
search() {
this.getParam();
......@@ -637,7 +647,7 @@ export default {
this.list = response.data.ret.list;
this.reqParam.page.total = response.data.ret.total;
//console.info("查询结果===>", this.list);
this.userInfo = this.getUserInfo(this.list);
// this.userInfo = this.getUserInfo(this.list);
} else {
// 请求成功无返回值
this.list = [];
......@@ -688,7 +698,7 @@ export default {
});
}
});
this.userOption = this.unique(userInfo);
// this.userOption = this.unique(userInfo);
// //console.info("用户信息==>", this.userOption);
},
// 用户信息去重
......
......@@ -43,7 +43,7 @@
</div>
<div class="lt_candidate_number">
<el-table
highlight-current-row
:highlight-current-row="isDelete ? false : true"
@current-change="handleCurrentChange"
class="lt_candidate_table"
:data="tableData"
......@@ -1037,13 +1037,9 @@ export default {
* @return {*}
*/
handleCurrentChange(val, old) {
debugger;
if (!val) return;
// document
// .getElementsByClassName("lcurrte")[0]
// .parentElement.parentElement.parentElement.classList.remove(
// "current-row"
// );
if (this.isDelete) return;
this.$emit("targetObj", val);
this.targetBh = val.destbarcode;
let self = this;
if (val.removeFlag == "1") {
......
......@@ -82,7 +82,7 @@
<div
class="finger_print"
:class="{
finger_print_active: index === isActive,
finger_print_active: item.seq === isActive,
fingerLook: item.clickLog == 1,
fingerRD: item.affirmstatus == 1,
fingerBZ: item.affirmstatus == 2,
......@@ -95,7 +95,7 @@
<div
class="finger_print_number"
:class="{
finger_print_number_active: index === isActive,
finger_print_number_active: item.seq === isActive,
fingerLookNum: item.clickLog == 1,
fingerRDNum: item.affirmstatus == 1,
fingerBZNum: item.affirmstatus == 2,
......@@ -147,27 +147,27 @@
<div
class="finger_print_zw"
:class="{
finger_print_active_zw: index === isActive,
finger_print_active_zw: item.seq === isActive,
fingerLook: item.clickLog == 1,
fingerRD: item.affirmstatus == 1,
fingerBZ: item.affirmstatus == 2,
fingerRB: item.affirmstatus == 3,
}"
v-for="(item, index) in enumerate"
v-for="(item, index) in plamList"
@click="changeStyle(index, item)"
:key="index"
>
<div
class="finger_print_number"
:class="{
finger_print_number_active: index === isActive,
finger_print_number_active: item.seq === isActive,
fingerLookNum: item.clickLog == 1,
fingerRDNum: item.affirmstatus == 1,
fingerBZNum: item.affirmstatus == 2,
fingerRBNum: item.affirmstatus == 3,
}"
>
{{ 100 + Number(index + 1) }}
{{ Number(item.seq + 1) &lt; 11 ? ("0" + Number(item.seq)) : Number(item.seq) }}
</div>
<img :src="'data:image/jpeg;base64,' + item.image" />
<div class="finger-tips">
......@@ -266,6 +266,7 @@ export default {
// 加载动画
loading: null,
timer: null,
plamList: [],
};
},
methods: {
......@@ -274,6 +275,9 @@ export default {
*/
switchZhangWen() {
this.fingerShowType = "掌纹";
if (this.plamList && this.plamList?.length > 0) {
this.changeStyle(0, this.plamList[0]);
}
this.$emit("switchName", this.fingerShowType);
},
/**
......@@ -281,6 +285,9 @@ export default {
*/
switchZhiWen() {
this.fingerShowType = "指纹";
if (this.enumerate && this.enumerate?.length > 0) {
this.changeStyle(0, this.enumerate[0]);
}
this.$emit("switchName", this.fingerShowType);
},
/**
......@@ -306,6 +313,19 @@ export default {
return "looked";
}
},
//获取掌纹
getPlam() {
this.$axios
.post("/api/org/case/palm/barcode", {
barcode: sessionStorage.getItem("srcbarcode"),
})
.then((res) => {
if (res.data.code == 0 && res.data.message == "success") {
let result = res.data.ret;
this.plamList = result;
}
});
},
/**
* @description: 选择切换
* @param {*} val
......@@ -316,6 +336,7 @@ export default {
if (!val) return;
let self = this;
// 发送请求
this.fingerShowType = "指纹";
self.$store.commit("loading/setLoading", true);
self.qqid = val.qqid;
self.qid = val.qid;
......@@ -397,6 +418,8 @@ export default {
self.changeStyle(0, self.enumerate[0]);
}
});
self.getPlam();
self.isActive = "";
}
......@@ -470,12 +493,12 @@ export default {
},
// 指纹部分 增加边框
changeStyle(index, imageInfo) {
console.log(imageInfo);
let self = this;
this.isActive = index;
this.isActive = imageInfo.seq;
//console.log(this.isActive);
// 存储源数据序号
if (imageInfo) {
this.$emit("sourceObj", imageInfo);
// 改变数据为点击状态
self.$set(imageInfo, "clickLog", "1");
sessionStorage.setItem("srcseqno", imageInfo.seq);
......
<!--
* @Author: your name
* @Date: 2021-10-23 17:43:14
* @LastEditTime: 2021-12-06 10:01:49
* @LastEditTime: 2021-12-09 17:28:43
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\cxyrd\modules\TTPlam.vue
......@@ -15,6 +15,7 @@
</p>
<el-carousel
@mousewheel.native="rollScroll($event)"
@change="change"
direction="vertical"
ref="carousel"
:autoplay="false"
......@@ -144,6 +145,7 @@ export default {
return {
zwName: "222",
loadingIndex: 0,
changeIndex: 0,
sourceSrc: "",
targetSrc: "",
isShowDetail: false,
......@@ -179,6 +181,9 @@ export default {
});
},
methods: {
change(val) {
this.changeIndex = val;
},
rollScroll(event) {
let _that = this;
// chrome、ie使用的wheelDelta,火狐使用detail
......@@ -187,16 +192,17 @@ export default {
if (!_that.timeOut) {
_that.timeOut = setTimeout(() => {
_that.timeOut = null;
scrollVal > 0
? _that.$refs.carousel.prev()
: _that.$refs.carousel.next();
if (scrollVal > 0 && _that.changeIndex > 0) {
_that.$refs.carousel.prev();
} else if (scrollVal <= 0 && _that.changeIndex < 3) {
_that.$refs.carousel.next();
}
}, 300);
} else {
}
},
showDetail(item) {
this.checkItem = item;
console.log(this.checkItem);
this.isShowDetail = true;
this.$emit("logbg", true);
},
......@@ -205,6 +211,9 @@ export default {
$(".plamDetail").remove();
},
watch: {
isPlam(val) {
if (val) this.changeIndex = 0;
},
plamDetail(val) {
this.isShowDetail = false;
},
......
......@@ -83,7 +83,7 @@ export default {
let me = this;
me.btnLoading = true;
this.$axios({
url: "/login/login/myLoginForm",
url: "/security/login/myLoginForm",
method: "post",
data: qs.stringify(userinfo),
headers: {
......
......@@ -31,7 +31,7 @@
@keyup.enter.native="search"
>
<el-option
label="检查"
label="检查"
value="0"
></el-option>
<el-option
......@@ -109,7 +109,7 @@
<el-tag v-show="isShowTip">
<span v-html="'&nbsp;&nbsp;'"></span>
<i
class="el-icon-info"
class="iconfont icon-tanhao1"
style="color: #055fe7; font-size: 16px; margin: 0 0.625rem;"
></i>
已选择
......@@ -142,12 +142,14 @@
prop="barcode"
label="人员编号"
:width="width1"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="name"
label="姓名"
:width="width3"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -187,7 +189,7 @@
:width="width3"
>
<template slot-scope="scope">
<div v-if="scope.row.inspectionFlag==0">检查</div>
<div v-if="scope.row.inspectionFlag==0">检查</div>
<div v-if="scope.row.inspectionFlag==1">已检查</div>
<div v-if="scope.row.inspectionFlag==2">合格</div>
<div v-if="scope.row.inspectionFlag==3">不合格</div>
......@@ -556,4 +558,7 @@ $tableHeight: var(--tableHeight, 550px);
}
}
}
/deep/.el-table tr {
height: 55px;
}
</style>
\ No newline at end of file
......@@ -59,10 +59,10 @@ export default {
<style lang="scss"scoped>
.p1 {
padding-top: 108px;
padding-top: 109px;
}
.p2 {
padding-top: 57px;
padding-top: 58px;
}
.jcxq {
position: relative;
......@@ -71,7 +71,7 @@ export default {
height: 100%;
.fixedBox {
position: absolute;
top: 0;
top: 0.5px;
left: 0;
width: 100%;
background-color: #fff;
......
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-11 11:34:19
* @LastEditTime: 2021-12-11 14:19:43
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
......
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