手机号加密解密
This commit is contained in:
parent
3aaa6f7afe
commit
2401617f01
|
|
@ -697,7 +697,9 @@
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
accInfoSumPageApi(param).then(response => {
|
accInfoSumPageApi(param).then(response => {
|
||||||
this.tableListData.push(response.data)
|
this.tableListData.push(response.data)
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,9 @@
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phone&&item.phone!=""){
|
||||||
this.$set(item,"phone",decryptWithSM4(item.phone))
|
this.$set(item,"phone",decryptWithSM4(item.phone))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -433,7 +433,9 @@
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
accInfoSumPageApi(param).then(response => {
|
accInfoSumPageApi(param).then(response => {
|
||||||
this.tableListData.push(response.data)
|
this.tableListData.push(response.data)
|
||||||
|
|
|
||||||
|
|
@ -218,7 +218,9 @@
|
||||||
this.tableListData2 = response.rows;
|
this.tableListData2 = response.rows;
|
||||||
this.total2 = Number(response.total);
|
this.total2 = Number(response.total);
|
||||||
this.tableListData2.forEach(item=>{
|
this.tableListData2.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// if(this.tableListData2.length>0){
|
// if(this.tableListData2.length>0){
|
||||||
// this.tableListData2.push(response.data.sumVO)
|
// this.tableListData2.push(response.data.sumVO)
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,9 @@
|
||||||
this.tableListData1 = response.rows;
|
this.tableListData1 = response.rows;
|
||||||
this.total1 = Number(response.total);
|
this.total1 = Number(response.total);
|
||||||
this.tableListData1.forEach(item=>{
|
this.tableListData1.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// if(this.tableListData1.length>0){
|
// if(this.tableListData1.length>0){
|
||||||
// this.tableListData1.push(response.data.sumVO)
|
// this.tableListData1.push(response.data.sumVO)
|
||||||
|
|
|
||||||
|
|
@ -592,7 +592,9 @@ export default {
|
||||||
this.tableListData1 = response.rows;
|
this.tableListData1 = response.rows;
|
||||||
this.total1 = Number(response.total);
|
this.total1 = Number(response.total);
|
||||||
this.tableListData1.forEach(item=>{
|
this.tableListData1.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// if(this.tableListData1.length>0){
|
// if(this.tableListData1.length>0){
|
||||||
// this.tableListData1.push(response.data.sumVO)
|
// this.tableListData1.push(response.data.sumVO)
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,9 @@
|
||||||
this.tableListData2 = response.rows;
|
this.tableListData2 = response.rows;
|
||||||
this.total2 = Number(response.total);
|
this.total2 = Number(response.total);
|
||||||
this.tableListData2.forEach(item=>{
|
this.tableListData2.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// if(this.tableListData2.length>0){
|
// if(this.tableListData2.length>0){
|
||||||
// this.tableListData2.push(response.data.sumVO)
|
// this.tableListData2.push(response.data.sumVO)
|
||||||
|
|
|
||||||
|
|
@ -657,7 +657,9 @@
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -593,7 +593,9 @@
|
||||||
this.tableListData1 = response.rows;
|
this.tableListData1 = response.rows;
|
||||||
this.total1 = Number(response.total);
|
this.total1 = Number(response.total);
|
||||||
this.tableListData1.forEach(item=>{
|
this.tableListData1.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// if(this.tableListData1.length>0){
|
// if(this.tableListData1.length>0){
|
||||||
// this.tableListData1.push(response.data.sumVO)
|
// this.tableListData1.push(response.data.sumVO)
|
||||||
|
|
@ -655,7 +657,9 @@
|
||||||
this.tableListData2 = response.rows;
|
this.tableListData2 = response.rows;
|
||||||
this.total2 = Number(response.total);
|
this.total2 = Number(response.total);
|
||||||
this.tableListData2.forEach(item=>{
|
this.tableListData2.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// if(this.tableListData2.length>0){
|
// if(this.tableListData2.length>0){
|
||||||
// this.tableListData2.push(response.data.sumVO)
|
// this.tableListData2.push(response.data.sumVO)
|
||||||
|
|
@ -682,7 +686,9 @@
|
||||||
this.tableListData3 = response.data.pageVO.records;
|
this.tableListData3 = response.data.pageVO.records;
|
||||||
this.total3 = Number(response.data.pageVO.total);
|
this.total3 = Number(response.data.pageVO.total);
|
||||||
this.tableListData3.forEach(item=>{
|
this.tableListData3.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if(this.tableListData3.length>0){
|
if(this.tableListData3.length>0){
|
||||||
this.tableListData3.push(response.data.sumVO)
|
this.tableListData3.push(response.data.sumVO)
|
||||||
|
|
@ -709,7 +715,9 @@
|
||||||
this.tableListData4 = response.data.resultPage.records;
|
this.tableListData4 = response.data.resultPage.records;
|
||||||
this.total4 = Number(response.data.resultPage.total);
|
this.total4 = Number(response.data.resultPage.total);
|
||||||
this.tableListData4.forEach(item=>{
|
this.tableListData4.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if(this.tableListData4.length>0){
|
if(this.tableListData4.length>0){
|
||||||
this.tableListData4.push(response.data.totalLine)
|
this.tableListData4.push(response.data.totalLine)
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
if(item.contactTel){
|
if(item.contactTel&&item.contactTel!=""){
|
||||||
this.$set(item,"contactTel",decryptWithSM4(item.contactTel))
|
this.$set(item,"contactTel",decryptWithSM4(item.contactTel))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -487,7 +487,9 @@ export default {
|
||||||
getHealthInfoPageApi(param).then(response => {
|
getHealthInfoPageApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.mobile&&item.mobile!=""){
|
||||||
this.$set(item,"mobile",decryptWithSM4(item.mobile))
|
this.$set(item,"mobile",decryptWithSM4(item.mobile))
|
||||||
|
}
|
||||||
});
|
});
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
||||||
|
|
@ -710,7 +710,9 @@
|
||||||
orderPageListApi(param).then(response => {
|
orderPageListApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
||||||
|
|
@ -679,7 +679,9 @@ export default {
|
||||||
orderPageListApi(param).then(response => {
|
orderPageListApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
||||||
|
|
@ -535,7 +535,9 @@
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -435,7 +435,7 @@ export default {
|
||||||
console.log("param",param);
|
console.log("param",param);
|
||||||
getIntoRecordsListApi(param).then(response => {
|
getIntoRecordsListApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
console.log("this.tableListData",this.tableListData);
|
// console.log("this.tableListData",this.tableListData);
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
this.$set(item,"mobile",this.getDecryptWithSM4(item.mobile))
|
this.$set(item,"mobile",this.getDecryptWithSM4(item.mobile))
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getStaffMorningCheckApi,getUserInfoApi } from "@/api/kitchen/staff";
|
import { getStaffMorningCheckApi,getUserInfoApi } from "@/api/kitchen/staff";
|
||||||
|
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
|
||||||
export default {
|
export default {
|
||||||
name: "",
|
name: "",
|
||||||
dicts: [],
|
dicts: [],
|
||||||
|
|
@ -131,6 +131,11 @@ export default {
|
||||||
}
|
}
|
||||||
getStaffMorningCheckApi(param).then(response => {
|
getStaffMorningCheckApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.mobile&&item.mobile!=""){
|
||||||
|
this.$set(item,"mobile",decryptWithSM4(item.mobile))
|
||||||
|
}
|
||||||
|
});
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -749,7 +749,9 @@ export default {
|
||||||
getStaffListApi(param).then(response => {
|
getStaffListApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.tableListData.forEach(item=>{
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.mobile&&item.mobile!=""){
|
||||||
this.$set(item,"mobile",decryptWithSM4(item.mobile))
|
this.$set(item,"mobile",decryptWithSM4(item.mobile))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
||||||
|
|
@ -1001,7 +1001,7 @@ export default {
|
||||||
this.userList = response.rows
|
this.userList = response.rows
|
||||||
this.total = response.total
|
this.total = response.total
|
||||||
// this.userList.forEach(item=>{
|
// this.userList.forEach(item=>{
|
||||||
// if(item.phonenumber){
|
// if(item.phonenumber&&item.phonenumber!=""){
|
||||||
// this.$set(item,"phonenumber",decryptWithSM4(item.phonenumber))
|
// this.$set(item,"phonenumber",decryptWithSM4(item.phonenumber))
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
|
|
@ -1158,10 +1158,10 @@ export default {
|
||||||
const userId = row.userId || this.ids
|
const userId = row.userId || this.ids
|
||||||
getUser(userId).then((response) => {
|
getUser(userId).then((response) => {
|
||||||
this.form = response.data
|
this.form = response.data
|
||||||
// if(this.form.phonenumber){
|
// if(this.form.phonenumber&&this.form..phonenumber!=""){
|
||||||
// this.$set(this.form,"phonenumber",decryptWithSM4(response.data.phonenumber))
|
// this.$set(this.form,"phonenumber",decryptWithSM4(response.data.phonenumber))
|
||||||
// }
|
// }
|
||||||
// if(this.form.email){
|
// if(this.form.email&&this.form..email!=""){
|
||||||
// this.$set(this.form,"email",decryptWithSM4(response.data.email))
|
// this.$set(this.form,"email",decryptWithSM4(response.data.email))
|
||||||
// }
|
// }
|
||||||
const loginType = response.data.loginType
|
const loginType = response.data.loginType
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue