|
@@ -129,7 +129,8 @@
|
|
|
<span>
|
|
|
<Icon type="md-cube" color="#40A8F0" size="16" />
|
|
|
<span style="margin-left: 5px;">{{ $t("knowledge.point") }}</span>
|
|
|
- <span v-show="uploadNum">({{ $t('knowledge.imported') }}{{ uploadNum }}{{ $t('knowledge.pointsNum') }})</span>
|
|
|
+ <span v-show="uploadNum">
|
|
|
+ ({{ $t('knowledge.imported1') }}{{ filePointNum }}{{ $t('knowledge.imported2') }},{{ $t('knowledge.imported3') }}{{ uploadNum }}{{ $t('knowledge.pointsNum') }})</span>
|
|
|
<!-- <Input v-special-char icon="ios-close" v-model="searchPoint" v-show="subTree.length && !updated" :placeholder="$t('knowledge.searchPoint')" autofocus style="width: 300px;margin-left: 20px;" @on-click="onSearchClear" @on-blur="isSearchPoint = false" @on-change="onSearchPointChange" @on-enter="onSearchPointChange" @on-clear="onSearchClear" /> -->
|
|
|
</span>
|
|
|
<div>
|
|
@@ -287,6 +288,7 @@ export default {
|
|
|
isSearchBlock: false,
|
|
|
activeBlockIndex: null,
|
|
|
uploadNum: 0,
|
|
|
+ filePointNum: 0,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -414,6 +416,7 @@ export default {
|
|
|
this.currentPoint = undefined
|
|
|
this.addMode = 0
|
|
|
this.uploadNum = 0
|
|
|
+ this.filePointNum = 0
|
|
|
this.schoolParams = {
|
|
|
schoolCode: this.originData.id,
|
|
|
subjectId: this.subjectList[index].subjectId,
|
|
@@ -566,6 +569,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
this.uploadNum = 0
|
|
|
+ this.filePointNum = 0
|
|
|
},
|
|
|
doBatchDelete() {},
|
|
|
// 新增知识点事件
|
|
@@ -676,6 +680,7 @@ export default {
|
|
|
for (let i = 0; i < data.results.length; i++) {
|
|
|
for (const key in data.results[i]) {
|
|
|
if(data.results[i][key]) {
|
|
|
+ this.filePointNum += 1
|
|
|
data.results[i][key] = data.results[i][key].trim()
|
|
|
if(key === 'level1') {
|
|
|
pointTree.push({
|
|
@@ -776,6 +781,8 @@ export default {
|
|
|
this.$Message.success(this.$t("knowledge.import.sucTip"))
|
|
|
this.batchUploadModal = false
|
|
|
this.updated = true
|
|
|
+ } else {
|
|
|
+ this.filePointNum = 0
|
|
|
}
|
|
|
this.isParsing = false
|
|
|
}
|