敏感字符解密

main
xuechunyuan 3 years ago
parent 3fc7a1a5fa
commit 0c6dcb02dc
  1. 2
      src/page/index/top/index.vue
  2. 4
      src/page/login/userlogin.vue
  3. 10
      src/views/blacklist/index.vue
  4. 15
      src/views/booklist/index.vue
  5. 4
      vue.config.js

@ -78,7 +78,7 @@
:src="userInfo.avatar"> :src="userInfo.avatar">
<el-dropdown> <el-dropdown>
<span class="el-dropdown-link"> <span class="el-dropdown-link">
{{userInfo.userName}} {{userInfo.user_name}}
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">

@ -88,9 +88,9 @@
//ID //ID
roleId: "", roleId: "",
// //
username: "admin", username: "",//"admin",
// //
password: "admin", password: "",//"admin",
// //
type: "account", type: "account",
// //

@ -17,6 +17,7 @@
<script> <script>
import { getList, remove } from "@/api/blacklist/blacklist"; import { getList, remove } from "@/api/blacklist/blacklist";
import { Base64 } from "js-base64";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
export default { export default {
@ -181,11 +182,16 @@ export default {
values.startTime = ''; values.startTime = '';
values.endTime = ''; values.endTime = '';
} }
values.cupCardNo = cupCardNo ? cupCardNo : ''; values.cupCardNo = cupCardNo ? Base64.encode(cupCardNo) : '';
// console.log('black', values) // console.log('black', values)
this.loading = true; this.loading = true;
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data; let data = res.data.data;
data.records.map(item => {
item.cupCardNo = Base64.decode(item.cupCardNo);
item.cupName = Base64.decode(item.cupName);
item.cupPhone = Base64.decode(item.cupPhone);
})
this.page.total = data.total; this.page.total = data.total;
this.data = data.records; this.data = data.records;
this.loading = false; this.loading = false;

@ -360,6 +360,7 @@ import {
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import print from "vue-print-nb"; import print from "vue-print-nb";
import { calcSex } from "../../util/util"; import { calcSex } from "../../util/util";
import {Base64} from 'js-base64';
export default { export default {
data() { data() {
@ -484,14 +485,17 @@ export default {
this.option.column.find(item => item.label == '身份证号码').searchValue = number this.option.column.find(item => item.label == '身份证号码').searchValue = number
}, },
handleRegister(row) { handleRegister(row) {
console.log(row) // console.log('13',row)
let ids = [] let ids = []
row.details.map(item => { row.details.map(item => {
ids.push(item.id) ids.push(item.id)
}) })
let val = ids.join(','); let val = ids.join(',');
getStatus(val).then(res => { getStatus(val).then(res => {
console.log(res) res.data.data.resData.cupCardNo = res.data.data.resData.cupCardNo.length > 18 ? Base64.decode(res.data.data.resData.cupCardNo) : res.data.data.resData.cupCardNo;
res.data.data.resData.cupName = res.data.data.resData.cupName.length > 7 ? Base64.decode(res.data.data.resData.cupName) : res.data.data.resData.cupName;
res.data.data.resData.cupPhone = res.data.data.resData.cupPhone.length > 11 ? Base64.decode(res.data.data.resData.cupPhone) : res.data.data.resData.cupPhone;
// console.log('12',res.data);
this.regData = res.data.data; this.regData = res.data.data;
this.isRegister = true this.isRegister = true
}) })
@ -551,6 +555,11 @@ export default {
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;
data.records.map(item => {
item.cupCardNo = item.cupCardNo.length > 18 ? Base64.decode(item.cupCardNo) : item.cupCardNo;
item.cupName = item.cupName.length > 7 ? Base64.decode(item.cupName) : item.cupName;
item.cupPhone = item.cupPhone.length > 11 ? Base64.decode(item.cupPhone) : item.cupPhone;
})
this.data = data.records; this.data = data.records;
this.loading = false; this.loading = false;
}); });
@ -659,7 +668,7 @@ export default {
.mess_box { .mess_box {
width: 100%; width: 100%;
height: 123px; min-height: 123px;
background: #F5F6FA; background: #F5F6FA;
border-radius: 8px; border-radius: 8px;
display: flex; display: flex;

@ -26,8 +26,8 @@ module.exports = {
proxy: { proxy: {
"/api": { "/api": {
//本地服务接口地址 //本地服务接口地址
// target: "http://192.168.1.3:8088", target: "http://192.168.1.3:8080",
target: "http://192.168.1.106:80", // target: "http://192.168.1.106",
//远程演示服务地址,可用于直接启动项目 //远程演示服务地址,可用于直接启动项目
// target: 'https://saber.bladex.vip/api', // target: 'https://saber.bladex.vip/api',
ws: true, ws: true,

Loading…
Cancel
Save