Commit a03ee69a by 张超军

1.对接权限(删除案件指掌纹图片、修改案结案指掌纹序号)

2.修改编辑用户权限界面,高级认定一行样式,改为2行
3.对接序号修改
parent f5a96243
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2022-04-15 20:57:44
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-06-10 11:24:34
* @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\plugins\axios.js
*/
......
<!--
* @Author: your name
* @Date: 2021-10-22 09:42:07
* @LastEditTime: 2022-06-09 17:51:35
* @LastEditTime: 2022-06-10 14:37:30
* @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\ryzwbjLeft.vue
......@@ -29,13 +29,13 @@
<div class="fingerDom" v-for="(item,index) in fingers" :key="index" @click="FingersChange(item.code, item)">
<div class="fingerPic" :class="{fingerPicActive: activeFinger==item.code}">
<div class="finger-number">{{(item.code) &lt; 10 ? ('0'+(item.code)) : (item.code)}}</div>
<el-dropdown class="more" placement="bottom" @command="changeMenu">
<el-dropdown class="more" placement="bottom" @command="changeMenu" v-show="roleArr.includes('F-2-17') || roleArr.includes('F-2-18')">
<span class="el-dropdown-link" style="color: 055fe7;">
···
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{command: 1, code: item.code}">删除</el-dropdown-item>
<el-dropdown-item :command="{command: 2, code: item.code}">重命名</el-dropdown-item>
<el-dropdown-item v-show="roleArr.includes('F-2-17')" :command="{command: 1, code: item.code}">删除</el-dropdown-item>
<el-dropdown-item v-show="roleArr.includes('F-2-18')" :command="{command: 2, code: item.code}">重命名</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<div class="finger-pic">
......@@ -60,13 +60,13 @@
<div class="fingerDom handDom" v-for="(item,index) in hands" :key="index" @click="HandChange(item)">
<div class="fingerPic handPic" :class="{fingerPicActive: activeHand===item.seq}">
<div class="finger-number hand-number">{{item.seq}}</div>
<el-dropdown class="more" placement="bottom" @command="changeMenu">
<el-dropdown class="more" placement="bottom" @command="changeMenu" v-show="roleArr.includes('F-2-17') || roleArr.includes('F-2-18')">
<span class="el-dropdown-link" style="color: 055fe7;">
···
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{command: 1, code: item.seq}">删除</el-dropdown-item>
<el-dropdown-item :command="{command: 2, code: item.seq}">重命名</el-dropdown-item>
<el-dropdown-item v-show="roleArr.includes('F-2-17')" :command="{command: 1, code: item.seq}">删除</el-dropdown-item>
<el-dropdown-item v-show="roleArr.includes('F-2-18')" :command="{command: 2, code: item.seq}">重命名</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<div class="finger-pic">
......@@ -236,10 +236,12 @@ export default {
zyhz: state => state.zwbj.zyhz,
yxhz: state => state.zwbj.yxhz,
autoyxhz: state => state.zwbj.autoyxhz,
autozyhz: state => state.zwbj.autozyhz
autozyhz: state => state.zwbj.autozyhz,
roleArr: state => state.layout.Menu
})
},
mounted () {
console.log(this.roleArr);
let self = this
//console.log(this.$route);
this.barcode = this.$route.params.barcode
......@@ -278,12 +280,68 @@ export default {
* @return {*}
*/
renamePicture() {
let self = this
this.$refs.reqParam.validate((valid) => {
if (valid) {
this.renameDialogVisible = false
console.log(this.selectedPictureCode);
console.log(this.barcode);
console.log(this.reqParam.code);
this.$axios({
method: 'get',
url: '/api/upload/trait/updateFingerAndPalm',
params: {
barcode: this.barcode,
oldHpseqno: this.selectedPictureCode,
newHpseqno: this.reqParam.code
}
}).then(res => {
console.log(res);
if (res.data.code === 0) {
this.$message.success('修改成功!')
// 修改号码 -- 指纹
if (self.selectedPictureCode < 100) {
let indexFingder = this.fingers.findIndex((item) => item.code == self.selectedPictureCode)
if (indexFingder !== -1) {
this.fingers[indexFingder].code = this.reqParam.code
// 选中状态
this.activeFinger = this.reqParam.code
}
} else {
// 修改号码 -- 掌纹
let indexHand = this.hands.findIndex((item) => item.seq == self.selectedPictureCode)
if (indexHand !== -1) {
this.hands[indexFingder].seq = this.reqParam.code
// 选中状态
this.activeHand = this.reqParam.code
}
}
// 重新给新的指纹编号赋值
sessionStorage.setItem('zyhz_'+this.reqParam.code, sessionStorage.getItem('zyhz_'+this.selectedPictureCode));
sessionStorage.setItem('fingerPosition_'+this.reqParam.code, sessionStorage.getItem('fingerPosition_'+this.selectedPictureCode));
sessionStorage.setItem('yxhz_'+this.reqParam.code, sessionStorage.getItem('yxhz_'+this.selectedPictureCode));
sessionStorage.setItem('auto_yxhz_'+this.reqParam.code, sessionStorage.getItem('auto_yxhz_'+this.selectedPictureCode));
sessionStorage.setItem('auto_zyhz_'+this.reqParam.code, sessionStorage.getItem('auto_zyhz_'+this.selectedPictureCode));
sessionStorage.setItem(this.reqParam.code, sessionStorage.getItem(this.selectedPictureCode));
sessionStorage.setItem('auto_tzdDom'+this.reqParam.code, sessionStorage.getItem('auto_tzdDom'+this.selectedPictureCode));
sessionStorage.setItem('isOption_'+this.reqParam.code, sessionStorage.getItem('isOption_'+this.selectedPictureCode));
// 删除session存储
sessionStorage.removeItem('zyhz_'+this.selectedPictureCode);
sessionStorage.removeItem('fingerPosition_'+this.selectedPictureCode);
sessionStorage.removeItem('yxhz_'+this.selectedPictureCode);
sessionStorage.removeItem('auto_yxhz_'+this.selectedPictureCode);
sessionStorage.removeItem('auto_zyhz_'+this.selectedPictureCode);
sessionStorage.removeItem(this.selectedPictureCode);
sessionStorage.removeItem('auto_tzdDom'+this.selectedPictureCode);
sessionStorage.removeItem('isOption_'+this.selectedPictureCode);
} else {
this.$message.error('修改失败!')
}
}).catch(err => {
console.log(err);
this.$message.error('修改失败!')
})
} else {
//console.log('error submit!!');
return false;
......@@ -309,6 +367,16 @@ export default {
if (res.data.code === 0) {
this.deleteDialogVisible = false
this.$message.success('删除图片成功!')
// 删除session存储
sessionStorage.removeItem('zyhz_'+this.selectedPictureCode);
sessionStorage.removeItem('fingerPosition_'+this.selectedPictureCode);
sessionStorage.removeItem('yxhz_'+this.selectedPictureCode);
sessionStorage.removeItem('auto_yxhz_'+this.selectedPictureCode);
sessionStorage.removeItem('auto_zyhz_'+this.selectedPictureCode);
sessionStorage.removeItem(this.selectedPictureCode);
sessionStorage.removeItem('auto_tzdDom'+this.selectedPictureCode);
sessionStorage.removeItem('isOption_'+this.selectedPictureCode);
if (this.selectedPictureCode < 100) {
// 更新指纹列表
this.getCaseFinger()
......@@ -322,7 +390,7 @@ export default {
}
}).catch(err => {
console.log(err);
this.$message.success('删除图片失败!')
this.$message.error('删除图片失败!')
// this.$message.error(err.data.message)
})
},
......
......@@ -344,9 +344,10 @@ export default {
// location.href = zzwxtCloud.logoutUrl;
this.$message.info("退出成功!");
this.$router.replace("/Login");
localStorage.clear()
sessionStorage.clear()
removeCookie()
this.$router.replace("/Login");
/*
this.$axios({
......
......@@ -335,11 +335,11 @@ export default {
// location.href = zzwxtCloud.logoutUrl;
this.$message.info("退出成功!");
this.$router.replace("/Login");
localStorage.clear()
sessionStorage.clear()
removeCookie()
this.$router.replace("/Login");
/*
this.$axios({
method: 'get',
......
......@@ -190,7 +190,7 @@
{{ permissionDataList[2].name }}
</el-checkbox>
</div>
<div class="div1">
<div class="div2">
<el-checkbox
@change="
(boo) => {
......@@ -319,7 +319,7 @@
>
</div>
</div>
<div class="div1">
<div class="div2">
<div
class="line"
v-for="item in permissionDataList[3] &&
......
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2022-06-09 15:14:24
* @LastEditTime: 2022-06-10 10:48:05
* @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
* @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