首先jhtx已经升级好。
import {app_fieldEecodex, app_fieldDecodex} from './common/encode.js'
Vue.prototype.$fieldEncode = app_fieldEecodex; // 全局方法
Vue.prototype.$fieldDecode = app_fieldDecodex;
// 解密数据
this.patientData.forEach((item, index) => {
this.patientData[index]['patient_id_no'] = this.$fieldDecode(item.patient_id_no);
this.patientData[index]['patient_mobile_no'] = this.$fieldDecode(item.patient_mobile_no);
})