diff --git a/src/renderer/src/api/file/index.js b/src/renderer/src/api/file/index.js
index 64cfdfb..25c7e76 100644
--- a/src/renderer/src/api/file/index.js
+++ b/src/renderer/src/api/file/index.js
@@ -64,3 +64,10 @@ export const addFileToPrepareThird = (data) => {
data
})
}
+
+export const addFileToKj = (id) => {
+ return request({
+ url: '/smarttalk/file/addFileToKj/' + id,
+ method: 'get'
+ })
+}
diff --git a/src/renderer/src/views/prepare/container/file-list-item.vue b/src/renderer/src/views/prepare/container/file-list-item.vue
index eeb77d0..8d9bc5f 100644
--- a/src/renderer/src/views/prepare/container/file-list-item.vue
+++ b/src/renderer/src/views/prepare/container/file-list-item.vue
@@ -126,6 +126,12 @@
下载
+
+
+
+ 加入课件
+
+
@@ -153,7 +159,7 @@ import FileImage from '@/components/file-image/index.vue'
import { asyncLocalFile } from '@/utils/talkFile'
import { toTimeText } from '@/utils/date'
import { ElMessage, ElMessageBox } from 'element-plus'
-import { deleteSmarttalk, updateSmarttalk, getPrepareById } from '@/api/file'
+import { deleteSmarttalk, updateSmarttalk, getPrepareById, addFileToKj } from '@/api/file'
import useUserStore from '@/store/modules/user'
import outLink from '@/utils/linkConfig'
@@ -183,6 +189,14 @@ export default {
}
},
methods: {
+ adToKj(item) {
+ addFileToKj(item.id).then(res=>{
+ console.log(res)
+ item.fileFlag = "课件"
+ },error=>{
+ console.log(error)
+ })
+ },
editTalk(item) {
console.log(item,this.userInfo,'this.userInfo')
ElMessageBox.prompt('请输入新的名称', '重命名', {
diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue
index a6960a6..4984483 100644
--- a/src/renderer/src/views/prepare/index.vue
+++ b/src/renderer/src/views/prepare/index.vue
@@ -538,7 +538,7 @@ export default {
}
},
clickChoose(value) {
- this.checkFileList = value ? this.currentFileList : []
+ this.checkFileList = value ? this.currentSCFileList : []
},
deleteTalk(item) {
let index = this.currentFileList.indexOf(item)