BUG修复 #240

Merged
zhuhao merged 1 commits from zhuhao_dev into main 2024-09-20 15:29:58 +08:00
2 changed files with 5 additions and 5 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
}) })