- 解密:that.$crypto.decryptByDES(valueT)
setInitDataValueObject(that) {
let valueT=that.value;
that.valueT[`${that.item.field}`] = valueT;
if(valueT){
that.valueT[`${that.item.field}V`] =that.$crypto.decryptByDES(valueT) || valueT;
}else{
that.valueT[`${that.item.field}V`] =valueT;
}
that.valueT = JSON.parse(JSON.stringify(that.valueT));
}
//数据显示解密
if (that.data.bdBbrIdcard) {
that.data.bdBbrIdcard=that.$crypto.decryptByDES(that.data.bdBbrIdcard);
}
if (that.data.bdTbrIdcard) {
that.data.bdTbrIdcard=that.$crypto.decryptByDES(that.data.bdTbrIdcard);
}
- 加密:that.$crypto.encryptByDES(that.changeValueT.valueV);
//数据变更必须设置,用于保存
if (that.changeValueT.valueV) {
thatRoot.value.changeField[`${that.item.field}`] = that.$crypto.encryptByDES(that.changeValueT.valueV);
} else {
thatRoot.value.changeField[`${that.item.field}`] = null;
}
//数据保存加密
if (dataT.bdBbrIdcard) {
dataT.bdBbrIdcard = that.$crypto.encryptByDES(dataT.bdBbrIdcard);
}
if (dataT.bdTbrIdcard) {
dataT.bdTbrIdcard = that.$crypto.encryptByDES(dataT.bdTbrIdcard);
}
文档更新时间: 2022-09-18 13:25 作者:admin