修改康复计划记录
This commit is contained in:
parent
508dda7528
commit
28d4c82609
@ -294,11 +294,12 @@ export default {
|
|||||||
this.info(index);
|
this.info(index);
|
||||||
},
|
},
|
||||||
bottomclickevent(item, index) {
|
bottomclickevent(item, index) {
|
||||||
// console.log(item, "utiem");
|
console.log(item, "utiem");
|
||||||
this.form = item;
|
this.form = item;
|
||||||
this.listindex = index;
|
this.listindex = index;
|
||||||
},
|
},
|
||||||
info(index) {
|
info(index) {
|
||||||
|
this.listindex = 0
|
||||||
this.loading = this.$loading({
|
this.loading = this.$loading({
|
||||||
lock: true,
|
lock: true,
|
||||||
text: "加载数据中",
|
text: "加载数据中",
|
||||||
|
|||||||
@ -2,127 +2,253 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 问卷模板 -->
|
<!-- 问卷模板 -->
|
||||||
<!-- <el-dialog title="问卷预览" :visible.sync="questionopen" width="30%"> -->
|
<!-- <el-dialog title="问卷预览" :visible.sync="questionopen" width="30%"> -->
|
||||||
<div
|
<div v-if="questiondata.questionSubjectList">
|
||||||
class="words"
|
|
||||||
v-for="(item, index) in questiondata.questionSubjectList"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
{{ index + 1 }}.{{ item.questionName }}
|
|
||||||
<span v-if="item.questionType == 'MULTIPLE_CHOICE'">(单选题)</span>
|
|
||||||
<span v-if="item.questionType == 'MULTIPLE_CHOICE_QUESTIONS'"
|
|
||||||
>(多选题)</span
|
|
||||||
>
|
|
||||||
<span v-if="item.questionType == 'SCORING_QUESTIONS'">(打分题)</span>
|
|
||||||
<span v-if="item.questionType == 'COMBINATION_RADIO_SUBJECT'"
|
|
||||||
>(组合单选题)</span
|
|
||||||
>
|
|
||||||
<span v-if="item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'"
|
|
||||||
>(组合多选题)</span
|
|
||||||
>
|
|
||||||
<span v-if="item.questionType == 'COMBINATION_BLANKS_SUBJECT'"
|
|
||||||
>(组合填空题)</span
|
|
||||||
>
|
|
||||||
<span v-if="item.questionType == 'FILL_IN_THE_BLANKS'">(填空题)</span>
|
|
||||||
<span v-if="item.questionType == 'COMBINATION_SCORING_SUBJECT'"
|
|
||||||
>(组合打分题)</span
|
|
||||||
>
|
|
||||||
<span v-if="item.questionType == 'DATE_BLANKS_SUBJECT'"
|
|
||||||
>(日期填空题)</span
|
|
||||||
>
|
|
||||||
<span v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
|
|
||||||
>(时间填空题)</span
|
|
||||||
>
|
|
||||||
<el-radio-group
|
|
||||||
v-if="
|
|
||||||
item.questionType == 'MULTIPLE_CHOICE' ||
|
|
||||||
item.questionType == 'COMBINATION_RADIO_SUBJECT' ||
|
|
||||||
item.questionType == 'SCORING_QUESTIONS' ||
|
|
||||||
item.questionType == 'COMBINATION_SCORING_SUBJECT'
|
|
||||||
"
|
|
||||||
v-model="questiondata[index]"
|
|
||||||
class="custom-radio-group"
|
|
||||||
disabled
|
|
||||||
@change="radioGroupChange($event, item)"
|
|
||||||
>
|
|
||||||
<el-radio
|
|
||||||
class="custom"
|
|
||||||
v-for="(aitem, aindex) in item.questionSubjectOptionList"
|
|
||||||
:key="aindex"
|
|
||||||
:label="aitem.id"
|
|
||||||
@change="radioChange($event, aitem, index)"
|
|
||||||
>{{ aitem.optionName }}</el-radio
|
|
||||||
>
|
|
||||||
</el-radio-group>
|
|
||||||
<!-- 多选、组合多选 -->
|
|
||||||
<el-checkbox-group
|
|
||||||
disabled
|
|
||||||
v-model="checkeddata"
|
|
||||||
@change="radioGroupChange($event, item, 'checkbox')"
|
|
||||||
v-if="
|
|
||||||
item.questionType == 'MULTIPLE_CHOICE_QUESTIONS' ||
|
|
||||||
item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<el-checkbox
|
|
||||||
v-for="(aitem, aindex) in item.questionSubjectOptionList"
|
|
||||||
:key="aindex"
|
|
||||||
:label="aitem.id"
|
|
||||||
@change="radioChangecheck($event, aitem, index, aindex)"
|
|
||||||
>{{ aitem.optionName }}</el-checkbox
|
|
||||||
>
|
|
||||||
</el-checkbox-group>
|
|
||||||
<!-- 填空题、组合填空 -->
|
|
||||||
<div
|
<div
|
||||||
v-if="
|
class="words"
|
||||||
item.questionType == 'FILL_IN_THE_BLANKS' ||
|
v-for="(item, index) in questiondata.questionSubjectList"
|
||||||
item.questionType == 'COMBINATION_BLANKS_SUBJECT'
|
:key="index"
|
||||||
"
|
|
||||||
class="tk"
|
|
||||||
>
|
>
|
||||||
<el-input
|
{{ index + 1 }}.{{ item.questionName }}
|
||||||
v-model="item.fillBlanksAnswer"
|
<span v-if="item.questionType == 'MULTIPLE_CHOICE'">(单选题)</span>
|
||||||
disabled
|
<span v-if="item.questionType == 'MULTIPLE_CHOICE_QUESTIONS'"
|
||||||
placeholder="请输入答案"
|
>(多选题)</span
|
||||||
type="textarea"
|
|
||||||
/>
|
|
||||||
<!-- <el-input></el-input> -->
|
|
||||||
</div>
|
|
||||||
<!-- 日期填空题、 -->
|
|
||||||
<div
|
|
||||||
v-if="item.questionType == 'DATE_BLANKS_SUBJECT'"
|
|
||||||
style="margin: 20px 0 10px 30px"
|
|
||||||
>
|
|
||||||
<el-date-picker
|
|
||||||
disabled
|
|
||||||
@change="timepicker($event, index)"
|
|
||||||
clearable
|
|
||||||
v-model="item.fillBlanksAnswer"
|
|
||||||
type="date"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
placeholder="选择日期"
|
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
<span v-if="item.questionType == 'SCORING_QUESTIONS'">(打分题)</span>
|
||||||
</div>
|
<span v-if="item.questionType == 'COMBINATION_RADIO_SUBJECT'"
|
||||||
<!-- 时间填空题 -->
|
>(组合单选题)</span
|
||||||
<div
|
|
||||||
style="margin: 20px 0 10px 30px"
|
|
||||||
v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
|
|
||||||
>
|
|
||||||
<el-time-select
|
|
||||||
disabled
|
|
||||||
@change="timepickerselect($event, index)"
|
|
||||||
clearable
|
|
||||||
v-model="item.fillBlanksAnswer"
|
|
||||||
:picker-options="{
|
|
||||||
start: '08:30',
|
|
||||||
step: '00:30',
|
|
||||||
end: '23:30',
|
|
||||||
}"
|
|
||||||
placeholder="选择时间"
|
|
||||||
>
|
>
|
||||||
</el-time-select>
|
<span v-if="item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'"
|
||||||
|
>(组合多选题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'COMBINATION_BLANKS_SUBJECT'"
|
||||||
|
>(组合填空题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'FILL_IN_THE_BLANKS'">(填空题)</span>
|
||||||
|
<span v-if="item.questionType == 'COMBINATION_SCORING_SUBJECT'"
|
||||||
|
>(组合打分题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'DATE_BLANKS_SUBJECT'"
|
||||||
|
>(日期填空题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
|
||||||
|
>(时间填空题)</span
|
||||||
|
>
|
||||||
|
<el-radio-group
|
||||||
|
v-if="
|
||||||
|
item.questionType == 'MULTIPLE_CHOICE' ||
|
||||||
|
item.questionType == 'COMBINATION_RADIO_SUBJECT' ||
|
||||||
|
item.questionType == 'SCORING_QUESTIONS' ||
|
||||||
|
item.questionType == 'COMBINATION_SCORING_SUBJECT'
|
||||||
|
"
|
||||||
|
v-model="questiondata[index]"
|
||||||
|
class="custom-radio-group"
|
||||||
|
disabled
|
||||||
|
@change="radioGroupChange($event, item)"
|
||||||
|
>
|
||||||
|
<el-radio
|
||||||
|
class="custom"
|
||||||
|
v-for="(aitem, aindex) in item.questionSubjectOptionList"
|
||||||
|
:key="aindex"
|
||||||
|
:label="aitem.id"
|
||||||
|
@change="radioChange($event, aitem, index)"
|
||||||
|
>{{ aitem.optionName }}</el-radio
|
||||||
|
>
|
||||||
|
</el-radio-group>
|
||||||
|
<!-- 多选、组合多选 -->
|
||||||
|
<el-checkbox-group
|
||||||
|
disabled
|
||||||
|
v-model="checkeddata"
|
||||||
|
@change="radioGroupChange($event, item, 'checkbox')"
|
||||||
|
v-if="
|
||||||
|
item.questionType == 'MULTIPLE_CHOICE_QUESTIONS' ||
|
||||||
|
item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-checkbox
|
||||||
|
v-for="(aitem, aindex) in item.questionSubjectOptionList"
|
||||||
|
:key="aindex"
|
||||||
|
:label="aitem.id"
|
||||||
|
@change="radioChangecheck($event, aitem, index, aindex)"
|
||||||
|
>{{ aitem.optionName }}</el-checkbox
|
||||||
|
>
|
||||||
|
</el-checkbox-group>
|
||||||
|
<!-- 填空题、组合填空 -->
|
||||||
|
<div
|
||||||
|
v-if="
|
||||||
|
item.questionType == 'FILL_IN_THE_BLANKS' ||
|
||||||
|
item.questionType == 'COMBINATION_BLANKS_SUBJECT'
|
||||||
|
"
|
||||||
|
class="tk"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="item.fillBlanksAnswer"
|
||||||
|
disabled
|
||||||
|
placeholder="请输入答案"
|
||||||
|
type="textarea"
|
||||||
|
/>
|
||||||
|
<!-- <el-input></el-input> -->
|
||||||
|
</div>
|
||||||
|
<!-- 日期填空题、 -->
|
||||||
|
<div
|
||||||
|
v-if="item.questionType == 'DATE_BLANKS_SUBJECT'"
|
||||||
|
style="margin: 20px 0 10px 30px"
|
||||||
|
>
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
@change="timepicker($event, index)"
|
||||||
|
clearable
|
||||||
|
v-model="item.fillBlanksAnswer"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择日期"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</div>
|
||||||
|
<!-- 时间填空题 -->
|
||||||
|
<div
|
||||||
|
style="margin: 20px 0 10px 30px"
|
||||||
|
v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
|
||||||
|
>
|
||||||
|
<el-time-select
|
||||||
|
disabled
|
||||||
|
@change="timepickerselect($event, index)"
|
||||||
|
clearable
|
||||||
|
v-model="item.fillBlanksAnswer"
|
||||||
|
:picker-options="{
|
||||||
|
start: '08:30',
|
||||||
|
step: '00:30',
|
||||||
|
end: '23:30',
|
||||||
|
}"
|
||||||
|
placeholder="选择时间"
|
||||||
|
>
|
||||||
|
</el-time-select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="questiondata.subjectResultList">
|
||||||
|
<div
|
||||||
|
class="words"
|
||||||
|
v-for="(item, index) in questiondata.subjectResultList"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
{{ index + 1 }}.{{ item.questionName }}
|
||||||
|
<span v-if="item.questionType == 'MULTIPLE_CHOICE'">(单选题)</span>
|
||||||
|
<span v-if="item.questionType == 'MULTIPLE_CHOICE_QUESTIONS'"
|
||||||
|
>(多选题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'SCORING_QUESTIONS'">(打分题)</span>
|
||||||
|
<span v-if="item.questionType == 'COMBINATION_RADIO_SUBJECT'"
|
||||||
|
>(组合单选题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'"
|
||||||
|
>(组合多选题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'COMBINATION_BLANKS_SUBJECT'"
|
||||||
|
>(组合填空题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'FILL_IN_THE_BLANKS'">(填空题)</span>
|
||||||
|
<span v-if="item.questionType == 'COMBINATION_SCORING_SUBJECT'"
|
||||||
|
>(组合打分题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'DATE_BLANKS_SUBJECT'"
|
||||||
|
>(日期填空题)</span
|
||||||
|
>
|
||||||
|
<span v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
|
||||||
|
>(时间填空题)</span
|
||||||
|
>
|
||||||
|
<el-radio-group
|
||||||
|
v-if="
|
||||||
|
item.questionType == 'MULTIPLE_CHOICE' ||
|
||||||
|
item.questionType == 'COMBINATION_RADIO_SUBJECT' ||
|
||||||
|
item.questionType == 'SCORING_QUESTIONS' ||
|
||||||
|
item.questionType == 'COMBINATION_SCORING_SUBJECT'
|
||||||
|
"
|
||||||
|
v-model="item.checked"
|
||||||
|
class="custom-radio-group"
|
||||||
|
@change="radioGroupChange($event, item)"
|
||||||
|
>
|
||||||
|
<el-radio
|
||||||
|
disabled
|
||||||
|
class="custom"
|
||||||
|
v-for="(aitem, aindex) in item.optionResults"
|
||||||
|
:key="aindex"
|
||||||
|
:label="aitem.id"
|
||||||
|
@change="radioChange($event, aitem, index)"
|
||||||
|
>{{ aitem.optionName }}</el-radio
|
||||||
|
>
|
||||||
|
</el-radio-group>
|
||||||
|
<!-- 多选、组合多选 -->
|
||||||
|
<el-checkbox-group
|
||||||
|
v-model="checkeddata"
|
||||||
|
@change="radioGroupChange($event, item, 'checkbox')"
|
||||||
|
v-if="
|
||||||
|
item.questionType == 'MULTIPLE_CHOICE_QUESTIONS' ||
|
||||||
|
item.questionType == 'COMBINATION_MULTIPLE_SUBJECT'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-checkbox
|
||||||
|
disabled
|
||||||
|
v-for="(aitem, aindex) in item.optionResults"
|
||||||
|
:key="aindex"
|
||||||
|
:label="aitem.id"
|
||||||
|
@change="radioChangecheck($event, aitem, index, aindex)"
|
||||||
|
>{{ aitem.optionName }}</el-checkbox
|
||||||
|
>
|
||||||
|
</el-checkbox-group>
|
||||||
|
<!-- 填空题、组合填空 -->
|
||||||
|
<div
|
||||||
|
v-if="
|
||||||
|
item.questionType == 'FILL_IN_THE_BLANKS' ||
|
||||||
|
item.questionType == 'COMBINATION_BLANKS_SUBJECT'
|
||||||
|
"
|
||||||
|
class="tk"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="item.fillBlanksAnswer"
|
||||||
|
placeholder="请输入答案"
|
||||||
|
type="textarea"
|
||||||
|
/>
|
||||||
|
<!-- <el-input></el-input> -->
|
||||||
|
</div>
|
||||||
|
<!-- 日期填空题、 -->
|
||||||
|
<div
|
||||||
|
v-if="item.questionType == 'DATE_BLANKS_SUBJECT'"
|
||||||
|
style="margin: 20px 0 10px 30px"
|
||||||
|
>
|
||||||
|
<el-date-picker
|
||||||
|
disabled
|
||||||
|
@change="timepicker($event, index)"
|
||||||
|
clearable
|
||||||
|
v-model="item.fillBlanksAnswer"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择日期"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</div>
|
||||||
|
<!-- 时间填空题 -->
|
||||||
|
<div
|
||||||
|
style="margin: 20px 0 10px 30px"
|
||||||
|
v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
|
||||||
|
>
|
||||||
|
<el-time-select
|
||||||
|
disabled
|
||||||
|
@change="timepickerselect($event, index)"
|
||||||
|
clearable
|
||||||
|
v-model="item.fillBlanksAnswer"
|
||||||
|
:picker-options="{
|
||||||
|
start: '08:30',
|
||||||
|
step: '00:30',
|
||||||
|
end: '23:30',
|
||||||
|
}"
|
||||||
|
placeholder="选择时间"
|
||||||
|
>
|
||||||
|
</el-time-select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- </el-dialog> -->
|
<!-- </el-dialog> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -142,6 +268,34 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
if (this.lookitemnew) {
|
if (this.lookitemnew) {
|
||||||
this.questiondata = this.lookitemnew;
|
this.questiondata = this.lookitemnew;
|
||||||
|
this.questiondata.subjectResultList.forEach((e) => {
|
||||||
|
e.optionResults.forEach((el) => {
|
||||||
|
console.log(el, "el");
|
||||||
|
if (
|
||||||
|
(el.optionChooseSign == "0" &&
|
||||||
|
e.questionType == "MULTIPLE_CHOICE") ||
|
||||||
|
e.questionType == "COMBINATION_RADIO_SUBJECT"
|
||||||
|
) {
|
||||||
|
e.checked = el.id;
|
||||||
|
} else if (
|
||||||
|
el.optionChooseSign == "0" &&
|
||||||
|
e.questionType == "MULTIPLE_CHOICE_QUESTIONS"
|
||||||
|
) {
|
||||||
|
this.checkeddata.push(el.id);
|
||||||
|
} else if (
|
||||||
|
el.optionChooseSign == "0" &&
|
||||||
|
e.questionType == "SCORING_QUESTIONS"
|
||||||
|
) {
|
||||||
|
e.checked = el.id;
|
||||||
|
} else if (
|
||||||
|
e.questionType == "COMBINATION_MULTIPLE_SUBJECT" &&
|
||||||
|
el.optionChooseSign == "0"
|
||||||
|
) {
|
||||||
|
this.checkeddata.push(el.id);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
console.log(this.questiondata, " this.questiondata");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user