|
|
|
@ -168,7 +168,9 @@
|
|
|
|
|
</el-form> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="save">确 定</el-button> |
|
|
|
|
<el-button type="primary" @click="save" :disabled="saveFlag" |
|
|
|
|
>确 定</el-button |
|
|
|
|
> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
@ -187,6 +189,7 @@ import { uploadFile } from "@/views/api/api";
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
saveFlag: true, |
|
|
|
|
limit: 1, |
|
|
|
|
searchForm: { |
|
|
|
|
// 公告序号 |
|
|
|
@ -383,9 +386,11 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
//上传文件 |
|
|
|
|
uploadFile(file) { |
|
|
|
|
this.saveFlag = true; |
|
|
|
|
uploadFile(file).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.editForm.filePath = res.data.data.path; |
|
|
|
|
this.saveFlag = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|