|
|
@ -1,5 +1,13 @@
|
|
|
|
import {generalInterfaceList, getSimulateData} from '@/api/board/getData'
|
|
|
|
import {generalInterfaceList, getSimulateData} from '@/api/board/getData'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let screenData = (e) => {
|
|
|
|
|
|
|
|
if (e.data !== undefined) {
|
|
|
|
|
|
|
|
return e.data
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return e
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function mixData(params) {
|
|
|
|
export function mixData(params) {
|
|
|
|
getSimulateData({customCode: params?.e || ''}).then(val => {
|
|
|
|
getSimulateData({customCode: params?.e || ''}).then(val => {
|
|
|
|
if (val.rows.length > 0 && val.rows[0].isFlag === 0) {
|
|
|
|
if (val.rows.length > 0 && val.rows[0].isFlag === 0) {
|
|
|
@ -7,13 +15,16 @@ export function mixData(params) {
|
|
|
|
(params?.f || (() => {
|
|
|
|
(params?.f || (() => {
|
|
|
|
}))(data)
|
|
|
|
}))(data)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
let type = params.t || 1
|
|
|
|
|
|
|
|
if (type === 1) {
|
|
|
|
generalInterfaceList({
|
|
|
|
generalInterfaceList({
|
|
|
|
method: params?.i || ''
|
|
|
|
method: params?.i || ''
|
|
|
|
}).then(val2 => {
|
|
|
|
}).then(val2 => {
|
|
|
|
(params?.f || (() => {
|
|
|
|
(params?.f || (() => {
|
|
|
|
}))(val2?.data || [])
|
|
|
|
}))(screenData(val2) || [])
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|