修改接口

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

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

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

Loading…
Cancel
Save