Compare commits

...

7 Commits

3 changed files with 6 additions and 7 deletions

View File

@ -115,7 +115,7 @@ const updateForm = ref({})
watch( watch(
() => props.currentNode, () => props.currentNode,
(newValue, oldValue) => { (newValue, oldValue) => {
form.name = newValue.label form.name = newValue.itemtitle
} }
) )
const ruleForm = reactive({ const ruleForm = reactive({
@ -216,7 +216,7 @@ const openDialog = (data) => {
const closeDialog = () => { const closeDialog = () => {
ruleFormDialog.value.resetFields() ruleFormDialog.value.resetFields()
centerDialogVisible.value = false centerDialogVisible.value = false
form.name = props.currentNode.label form.name = props.currentNode.itemtitle
emit('close') emit('close')
} }

View File

@ -368,7 +368,7 @@ export default {
this.downloadNum = num this.downloadNum = num
}, },
createFile() { createFile() {
creatPPT(this.currentNode.label + '.pptx', this.uploadData).then((res) => { creatPPT(this.currentNode.itemtitle + '.pptx', this.uploadData).then((res) => {
this.currentFileList.unshift(res.resData) this.currentFileList.unshift(res.resData)
}) })
}, },
@ -448,7 +448,7 @@ export default {
creatAPT({ creatAPT({
...this.uploadData, ...this.uploadData,
fileId: slideid, fileId: slideid,
fileShowName: this.currentNode.label + '.apt' fileShowName: this.currentNode.itemtitle + '.apt'
}).then((res) => { }).then((res) => {
this.currentFileList.unshift(res.resData) this.currentFileList.unshift(res.resData)
}) })
@ -665,7 +665,7 @@ export default {
'/tool/sphere?entpcourseid=' + '/tool/sphere?entpcourseid=' +
this.entpcourseid + this.entpcourseid +
'&label=' + '&label=' +
this.currentNode.label + this.currentNode.itemtitle +
'&reservId=' + '&reservId=' +
id id
}) })

View File

@ -16,8 +16,7 @@
<div class="tool-bottom-all" <div class="tool-bottom-all"
@mouseenter="mouseChange(0)" @mouseleave="mouseChange(1)"> @mouseenter="mouseChange(0)" @mouseleave="mouseChange(1)">
<div v-drag="{handle:'.tool-bottom-all', dragtime}" <div v-drag="{handle:'.tool-bottom-all', dragtime}"
@v-drag-start="dragtime = Date.now()" @v-drag-start="dragtime = Date.now()">
@v-drag-end="mouseChange(1)">
<div class="c-logo" @click="logoHandle" title="拖动 | 折叠 | 展开"> <div class="c-logo" @click="logoHandle" title="拖动 | 折叠 | 展开">
<el-image :src="logo" draggable="false" /> <el-image :src="logo" draggable="false" />
</div> </div>