|
@@ -8,7 +8,15 @@
|
|
|
@close="close"
|
|
|
@keyup.enter.native="doSubmit"
|
|
|
:visible.sync="visible">
|
|
|
- <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method==='view'"
|
|
|
+ <el-form size="middle"
|
|
|
+ :model="inputForm"
|
|
|
+ ref="inputForm"
|
|
|
+ v-loading="loading"
|
|
|
+ element-loading-text="拼命上传中"
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.5)"
|
|
|
+ :class="method==='view'?'readonly':''"
|
|
|
+ :disabled="method==='view'"
|
|
|
label-width="150px">
|
|
|
<el-row :gutter="15">
|
|
|
<el-col :span="12">
|
|
@@ -387,8 +395,8 @@
|
|
|
:url-list="[url]"
|
|
|
zIndex="9999"/>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="method != 'view'" @click="doSubmit()" icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
|
|
|
+ <el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
|
+ <el-button type="primary" v-if="method != 'view'" @click="doSubmit()" v-loading="loading" icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -663,8 +671,10 @@
|
|
|
this.visible = false
|
|
|
this.showVi = true
|
|
|
},
|
|
|
- httpRequest (file) {
|
|
|
- httpRequest(file, fileName(file), 'projectRecords')
|
|
|
+ async httpRequest (file) {
|
|
|
+ this.loading = true
|
|
|
+ await httpRequest(file, fileName(file), 'projectRecords')
|
|
|
+ this.loading = false
|
|
|
},
|
|
|
handleRemove () {
|
|
|
this.fileList = handleRemove()
|