|
@@ -3099,7 +3099,7 @@
|
|
|
tool.tool.indexOf(40) != -1
|
|
|
" class="worksBox">
|
|
|
<div class="noWorksS">
|
|
|
- <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
|
|
|
+ <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" @click="teacherWorkSubmit(40, toolIndex, taskCount, s)">
|
|
|
{{ s.student }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -4295,6 +4295,42 @@
|
|
|
<el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
|
|
|
+ :before-close="handleClose" class="dialog_diy">
|
|
|
+ <div class="w_name">
|
|
|
+ 学生姓名:<span>{{ sStudent.student }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="evalCss">
|
|
|
+ <div class="nav">请选择星星进行评分</div>
|
|
|
+ <div class="middleBox" v-if="eScore.eStar">
|
|
|
+ <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
|
|
|
+ <div class="nameAndrate">
|
|
|
+ <div>{{ e.value }}</div>
|
|
|
+ <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
|
|
|
+ </div>
|
|
|
+ <div v-if="e.detail">{{ e.detail }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="easy_comment" v-if="isStar == false">
|
|
|
+ <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
|
|
|
+ {{ p }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="bz">
|
|
|
+ <textarea :disabled="isStar" rows="4" class="pj" style="
|
|
|
+ padding: 10px 5px;
|
|
|
+ width: 70%;
|
|
|
+ background: #f7f6f9;
|
|
|
+ font-size: 14px;
|
|
|
+ text-indent: 10px;
|
|
|
+ " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div slot="footer">
|
|
|
+ <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
|
|
|
:before-close="handleClose" class="dialog_diy dialog_diy3">
|
|
|
<div v-if="selectJson">
|
|
@@ -4715,7 +4751,7 @@
|
|
|
:before-close="handleClose" class="dialog_diy">
|
|
|
<el-form>
|
|
|
<div>表格内容</div>
|
|
|
- <Table v-model="tableJson.text" @change="change"></Table>
|
|
|
+ <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisibleTable = false">取 消</el-button>
|
|
@@ -4729,7 +4765,7 @@
|
|
|
学生姓名:<span>{{ sStudent.student }}</span>
|
|
|
</div>
|
|
|
<div>表格内容</div>
|
|
|
- <Table v-model="tableJson.text" @change="change"></Table>
|
|
|
+ <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
|
|
@@ -4740,7 +4776,7 @@
|
|
|
class="dialog_diy">
|
|
|
<el-form>
|
|
|
<div>文档内容</div>
|
|
|
- <editor-bar v-model="wordJson.text"></editor-bar>
|
|
|
+ <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisibleWord = false">取 消</el-button>
|
|
@@ -4754,7 +4790,7 @@
|
|
|
学生姓名:<span>{{ sStudent.student }}</span>
|
|
|
</div>
|
|
|
<div>文档内容</div>
|
|
|
- <editor-bar v-model="wordJson.text"></editor-bar>
|
|
|
+ <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
|
|
@@ -5299,6 +5335,7 @@ export default {
|
|
|
videoVisible: false,
|
|
|
isStar: false,
|
|
|
studentEvalDialogVisible: false,
|
|
|
+ studentEvalDialogVisibleTeacher:false,
|
|
|
dialogVisibleSelect: false,
|
|
|
dialogVisibleSelectTeacher: false,
|
|
|
dialogVisibleScore: false,
|
|
@@ -5575,7 +5612,7 @@ export default {
|
|
|
isGroup: false,
|
|
|
toolIndex: null,
|
|
|
tool: {},
|
|
|
- isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50]//, 40
|
|
|
+ isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40]//, 40
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -9202,6 +9239,7 @@ export default {
|
|
|
},
|
|
|
openTable(f) {
|
|
|
this.tableJson = JSON.parse(f.works);
|
|
|
+ this.$forceUpdate();
|
|
|
this.dialogVisibleTable2 = true;
|
|
|
},
|
|
|
doUrl(url, i) {
|
|
@@ -9280,6 +9318,34 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ addBzWorksTeacher() {
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ uid: this.sStudent.userid,
|
|
|
+ cid: this.id,
|
|
|
+ stage: this.courseType,
|
|
|
+ task: this.taskCount,
|
|
|
+ tool: this.toolindex,
|
|
|
+ content: JSON.stringify(this.eScore),
|
|
|
+ type: 6,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api + "addCourseWorks", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message({
|
|
|
+ message: "提交成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.eScore = { eBzText: "", eStar: [] };
|
|
|
+ this.studentEvalDialogVisibleTeacher = false;
|
|
|
+ this.selectSWorks();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.$message.error("提交失败");
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
addStudentAsk() {
|
|
|
if (!this.radio.length) {
|
|
|
this.$message.error("请选择选项");
|
|
@@ -10154,6 +10220,40 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.dialogVisibleTableTeacher = true;
|
|
|
+ }else if(t == 40){
|
|
|
+ if (this.evalCount > 0) {
|
|
|
+ this.updateCount(this.evalCount, t);
|
|
|
+ } else {
|
|
|
+ this.evalCount++;
|
|
|
+ a = this.evalCount;
|
|
|
+ this.toolsCount(a, t);
|
|
|
+ }
|
|
|
+ this.eScore = { eBzText: "", eStar: [] };
|
|
|
+ if (this.worksStudent[i].length) {
|
|
|
+ for (var k = 0; k < this.worksStudent[i].length; k++) {
|
|
|
+ if (this.sStudent.userid == this.worksStudent[i][k].userid) {
|
|
|
+ this.eScore = JSON.parse(this.worksStudent[i][k].works);
|
|
|
+ this.rateJson =
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ index
|
|
|
+ ].toolChoose[i].rateJson;
|
|
|
+ break;
|
|
|
+ } else {
|
|
|
+ this.rateJson =
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ index
|
|
|
+ ].toolChoose[i].rateJson;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.rateJson =
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ index
|
|
|
+ ].toolChoose[i].rateJson;
|
|
|
+ }
|
|
|
+
|
|
|
+ this.isStar = false;
|
|
|
+ this.studentEvalDialogVisibleTeacher = true;
|
|
|
} else if (t == 3 || t == 1 || t == 7) {
|
|
|
window.parent.postMessage(
|
|
|
{
|