Commit 42380cb9 by wangzhihui

fixed

1 parent 9d381219
...@@ -71,8 +71,6 @@ export default { ...@@ -71,8 +71,6 @@ export default {
this.handleSendCancel() this.handleSendCancel()
}, },
initData(val) { initData(val) {
console.log(1111)
console.log('val', val.sendOutMerchantName)
this.approveForm.sendOutMerchantName = val.sendOutMerchantName? val.sendOutMerchantName:'' this.approveForm.sendOutMerchantName = val.sendOutMerchantName? val.sendOutMerchantName:''
this.approveForm.sendOutMerchantId = val.sendOutMerchantId this.approveForm.sendOutMerchantId = val.sendOutMerchantId
}, },
...@@ -129,12 +127,10 @@ export default { ...@@ -129,12 +127,10 @@ export default {
if (result.code == 0) { if (result.code == 0) {
Toast.success('操作成功') Toast.success('操作成功')
setTimeout(() => {
this.isSubmit = false this.isSubmit = false
this.$refs.myDialog.stopLoading() this.$refs.myDialog.stopLoading()
this.handleCancel() this.handleCancel()
this.$emit('success') this.$emit('success')
}, 0)
} else { } else {
this.$refs.myDialog.stopLoading() this.$refs.myDialog.stopLoading()
Toast.fail(result.message || '请求失败') Toast.fail(result.message || '请求失败')
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:close-on-click-overlay="false" :close-on-click-overlay="false"
> >
<div class="title">{{ title }}</div> <div class="title">{{ title }}</div>
<div v-if="!loading"> <!-- <div v-if="loading"> -->
<div class="content"> <div class="content">
<slot></slot> <slot></slot>
</div> </div>
...@@ -23,12 +23,14 @@ ...@@ -23,12 +23,14 @@
{{ loading ? '提交中...' : '确定' }} {{ loading ? '提交中...' : '确定' }}
</div> </div>
</div> </div>
</div> <!-- </div> -->
<template v-else> <template v-if="loading">
<div class="mask">
<div class="loading-home"> <div class="loading-home">
<van-loading size="50" color="#1989fa" /> <van-loading size="50" color="#1989fa" />
</div> </div>
</div>
</template> </template>
</van-popup> </van-popup>
</template> </template>
...@@ -141,6 +143,15 @@ export default { ...@@ -141,6 +143,15 @@ export default {
margin-left: 11px; margin-left: 11px;
} }
} }
.mask{
position: absolute;
height:100%;
width:100%;
background: #ffffff;
opacity: 0.6;
top:0;
}
.loading-home{ .loading-home{
position:absolute; position:absolute;
left:50%; left:50%;
......
...@@ -122,11 +122,9 @@ export default { ...@@ -122,11 +122,9 @@ export default {
if (result.code == 0) { if (result.code == 0) {
Toast.success('操作成功') Toast.success('操作成功')
setTimeout(() => {
this.$refs.myDialog.stopLoading() this.$refs.myDialog.stopLoading()
this.handleCancel() this.handleCancel()
this.$emit('success') this.$emit('success')
}, 500)
} else { } else {
this.$refs.myDialog.stopLoading() this.$refs.myDialog.stopLoading()
Toast.fail(result.message || '请求失败') Toast.fail(result.message || '请求失败')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!