Commit 83e68a3a by zhangquan

添加loading

1 parent 3ffa0056
...@@ -194,7 +194,15 @@ export default { ...@@ -194,7 +194,15 @@ export default {
effectiveDays, effectiveDays,
equityCouponRequestList equityCouponRequestList
} }
const loading = this.$loading({
lock: true,
text: 'Loading...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.5)',
customClass:'loadingClass'
})
this.$apis.goodsCouponApi.createCoupons(params).then(res => { this.$apis.goodsCouponApi.createCoupons(params).then(res => {
loading.close()
if (res && res.length === 0) { if (res && res.length === 0) {
this.$message.success('创建成功') this.$message.success('创建成功')
this.$router.push({ path: '/goodsCoupon/index' }) this.$router.push({ path: '/goodsCoupon/index' })
...@@ -212,7 +220,7 @@ export default { ...@@ -212,7 +220,7 @@ export default {
.container { .container {
background-color: #fff; background-color: #fff;
padding: 32px 30px; padding: 32px 30px;
min-height: calc(100vh - 150px); min-height: calc(100vh - 190px);
position: relative; position: relative;
/deep/ .glsx-combi-form { /deep/ .glsx-combi-form {
padding-bottom: 30px; padding-bottom: 30px;
......
...@@ -307,7 +307,7 @@ export default { ...@@ -307,7 +307,7 @@ export default {
.container { .container {
background-color: #fff; background-color: #fff;
padding: 20px; padding: 20px;
height: calc(100vh - 120px); height: calc(100vh - 170px);
.good_name { .good_name {
.coupon_type { .coupon_type {
width: 40px; width: 40px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!