|
|
@ -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,12 +15,15 @@ export function mixData(params) {
|
|
|
|
(params?.f || (() => {
|
|
|
|
(params?.f || (() => {
|
|
|
|
}))(data)
|
|
|
|
}))(data)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
generalInterfaceList({
|
|
|
|
let type = params.t || 1
|
|
|
|
method: params?.i || ''
|
|
|
|
if (type === 1) {
|
|
|
|
}).then(val2 => {
|
|
|
|
generalInterfaceList({
|
|
|
|
(params?.f || (() => {
|
|
|
|
method: params?.i || ''
|
|
|
|
}))(val2?.data || [])
|
|
|
|
}).then(val2 => {
|
|
|
|
})
|
|
|
|
(params?.f || (() => {
|
|
|
|
|
|
|
|
}))(screenData(val2) || [])
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|