|
@@ -121,6 +121,12 @@ export default {
|
|
|
this.requestParam.parammaps = {}
|
|
this.requestParam.parammaps = {}
|
|
|
this.requestParam.parammaps.pastureid = Cookies.get('pastureid')
|
|
this.requestParam.parammaps.pastureid = Cookies.get('pastureid')
|
|
|
this.requestParam.parammaps.date = this.date
|
|
this.requestParam.parammaps.date = this.date
|
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
|
+ lock: true,
|
|
|
|
|
+ text: 'Loading',
|
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
|
|
+ });
|
|
|
PostDataByName(this.requestParam).then(response => {
|
|
PostDataByName(this.requestParam).then(response => {
|
|
|
if (response.msg === 'fail') {
|
|
if (response.msg === 'fail') {
|
|
|
this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
@@ -129,7 +135,12 @@ export default {
|
|
|
this.closeDialog()
|
|
this.closeDialog()
|
|
|
this.$parent.getList()
|
|
this.$parent.getList()
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ loading.close()
|
|
|
|
|
+ }, 5000);
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
this.$message({ type: 'info', message: '已取消应用' })
|
|
this.$message({ type: 'info', message: '已取消应用' })
|
|
|
})
|
|
})
|