敏感字段加密

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": { "dependencies": {
"axios": "^1.3.2", "axios": "^1.3.2",
"core-js": "^3.8.3", "core-js": "^3.8.3",
"js-base64": "^3.7.5",
"vant": "^2.12.53", "vant": "^2.12.53",
"vconsole": "^3.15.0", "vconsole": "^3.15.0",
"vue": "^2.6.14", "vue": "^2.6.14",

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

@ -125,7 +125,7 @@ export default {
}) })
if (this.GlobalConfig.appMode) { if (this.GlobalConfig.appMode) {
try { 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(); this.$toast.clear();
let retData = JSON.parse(value); let retData = JSON.parse(value);
if (retData.code == 200 && retData.data) { if (retData.code == 200 && retData.data) {
@ -143,7 +143,7 @@ export default {
} }
else { else {
try { try {
checkBacklist(this.userInfo.papersnumber).then(res => { checkBacklist(this.Base64.encode(this.userInfo.papersnumber)).then(res => {
this.$toast.clear(); this.$toast.clear();
if (res.data) { if (res.data) {
this.errMsg = res.data; this.errMsg = res.data;

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

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

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

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