|
@@ -223,7 +223,7 @@
|
|
|
<div style="flex: 0.5 1 0%; margin: 0;width:180px"
|
|
|
v-if="courseUserid != '' ? courseUserid == userid : true">
|
|
|
<div class="bInfo_title">协同编辑</div>
|
|
|
- <div class="addPeople" @click="dialogVisibleMember = true"
|
|
|
+ <div class="addPeople" @click="openMember"
|
|
|
style="background: #6b92c9">
|
|
|
添加协同成员
|
|
|
</div>
|
|
@@ -232,7 +232,8 @@
|
|
|
<span :class="{ tcMember: getMan2(tc) }"
|
|
|
v-for="(tc, tcIndex) in checkboxList3" :key="tcIndex">{{
|
|
|
getMan2(tc)
|
|
|
- }}</span></div>
|
|
|
+ }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -881,6 +882,9 @@
|
|
|
<span v-if="itemTool.tool == 55">
|
|
|
压缩文件
|
|
|
</span>
|
|
|
+ <span v-if="itemTool.tool == 56">
|
|
|
+ 投票
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
|
|
|
v-if="itemTask.toolArray.length > 0"
|
|
@@ -995,6 +999,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="tool" v-if="itemTool.tool == 56">
|
|
|
+ <div class="whiteBIcon"
|
|
|
+ @click="openToolFun(56, itemTaskIndex, toolIndex)">
|
|
|
+ <img src="../../../assets/icon/thirdToolList/ask.png" alt />
|
|
|
+ <div style="margin: 5px 0">投票</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div v-if="itemTool.tool == 51">
|
|
|
<div class="vedioTaskBox">
|
|
|
<div class="box_course"
|
|
@@ -1134,6 +1145,9 @@
|
|
|
<img v-if="photo.type == 12"
|
|
|
src="../../../assets/icon/word2.png" alt=""
|
|
|
@click="openText(photo.content)">
|
|
|
+ <img v-if="photo.type == 14"
|
|
|
+ src="../../../assets/icon/word2.png" alt=""
|
|
|
+ @click="openAsk(photo.content, itemTaskIndex, toolIndex)">
|
|
|
<img v-if="photo.type == 13" src="../../../assets/icon/zip.png"
|
|
|
alt="" @click="downloadFile(photo.content)">
|
|
|
<img v-if="photo.type == 5"
|
|
@@ -1141,7 +1155,7 @@
|
|
|
@click="openVideo(photo.content)">
|
|
|
<img class="deleteImg" src="../../../assets/deleteworks.png"
|
|
|
v-if="
|
|
|
- photo.userid == userid
|
|
|
+ photo.userid == userid && (itemTool.tool != 52 && itemTool.tool != 48)
|
|
|
" @click.stop="deleteWorks(photo.id)" alt />
|
|
|
<div class="comment">
|
|
|
<div class="worksName">
|
|
@@ -1150,6 +1164,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div v-if="
|
|
|
+ itemTool.toolPhoto.length &&
|
|
|
+ itemTool.tool == 56
|
|
|
+ ">
|
|
|
+ <voteStatic :askJSON="itemTool.askJson" :checkJson="checkJson[toolIndex]"></voteStatic>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="addToolFunBox">
|
|
|
<div class="addToolFun" @click="addToolFunD(itemTaskIndex)">
|
|
@@ -1963,6 +1984,12 @@
|
|
|
<div style="margin: 5px 0">压缩文件</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="tool">
|
|
|
+ <div class="whiteBIcon" @click="addToolFun(56)">
|
|
|
+ <img src="../../../assets/icon/thirdToolList/ask.png" alt />
|
|
|
+ <div style="margin: 5px 0">投票</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -2253,6 +2280,137 @@
|
|
|
关 闭</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="创建投票" :visible.sync="dialogVisibleVote" :append-to-body="true" width="800px"
|
|
|
+ :before-close="handleClose" class="dialog_diy">
|
|
|
+ <div>
|
|
|
+ <div class="a_add_title" style="
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ ">
|
|
|
+ <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
|
|
|
+ <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="a_addBox">
|
|
|
+ <div style="font-size: 16px; color: #c7c7c7">请输入投票内容</div>
|
|
|
+ <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
|
|
|
+ <div class="a_add_head">
|
|
|
+ <div>
|
|
|
+ {{ index1 + 1 + "、" }}
|
|
|
+ <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle"
|
|
|
+ placeholder="请输入内容...">
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
+ <div class="a_add_head_div">
|
|
|
+ <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="deleteAskList(index1)"
|
|
|
+ v-if="askJson.askCount != 1">删除
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="a_add_body">
|
|
|
+ <div class="a_add_input">
|
|
|
+ <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
|
|
|
+ :key="checkIndex" v-model="askJson.askJson[index1].checkList[checkIndex]"
|
|
|
+ placeholder="请输入投票选项..." style="width: 150px; margin: 10px 10px 0 0"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="a_add_body_div">
|
|
|
+ <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
|
|
|
+ @click="addcheckList(askJson.askJson[index1])">添加</el-button>
|
|
|
+ <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
|
|
|
+ @click="deletecheckList(askJson.askJson[index1])"
|
|
|
+ v-if="askJson.askJson[index1].askItem != 1">删除
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisibleVote = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="addAsk">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog title='查看投票' :visible.sync="dialogVisibleVote2" :append-to-body="true" width="1000px"
|
|
|
+ :before-close="handleClose" class="dialog_diy dialog_diy3">
|
|
|
+ <div>
|
|
|
+ <div class="a_add_title" style="
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ ">
|
|
|
+ <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
|
|
|
+ <div style="font-size: 20px">{{ askJson.askTitle }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="a_addBox">
|
|
|
+ <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
|
|
|
+ <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
|
|
|
+ <div class="a_add_head">
|
|
|
+ <div style="display: flex">
|
|
|
+ {{ index1 + 1 + "、" }}
|
|
|
+ <div>{{ askJson.askJson[index1].askstitle }}</div>
|
|
|
+ </div>
|
|
|
+ <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
|
|
|
+ style="height: 300px; margin-top: 10px; max-width: 100%" />
|
|
|
+ </div>
|
|
|
+ <div class="a_add_body">
|
|
|
+ <div class="a_add_input">
|
|
|
+ <el-radio-group v-model="radio[index1]">
|
|
|
+ <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
|
|
|
+ .checkList" :key="checkIndex" :label="checkIndex" class="redioStyle"><span
|
|
|
+ v-html="item2"></span></el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisibleVote2 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="addStudentAsk">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog title='查看投票' :visible.sync="dialogVisibleVote3" :append-to-body="true" width="1000px"
|
|
|
+ :before-close="handleClose" class="dialog_diy dialog_diy3">
|
|
|
+ <div>
|
|
|
+ <div class="a_add_title" style="
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ ">
|
|
|
+ <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
|
|
|
+ <div style="font-size: 20px">{{ askJson.askTitle }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="a_addBox">
|
|
|
+ <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
|
|
|
+ <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
|
|
|
+ <div class="a_add_head">
|
|
|
+ <div style="display: flex">
|
|
|
+ {{ index1 + 1 + "、" }}
|
|
|
+ <div>{{ askJson.askJson[index1].askstitle }}</div>
|
|
|
+ </div>
|
|
|
+ <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
|
|
|
+ style="height: 300px; margin-top: 10px; max-width: 100%" />
|
|
|
+ </div>
|
|
|
+ <div class="a_add_body">
|
|
|
+ <div class="a_add_input">
|
|
|
+ <el-radio-group v-model="radio[index1]">
|
|
|
+ <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
|
|
|
+ .checkList" :key="checkIndex" :label="checkIndex" disabled class="redioStyle"><span
|
|
|
+ v-html="item2"></span></el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisibleVote3 = false">关 闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -2261,6 +2419,7 @@ import $ from "jquery";
|
|
|
import EditorBar from "../../../components/tools/wangEnduit";
|
|
|
import EditorBar2 from "../../../components/tools/wangEnduit";
|
|
|
import Table from "../../../components/tools/table";
|
|
|
+import voteStatic from "../components/voteStatic.vue";
|
|
|
import TextT from "../../../components/tools/text";
|
|
|
import Mind from "../../tools/jsmind2";
|
|
|
import Sunburst from "../../tools/sunburst";
|
|
@@ -2280,7 +2439,8 @@ export default {
|
|
|
proMan,
|
|
|
ganChart,
|
|
|
pdf,
|
|
|
- TextT
|
|
|
+ TextT,
|
|
|
+ voteStatic
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -2345,6 +2505,9 @@ export default {
|
|
|
dialogVisibleText: false,
|
|
|
dialogVisibleText2: false,
|
|
|
dialogVisibleText3: false,
|
|
|
+ dialogVisibleVote: false,
|
|
|
+ dialogVisibleVote2: false,
|
|
|
+ dialogVisibleVote3: false,
|
|
|
videoVisible: false,
|
|
|
videoDetail: {},
|
|
|
showPDF: "",
|
|
@@ -2525,6 +2688,8 @@ export default {
|
|
|
fulltype: "",
|
|
|
fullUrl: "",
|
|
|
editSourceType: 1,
|
|
|
+ radio: [],
|
|
|
+ checkJson:[]
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -2578,15 +2743,15 @@ export default {
|
|
|
let _people = people
|
|
|
let _people2 = ''
|
|
|
if (this.ManAarray.length) {
|
|
|
- for (var i = 0; i < this.ManAarray.length; i++) {
|
|
|
- if (this.ManAarray[i].userid == people) {
|
|
|
- _people2 = this.ManAarray[i].name;
|
|
|
- break;
|
|
|
+ for (var i = 0; i < this.ManAarray.length; i++) {
|
|
|
+ if (this.ManAarray[i].userid == people) {
|
|
|
+ _people2 = this.ManAarray[i].name;
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
if (people == this.courseUserid) {
|
|
|
- return ''
|
|
|
+ return ''
|
|
|
}
|
|
|
return this.ManAarray.length ? _people2 : ''
|
|
|
}
|
|
@@ -4153,6 +4318,17 @@ export default {
|
|
|
this.dialogVisibleText = true;
|
|
|
} else if (tool == 51) {
|
|
|
this.addSourceFunD(this.taskCount)
|
|
|
+ } else if (tool == 56) {
|
|
|
+ this.askJson = {
|
|
|
+ askCount: 1,
|
|
|
+ askTitle: "",
|
|
|
+ askJson: [{
|
|
|
+ askstitle: "",
|
|
|
+ askItem: 1,
|
|
|
+ checkList: []
|
|
|
+ }],
|
|
|
+ }
|
|
|
+ this.dialogVisibleVote = true
|
|
|
} else {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
@@ -4241,31 +4417,45 @@ export default {
|
|
|
this.setVHeight();
|
|
|
},
|
|
|
openToolFun(tool, taskCount, i) {
|
|
|
+ this.taskCount = taskCount
|
|
|
+ this.toolIndex = i
|
|
|
if (tool == 48) {
|
|
|
- this.taskCount = taskCount
|
|
|
- this.toolIndex = i
|
|
|
const array = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].toolPhoto
|
|
|
let txt = ""
|
|
|
- for (var l = 0; l < array.length; l++) {
|
|
|
- let _uid = array[l].userid
|
|
|
- if (_uid == this.userid) {
|
|
|
- txt = JSON.parse(JSON.stringify(array[l].content))
|
|
|
- break;
|
|
|
- }
|
|
|
+ if(array.length){
|
|
|
+ txt = JSON.parse(JSON.stringify(array[0].content))
|
|
|
}
|
|
|
+ // for (var l = 0; l < array.length; l++) {
|
|
|
+ // let _uid = array[l].userid
|
|
|
+ // if (_uid == this.userid) {
|
|
|
+ // txt = JSON.parse(JSON.stringify(array[l].content))
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.tableJson.text = txt ? JSON.parse(txt) : (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table ? JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table)) : '')
|
|
|
// this.tableJson.text = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table ? JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table)) : ''
|
|
|
this.dialogVisibleTable = true;
|
|
|
} else if (tool == 15) {
|
|
|
- this.taskCount = taskCount
|
|
|
- this.toolIndex = i
|
|
|
this.answerQ = JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].answerQ))
|
|
|
this.answerDialogVisible = true;
|
|
|
} else if (tool == 52) {
|
|
|
- this.taskCount = taskCount
|
|
|
- this.toolIndex = i
|
|
|
const array = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].toolPhoto
|
|
|
let txt = ""
|
|
|
+ if(array.length){
|
|
|
+ txt = JSON.parse(JSON.stringify(array[0].content))
|
|
|
+ }
|
|
|
+ // for (var l = 0; l < array.length; l++) {
|
|
|
+ // let _uid = array[l].userid
|
|
|
+ // if (_uid == this.userid) {
|
|
|
+ // txt = JSON.parse(JSON.stringify(array[l].content))
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ this.tableJson.text = txt ? JSON.parse(txt) : (JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].text)))
|
|
|
+ this.dialogVisibleText3 = true;
|
|
|
+ } else if (tool == 56) {
|
|
|
+ const array = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].toolPhoto
|
|
|
+ let txt = JSON.stringify([])
|
|
|
for (var l = 0; l < array.length; l++) {
|
|
|
let _uid = array[l].userid
|
|
|
if (_uid == this.userid) {
|
|
@@ -4273,8 +4463,9 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- this.tableJson.text = txt ? JSON.parse(txt) : (JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].text)))
|
|
|
- this.dialogVisibleText3 = true;
|
|
|
+ this.radio = JSON.parse(txt)
|
|
|
+ this.askJson = JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].askJson))
|
|
|
+ this.dialogVisibleVote2 = true;
|
|
|
} else {
|
|
|
window.parent.postMessage({
|
|
|
tools: tool + 's',
|
|
@@ -4391,13 +4582,13 @@ export default {
|
|
|
.then((res) => {
|
|
|
let teacherJuri = res.data[0];
|
|
|
this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]))
|
|
|
- for (var i = 0; i < teacherJuri.length; i++) {
|
|
|
- if (teacherJuri[i].userid == this.userid) {
|
|
|
- // this.ManAarray.push(teacherJuri[i])
|
|
|
- teacherJuri.splice(i, 1);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ // for (var i = 0; i < teacherJuri.length; i++) {
|
|
|
+ // if (teacherJuri[i].userid == this.userid) {
|
|
|
+ // // this.ManAarray.push(teacherJuri[i])
|
|
|
+ // teacherJuri.splice(i, 1);
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.teacherJuri = teacherJuri;
|
|
|
})
|
|
|
.catch((err) => {
|
|
@@ -5650,18 +5841,18 @@ export default {
|
|
|
});
|
|
|
return el.askstitle != "" && elc.length != 0;
|
|
|
});
|
|
|
- if (!this.dialogVisible4) {
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].toolChoose[this.toolIndex] = this.askJson;
|
|
|
- }
|
|
|
- this.dialogVisible5 = false;
|
|
|
- if (
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
|
|
|
- .toolChoose[this.toolIndex].tool != 4
|
|
|
- ) {
|
|
|
- this.addTools(4, this.taskCount, this.toolIndex);
|
|
|
- }
|
|
|
+ this.dialogVisibleTool = false;
|
|
|
+ this.dialogVisibleVote = false;
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].toolArray.push({
|
|
|
+ tool: 56,
|
|
|
+ toolDetail: "",
|
|
|
+ toolPhoto: "",
|
|
|
+ toolEdit: false,
|
|
|
+ toolId: this.guid(),
|
|
|
+ askJson: JSON.parse(JSON.stringify(this.askJson))
|
|
|
+ });
|
|
|
},
|
|
|
addTest() {
|
|
|
// if (this.testJson.testTitle === "") {
|
|
@@ -6021,10 +6212,67 @@ export default {
|
|
|
for (var z = 0; z < tool.length; z++) {
|
|
|
let _tool = tool[z]
|
|
|
_tool.toolPhoto = []
|
|
|
+ this.checkJson[z] = []
|
|
|
+ let checkPeople = 0
|
|
|
for (var k = 0; k < works.length; k++) {
|
|
|
let _work = works[k]
|
|
|
if (_work.stage == i && _work.task == j && _work.tool == z && _work.atool == _tool.tool) {
|
|
|
- _tool.toolPhoto.push(_work);
|
|
|
+ if(_tool.tool == 48 || _tool.tool == 52){
|
|
|
+ _tool.toolPhoto[0] = _work
|
|
|
+ }else{
|
|
|
+ _tool.toolPhoto.push(_work);
|
|
|
+ }
|
|
|
+ if (_tool.tool == 56) {
|
|
|
+ checkPeople++
|
|
|
+ var checkL = JSON.parse(_work.content);
|
|
|
+ for (var kz = 0; kz < checkL.length; kz++) {
|
|
|
+ if (!this.checkJson[z][kz]) {
|
|
|
+ this.checkJson[z].push({
|
|
|
+ checkCount: [],
|
|
|
+ checkPerson: [],
|
|
|
+ rightPerson: [],
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (!this.checkJson[z][kz].checkCount.length) {
|
|
|
+ this.checkJson[z][kz].checkCount = [];
|
|
|
+ let _askItemCount = _tool.askJson
|
|
|
+ .askJson[kz].askItem;
|
|
|
+ for (var aic = 0; aic < _askItemCount; aic++) {
|
|
|
+ this.checkJson[z][kz].checkCount.push(0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.checkJson[z][kz].checkPerson[parseInt(checkL[kz])]
|
|
|
+ ? this.checkJson[z][kz].checkPerson[
|
|
|
+ parseInt(checkL[kz])
|
|
|
+ ].push(_work.username)
|
|
|
+ : (this.checkJson[z][kz].checkPerson[parseInt(checkL[kz])] =
|
|
|
+ [_work.username]);
|
|
|
+ this.checkJson[z][kz].checkCount[parseInt(checkL[kz])]
|
|
|
+ ? this.checkJson[z][kz].checkCount[parseInt(checkL[kz])]++
|
|
|
+ : (this.checkJson[z][kz].checkCount[
|
|
|
+ parseInt(checkL[kz])
|
|
|
+ ] = 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for (var kz = 0; kz < this.checkJson[z].length; kz++) {
|
|
|
+ this.checkJson[z][kz].checkPerent = [];
|
|
|
+ let aaaa = this.checkJson[z][kz];
|
|
|
+ console.log(aaaa);
|
|
|
+ for (
|
|
|
+ var kc = 0;
|
|
|
+ kc < this.checkJson[z][kz].checkCount.length;
|
|
|
+ kc++
|
|
|
+ ) {
|
|
|
+ this.checkJson[z][kz].checkPerent.push(
|
|
|
+ Math.round(
|
|
|
+ (this.checkJson[z][kz].checkCount[kc] /
|
|
|
+ checkPeople) *
|
|
|
+ 100
|
|
|
+ )
|
|
|
+ );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -6405,6 +6653,43 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ addStudentAsk() {
|
|
|
+ if (!this.radio.length) {
|
|
|
+ this.$message.error("请选择选项");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (var i = 0; i < this.askJson.askCount; i++) {
|
|
|
+ if (this.radio[i] !== 0 && !this.radio[i]) {
|
|
|
+ this.$message.error("请选择选项");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let params = [{
|
|
|
+ uid: this.userid,
|
|
|
+ cid: this.courseId,
|
|
|
+ stage: this.unitIndex,
|
|
|
+ task: this.taskCount,
|
|
|
+ tool: this.toolIndex,
|
|
|
+ content: JSON.stringify(this.radio),
|
|
|
+ type: 14,
|
|
|
+ atool: 56,
|
|
|
+ },];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api + "addCourseWorksS", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message({
|
|
|
+ message: "提交成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.radio = []
|
|
|
+ this.seleteCourseUpdate();
|
|
|
+ this.dialogVisibleVote2 = false;
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.$message.error("提交失败");
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
addTextJson() {
|
|
|
if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
|
|
|
this.$message.error("请填写信息!");
|
|
@@ -6626,6 +6911,16 @@ export default {
|
|
|
this.tableJson.text = JSON.parse(f)
|
|
|
this.dialogVisibleText2 = true
|
|
|
},
|
|
|
+ openAsk(f, taskCount, i) {
|
|
|
+ this.askJson = JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].askJson))
|
|
|
+ this.radio = JSON.parse(f)
|
|
|
+ this.dialogVisibleVote3 = true
|
|
|
+ },
|
|
|
+ openMember(){
|
|
|
+ this.searchTN = ''
|
|
|
+ this.getTeacher();
|
|
|
+ this.dialogVisibleMember = true
|
|
|
+ },
|
|
|
updateType(sid) {
|
|
|
var a = this.courseTypeId;
|
|
|
var a1 = JSON.parse(JSON.stringify(this.courseTypeId))
|
|
@@ -7528,23 +7823,24 @@ export default {
|
|
|
|
|
|
/* table 样式 */
|
|
|
.cont>>>table {
|
|
|
- border-top: 1px solid #ccc;
|
|
|
- border-left: 1px solid #ccc;
|
|
|
+ border-top: 1px solid #ccc;
|
|
|
+ border-left: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.cont>>>table td,
|
|
|
.cont>>>table th {
|
|
|
- border-bottom: 1px solid #ccc;
|
|
|
- border-right: 1px solid #ccc;
|
|
|
- /* padding: 20px 5px; */
|
|
|
- padding: 10px 10px;
|
|
|
- max-width: 0px;
|
|
|
- vertical-align: baseline;
|
|
|
+ border-bottom: 1px solid #ccc;
|
|
|
+ border-right: 1px solid #ccc;
|
|
|
+ /* padding: 20px 5px; */
|
|
|
+ padding: 5px 10px;
|
|
|
+ max-width: 0px;
|
|
|
+ height: 30px;
|
|
|
+ vertical-align: baseline;
|
|
|
}
|
|
|
|
|
|
.cont>>>table th {
|
|
|
- border-bottom: 2px solid #ccc;
|
|
|
- text-align: center;
|
|
|
+ border-bottom: 2px solid #ccc;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
|
|
|
/* blockquote 样式 */
|
|
@@ -9030,7 +9326,7 @@ ol {
|
|
|
}
|
|
|
|
|
|
.t_j_box span:nth-child(4) {
|
|
|
- width: calc(45% - 60px);
|
|
|
+ max-width: calc(45% - 60px);
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
@@ -9583,4 +9879,13 @@ ol {
|
|
|
.upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
|
|
|
display: none;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+.redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
|
|
|
+ color: rgb(0 123 255) !important;
|
|
|
+}
|
|
|
+
|
|
|
+.redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
|
|
|
+ color: rgb(0 123 255) !important;
|
|
|
+}
|
|
|
</style>
|