|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<!-- 创建报告-->
|
|
|
- <el-dialog :title="title" :visible.sync="showDialog" width="600px" :close-on-click-modal="false" @close="handleClose" >
|
|
|
+ <el-dialog :title="title" :visible.sync="showDialog" width="600px" :close-on-click-modal="false" @close="handleClose(false)" >
|
|
|
<el-form :model="form" :rules="rules" ref="reportForm" label-width="120px" v-loading="loading" :element-loading-text="load_text" element-loading-spinner="el-icon-loading"
|
|
|
element-loading-background-color="rgba(0, 0, 0, 0.8)">
|
|
|
|
|
@@ -123,7 +123,7 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer" v-if="$reportPermission(form.id,[0,1])">
|
|
|
- <el-button @click="handleClose">取 消</el-button>
|
|
|
+ <el-button @click="handleClose(false)">取 消</el-button>
|
|
|
<el-button type="primary" @click="ifNext " v-if="form.type==7 && !form.id">下一步</el-button>
|
|
|
<el-button type="primary" @click="ifDialog " v-else>确 定</el-button>
|
|
|
</span>
|
|
@@ -865,9 +865,14 @@ export default {
|
|
|
if (this.$refs.uploads) {
|
|
|
this.$refs.uploads.clearFiles()
|
|
|
}
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
+ if(this.$refs.upload){
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ }
|
|
|
this.file = []
|
|
|
- this.$refs.reportForm.resetFields();
|
|
|
+ if(this.$refs.reportForm){
|
|
|
+ this.$refs.reportForm.resetFields();
|
|
|
+ }
|
|
|
+
|
|
|
this.showDialog = false
|
|
|
this.show = 0
|
|
|
this.form = {}
|