|
@@ -37,12 +37,12 @@
|
|
|
></a>
|
|
></a>
|
|
|
</div>
|
|
</div>
|
|
|
<ul class="nav-list">
|
|
<ul class="nav-list">
|
|
|
- <!-- <li
|
|
|
|
|
|
|
+ <li
|
|
|
@click="play()"
|
|
@click="play()"
|
|
|
:class="currenHzData && currenHzData.history ? '' : 'disabled'"
|
|
:class="currenHzData && currenHzData.history ? '' : 'disabled'"
|
|
|
>
|
|
>
|
|
|
播放
|
|
播放
|
|
|
- </li> -->
|
|
|
|
|
|
|
+ </li>
|
|
|
<li
|
|
<li
|
|
|
@click="handleWriteImg"
|
|
@click="handleWriteImg"
|
|
|
:class="TaskModel == 'ANSWER' ? 'disabled' : ''"
|
|
:class="TaskModel == 'ANSWER' ? 'disabled' : ''"
|
|
@@ -58,7 +58,7 @@
|
|
|
import vueEsign from "vue-esign";
|
|
import vueEsign from "vue-esign";
|
|
|
import Strockplayredline from "./Strockplayredline.vue";
|
|
import Strockplayredline from "./Strockplayredline.vue";
|
|
|
import Strockred from "./Strockred.vue";
|
|
import Strockred from "./Strockred.vue";
|
|
|
-import FreeWriteQP from "./FreewriteWord.vue";
|
|
|
|
|
|
|
+import FreeWriteQP from "./FreeWriteQP.vue";
|
|
|
// import ChinaDict from "./ChinaDict";
|
|
// import ChinaDict from "./ChinaDict";
|
|
|
// import Audio from "./AudioRed.vue";
|
|
// import Audio from "./AudioRed.vue";
|
|
|
import { LearnWebSI } from "../../../../api/ajax";
|
|
import { LearnWebSI } from "../../../../api/ajax";
|
|
@@ -216,28 +216,44 @@ export default {
|
|
|
if (this.TaskModel == "ANSWER") {
|
|
if (this.TaskModel == "ANSWER") {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- localStorage.removeItem("bookImg");
|
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.$refs.esign.handleGenerate();
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- let Book_img = localStorage
|
|
|
|
|
- .getItem("bookImg")
|
|
|
|
|
- .replace("data:image/png;base64,", "");
|
|
|
|
|
- let write_img = "data:image/png;base64," + Book_img;
|
|
|
|
|
- let answer = {};
|
|
|
|
|
- answer = {
|
|
|
|
|
- hz: this.currentHz,
|
|
|
|
|
- strokes_content: JSON.stringify(this.$refs.esign.history),
|
|
|
|
|
- strokes_image_url: write_img
|
|
|
|
|
- };
|
|
|
|
|
- console.log(this.$refs.esign);
|
|
|
|
|
- this.$emit("changeCurQue", answer, this.colIndex);
|
|
|
|
|
- let obj = {
|
|
|
|
|
- history: this.$refs.esign.history,
|
|
|
|
|
- strokes_image_url: write_img
|
|
|
|
|
- };
|
|
|
|
|
- this.closeifFreeShow(obj, this.rowIndex, this.colIndex);
|
|
|
|
|
- }, 500);
|
|
|
|
|
|
|
+ this.$refs.esign.generate().then(res => {
|
|
|
|
|
+ let Book_img = res.replace("data:image/png;base64,", "");
|
|
|
|
|
+ let write_img = "data:image/png;base64," + Book_img;
|
|
|
|
|
+ let answer = {};
|
|
|
|
|
+ answer = {
|
|
|
|
|
+ hz: this.currentHz,
|
|
|
|
|
+ strokes_content: JSON.stringify(this.$refs.esign.history),
|
|
|
|
|
+ strokes_image_url: write_img
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$emit("changeCurQue", answer, this.colIndex);
|
|
|
|
|
+ let obj = {
|
|
|
|
|
+ history: this.$refs.esign.history,
|
|
|
|
|
+ strokes_image_url: write_img
|
|
|
|
|
+ };
|
|
|
|
|
+ this.closeifFreeShow(obj, this.rowIndex, this.colIndex);
|
|
|
|
|
+ // this.$message.warning("请先书写在保存");
|
|
|
|
|
+ // localStorage.removeItem("bookImg");
|
|
|
|
|
+ // this.$nextTick(() => {
|
|
|
|
|
+ // this.$refs.esign.handleGenerate();
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
|
+ // let Book_img = localStorage
|
|
|
|
|
+ // .getItem("bookImg")
|
|
|
|
|
+ // .replace("data:image/png;base64,", "");
|
|
|
|
|
+ // let write_img = "data:image/png;base64," + Book_img;
|
|
|
|
|
+ // let answer = {};
|
|
|
|
|
+ // answer = {
|
|
|
|
|
+ // hz: this.currentHz,
|
|
|
|
|
+ // strokes_content: JSON.stringify(this.$refs.esign.history),
|
|
|
|
|
+ // strokes_image_url: write_img
|
|
|
|
|
+ // };
|
|
|
|
|
+ // console.log(this.$refs.esign);
|
|
|
|
|
+ // this.$emit("changeCurQue", answer, this.colIndex);
|
|
|
|
|
+ // let obj = {
|
|
|
|
|
+ // history: this.$refs.esign.history,
|
|
|
|
|
+ // strokes_image_url: write_img
|
|
|
|
|
+ // };
|
|
|
|
|
+ // this.closeifFreeShow(obj, this.rowIndex, this.colIndex);
|
|
|
|
|
+ // }, 500);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
//保存到记录列表
|
|
//保存到记录列表
|
|
@@ -393,8 +409,8 @@ export default {
|
|
|
margin-top: 16px;
|
|
margin-top: 16px;
|
|
|
> li {
|
|
> li {
|
|
|
height: 34px;
|
|
height: 34px;
|
|
|
- // width: 124px;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
|
|
+ width: 124px;
|
|
|
|
|
+ // width: 100%;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
font-style: normal;
|
|
font-style: normal;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|