修改接口

master
夜笙歌 11 months ago
parent 4de7bbee7e
commit acca36ea8f

@ -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) || [])
}) })
} }
}
}) })
} }

@ -689,7 +689,7 @@ export default {
value2: val.FIXTUREBOXTYPE, value2: val.FIXTUREBOXTYPE,
value3: val.FIXTURESTATUS, value3: val.FIXTURESTATUS,
value4: val.TARGET, value4: val.TARGET,
value5: 0, value5: val.PLAN_SUM,
value6: val.PRO_SUM, value6: val.PRO_SUM,
value7: ((val.PRO_SUM / val.TARGET) * 100).toFixed(2) + '%', value7: ((val.PRO_SUM / val.TARGET) * 100).toFixed(2) + '%',
value8: val.ANHOUR, value8: val.ANHOUR,

Loading…
Cancel
Save