|
|
|
|
@ -12,6 +12,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:status>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
@ -24,20 +25,20 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:is_chart>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>是否统计:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select v-model="form.is_chart" placeholder="请选择是否统计" style="width: 100%;">
|
|
|
|
|
<el-option v-for="item in [{id:0,value:'否'},{id:1,value:'是'}]" :key="item.id" :label="item.value" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:is_chart>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>是否统计:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select v-model="form.is_chart" placeholder="请选择是否统计" style="width: 100%;">
|
|
|
|
|
<el-option v-for="item in [{id:0,value:'否'},{id:1,value:'是'}]" :key="item.id" :label="item.value" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-slot:wait_tip>
|
|
|
|
|
@ -50,45 +51,122 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:pass_tip>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>通过提示:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width: 100%;" v-model="form.pass_tip" placeholder="请输入通过提示" clearable></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:fault_tip>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>不通过提示:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width: 100%;" v-model="form.fault_tip" placeholder="请输入不通过提示" clearable></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:back_tip>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>备选提示:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width: 100%;" v-model="form.back_tip" placeholder="请输入备选提示" clearable></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:year_total>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>年预约次数:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width: 100%;" v-model="form.year_total" placeholder="请输入年预约次数" clearable></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<template v-slot:pass_tip>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>通过提示:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width: 100%;" v-model="form.pass_tip" placeholder="请输入通过提示" clearable></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:fault_tip>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>不通过提示:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width: 100%;" v-model="form.fault_tip" placeholder="请输入不通过提示" clearable></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:back_tip>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>备选提示:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width: 100%;" v-model="form.back_tip" placeholder="请输入备选提示" clearable></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:year_total>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>年预约次数:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="width: 100%;" v-model="form.year_total" placeholder="请输入年预约次数" clearable></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:color>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red; font-weight: bold; padding-right: 4px"
|
|
|
|
|
></span
|
|
|
|
|
>主题颜色:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-color-picker v-model="form.color"></el-color-picker>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:is_fee>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>课程类型:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-radio-group style="width:100%" v-model="form.is_fee">
|
|
|
|
|
<el-radio :label="1">付费</el-radio>
|
|
|
|
|
<el-radio :label="0">公益</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:is_arrange>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>是否排课:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-radio-group style="width:100%" v-model="form.is_arrange">
|
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:show_txl>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>是否显示通讯录:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-radio-group style="width:100%" v-model="form.show_txl">
|
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:show_mobile>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>是否显示联系方式:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-radio-group style="width:100%" v-model="form.show_mobile">
|
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:auto_schoolmate>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>已审核学员是否自动进入校友库
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-radio-group style="width:100%" v-model="form.auto_schoolmate">
|
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -112,14 +190,21 @@
|
|
|
|
|
type: 'add',
|
|
|
|
|
id: '',
|
|
|
|
|
form: {
|
|
|
|
|
name:'',
|
|
|
|
|
status:1,
|
|
|
|
|
is_chart:0,
|
|
|
|
|
wait_tip:"",
|
|
|
|
|
pass_tip:"",
|
|
|
|
|
fault_tip:'',
|
|
|
|
|
back_tip:"",
|
|
|
|
|
year_total:""
|
|
|
|
|
name:'',
|
|
|
|
|
|
|
|
|
|
status:1,
|
|
|
|
|
is_chart:0,
|
|
|
|
|
wait_tip:"",
|
|
|
|
|
pass_tip:"",
|
|
|
|
|
fault_tip:'',
|
|
|
|
|
back_tip:"",
|
|
|
|
|
year_total:"",
|
|
|
|
|
color:'',
|
|
|
|
|
is_fee:'',
|
|
|
|
|
is_arrange:'',
|
|
|
|
|
show_txl:'',
|
|
|
|
|
show_mobile:'',
|
|
|
|
|
auto_schoolmate:'',
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
name: [{
|
|
|
|
|
@ -134,8 +219,8 @@
|
|
|
|
|
submit() {
|
|
|
|
|
if (this.id) {
|
|
|
|
|
this.form.id = this.id
|
|
|
|
|
}else{
|
|
|
|
|
this.form.id = ''
|
|
|
|
|
}else{
|
|
|
|
|
this.form.id = ''
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
save({
|
|
|
|
|
@ -144,7 +229,7 @@
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: '保存课程类型成功'
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.isShow = false
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
// this.active = 1
|
|
|
|
|
@ -156,9 +241,13 @@
|
|
|
|
|
id: this.id
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.form = this.base.deepCopy(res)
|
|
|
|
|
this.form.status = res.status?res.status:0
|
|
|
|
|
this.form.is_chart = res.is_chart?res.is_chart:0
|
|
|
|
|
|
|
|
|
|
this.form.status = res.status?res.status:0
|
|
|
|
|
this.form.is_chart = res.is_chart?res.is_chart:0
|
|
|
|
|
this.form.is_fee = res.is_fee?res.is_fee:(res.is_fee==0?0:'')
|
|
|
|
|
this.form.is_arrange = res.is_arrange?res.is_arrange:(res.is_arrange==0?0:'')
|
|
|
|
|
this.form.show_txl = res.show_txl?res.show_txl:(res.show_txl==0?0:'')
|
|
|
|
|
this.form.show_mobile = res.show_mobile?res.show_mobile:(res.show_mobile==0?0:'')
|
|
|
|
|
this.form.auto_schoolmate = res.auto_schoolmate?res.auto_schoolmate:(res.auto_schoolmate==0?0:'')
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -166,22 +255,29 @@
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
isShow(newVal) {
|
|
|
|
|
if (newVal) {
|
|
|
|
|
if (newVal) {
|
|
|
|
|
console.log("form",this.form)
|
|
|
|
|
if (this.type === 'editor') {
|
|
|
|
|
this.getDetail()
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.id = ''
|
|
|
|
|
this.form = {
|
|
|
|
|
name:'',
|
|
|
|
|
status:1,
|
|
|
|
|
is_chart:0,
|
|
|
|
|
wait_tip:"",
|
|
|
|
|
pass_tip:"",
|
|
|
|
|
fault_tip:'',
|
|
|
|
|
back_tip:"",
|
|
|
|
|
year_total:""
|
|
|
|
|
this.id = ''
|
|
|
|
|
this.form = {
|
|
|
|
|
name:'',
|
|
|
|
|
|
|
|
|
|
status:1,
|
|
|
|
|
is_chart:0,
|
|
|
|
|
wait_tip:"",
|
|
|
|
|
pass_tip:"",
|
|
|
|
|
fault_tip:'',
|
|
|
|
|
back_tip:"",
|
|
|
|
|
year_total:"",
|
|
|
|
|
color:'',
|
|
|
|
|
is_fee:'',
|
|
|
|
|
is_arrange:'',
|
|
|
|
|
show_txl:'',
|
|
|
|
|
show_mobile:'',
|
|
|
|
|
auto_schoolmate:'',
|
|
|
|
|
},
|
|
|
|
|
this.$refs['dialog'].reset()
|
|
|
|
|
}
|
|
|
|
|
@ -193,4 +289,4 @@
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|