Compare commits
2 Commits
e148b3a5d4
...
86e101e091
| Author | SHA1 | Date | |
|---|---|---|---|
| 86e101e091 | |||
| ac1e2d27b8 |
@ -336,20 +336,26 @@ struct Index {
|
|||||||
// 获取场地设备信息
|
// 获取场地设备信息
|
||||||
async initCDSBInfo() {
|
async initCDSBInfo() {
|
||||||
const cdsbParams = await getSyncData('MA_CDSBINFO')
|
const cdsbParams = await getSyncData('MA_CDSBINFO')
|
||||||
|
//只记录考试项目的模型
|
||||||
|
const projectsObj = this.projectsObj
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
cdsbParams.forEach((cdsb) => {
|
cdsbParams.forEach((cdsb) => {
|
||||||
const key = decodeURI(cdsb.itemsno);
|
const key = decodeURI(cdsb.itemsno);
|
||||||
const newKey = key.split('~').join('_')
|
const newKey = key.split('~').join('_')
|
||||||
|
//@ts-ignore
|
||||||
|
const xmdm = key.split('~')[0] * 1
|
||||||
|
if(projectsObj[xmdm]){
|
||||||
this.cdsbInfoObj[newKey] = {
|
this.cdsbInfoObj[newKey] = {
|
||||||
kdid: cdsb.kdid,
|
kdid: cdsb.kdid,
|
||||||
sbbh: cdsb.sbbh,
|
sbbh: cdsb.sbbh,
|
||||||
sbbm: cdsb.sbbm,
|
sbbm: cdsb.sbbm,
|
||||||
itemsno: key,
|
itemsno: key,
|
||||||
modelKey: newKey,
|
modelKey: newKey,
|
||||||
//@ts-ignore
|
xmdm,
|
||||||
xmdm: key.split('~')[0] * 1,
|
|
||||||
xmxh: key.split('~')[1],
|
xmxh: key.split('~')[1],
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user