Commit 67893533 authored by 黄奎's avatar 黄奎

页面修改

parent 5f036a51
......@@ -227,7 +227,6 @@
UploadLocalSystem(JSON.stringify(fileParams), files.file, res => {
if (res.Code == 1) {
this.questionData = res.Data;
console.log("this.questionData", this.questionData);
}
})
},
......
<style>
.singleQuestion{
width:100%;
.singleQuestion {
width: 100%;
}
</style>
<!--单选题-->
<template>
......@@ -58,15 +59,13 @@
initialFrameHeight: 90,
},
optionTitleList: [],
commonIndex:-1,
commonIndex: -1,
};
},
created() {
this.initConfig();
},
mounted(){
},
mounted() {},
methods: {
initConfig() {
this.optionTitleList = getOptionList();
......@@ -82,7 +81,7 @@
cancel: "取消",
}).onOk(() => {
this.data.splice(index, 1);
this.commonIndex=-1;
this.commonIndex = -1;
this.calcOptionTitle();
}).onCancel(() => {
......@@ -111,7 +110,11 @@
calcOptionTitle() {
if (this.data && this.data.length > 0) {
this.data.forEach((item, index) => {
item.Name = this.optionTitleList[index];
if (this.setOption.QuestionTypeKey == "single-number") {
item.Name = index + 1;
} else {
item.Name = this.optionTitleList[index];
}
})
}
},
......@@ -126,11 +129,11 @@
})
}
item.IsAnswer = true;
this.setOption.Answer=item.Name;
this.setOption.Answer = item.Name;
},
//点击切换输入
changeEdit(index){
this.commonIndex=index;
changeEdit(index) {
this.commonIndex = index;
}
},
mounted() {
......
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