This commit is contained in:
shidongli 2024-12-19 10:31:40 +08:00
parent 0416e559bb
commit de6a4f8293

View File

@ -155,6 +155,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options"> <div class="options">
<span>选项 </span> <span>选项 </span>
<div> <div>
@ -255,6 +264,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options"> <div class="options">
<span>选项 </span> <span>选项 </span>
<div> <div>
@ -346,6 +364,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options" style="align-items: center"> <div class="options" style="align-items: center">
<span>回答 </span> <span>回答 </span>
<el-input <el-input
@ -384,6 +411,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options"> <div class="options">
<span>选项 </span> <span>选项 </span>
<div> <div>
@ -483,6 +519,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options"> <div class="options">
<span>选项 </span> <span>选项 </span>
<div> <div>
@ -603,6 +648,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options"> <div class="options">
<span>选项 </span> <span>选项 </span>
<div> <div>
@ -714,6 +768,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options" style="align-items: center"> <div class="options" style="align-items: center">
<span>回答 </span> <span>回答 </span>
<el-input <el-input
@ -771,6 +834,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options"> <div class="options">
<span>选项 </span> <span>选项 </span>
<div> <div>
@ -854,6 +926,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options" style="align-items: center"> <div class="options" style="align-items: center">
<span>回答 </span> <span>回答 </span>
<el-input <el-input
@ -893,6 +974,15 @@
> >
</el-input> </el-input>
</div> </div>
<div class="title">
<span>别名 </span>
<el-input
placeholder="请输入别名"
v-model="item.questionNameAlias"
clearable
>
</el-input>
</div>
<div class="options" style="align-items: center"> <div class="options" style="align-items: center">
<span>回答 </span> <span>回答 </span>
<el-input <el-input
@ -1244,6 +1334,7 @@ export default {
id: this.id++, id: this.id++,
title: '单选题', title: '单选题',
questionName: '', questionName: '',
questionNameAlias:'',
questionNumber: '', questionNumber: '',
// //
whetherScore: false, whetherScore: false,
@ -1280,6 +1371,7 @@ export default {
questionType: 'MULTIPLE_CHOICE_QUESTIONS', questionType: 'MULTIPLE_CHOICE_QUESTIONS',
id: this.id++, id: this.id++,
questionName: '', questionName: '',
questionNameAlias:'',
title: '多选题', title: '多选题',
questionSubjectOptionList: [{ questionSubjectOptionList: [{
optionid: ++this.optionid, optionid: ++this.optionid,
@ -1315,6 +1407,7 @@ export default {
questionType: 'FILL_IN_THE_BLANKS', questionType: 'FILL_IN_THE_BLANKS',
id: this.id++, id: this.id++,
questionName: '', questionName: '',
questionNameAlias:'',
title: '填空题', title: '填空题',
// //
whetherScore: false, whetherScore: false,
@ -1325,6 +1418,7 @@ export default {
questionType: 'SCORING_QUESTIONS', questionType: 'SCORING_QUESTIONS',
id: this.id, id: this.id,
questionName: '', questionName: '',
questionNameAlias:'',
title: '打分题', title: '打分题',
// //
whetherScore: false, whetherScore: false,
@ -1340,6 +1434,7 @@ export default {
questionType: 'COMBINATION_RADIO_SUBJECT', questionType: 'COMBINATION_RADIO_SUBJECT',
id: this.id++, id: this.id++,
questionDescription: '', questionDescription: '',
questionNameAlias:'',
list: [ list: [
{ {
questionType: 'COMBINATION_RADIO_SUBJECT', questionType: 'COMBINATION_RADIO_SUBJECT',
@ -1418,6 +1513,7 @@ export default {
this.questionlist.push({ this.questionlist.push({
title: '组合多选题', title: '组合多选题',
questionDescription: '', questionDescription: '',
questionNameAlias:'',
questionType: 'COMBINATION_MULTIPLE_SUBJECT', questionType: 'COMBINATION_MULTIPLE_SUBJECT',
id: this.id++, id: this.id++,
list: [ list: [
@ -1500,6 +1596,7 @@ export default {
this.questionlist.push({ this.questionlist.push({
title: '组合填空题', title: '组合填空题',
questionDescription: '', questionDescription: '',
questionNameAlias:'',
questionType: 'COMBINATION_BLANKS_SUBJECT', questionType: 'COMBINATION_BLANKS_SUBJECT',
id: this.id++, id: this.id++,
list: [ list: [
@ -1528,6 +1625,7 @@ export default {
this.questionlist.push({ this.questionlist.push({
title: '组合打分题', title: '组合打分题',
questionDescription: '', questionDescription: '',
questionNameAlias:'',
questionType: 'COMBINATION_SCORING_SUBJECT', questionType: 'COMBINATION_SCORING_SUBJECT',
id: this.id++, id: this.id++,
list: [ list: [
@ -1565,6 +1663,7 @@ export default {
questionType: 'DATE_BLANKS_SUBJECT', questionType: 'DATE_BLANKS_SUBJECT',
id: this.id++, id: this.id++,
questionName: '', questionName: '',
questionNameAlias:'',
questionNumber: '', questionNumber: '',
title: '日期填空题', title: '日期填空题',
// //
@ -1577,6 +1676,7 @@ export default {
id: this.id++, id: this.id++,
questionNumber: '', questionNumber: '',
questionName: '', questionName: '',
questionNameAlias:'',
title: '时间填空题', title: '时间填空题',
// //
whetherScore: false, whetherScore: false,
@ -1686,7 +1786,6 @@ export default {
}, },
// //
async upload() { async upload() {
console.log(this.list, ' 前list')
// var newObj = JSON.parse(JSON.stringify(this.list)) // var newObj = JSON.parse(JSON.stringify(this.list))
await this.$confirm('保存此问卷, 是否继续?', '提示', { await this.$confirm('保存此问卷, 是否继续?', '提示', {
@ -1763,7 +1862,6 @@ export default {
}) })
}) })
newObj.questionCount = this.questionlist.length newObj.questionCount = this.questionlist.length
// return
if (this.$route.query.id) { if (this.$route.query.id) {
updateQuestion(newObj).then(res => { updateQuestion(newObj).then(res => {
loading.close(); loading.close();