This commit is contained in:
hongchao 2025-07-29 10:28:26 +08:00
parent bdca51254b
commit 87cb556165
2 changed files with 101 additions and 11 deletions

View File

@ -148,6 +148,7 @@ import { getMachine, insertApp, getSelectMachineByIdApi } from '../../services/b
import ScanQrCode from '@/pages/devicesSearch/ScanQrCode.vue'
import { baseURL } from '@/utils/http'
import eselect from '@/components/tree-select/eselect.vue'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
const taskInfo = ref({})
const maId = ref('') //
const maCode = ref('') //
@ -338,6 +339,12 @@ const getMaInfoScan = () => {
data: param,
success: (res) => {
console.log(res)
if(!res.data.code){
res = JSON.parse(decryptWithSM4(res.data))
}else{
res = JSON.parse(res.data)
}
console.log("xxxxxxxxxxxxxxxx",res)
if (res.code == 200) {
console.log(res)
console.log(res.data[0])
@ -350,7 +357,7 @@ const getMaInfoScan = () => {
}else{
uni.showModal({
title: '错误提示',
content: res.data.msg,
content: res.msg,
showCancel: false, //
confirmText: '关闭',
success: (res) => {

File diff suppressed because one or more lines are too long