|
@@ -92,7 +92,7 @@
|
|
|
<div class="title">
|
|
|
<el-tooltip :content="selectType(item)" placement="top" effect="dark">
|
|
|
<span class="test_icon"
|
|
|
- :class="{ test_icon_check: item.type == 1 && item.atype == 2, test_icon_checkO: item.type == 1 && item.atype == 1, test_icon_gap: item.type == 3, test_icon_file: item.type == 5, test_course_file: item.type == 6, test_eva_file: item.type == 7 }"></span>
|
|
|
+ :class="{ test_icon_check: item.type == 1 && item.atype == 2, test_icon_checkO: item.type == 1 && item.atype == 1, test_icon_gap: item.type == 3, test_icon_file: item.type == 5, test_course_file: item.type == 6, test_eva_file: item.type == 7,test_icon_time: item.type == 8 }"></span>
|
|
|
</el-tooltip>
|
|
|
<span>{{ item.title }}</span>
|
|
|
<el-button v-if="item.type == 5 && item.array.length>0" class="title_downBtn" type="primary" size="small" @click.stop="downloadFileType5(item.array,item.title)">批量下载附件</el-button>
|
|
@@ -216,6 +216,28 @@
|
|
|
<checkPie :dataJ="item.array"></checkPie>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="content2" v-if="item.type == 8">
|
|
|
+ <div class="left">
|
|
|
+ <div class="title">
|
|
|
+ <span>序号</span>
|
|
|
+ <span>词频</span>
|
|
|
+ <span>日期</span>
|
|
|
+ </div>
|
|
|
+ <div class="data" v-for="(data, index2) in item.array" :key="index + '-' + index2">
|
|
|
+ <span>{{ index2 + 1 }}</span>
|
|
|
+ <span>{{ data.count }}次</span>
|
|
|
+ <el-tooltip :content="data.name" placement="top" effect="dark">
|
|
|
+ <!-- content to trigger tooltip here -->
|
|
|
+ <span>{{ data.name }}</span>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <wordcloud :data="item.array" nameKey="name" valueKey="count" :showTooltip="false"
|
|
|
+ :wordClick="wordClickHandler">
|
|
|
+ </wordcloud>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="table_content" v-if="stype == 2">
|
|
@@ -244,7 +266,7 @@
|
|
|
<span class="answer_type" v-for="(answer2, index2) in scope.row.array[index].json.answer2"
|
|
|
:key="index + '-' + index2">{{ scope.row.array[index].json.array[answer2].option }}</span>
|
|
|
</div>
|
|
|
- <div v-if="scope.row.array[index].type == 3" style="display: flex; flex-wrap: wrap;">
|
|
|
+ <div v-if="scope.row.array[index].type == 3 || scope.row.array[index].type == 8" style="display: flex; flex-wrap: wrap;">
|
|
|
{{ scope.row.array[index].json.answer2 }}
|
|
|
</div>
|
|
|
<div v-if="scope.row.array[index].type == 5" style="display: flex; flex-wrap: wrap;"
|
|
@@ -481,6 +503,8 @@ export default {
|
|
|
return '课程'
|
|
|
} else if (item.type == 7) {
|
|
|
return '评分'
|
|
|
+ } else if (item.type == 8) {
|
|
|
+ return '日期'
|
|
|
}
|
|
|
};
|
|
|
}
|
|
@@ -700,7 +724,7 @@ export default {
|
|
|
topic.array[_answer[k]].count++
|
|
|
topic.count++
|
|
|
}
|
|
|
- } else if (topic.type == 3) {
|
|
|
+ } else if (topic.type == 3 || topic.type == 8) {
|
|
|
let type3 = 1
|
|
|
let _answer = el2.array[i].json.answer2
|
|
|
if (_answer) {
|
|
@@ -1056,6 +1080,9 @@ export default {
|
|
|
let _score = this.getScore2(item.json)
|
|
|
let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`
|
|
|
_test += _option
|
|
|
+ } else if (item.type == 8 && item.json.answer2) {
|
|
|
+ let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`
|
|
|
+ _test += _option
|
|
|
}
|
|
|
}
|
|
|
_test += `</div>`
|
|
@@ -1099,7 +1126,10 @@ export default {
|
|
|
let _score = this.getScore2(item.json)
|
|
|
let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`
|
|
|
_test += _option
|
|
|
- }
|
|
|
+ } else if (item.type == 8 && item.json.answer2) {
|
|
|
+ let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`
|
|
|
+ _test += _option
|
|
|
+ }
|
|
|
}
|
|
|
_test += `</div>`
|
|
|
let _html = _title + _content + _detail + _test;
|
|
@@ -1175,6 +1205,9 @@ export default {
|
|
|
let _score = this.getScore2(item.json)
|
|
|
let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`
|
|
|
_test += _option
|
|
|
+ } else if (item.type == 8 && item.json.answer2) {
|
|
|
+ let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`
|
|
|
+ _test += _option
|
|
|
}
|
|
|
}
|
|
|
_test += `</div>`
|
|
@@ -1219,6 +1252,9 @@ export default {
|
|
|
let _score = this.getScore2(item.json)
|
|
|
let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`
|
|
|
_test += _option
|
|
|
+ } else if (item.type == 8 && item.json.answer2) {
|
|
|
+ let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`
|
|
|
+ _test += _option
|
|
|
}
|
|
|
}
|
|
|
_test += `</div>`
|
|
@@ -1354,6 +1390,8 @@ export default {
|
|
|
} else if (res[i].array[j].type == 7 && res[i].array[j].json.answer2) {
|
|
|
let _score = this.getScore2(res[i].array[j].json)
|
|
|
_json[j + 1 + "." + chapters[j].json.title] = _score
|
|
|
+ } else if (res[i].array[j].type == 8 && res[i].array[j].json.answer2) {
|
|
|
+ _json[j + 1 + "." + chapters[j].json.title] = res[i].array[j].json.answer2
|
|
|
}
|
|
|
}
|
|
|
array.push(_json);
|