反馈填空题
This commit is contained in:
parent
de6a4f8293
commit
666a2fc4ac
@ -58,6 +58,15 @@
|
|||||||
<img :src="item.src" alt="" />
|
<img :src="item.src" alt="" />
|
||||||
<div>{{ item.name }}</div>
|
<div>{{ item.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="texts"
|
||||||
|
v-for="item in othertypes"
|
||||||
|
:key="item.id"
|
||||||
|
@click.once="addquestionlist(item)"
|
||||||
|
>
|
||||||
|
<img :src="item.src" alt="" />
|
||||||
|
<div>{{ item.name }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="questionnairedetails">
|
<div class="questionnairedetails">
|
||||||
<div>
|
<div>
|
||||||
@ -383,6 +392,54 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="more"></div>
|
<div class="more"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-if="item.questionType == 'FEEDBACK_BLANKS_SUBJECT'"
|
||||||
|
class="item"
|
||||||
|
@click.stop="selectquestion(item, index)"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src="@/assets/system/yidong.png"
|
||||||
|
alt=""
|
||||||
|
class="delicon yidong"
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
src="@/assets/system/gb.png"
|
||||||
|
alt=""
|
||||||
|
class="delicon"
|
||||||
|
@click.stop="delquestion(item, index)"
|
||||||
|
/>
|
||||||
|
<div class="questionName">
|
||||||
|
{{ index + 1 }}. {{ item.title }}
|
||||||
|
</div>
|
||||||
|
<div class="title">
|
||||||
|
<span>题目: </span>
|
||||||
|
<el-input
|
||||||
|
placeholder="请输入题目"
|
||||||
|
v-model="item.questionName"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
<div class="title">
|
||||||
|
<span>别名: </span>
|
||||||
|
<el-input
|
||||||
|
placeholder="请输入别名"
|
||||||
|
v-model="item.questionNameAlias"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
<div class="options" style="align-items: center">
|
||||||
|
<span>回答: </span>
|
||||||
|
<el-input
|
||||||
|
style="margin: 0; width: 300px"
|
||||||
|
disabled
|
||||||
|
placeholder="填写问卷时,用户需要在此输入答案"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="more"></div>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="item.questionType == 'SCORING_QUESTIONS'"
|
v-if="item.questionType == 'SCORING_QUESTIONS'"
|
||||||
class="item"
|
class="item"
|
||||||
@ -1116,6 +1173,14 @@ export default {
|
|||||||
return {
|
return {
|
||||||
id: 99999999999,
|
id: 99999999999,
|
||||||
optionid: 99,
|
optionid: 99,
|
||||||
|
othertypes:[
|
||||||
|
{
|
||||||
|
id: 'FEEDBACK_BLANKS_SUBJECT',
|
||||||
|
name: '反馈填空题',
|
||||||
|
src: require('@/assets/system/tiankong.png')
|
||||||
|
},
|
||||||
|
|
||||||
|
],
|
||||||
otherQuestiontypes: [
|
otherQuestiontypes: [
|
||||||
{
|
{
|
||||||
id: 'DATE_BLANKS_SUBJECT',
|
id: 'DATE_BLANKS_SUBJECT',
|
||||||
@ -1127,6 +1192,7 @@ export default {
|
|||||||
name: '时间填空题',
|
name: '时间填空题',
|
||||||
src: require('@/assets/system/shijian.png')
|
src: require('@/assets/system/shijian.png')
|
||||||
},
|
},
|
||||||
|
|
||||||
],
|
],
|
||||||
combinationQuestiontypes: [
|
combinationQuestiontypes: [
|
||||||
{
|
{
|
||||||
@ -1320,6 +1386,26 @@ export default {
|
|||||||
this.list.diseaseTypeName = ''
|
this.list.diseaseTypeName = ''
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
addquestionlist(item){
|
||||||
|
this.id++
|
||||||
|
if (this.questionlist.length > 0) {
|
||||||
|
if (this.questionlist[this.questionlist.length - 1].questionName == '' || this.questionlist[this.questionlist.length - 1].questionDescription == '') {
|
||||||
|
return this.$message.error('请填写完在继续添加');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.questionlist.push({
|
||||||
|
questionType: 'FEEDBACK_BLANKS_SUBJECT',
|
||||||
|
id: this.id++,
|
||||||
|
questionName: '',
|
||||||
|
questionNameAlias:'',
|
||||||
|
title: '反馈填空题',
|
||||||
|
//是否计分
|
||||||
|
whetherScore: false,
|
||||||
|
disabled: true,
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
addquestion(item) {
|
addquestion(item) {
|
||||||
console.log(item, 'item选择类型')
|
console.log(item, 'item选择类型')
|
||||||
this.id++
|
this.id++
|
||||||
@ -1413,7 +1499,8 @@ export default {
|
|||||||
whetherScore: false,
|
whetherScore: false,
|
||||||
disabled: true,
|
disabled: true,
|
||||||
})
|
})
|
||||||
} else if (item.id == 'SCORING_QUESTIONS') {
|
}
|
||||||
|
else if (item.id == 'SCORING_QUESTIONS') {
|
||||||
this.questionlist.push({
|
this.questionlist.push({
|
||||||
questionType: 'SCORING_QUESTIONS',
|
questionType: 'SCORING_QUESTIONS',
|
||||||
id: this.id,
|
id: this.id,
|
||||||
@ -1939,6 +2026,10 @@ export default {
|
|||||||
} else if (e.questionType == 'TIME_BLANKS_SUBJECT') {
|
} else if (e.questionType == 'TIME_BLANKS_SUBJECT') {
|
||||||
e.title = '时间填空题'
|
e.title = '时间填空题'
|
||||||
this.questionlist.push(e)
|
this.questionlist.push(e)
|
||||||
|
}
|
||||||
|
else if (e.questionType == 'FEEDBACK_BLANKS_SUBJECT') {
|
||||||
|
e.title = '反馈填空题'
|
||||||
|
this.questionlist.push(e)
|
||||||
} else if (e.questionType == 'COMBINATION_RADIO_SUBJECT') {
|
} else if (e.questionType == 'COMBINATION_RADIO_SUBJECT') {
|
||||||
e.title = '单选题'
|
e.title = '单选题'
|
||||||
} else if (e.questionType == 'COMBINATION_MULTIPLE_SUBJECT') {
|
} else if (e.questionType == 'COMBINATION_MULTIPLE_SUBJECT') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user