Commit 731edca3 authored by youjie's avatar youjie

no message

parent 7ef4534f
......@@ -390,7 +390,7 @@
<input type="button" @click="
(outerVisible = true),
(isleaveBtn = false),
(dialogTitle = '添加备忘录')
(dialogTitle = '添加备忘录'),addClick()
" class="normalBtn" value="新增" />
</li>
</ul>
......@@ -660,6 +660,7 @@
typeOk = true;
}
})
let FileName = file.file.name.substring(0,file.file.name.lastIndexOf("."))
if (!typeOk) return this.$message.error(this.$t('tips.qscWEfile'));
let newArr = [];
newArr.push(file.file)
......@@ -668,7 +669,7 @@
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.addMsg.FileList.push({
Name: x.data.FileName,
Name: FileName,
FileType: fileTypeNumber,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
......@@ -701,6 +702,15 @@
err => {}
);
},
addClick(){
this.addMsg = {
Id: 0,
Date: this.getYMD(),
Name: '',
Content: '',
FileList: []
}
},
addData() {
if(this.isleaveBtn) return
this.isleaveBtn = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment