|
@@ -41,7 +41,7 @@
|
|
@input="nextHandle(content.index)"
|
|
@input="nextHandle(content.index)"
|
|
>
|
|
>
|
|
<el-radio
|
|
<el-radio
|
|
- style='width:100%'
|
|
|
|
|
|
+ style="width: 100%"
|
|
v-for="(item, index) in content.question"
|
|
v-for="(item, index) in content.question"
|
|
:key="index"
|
|
:key="index"
|
|
size="small"
|
|
size="small"
|
|
@@ -83,7 +83,7 @@
|
|
@input="chooseAnswer"
|
|
@input="chooseAnswer"
|
|
>
|
|
>
|
|
<el-radio
|
|
<el-radio
|
|
- style='width:100%'
|
|
|
|
|
|
+ style="width: 100%"
|
|
v-for="item in content.question"
|
|
v-for="item in content.question"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
size="small"
|
|
size="small"
|
|
@@ -100,9 +100,13 @@
|
|
/><i
|
|
/><i
|
|
style="width: 20px; height: 20px; color: #57c02c"
|
|
style="width: 20px; height: 20px; color: #57c02c"
|
|
v-if="content.isType == 1"
|
|
v-if="content.isType == 1"
|
|
- @click="sendMessageFun(content.nextQuestionNo)"
|
|
|
|
|
|
+ @click="
|
|
|
|
+ sendMessageFun(content.question[0].nextQuestionNo)
|
|
|
|
+ "
|
|
class="el-icon-s-promotion"
|
|
class="el-icon-s-promotion"
|
|
></i>
|
|
></i>
|
|
|
|
+
|
|
|
|
+ <!-- {{content}} -->
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class=""
|
|
class=""
|
|
@@ -180,15 +184,40 @@
|
|
<el-col :span="1"> </el-col>
|
|
<el-col :span="1"> </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <!-- 弹出框显示视频视频从头开始播放,下方有按钮--按钮点击进行访问下一题 -->
|
|
|
|
+ <el-dialog
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ title="刺激呈现"
|
|
|
|
+ :visible.sync="centerDialogVisible"
|
|
|
|
+ width="80%"
|
|
|
|
+ center
|
|
|
|
+ >
|
|
|
|
+ <span>
|
|
|
|
+ <video width="100%" height="100%" controls>
|
|
|
|
+ <source src="../assets/EMDR.mp4" type="video/mp4" />
|
|
|
|
+ </video>
|
|
|
|
+ </span>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <!-- <el-button @click="centerDialogVisible = false">取 消</el-button> -->
|
|
|
|
+ <el-button type="primary" @click="centerDialogVisible = false"
|
|
|
|
+ >我已看完</el-button
|
|
|
|
+ >
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <!-- <el-button @click="centerDialogVisible = true">打开窗口</el-button> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import HeadImg from "@/assets/lion.png";
|
|
import HeadImg from "@/assets/lion.png";
|
|
import HeadImg1 from "@/assets/newImage/peopleUser.png";
|
|
import HeadImg1 from "@/assets/newImage/peopleUser.png";
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
|
|
+import Video from "./Video.vue";
|
|
export default {
|
|
export default {
|
|
|
|
+ components: { Video },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ centerDialogVisible: false,
|
|
tmpRadio: "",
|
|
tmpRadio: "",
|
|
radio: "",
|
|
radio: "",
|
|
inputFlag: 1,
|
|
inputFlag: 1,
|
|
@@ -335,6 +364,7 @@ export default {
|
|
},
|
|
},
|
|
sendMessageFun(id) {
|
|
sendMessageFun(id) {
|
|
//发送填空题
|
|
//发送填空题
|
|
|
|
+ debugger;
|
|
if (!id == "") {
|
|
if (!id == "") {
|
|
this.getQuestion(id);
|
|
this.getQuestion(id);
|
|
} else {
|
|
} else {
|
|
@@ -361,6 +391,10 @@ export default {
|
|
},
|
|
},
|
|
// 获取问题
|
|
// 获取问题
|
|
getQuestion(id) {
|
|
getQuestion(id) {
|
|
|
|
+ if (id == "109" || id == "117" || id == "119") {
|
|
|
|
+ this.centerDialogVisible = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
this.$http.get(
|
|
this.$http.get(
|
|
`chat/getQuestion/${this.interveneId}`,
|
|
`chat/getQuestion/${this.interveneId}`,
|
|
{
|
|
{
|