|
|
@@ -44,7 +44,7 @@
|
|
|
<p class="title">附件:</p>
|
|
|
<label for="fileInput" @change="getFileInfo($event)"
|
|
|
>添加附件
|
|
|
- <input type="file" name="fileName" id="fileInput" multiple />
|
|
|
+ <input type="file" ref="referenceUpload" name="fileName" id="fileInput" multiple />
|
|
|
</label>
|
|
|
<div class="fileDes">
|
|
|
<p v-for="(item, index) in contentParam.files" :key="index">
|
|
|
@@ -105,6 +105,10 @@ export default {
|
|
|
addNotice(id) {
|
|
|
let requestURL, paramData;
|
|
|
this.checkName();
|
|
|
+ if(this.contentParam.area.length === 0){
|
|
|
+ alert('请选择地区')
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!this.tipFlag) {
|
|
|
if (id) {
|
|
|
//编辑
|
|
|
@@ -190,6 +194,7 @@ export default {
|
|
|
this.file.push(item);
|
|
|
this.contentParam.files.push(item);
|
|
|
});
|
|
|
+ this.$refs.referenceUpload.value = null;
|
|
|
},
|
|
|
// 删除文件
|
|
|
deleteFile: function (i, item) {
|
|
|
@@ -247,6 +252,7 @@ export default {
|
|
|
},
|
|
|
// 检查名字是否重复 失去焦点判断
|
|
|
checkName: function () {
|
|
|
+ console.log(this.contentParam.area)
|
|
|
// 去前后空格
|
|
|
this.contentParam.title = this.contentParam.title.replace(
|
|
|
/(^\s*)|(\s*$)/g,
|