Compare commits

..

No commits in common. "a2c14b0d0a653a346430701804d21f3592cbb61f" and "54c2215668b82fce5614f58900fd91ad7297f2a9" have entirely different histories.

3 changed files with 2 additions and 23 deletions

View File

@ -64,10 +64,3 @@ export const addFileToPrepareThird = (data) => {
data
})
}
export const addFileToKj = (id) => {
return request({
url: '/smarttalk/file/addFileToKj/' + id,
method: 'get'
})
}

View File

@ -126,12 +126,6 @@
<span>下载</span>
</el-button>
</div>
<div v-if="item.fileSuffix === 'ppt' || item.fileSuffix === 'pptx'" class="item-popover-item">
<el-button text @click="adToKj(item)">
<i class="iconfont icon-jiahao"></i>
<span>加入课件</span>
</el-button>
</div>
<div class="item-popover-item">
<el-button text @click="moveSmarttalkFun(item)">
<el-icon>
@ -159,7 +153,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, addFileToKj } from '@/api/file'
import { deleteSmarttalk, updateSmarttalk, getPrepareById } from '@/api/file'
import useUserStore from '@/store/modules/user'
import outLink from '@/utils/linkConfig'
@ -189,14 +183,6 @@ 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('请输入新的名称', '重命名', {

View File

@ -538,7 +538,7 @@ export default {
}
},
clickChoose(value) {
this.checkFileList = value ? this.currentSCFileList : []
this.checkFileList = value ? this.currentFileList : []
},
deleteTalk(item) {
let index = this.currentFileList.indexOf(item)