|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
this.checkName();
|
|
|
if(this.contentParam.area.length === 0){
|
|
|
alert('请选择地区')
|
|
|
- return;
|
|
|
+ return;
|
|
|
}
|
|
|
if (!this.tipFlag) {
|
|
|
if (id) {
|
|
|
@@ -188,7 +188,7 @@ export default {
|
|
|
// 获取文件,文件名
|
|
|
getFileInfo: function (event) {
|
|
|
let file = event.target.files;
|
|
|
- file.forEach((item) => {
|
|
|
+ Array.from(file).forEach((item) => {
|
|
|
this.file.push(item);
|
|
|
this.contentParam.files.push(item);
|
|
|
});
|
|
|
@@ -261,7 +261,7 @@ export default {
|
|
|
this.tipText = "标题不能为空";
|
|
|
this.tipFlag = true;
|
|
|
return;
|
|
|
- }
|
|
|
+ }
|
|
|
// else if (include >= 0 && !this.noticeId) {
|
|
|
// this.tipText = "资料名称不能重复,请重新输入";
|
|
|
// this.tipFlag = true;
|