This commit is contained in:
parent
bdca51254b
commit
87cb556165
|
|
@ -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
Loading…
Reference in New Issue