Commit 34842ddc authored by 李维's avatar 李维

添加分数显示

parent b46f3efc
......@@ -36,6 +36,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initHeaderAndFooter();
await this.initHotZoneBg();
this.initHotZoneItem();
this.initScorePanel();
}
// 初始化屏幕储存
......@@ -193,14 +194,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
break;
}
});
// 根据分数配置 生成提交和重做按钮
this.data.scoreConfigArr.forEach(scoreConfig => {
scoreConfig.linkHotZoneIndexArr.forEach(scoreItemIndex => {
});
});
// 配置提交按钮
this.setSubmitBtn(this.data.hotZoneItemArr[this.data.submitHotZoneIndex]);
this.setSubmitDisableBtn(this.data.hotZoneItemArr[this.data.submitHotZoneIndex]);
......@@ -211,6 +204,53 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 检查是否可以提交
this.checkCanSubmit();
};
// 初始化分数牌
subScorePanels = [];
totalScorePanel = null;
initScorePanel() {
// 总分节点
// this.totalScorePanel =
if(!isNaN(this.data.totalScoreHotZoneIndex)) {
const totalNode = this.setScorePanel(this.data.hotZoneItemArr[this.data.totalScoreHotZoneIndex], 15);
totalNode.score = 0;
totalNode.totalScore = 0;
this.totalScorePanel = totalNode;
} else {
this.totalScorePanel = {
node: null,
setScore: ()=>{0},
score: 0,
totalScore: 0,
}
}
// 计算每个分数显示区的数据
this.subScorePanels = [];
this.data.scoreConfigArr.forEach(scoreConfig => {
const config = this.setScorePanel(this.data.hotZoneItemArr[scoreConfig.linkHotZoneIndex], 15);
config.score = 0;
config.totalScore = 0;
scoreConfig.linkHotZoneIndexArr.forEach(scoreItemIndex => {
const contentItem = this.data.hotZoneConfigArr[scoreItemIndex];
// 类型4 热区多选组 分数存储在选项中 -- 其他类型存储在contentItem中
if(contentItem.hotZoneType == "4") {
contentItem.contentList.forEach(item => {
if(item.score && !isNaN(Number(item.score))) {
config.totalScore += Number(item.score);
}
});
} else {
if(contentItem.score && !isNaN(Number(contentItem.score))) {
config.totalScore += Number(contentItem.score);
}
}
});
// 统计全部总分
this.totalScorePanel.totalScore += config.totalScore;
// 存全局数组 在提交时设置分时
this.subScorePanels.push(config);
});
}
// 检查是否可以提交 - 完成全部配置的问题
checkCanSubmit() {
......@@ -529,6 +569,19 @@ export default class SceneComponent extends MyCocosSceneComponent {
})
};
// 生成一个分数板
setScorePanel(data, totalScore, debugMode=false) {
const rect = this.newRectNode(data, debugMode);
const node = this.newTextNode(` /${totalScore}`);
const setScore = (score) => {
node.getComponent(cc.Label).string = `${score}/${totalScore}`
}
node.x = rect.width / 2;
node.y = rect.height / 2;
rect.addChild(node);
return {node, setScore}
}
// 新建矩形区域
newRectNode(data, debugMode) {
const rate = (this.hotZoneBg.scale * this.hotZoneBg.width) / this.data.bgItem.rect.width;
......@@ -594,6 +647,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
return {sprNode, picNode};
}
// 新建文本节点
newTextNode(text) {
const textNode = new cc.Node();
textNode.name= '_text_';
const label = textNode.addComponent(cc.Label);
const color = new cc.Color();
cc.Color.fromHEX(color, "#333333");
textNode.color = color;
label.string = text;
label.lineHeight = 26;
label.fontSize = 26;
label.verticalAlign = 2;
label.horizontalAlign = 2;
return textNode;
}
// 新建输入文字节点
newInputTextNode(text, styleType) {
const inputNode = new cc.Node();
......@@ -675,6 +744,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
})
console.log(scoreCconfigArr);
let totalScore = 0;
scoreCconfigArr.forEach((score, index) => {
totalScore += score.score;
this.subScorePanels[index].setScore(score.score);
})
this.totalScorePanel.setScore(totalScore);
// 标记已经提交 禁止页面事件
this.submitted = true;
if(this.btnSubmit) {
......@@ -699,6 +775,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.onSelectedCallback = null;
this.onKeyboardEnterCallback = null;
this.submitted = false;
this.subScorePanels = [];
this.totalScorePanel = null;
this.hotZoneBg.children.forEach(child=>{
child.destroy();
......@@ -706,6 +784,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
await this.initHotZoneBg();
this.initHotZoneItem();
this.initScorePanel();
}
// 同步方式显示选择模态框
......
......@@ -135,4 +135,4 @@
// "typeArr": []
// }
export const defaultData = {"hotZoneConfigArr":[{"linkHotZoneIndex":0,"contentList":[{"index":0,"text":"item-1"}],"hotZoneType":"2","audio_url":"http://staging-teach.cdn.ireadabc.com/2bf96923b83ee0c5f20930386ce07384.mp3","score":"1"},{"linkHotZoneIndex":1,"contentList":[{"index":0,"text":"1","isCorrect":true},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":2,"contentList":[{"index":0,"text":"item-1","selectHotZoneIndex":2,"isCorrect":true},{"text":"","image_url":"","hotZoneIndex":null,"score":0,"selectHotZoneIndex":3}],"hotZoneType":"4","score":"2"},{"linkHotZoneIndex":4,"contentList":[{"index":0,"text":"item-1"}],"hotZoneType":"5","inputText":"Hello World"},{"linkHotZoneIndex":9,"contentList":[{"index":0,"text":"1"},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":true}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":10,"contentList":[{"index":0,"text":"1"},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":true}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":1,"contentList":[{"index":0,"text":"item-1","selectHotZoneIndex":11,"isCorrect":true,"isCheck":true,"score":"4"},{"text":"","image_url":"","hotZoneIndex":null,"score":"3","selectHotZoneIndex":12,"isCorrect":true,"isCheck":true},{"text":"","image_url":"","hotZoneIndex":null,"score":"2","selectHotZoneIndex":13,"isCorrect":true,"isCheck":false}],"hotZoneType":"4"}],"scoreConfigArr":[{"linkHotZoneIndex":7,"linkHotZoneIndexArr":[4,5,1]},{"linkHotZoneIndex":8,"linkHotZoneIndexArr":[2]},{"linkHotZoneIndex":14,"linkHotZoneIndexArr":[6]}],"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/5c84b987ea2291c8d6013fffd39dda32.png","rect":{"x":114.9517453798768,"y":0,"width":807.0965092402464,"height":1136}},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1-音频","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":299.5,"y":147.37,"width":30.7,"height":30.7}},{"index":1,"itemType":"rect","itemName":"1-1选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":154.51,"y":303.95,"width":27.3,"height":27.3}},{"index":2,"itemType":"rect","itemName":"2-1Alex","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":112.21,"y":390.95,"width":42.3,"height":25.25}},{"index":3,"itemType":"rect","itemName":"2-1Anna","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":159.97,"y":391.62,"width":53.21,"height":23.88}},{"index":4,"itemType":"rect","itemName":"3-1输入文本","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":336.69,"y":715.71,"width":136.45,"height":26.61}},{"index":5,"itemType":"rect","itemName":"提交按钮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":455.88,"y":1030.33,"width":102.33,"height":30.7}},{"index":6,"itemType":"rect","itemName":"重做按钮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":236.78,"y":1032.21,"width":90.06,"height":27.97}},{"index":7,"itemType":"rect","itemName":"1得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":709.9,"y":148.05,"width":50.48,"height":27.97}},{"index":8,"itemType":"rect","itemName":"2得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":709.9,"y":354.79,"width":51.85,"height":26.61}},{"index":9,"itemType":"rect","itemName":"1-2选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":271.38,"y":304.38,"width":25.45,"height":25.45}},{"index":10,"itemType":"rect","itemName":"1-3选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":384.57,"y":302.97,"width":29.65,"height":29.65}},{"index":11,"itemType":"rect","itemName":"1-4","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":499.8,"y":302.98,"width":28.47,"height":28.47}},{"index":12,"itemType":"rect","itemName":"1-5","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":615.03,"y":302.3,"width":29.82,"height":29.82}},{"index":13,"itemType":"rect","itemName":"1-6","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":730.25,"y":302.98,"width":28.47,"height":28.47}},{"index":14,"itemType":"rect","itemName":"得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":714.66,"y":660.86,"width":36.6,"height":36.6}}],"submitHotZoneIndex":5,"replayHotZoneIndex":6,"isDebug":false,"header_image_url":"http://staging-teach.cdn.ireadabc.com/a4427e34c15b3360ff0554071d676455.png","footer_image_url":"http://staging-teach.cdn.ireadabc.com/bac2bf6c1a9acb0abdeddde3289442e6.png"}
\ No newline at end of file
export const defaultData = {"hotZoneConfigArr":[{"linkHotZoneIndex":0,"contentList":[{"index":0,"text":"item-1"}],"hotZoneType":"2","audio_url":"http://staging-teach.cdn.ireadabc.com/2bf96923b83ee0c5f20930386ce07384.mp3","score":"1"},{"linkHotZoneIndex":1,"contentList":[{"index":0,"text":"1","isCorrect":true},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":2,"contentList":[{"index":0,"text":"item-1","selectHotZoneIndex":2,"isCorrect":true},{"text":"","image_url":"","hotZoneIndex":null,"score":0,"selectHotZoneIndex":3}],"hotZoneType":"3","score":"2"},{"linkHotZoneIndex":4,"contentList":[{"index":0,"text":"item-1"}],"hotZoneType":"5","inputText":"Hello World"},{"linkHotZoneIndex":9,"contentList":[{"index":0,"text":"1"},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":true}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":10,"contentList":[{"index":0,"text":"1"},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":true}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":1,"contentList":[{"index":0,"text":"item-1","selectHotZoneIndex":11,"isCorrect":true,"isCheck":true,"score":"4"},{"text":"","image_url":"","hotZoneIndex":null,"score":"3","selectHotZoneIndex":12,"isCorrect":true,"isCheck":true},{"text":"","image_url":"","hotZoneIndex":null,"score":"2","selectHotZoneIndex":13,"isCorrect":true,"isCheck":false}],"hotZoneType":"4"}],"scoreConfigArr":[{"linkHotZoneIndex":7,"linkHotZoneIndexArr":[4,5,1]},{"linkHotZoneIndex":8,"linkHotZoneIndexArr":[2]},{"linkHotZoneIndex":14,"linkHotZoneIndexArr":[6]}],"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/5c84b987ea2291c8d6013fffd39dda32.png","rect":{"x":129.32340862422996,"y":0,"width":892.3531827515401,"height":1256}},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1-音频","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":331.14,"y":162.94,"width":33.94,"height":33.94}},{"index":1,"itemType":"rect","itemName":"1-1选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":170.83,"y":336.06,"width":30.18,"height":30.18}},{"index":2,"itemType":"rect","itemName":"2-1Alex","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":124.06,"y":432.25,"width":46.77,"height":27.92}},{"index":3,"itemType":"rect","itemName":"2-1Anna","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":176.87,"y":432.99,"width":58.83,"height":26.4}},{"index":4,"itemType":"rect","itemName":"3-1输入文本","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":372.26,"y":791.31,"width":150.86,"height":29.42}},{"index":5,"itemType":"rect","itemName":"提交按钮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":504.04,"y":1139.17,"width":113.14,"height":33.94}},{"index":6,"itemType":"rect","itemName":"重做按钮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":261.79,"y":1141.25,"width":99.57,"height":30.92}},{"index":7,"itemType":"rect","itemName":"1得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":784.89,"y":163.69,"width":55.81,"height":30.92}},{"index":8,"itemType":"rect","itemName":"2得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":784.89,"y":392.27,"width":57.33,"height":29.42}},{"index":9,"itemType":"rect","itemName":"1-2选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":300.05,"y":336.53,"width":28.14,"height":28.14}},{"index":10,"itemType":"rect","itemName":"1-3选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":425.19,"y":334.97,"width":32.78,"height":32.78}},{"index":11,"itemType":"rect","itemName":"1-4","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":552.6,"y":334.98,"width":31.48,"height":31.48}},{"index":12,"itemType":"rect","itemName":"1-5","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":680,"y":334.23,"width":32.97,"height":32.97}},{"index":13,"itemType":"rect","itemName":"1-6","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":807.39,"y":334.98,"width":31.48,"height":31.48}},{"index":14,"itemType":"rect","itemName":"得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":790.15,"y":730.67,"width":40.47,"height":40.47}},{"index":15,"itemType":"rect","itemName":"总分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.89921875,"imgScale":1,"mapScale":0.89921875,"rect":{"x":731.68,"y":1129,"width":111,"height":54}}],"submitHotZoneIndex":5,"replayHotZoneIndex":6,"isDebug":false,"header_image_url":"http://staging-teach.cdn.ireadabc.com/a4427e34c15b3360ff0554071d676455.png","footer_image_url":"http://staging-teach.cdn.ireadabc.com/bac2bf6c1a9acb0abdeddde3289442e6.png","totalScoreHotZoneIndex":15}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -128,7 +128,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
onBackgroundUploadSuccess(e) {
console.log('e: ', e);
this.bgItem.url = e.url;
this.refreshBackground();
}
......@@ -278,8 +277,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
textLabel.fontName = this.hotZoneFontObj.name;
textLabel.fontColor = this.hotZoneFontObj.color;
textLabel.textAlign = 'center';
// textLabel.setOutline();
// console.log('saveData:', saveData);
item['textLabel'] = textLabel;
textLabel.setScaleXY(this.mapScale);
if (saveData && saveData.text) {
......@@ -351,10 +348,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
radioChange(e, item) {
item.itemType = e;
this.refreshItem(item);
// console.log(' in radioChange e: ', e);
}
refreshItem(item) {
......@@ -387,29 +381,17 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
this.bgItem = {};
} else {
this.refreshBackground(() => {
// if (!this.imgItemArr) {
// this.imgItemArr = [];
// } else {
// this.initImgArr();
// }
// console.log('aaaaa');
if (!this.hotZoneItemArr) {
this.hotZoneItemArr = [];
} else {
this.initHotZoneArr();
}
});
}
}
initHotZoneArr() {
// console.log('this.hotZoneArr: ', this.hotZoneArr);
let curBgRect;
if (this.bg) {
curBgRect = this.bg.getBoundingBox();
......@@ -423,9 +405,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
}
const rate = curBgRect.width / oldBgRect.width;
console.log('rate: ', rate);
this.hotZoneArr = [];
const arr = this.hotZoneItemArr.concat();
for (let i = 0; i < arr.length; i++) {
......@@ -453,7 +432,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
item.itemName = data.itemName;
this.refreshItem(item);
console.log('item: ', item);
this.hotZoneArr.push(item);
}
......@@ -466,8 +444,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
initImgArr() {
console.log('this.imgItemArr: ', this.imgItemArr);
let curBgRect;
if (this.bg) {
curBgRect = this.bg.getBoundingBox();
......@@ -482,8 +458,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
const rate = curBgRect.width / oldBgRect.width;
console.log('rate: ', rate);
this.imgArr = [];
const arr = this.imgItemArr.concat();
for (let i = 0; i < arr.length; i++) {
......@@ -617,9 +591,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
}
s = lenH / this.curItem.height;
}
// console.log('s: ', s);
this.curItem.setScaleXY(s);
this.curItem.refreshLabelScale();
}
......@@ -646,9 +617,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
}
s = lenH / this.curItem.height;
// }
// console.log('s: ', s);
this.curItem.scaleY = s;
this.curItem.refreshLabelScale();
}
......@@ -894,9 +862,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
hotZoneItemArr.push(hotZoneItem);
}
console.log('hotZoneItemArr: ', hotZoneItemArr);
this.save.emit({bgItem, hotZoneItemArr});
}
......
......@@ -173,6 +173,13 @@
</div>
<button nz-button nzType="danger" nzDanger nz-popconfirm nzPopconfirmTitle="删除后不可恢复,确定删除吗?" nzPopconfirmPlacement="bottom" (nzOnConfirm)="deleteScoreConfig(i)" style="position: absolute; right: 10px; bottom: 10px;">删除</button>
</div>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 100px;">总分显示:</span>
<nz-select [(ngModel)]="item.totalScoreHotZoneIndex" style="width: 100px;" (ngModelChange)="save()">
<nz-option *ngFor="let itOPtion of item.hotZoneItemArr" [nzValue]="itOPtion.index" [nzLabel]="itOPtion.index + 1"></nz-option>
</nz-select>
<span style="margin-left: 10px;">热区名:{{item.hotZoneItemArr && item.hotZoneItemArr[item.totalScoreHotZoneIndex] ? item.hotZoneItemArr[item.totalScoreHotZoneIndex].itemName : "未配置"}}</span>
</div>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 100px;">提交按钮:</span>
<nz-select [(ngModel)]="item.submitHotZoneIndex" style="width: 100px;" (ngModelChange)="save()">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment