敏感字段加密

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. 15
      src/views/examProject.vue
  5. 4
      src/views/examination.vue
  6. 7
      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;

@ -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,9 +81,9 @@ 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)

@ -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)
}
})
},

@ -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) {
@ -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){

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