Commit 42380cb9 by wangzhihui

fixed

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