Commit 731edca3 authored by youjie's avatar youjie

no message

parent 7ef4534f
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
<input type="button" @click=" <input type="button" @click="
(outerVisible = true), (outerVisible = true),
(isleaveBtn = false), (isleaveBtn = false),
(dialogTitle = '添加备忘录') (dialogTitle = '添加备忘录'),addClick()
" class="normalBtn" value="新增" /> " class="normalBtn" value="新增" />
</li> </li>
</ul> </ul>
...@@ -660,6 +660,7 @@ ...@@ -660,6 +660,7 @@
typeOk = true; typeOk = true;
} }
}) })
let FileName = file.file.name.substring(0,file.file.name.lastIndexOf("."))
if (!typeOk) return this.$message.error(this.$t('tips.qscWEfile')); if (!typeOk) return this.$message.error(this.$t('tips.qscWEfile'));
let newArr = []; let newArr = [];
newArr.push(file.file) newArr.push(file.file)
...@@ -668,7 +669,7 @@ ...@@ -668,7 +669,7 @@
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0); let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.addMsg.FileList.push({ this.addMsg.FileList.push({
Name: x.data.FileName, Name: FileName,
FileType: fileTypeNumber, FileType: fileTypeNumber,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath, Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
}) })
...@@ -701,6 +702,15 @@ ...@@ -701,6 +702,15 @@
err => {} err => {}
); );
}, },
addClick(){
this.addMsg = {
Id: 0,
Date: this.getYMD(),
Name: '',
Content: '',
FileList: []
}
},
addData() { addData() {
if(this.isleaveBtn) return if(this.isleaveBtn) return
this.isleaveBtn = true; 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