敏感字段加密

main
xuechunyuan 3 years ago
parent 51839e7fbc
commit cdc3e7ad54
  1. 1
      package.json
  2. 4
      src/main.js
  3. 4
      src/views/HomeView.vue
  4. 19
      src/views/examProject.vue
  5. 4
      src/views/examination.vue
  6. 17
      src/views/myExam.vue
  7. 6176
      yarn.lock

@ -10,6 +10,7 @@
"dependencies": {
"axios": "^1.3.2",
"core-js": "^3.8.3",
"js-base64": "^3.7.5",
"vant": "^2.12.53",
"vconsole": "^3.15.0",
"vue": "^2.6.14",

@ -6,14 +6,16 @@ import store from "./store";
import vant from "vant";
import "vant/lib/index.css";
import GlobalConfig from "./utils/aisdapp";
import { Base64 } from "js-base64";
import VConsole from "vconsole";
let vConsole = new VConsole();
// let vConsole = new VConsole();
Vue.use(vant);
Vue.config.productionTip = false;
Vue.prototype.GlobalConfig = GlobalConfig;
Vue.prototype.Base64 = Base64;
new Vue({
router,

@ -125,7 +125,7 @@ export default {
})
if (this.GlobalConfig.appMode) {
try {
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdyhhmdyz", JSON.stringify({ cupCardNo: this.userInfo.papersnumber }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => {
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdyhhmdyz", JSON.stringify({ cupCardNo: this.Base64.encode(this.userInfo.papersnumber) }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => {
this.$toast.clear();
let retData = JSON.parse(value);
if (retData.code == 200 && retData.data) {
@ -143,7 +143,7 @@ export default {
}
else {
try {
checkBacklist(this.userInfo.papersnumber).then(res => {
checkBacklist(this.Base64.encode(this.userInfo.papersnumber)).then(res => {
this.$toast.clear();
if (res.data) {
this.errMsg = res.data;

@ -1,6 +1,6 @@
<template>
<div class="pro_con">
<div class="pro_box" v-for="(item,index) in proArr" :key="item.time">
<div class="pro_box" v-for="(item, index) in proArr" :key="item.time">
<div class="pro_top">
<div class="img_box">
<img src="~@/assets/image/time.png" alt="" />
@ -68,11 +68,12 @@ export default {
};
},
mounted() {
console.log(this.$route.params);
console.log('query', this.$route.query);
this.userInfo = JSON.parse(sessionStorage.getItem('userInfo'))
console.log(this.userInfo)
this.proData = this.$route.params;
this.proData.selectArr.map(item => {
console.log(this.userInfo);
this.proData = this.$route.query;
let selectArr = JSON.parse(this.proData.selectArr);
selectArr.map(item => {
this.proArr.push({
apmDay: this.proData.time,
createDept: this.proData.createDept,
@ -80,16 +81,16 @@ export default {
cuAddr: item.posi,
period: item.time.substr(0, 2),
timeFrame: item.time.substr(3),
cupName: this.userInfo.name,
cupPhone: this.userInfo.mobile,
cupCardNo: this.userInfo.papersnumber
cupName: this.Base64.encode(this.userInfo.name),
cupPhone: this.Base64.encode(this.userInfo.mobile),
cupCardNo: this.Base64.encode(this.userInfo.papersnumber)
})
})
// console.log("proArr",this.proArr)
},
methods: {
cancelButton(idx) {
this.proArr.splice(idx,1);
this.proArr.splice(idx, 1);
// this.proArr = this.proArr.filter(item => item.name != val.name)
if (this.proArr.length === 0) {
this.$router.go(-1);

@ -435,10 +435,10 @@ export default {
handleExam(){
this.$router.push({
name:'ExamProject',
params:{
query:{
time:this.selectDate,
createDept:this.hospitalId,
selectArr:this.selectArr
selectArr:JSON.stringify(this.selectArr)
}
})
},

@ -58,7 +58,7 @@ export default {
isFinished: false,
examArr: [],
userInfo: null,
loading:true,
loading: true,
systemTime: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'),
setInterval: 0,
interVal: null,
@ -118,7 +118,9 @@ export default {
})
try {
if (this.GlobalConfig.appMode) {
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdckwdyy", JSON.stringify({ createDept: "", cupCardNo: this.userInfo.papersnumber, current: this.current, size: this.size }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => {
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdckwdyy", JSON.stringify({ createDept: "", cupCardNo: this.Base64.encode(this.userInfo.papersnumber), current: this.current, size: this.size }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => {
this.$toast.clear();
let retData = JSON.parse(value);
if (retData.code == 200) {
@ -153,7 +155,7 @@ export default {
// }
this.examArr = [...this.examArr, ...list];
console.log(this.examArr)
if(retData.data.records.length == 0 ) {
if (retData.data.records.length == 0) {
// console.log('ces')
this.isFinished = true
} else {
@ -165,9 +167,10 @@ export default {
}, err => {
this.$toast.clear();
})
}
else {
myRecord("", this.userInfo.papersnumber, this.current, this.size).then(res => {
myRecord("", this.Base64.encode(this.userInfo.papersnumber), this.current, this.size).then(res => {
this.$toast.clear();
let list = res.data.records;
// if(res.data.pages > 1){
@ -366,7 +369,7 @@ export default {
this.$toast('操作成功');
this.examArr.map(item => {
let tmp = item.details.find(item1 => item1.id == row.id)
if(tmp){
if (tmp) {
tmp.apmStatus = 1;
}
})
@ -389,11 +392,11 @@ export default {
this.examArr.map(item => {
let tmp = item.details.find(item1 => item1.id == row.id)
if(tmp){
if (tmp) {
tmp.apmStatus = 1
}
})
this.$toast.clear()
this.$toast.clear()
// setTimeout(() => {
// this.current = 1;
// this.examArr = [];

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save