Commit 5a2f8264 by 无尘

fix: 更新loading

parent 8ac73f8a
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-11-09 10:05:27 * @Date: 2020-11-09 10:05:27
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-12-01 18:06:40 * @LastEditTime: 2020-12-22 16:19:08
--> -->
<!-- --> <!-- -->
<template> <template>
<div class="common-app-right"> <div class="common-app-right">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="30px" class="demo-ruleForm" @submit.native.prevent> <el-form :model="ruleForm" :rules="rules" v-loading="loadingBtn" ref="ruleForm" label-width="30px" class="demo-ruleForm" @submit.native.prevent>
<el-form-item label="" prop="days"> <el-form-item label="" prop="days">
<span class="font-14 color-606266">下发时间当月,第 </span><el-select class="w-100" v-model="ruleForm.days" placeholder="请选择"> <span class="font-14 color-606266">下发时间当月,第 </span><el-select class="w-100" v-model="ruleForm.days" placeholder="请选择">
<el-option <el-option
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<span class="font-14 color-909399 p-l-35">注:如当月第28天下发,如果现在是1月份,即1月28号下发2月份指标。设置后次日生效</span> <span class="font-14 color-909399 p-l-35">注:如当月第28天下发,如果现在是1月份,即1月28号下发2月份指标。设置后次日生效</span>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" :loading="loadingBtn" @click="submitForm('ruleForm')">保存</el-button> <el-button type="primary" @click="submitForm('ruleForm')">保存</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -118,16 +118,18 @@ export default { ...@@ -118,16 +118,18 @@ export default {
*/ */
getData() { getData() {
const that = this; const that = this;
that.loadingBtn = true;
const para = { const para = {
enterpriseId: that.brandId, enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId wxEnterpriseId: that.wxEnterpriseId
}; };
getTargetSet(para, { headers: { sign: that.brandId } }) getTargetSet(para, { headers: { sign: that.brandId } })
.then(res => { .then(res => {
that.loadingBtn = false;
that.ruleForm.days = res.result.days || ''; that.ruleForm.days = res.result.days || '';
}) })
.catch(function(error) { .catch(function(error) {
that.loadingBtn = false;
}); });
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment