|
|
|
@ -15,29 +15,30 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-slot:name v-if="active===0">
|
|
|
|
<template v-slot:type v-if="active===0">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>课程名称:
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>课程体系:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-input v-model="form.name" placeholder="请输入课程名称" clearable style="width: 100%;"></el-input>
|
|
|
|
<el-select v-model="form.type" @change="changeType" placeholder="请选择体系" clearable style="width: 100%;">
|
|
|
|
|
|
|
|
<el-option v-for="item in courseTypesList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-slot:type v-if="active===0">
|
|
|
|
<template v-slot:name v-if="active===0">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>课程类别:
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>课程名称:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-select v-model="form.type" @change="changeType" placeholder="请选择类别" clearable style="width: 100%;">
|
|
|
|
<el-input v-model="form.name" placeholder="请输入课程名称" clearable style="width: 100%;"></el-input>
|
|
|
|
<el-option v-for="item in courseTypesList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<template v-slot:dateRange v-if="active===0">
|
|
|
|
<template v-slot:dateRange v-if="active===0">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
@ -116,12 +117,12 @@
|
|
|
|
<template v-slot:is_fee v-if="active===0">
|
|
|
|
<template v-slot:is_fee v-if="active===0">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>是否缴费:
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>课程类型:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-radio-group style="width:100%" v-model="form.is_fee">
|
|
|
|
<el-radio-group style="width:100%" v-model="form.is_fee">
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
<el-radio :label="1">付费</el-radio>
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
<el-radio :label="0">公益</el-radio>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -223,7 +224,7 @@
|
|
|
|
<Button ghost type="primary" v-if="active===1" @click="active=0">上一步</Button>
|
|
|
|
<Button ghost type="primary" v-if="active===1" @click="active=0">上一步</Button>
|
|
|
|
<!-- <Button ghost type="primary" v-if="active===0" @click="next">下一步</Button> -->
|
|
|
|
<!-- <Button ghost type="primary" v-if="active===0" @click="next">下一步</Button> -->
|
|
|
|
<Button type="primary" ghost @click="checkSubmit" v-if="active===0">保存并下一步</Button>
|
|
|
|
<Button type="primary" ghost @click="checkSubmit" v-if="active===0">保存并下一步</Button>
|
|
|
|
<Button type="primary" @click="closeSubmit">关闭</Button>
|
|
|
|
<Button type="primary" @click="closeSubmit">完成并关闭</Button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -269,8 +270,8 @@
|
|
|
|
publicizeList: [],
|
|
|
|
publicizeList: [],
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
|
step: '', // 控制课程 课表
|
|
|
|
step: '', // 控制课程 课表
|
|
|
|
name: '',
|
|
|
|
|
|
|
|
type: '',
|
|
|
|
type: '',
|
|
|
|
|
|
|
|
name: '',
|
|
|
|
dateRange: '',
|
|
|
|
dateRange: '',
|
|
|
|
total: '',
|
|
|
|
total: '',
|
|
|
|
sign_start_date: '',
|
|
|
|
sign_start_date: '',
|
|
|
|
@ -292,7 +293,7 @@
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
type: [{
|
|
|
|
type: [{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: '请选择课程类别'
|
|
|
|
message: '请选择课程体系'
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
sign_start_date: [{
|
|
|
|
sign_start_date: [{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
@ -451,7 +452,7 @@
|
|
|
|
getDetail() {
|
|
|
|
getDetail() {
|
|
|
|
show({
|
|
|
|
show({
|
|
|
|
id: this.id,
|
|
|
|
id: this.id,
|
|
|
|
show_relation: ['image','qun_image']
|
|
|
|
show_relation: ['image', 'qun_image']
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
this.form = this.base.requestToForm(res, this.form)
|
|
|
|
this.form = this.base.requestToForm(res, this.form)
|
|
|
|
if (res.image) {
|
|
|
|
if (res.image) {
|
|
|
|
@ -517,8 +518,8 @@
|
|
|
|
this.formList = []
|
|
|
|
this.formList = []
|
|
|
|
this.form = {
|
|
|
|
this.form = {
|
|
|
|
step: '', // 控制课程 课表
|
|
|
|
step: '', // 控制课程 课表
|
|
|
|
name: '',
|
|
|
|
|
|
|
|
type: '',
|
|
|
|
type: '',
|
|
|
|
|
|
|
|
name: '',
|
|
|
|
dateRange: '',
|
|
|
|
dateRange: '',
|
|
|
|
total: '',
|
|
|
|
total: '',
|
|
|
|
sign_start_date: '',
|
|
|
|
sign_start_date: '',
|
|
|
|
|