|
@@ -37,16 +37,16 @@
|
|
|
</div>
|
|
|
<span v-if="!canceledSym&&num<1" class="edit" @click="cancelSymptom">修改</span>
|
|
|
</div>
|
|
|
- <div v-for="(item,idx) in symptomQasList" :key="'0'+item.id" v-if="activeTab">
|
|
|
+ <div v-for="(item,idx) in symptomQasList" :key="'0'+idx+item.id" v-if="activeTab">
|
|
|
<Dialog :idx="idx" v-if="item.show" :item="item" @cancel="cancelSelected" :num="activeNum" :cancelNum="canceledQa" :extNum ="[]" :cancelTab="cancelTab" :isLast="idx===symptomQasList.length-1"/>
|
|
|
</div>
|
|
|
- <div v-for="(item,idx) in diagnoseQasList" :key="'1'+item.id" v-if="activeTab==moduleKeys[1]||activeTab==moduleKeys[2]||activeTab==moduleKeys[3]">
|
|
|
+ <div v-for="(item,idx) in diagnoseQasList" :key="'1'+idx+item.id" v-if="activeTab==moduleKeys[1]||activeTab==moduleKeys[2]||activeTab==moduleKeys[3]">
|
|
|
<Dialog :idx="idx" v-if="item.show" :item="item" @cancel="cancelSelected" :num="activeNum" :extNum ="[symptomQasList.length]" :cancelNum="canceledQa" :cancelTab="cancelTab" :isLast="idx===diagnoseQasList.length-1"/>
|
|
|
</div>
|
|
|
- <div v-for="(item,idx) in othersQasList" :key="'2'+item.id" v-if="activeTab==moduleKeys[2]||activeTab==moduleKeys[3]">
|
|
|
+ <div v-for="(item,idx) in othersQasList" :key="'2'+idx+item.id" v-if="activeTab==moduleKeys[2]||activeTab==moduleKeys[3]">
|
|
|
<Dialog :idx="idx" v-if="item.show" :item="item" @cancel="cancelSelected" :num="activeNum" :extNum ="[symptomQasList.length,diagnoseQasList.length]" :cancelNum="canceledQa" :cancelTab="cancelTab" :isLast="idx===othersQasList.length-1"/>
|
|
|
</div>
|
|
|
- <div v-for="(item,idx) in addContentQasList" :key="'3'+item.id" v-if="activeTab==moduleKeys[3]">
|
|
|
+ <div v-for="(item,idx) in addContentQasList" :key="'3'+idx+item.id" v-if="activeTab==moduleKeys[3]">
|
|
|
<Dialog :idx="idx" v-if="item.show" :item="item" @cancel="cancelSelected" :num="activeNum" :extNum ="[symptomQasList.length,diagnoseQasList.length,othersQasList.length]" :cancelNum="canceledQa" :cancelTab="cancelTab"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -67,11 +67,11 @@
|
|
|
@updataResult="updataResultSingle"
|
|
|
:imgList="imgs"/>
|
|
|
<!-- 输入框 -->
|
|
|
- <Input v-if="type==7"
|
|
|
+ <!--<Input v-if="type==7"
|
|
|
:num="num"
|
|
|
:item="symptomResult"
|
|
|
:key="symptomResult.id"
|
|
|
- @updata="updataResultSingle"/>
|
|
|
+ @updata="updataResultSingle"/>-->
|
|
|
<!-- 文本域 -->
|
|
|
<ComTextArea v-if="type==6 || type == 5"
|
|
|
:num="num"
|
|
@@ -93,7 +93,7 @@ import Dialog from '../common/Dialog';
|
|
|
import Picker from '../common/Picker';
|
|
|
import Label from '../common/Label.vue';
|
|
|
import ComTextArea from '../common/ComTextArea.vue';
|
|
|
-import Input from '../common/Input.vue';
|
|
|
+/*import Input from '../common/Input.vue';*/
|
|
|
import PickTime from '../common/PickTime.vue';
|
|
|
import UploadImg from '../common/UploadImg.vue';
|
|
|
import PushSymptom from '../common/PushSymptom.vue';
|
|
@@ -249,7 +249,12 @@ export default {
|
|
|
tmpArr = this[moduleName];
|
|
|
tmpNowItem = tmpArr[this.num];
|
|
|
this.type = -1;
|
|
|
- tmpNowItem?tmpNowItem.show = false:''; //最后一题时没有下一题
|
|
|
+ if(tmpNowItem){
|
|
|
+ tmpNowItem.show = false;
|
|
|
+ }else{//最后一题时没有下一题
|
|
|
+ this.showPreview=false;
|
|
|
+ }
|
|
|
+
|
|
|
const keyIdx = this.moduleKeys.findIndex((i)=>i==this.activeTab);
|
|
|
if(this.activeTab!==this.moduleKeys[0]&&this.num===0){ //取消上一阶段的最后一题时
|
|
|
this.activeTab=this.moduleKeys[keyIdx-1];
|
|
@@ -428,7 +433,7 @@ export default {
|
|
|
Picker,
|
|
|
Label,
|
|
|
ComTextArea,
|
|
|
- Input,
|
|
|
+ /*Input,*/
|
|
|
PickTime,
|
|
|
UploadImg,
|
|
|
PushSymptom,
|