Compare commits
No commits in common. "a2c14b0d0a653a346430701804d21f3592cbb61f" and "54c2215668b82fce5614f58900fd91ad7297f2a9" have entirely different histories.
a2c14b0d0a
...
54c2215668
|
@ -64,10 +64,3 @@ export const addFileToPrepareThird = (data) => {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export const addFileToKj = (id) => {
|
|
||||||
return request({
|
|
||||||
url: '/smarttalk/file/addFileToKj/' + id,
|
|
||||||
method: 'get'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
|
@ -126,12 +126,6 @@
|
||||||
<span>下载</span>
|
<span>下载</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</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">
|
<div class="item-popover-item">
|
||||||
<el-button text @click="moveSmarttalkFun(item)">
|
<el-button text @click="moveSmarttalkFun(item)">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
|
@ -159,7 +153,7 @@ import FileImage from '@/components/file-image/index.vue'
|
||||||
import { asyncLocalFile } from '@/utils/talkFile'
|
import { asyncLocalFile } from '@/utils/talkFile'
|
||||||
import { toTimeText } from '@/utils/date'
|
import { toTimeText } from '@/utils/date'
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
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 useUserStore from '@/store/modules/user'
|
||||||
import outLink from '@/utils/linkConfig'
|
import outLink from '@/utils/linkConfig'
|
||||||
|
|
||||||
|
@ -189,14 +183,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
adToKj(item) {
|
|
||||||
addFileToKj(item.id).then(res=>{
|
|
||||||
console.log(res)
|
|
||||||
item.fileFlag = "课件"
|
|
||||||
},error=>{
|
|
||||||
console.log(error)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
editTalk(item) {
|
editTalk(item) {
|
||||||
console.log(item,this.userInfo,'this.userInfo')
|
console.log(item,this.userInfo,'this.userInfo')
|
||||||
ElMessageBox.prompt('请输入新的名称', '重命名', {
|
ElMessageBox.prompt('请输入新的名称', '重命名', {
|
||||||
|
|
|
@ -538,7 +538,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clickChoose(value) {
|
clickChoose(value) {
|
||||||
this.checkFileList = value ? this.currentSCFileList : []
|
this.checkFileList = value ? this.currentFileList : []
|
||||||
},
|
},
|
||||||
deleteTalk(item) {
|
deleteTalk(item) {
|
||||||
let index = this.currentFileList.indexOf(item)
|
let index = this.currentFileList.indexOf(item)
|
||||||
|
|
Loading…
Reference in New Issue