|
@@ -4,7 +4,7 @@
|
|
title="基础信息"
|
|
title="基础信息"
|
|
type="info"
|
|
type="info"
|
|
:closable="false"
|
|
:closable="false"
|
|
- class="vipMsg"
|
|
|
|
|
|
+ class="baseMsg"
|
|
></el-alert>
|
|
></el-alert>
|
|
|
|
|
|
<div class="m-core">
|
|
<div class="m-core">
|
|
@@ -38,6 +38,16 @@
|
|
</select-all>
|
|
</select-all>
|
|
<!-- <el-button @click="onCheckAllBranch">适用所有分部</el-button> -->
|
|
<!-- <el-button @click="onCheckAllBranch">适用所有分部</el-button> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="活动描述" prop="desc">
|
|
|
|
+ <el-input
|
|
|
|
+ type="textarea"
|
|
|
|
+ v-model.trim="vipform.desc"
|
|
|
|
+ style="width: 400px"
|
|
|
|
+ :rows="5"
|
|
|
|
+ placeholder="请输入活动说明"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+<!--
|
|
<el-form-item label="课程形式" prop="stauts">
|
|
<el-form-item label="课程形式" prop="stauts">
|
|
<select-all
|
|
<select-all
|
|
v-model.trim="vipform.stauts"
|
|
v-model.trim="vipform.stauts"
|
|
@@ -67,28 +77,10 @@
|
|
:key="item.value"
|
|
:key="item.value"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="使用学员" prop="applyToStudentType">
|
|
|
|
- <el-select
|
|
|
|
- v-model.trim="vipform.applyToStudentType"
|
|
|
|
- placeholder="请选择使用学员"
|
|
|
|
- clearable
|
|
|
|
- >
|
|
|
|
- <el-option label="新学员" :value="1"></el-option>
|
|
|
|
- <el-option label="老学员" :value="0"></el-option>
|
|
|
|
- <el-option label="所有学员" :value="-1"></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="活动描述" prop="desc">
|
|
|
|
- <el-input
|
|
|
|
- type="textarea"
|
|
|
|
- v-model.trim="vipform.desc"
|
|
|
|
- style="width: 400px"
|
|
|
|
- :rows="5"
|
|
|
|
- placeholder="请输入活动说明"
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="活动时间" prop="activeTime">
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <el-form-item label="活动生效时间" prop="activeTime">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model.trim="vipform.activeTime"
|
|
v-model.trim="vipform.activeTime"
|
|
type="datetimerange"
|
|
type="datetimerange"
|
|
@@ -102,7 +94,7 @@
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
></el-date-picker>
|
|
></el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="课程时间" prop="courseTime">
|
|
|
|
|
|
+ <el-form-item label="排课时间范围" prop="courseTime">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model.trim="vipform.courseTime"
|
|
v-model.trim="vipform.courseTime"
|
|
type="datetimerange"
|
|
type="datetimerange"
|
|
@@ -116,18 +108,26 @@
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
></el-date-picker>
|
|
></el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="适用学员" prop="applyToStudentType">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.trim="vipform.applyToStudentType"
|
|
|
|
+ placeholder="请选择适用学员"
|
|
|
|
+ clearable
|
|
|
|
+ >
|
|
|
|
+ <el-option label="新学员" :value="1"></el-option>
|
|
|
|
+ <el-option label="老学员" :value="0"></el-option>
|
|
|
|
+ <el-option label="所有学员" :value="-1"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <el-alert
|
|
|
|
|
|
+ <!-- <el-alert
|
|
title="活动适用范围&结算标准:"
|
|
title="活动适用范围&结算标准:"
|
|
type="info"
|
|
type="info"
|
|
:closable="false"
|
|
:closable="false"
|
|
class="alert"
|
|
class="alert"
|
|
>
|
|
>
|
|
- </el-alert>
|
|
|
|
- <div class="activeRange" style="padding-left: 120px">
|
|
|
|
- <!-- <div class="left">
|
|
|
|
- <p>活动适用范围&结算标准:</p>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+ </el-alert> -->
|
|
|
|
+ <!-- <div class="activeRange" style="padding-left: 120px">
|
|
<div class="right">
|
|
<div class="right">
|
|
<div class="chioseWrap">
|
|
<div class="chioseWrap">
|
|
<el-checkbox label="线上课" v-model.trim="online"></el-checkbox>
|
|
<el-checkbox label="线上课" v-model.trim="online"></el-checkbox>
|
|
@@ -171,9 +171,6 @@
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
v-if="onlineSalary == 'TEACHER_DEFAULT'"
|
|
v-if="onlineSalary == 'TEACHER_DEFAULT'"
|
|
></div>
|
|
></div>
|
|
- <!-- <el-checkbox label="是否参加梯度"
|
|
|
|
- style="margin-left:20px;"
|
|
|
|
- v-model.trim="onlineClassJoinGradientRewards"></el-checkbox> -->
|
|
|
|
</div>
|
|
</div>
|
|
<div class="chioseWrap">
|
|
<div class="chioseWrap">
|
|
<el-checkbox label="线下课" v-model.trim="unonline"></el-checkbox>
|
|
<el-checkbox label="线下课" v-model.trim="unonline"></el-checkbox>
|
|
@@ -217,30 +214,21 @@
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
v-if="unonlineSalary == 'TEACHER_DEFAULT'"
|
|
v-if="unonlineSalary == 'TEACHER_DEFAULT'"
|
|
></div>
|
|
></div>
|
|
- <!-- <el-checkbox label="是否参加梯度"
|
|
|
|
- style="margin-left:20px;"
|
|
|
|
- v-model.trim="offlineClassJoinGradientRewards"></el-checkbox> -->
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="chioseWrap">
|
|
|
|
- <el-checkbox v-model.trim="paymentReadonlyFlag"
|
|
|
|
- label="可自定义单价"></el-checkbox>
|
|
|
|
- <el-checkbox v-model.trim="salaryReadonlyFlag"
|
|
|
|
- label="可自定义课酬"></el-checkbox>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <el-alert
|
|
|
|
|
|
+ </div> -->
|
|
|
|
+ <!-- <el-alert
|
|
title="活动类型:"
|
|
title="活动类型:"
|
|
type="info"
|
|
type="info"
|
|
style="margin-bottom: 15px"
|
|
style="margin-bottom: 15px"
|
|
:closable="false"
|
|
:closable="false"
|
|
class="alert"
|
|
class="alert"
|
|
>
|
|
>
|
|
- </el-alert>
|
|
|
|
- <div class="activeType">
|
|
|
|
- <!-- <div class="left">
|
|
|
|
- <p>活动类型</p>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+ </el-alert> -->
|
|
|
|
+ <!-- <div class="activeType">
|
|
|
|
+
|
|
<div class="right">
|
|
<div class="right">
|
|
<div>
|
|
<div>
|
|
<div
|
|
<div
|
|
@@ -364,11 +352,6 @@
|
|
placeholder="学员购买次数"
|
|
placeholder="学员购买次数"
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
- <!-- <el-checkbox
|
|
|
|
- v-if="activeType=='GIVE_CLASS'"
|
|
|
|
- v-model.trim="giveClassPaySalaryFlag"
|
|
|
|
- label="赠送课时结算课酬"
|
|
|
|
- ></el-checkbox> -->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -379,9 +362,7 @@
|
|
>
|
|
>
|
|
<el-button type="primary" @click="submitFrom">确定</el-button>
|
|
<el-button type="primary" @click="submitFrom">确定</el-button>
|
|
<el-button type="info" @click="onReSet">重置</el-button>
|
|
<el-button type="info" @click="onReSet">重置</el-button>
|
|
- <!-- <div class="okBtn"
|
|
|
|
- @click="submitFrom">确定</div> -->
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -483,8 +464,8 @@ export default {
|
|
// this.searchForm = this.$route.query.searchForm;
|
|
// this.searchForm = this.$route.query.searchForm;
|
|
// }
|
|
// }
|
|
|
|
|
|
- this.pageType = this.$route.query.type;
|
|
|
|
- this.$refs.vipform.resetFields();
|
|
|
|
|
|
+ // this.pageType = this.$route.query.type;
|
|
|
|
+ // this.$refs.vipform.resetFields();
|
|
},
|
|
},
|
|
|
|
|
|
async mounted() {
|
|
async mounted() {
|
|
@@ -504,7 +485,7 @@ export default {
|
|
await this.$store.dispatch("setVipGroupCategory");
|
|
await this.$store.dispatch("setVipGroupCategory");
|
|
// 获取分部
|
|
// 获取分部
|
|
await this.$store.dispatch("setBranchs");
|
|
await this.$store.dispatch("setBranchs");
|
|
- this.onReSet();
|
|
|
|
|
|
+ // this.onReSet();
|
|
// if (this.$route.query.rules) {
|
|
// if (this.$route.query.rules) {
|
|
// this.rules = this.$route.query.rules;
|
|
// this.rules = this.$route.query.rules;
|
|
// }
|
|
// }
|
|
@@ -691,7 +672,7 @@ export default {
|
|
).then((res) => {
|
|
).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success("恭喜你,活动创建成功");
|
|
this.$message.success("恭喜你,活动创建成功");
|
|
- this.onReSet();
|
|
|
|
|
|
+ // this.onReSet();
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/vipActiveManager/vipActiveList",
|
|
path: "/vipActiveManager/vipActiveList",
|
|
@@ -749,12 +730,15 @@ export default {
|
|
this.attribute2 = "";
|
|
this.attribute2 = "";
|
|
this.courseNumForm.maxCourseNum = "";
|
|
this.courseNumForm.maxCourseNum = "";
|
|
this.courseNumForm.minCourseNum = "";
|
|
this.courseNumForm.minCourseNum = "";
|
|
- this.$refs.vipform.resetFields();
|
|
|
|
|
|
+ // this.$refs.vipform.resetFields();
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.baseMsg {
|
|
|
|
+ margin: 30px 0;
|
|
|
|
+}
|
|
.m-core {
|
|
.m-core {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
width: 100%;
|
|
width: 100%;
|