处理数据调整

This commit is contained in:
fan 2020-10-27 13:19:31 +08:00
parent 66aaa9f201
commit e0ab1506da
2 changed files with 29 additions and 2 deletions

View File

@ -242,7 +242,7 @@ export function parser(data, skinCode, showConfig) {
zrUtil.each(elem.sectionPathList || [], item => { zrUtil.each(elem.sectionPathList || [], item => {
zrUtil.each(item.sectionList || [], section => { zrUtil.each(item.sectionList || [], section => {
if (mapDevice[section] && mapDevice[section].parentCode) { if (mapDevice[section] && mapDevice[section].parentCode) {
mapDevice[mapDevice[section].parentCode].approach = true; (mapDevice[mapDevice[section].parentCode] || {}).approach = true;
} else if (mapDevice[section]) { } else if (mapDevice[section]) {
mapDevice[section].approach = true; mapDevice[section].approach = true;
} }

View File

@ -13,7 +13,34 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="判断题数量"> <el-form-item label="判断题数量">
<el-input-number v-model="formModel.judgeNum" :min="0" :max="10" label="描述文字" /> <el-input-number v-model="formModel.judgeNum" :min="0" :max="10" />
</el-form-item>
<el-form-item label="判断题分数">
<el-input-number v-model="formModel.judgePoint" :min="0" :max="10" />
</el-form-item>
<el-form-item label="单选题数量">
<el-input-number v-model="formModel.selectNum" :min="0" :max="10" />
</el-form-item>
<el-form-item label="单选题分数">
<el-input-number v-model="formModel.selectPoint" :min="0" :max="10" />
</el-form-item>
<el-form-item label="多选题数量">
<el-input-number v-model="formModel.multiNum" :min="0" :max="10" />
</el-form-item>
<el-form-item label="多选题分数">
<el-input-number v-model="formModel.multiPoint" :min="0" :max="10" />
</el-form-item>
<el-form-item label="填空题数量">
<el-input-number v-model="formModel.fillNum" :min="0" :max="10" />
</el-form-item>
<el-form-item label="填空题分数">
<el-input-number v-model="formModel.fillPoint" :min="0" :max="10" />
</el-form-item>
<el-form-item label="填空题数量">
<el-input-number v-model="formModel.answerNum" :min="0" :max="10" />
</el-form-item>
<el-form-item label="填空题分数">
<el-input-number v-model="formModel.answerPoint" :min="0" :max="10" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">