|
@@ -1,7 +1,13 @@
|
|
<template>
|
|
<template>
|
|
<div id="form-1">
|
|
<div id="form-1">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="24" class="main animate__animated animate__backInRight">
|
|
|
|
|
|
+ <el-col
|
|
|
|
+ :span="24"
|
|
|
|
+ class="main animate__animated animate__backInRight"
|
|
|
|
+ v-loading="loadings"
|
|
|
|
+ element-loading-text="拼命加载中"
|
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
|
+ >
|
|
<el-col>
|
|
<el-col>
|
|
<el-button type="primary" size="mini" @click="toBack()">返回</el-button>
|
|
<el-button type="primary" size="mini" @click="toBack()">返回</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -49,6 +55,7 @@ export default {
|
|
},
|
|
},
|
|
data: function () {
|
|
data: function () {
|
|
return {
|
|
return {
|
|
|
|
+ loadings: true,
|
|
url: '/files/point/platformAct/upload',
|
|
url: '/files/point/platformAct/upload',
|
|
form: {},
|
|
form: {},
|
|
rules: {},
|
|
rules: {},
|
|
@@ -107,6 +114,7 @@ export default {
|
|
this.$set(this.act_time, `is_use`, '0');
|
|
this.$set(this.act_time, `is_use`, '0');
|
|
this.$set(this.content, `is_use`, '0');
|
|
this.$set(this.content, `is_use`, '0');
|
|
}
|
|
}
|
|
|
|
+ this.loadings = false;
|
|
},
|
|
},
|
|
async onSubmit(formName) {
|
|
async onSubmit(formName) {
|
|
let form = this.form;
|
|
let form = this.form;
|
|
@@ -135,14 +143,10 @@ export default {
|
|
let res;
|
|
let res;
|
|
// 是否使用
|
|
// 是否使用
|
|
res = await this.dictQuery({ code: 'use' });
|
|
res = await this.dictQuery({ code: 'use' });
|
|
- if (this.$checkRes(res)) {
|
|
|
|
- this.$set(this, `isuseList`, res.data);
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `isuseList`, res.data);
|
|
// 活动类型
|
|
// 活动类型
|
|
res = await this.dictQuery({ code: 'act_type' });
|
|
res = await this.dictQuery({ code: 'act_type' });
|
|
- if (this.$checkRes(res)) {
|
|
|
|
- this.$set(this, `act_typeList`, res.data);
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `act_typeList`, res.data);
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|
|
toBack() {
|
|
toBack() {
|