修改意见

dev
lion 1 year ago
parent 4eb1951e79
commit d229adaf6f

@ -12,6 +12,10 @@
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
</div> </div>
<div>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div>
<div> <div>
<el-button type="primary" size="small" @click="editAppointment('add')"></el-button> <el-button type="primary" size="small" @click="editAppointment('add')"></el-button>
</div> </div>
@ -146,6 +150,12 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,
@ -154,7 +164,7 @@
sort_name:'sort', sort_name:'sort',
sort_type:'ASC', sort_type:'ASC',
filter: [{ filter: [{
key: 'name', key: 'real_name',
op: 'like', op: 'like',
value: this.select.name value: this.select.name
}] }]

@ -103,6 +103,16 @@
</div> </div>
</div> </div>
</template> </template>
<template v-slot:tips>
<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">
<my-tinymce v-if="showTinymce1" @input="saveContent1" :value="form.tips"></my-tinymce>
</div>
</div>
</template>
</xy-dialog> </xy-dialog>
</div> </div>
</template> </template>
@ -122,6 +132,7 @@
type: 'add', type: 'add',
id: '', id: '',
showTinymce: false, showTinymce: false,
showTinymce1: false,
form: { form: {
name: '', name: '',
introduce: '', introduce: '',
@ -133,7 +144,8 @@
image_id: [], image_id: [],
start_time: '09:00', start_time: '09:00',
end_time: '17:30', end_time: '17:30',
content: '' content: '',
tips:''
}, },
action: `${process.env.VUE_APP_UPLOAD_API}`, action: `${process.env.VUE_APP_UPLOAD_API}`,
fileList: [], fileList: [],
@ -150,6 +162,9 @@
saveContent(e) { saveContent(e) {
this.form.content = e this.form.content = e
}, },
saveContent1(e) {
this.form.tips = e
},
changeDateRange(e) { changeDateRange(e) {
console.log(e) console.log(e)
if (e) { if (e) {
@ -201,9 +216,10 @@
this.form = this.base.requestToForm(res, this.form) this.form = this.base.requestToForm(res, this.form)
this.fileList = res.image this.fileList = res.image
this.form.dateRange = res.start_time ? [res.start_time, res.end_time] : ['', ''], this.form.dateRange = res.start_time ? [res.start_time, res.end_time] : ['', ''],
this.form.sort = res.sort ? res.sort : 0 this.form.sort = res.sort ? res.sort : 0
this.form.is_book = res.is_book ? res.is_book : 0 this.form.is_book = res.is_book ? res.is_book : 0
this.showTinymce = true this.showTinymce = true
this.showTinymce1 = true
}) })
}, },
@ -231,6 +247,7 @@
<style scoped lang="scss"> <style scoped lang="scss">
::v-deep .content, ::v-deep .content,
::v-deep .tips,
::v-deep .image_id { ::v-deep .image_id {
flex-basis: 100%; flex-basis: 100%;
} }

@ -27,7 +27,10 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div> </div>
</div> </div>
</div> </div>
</lx-header> </lx-header>
@ -162,6 +165,14 @@
}) })
this.course_options = res.data this.course_options = res.data
}, },
resetSelect(){
this.select.name = ''
this.select.course_name = ''
this.select.course_id=''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await indexStudy({ const res = await indexStudy({
page: this.select.page, page: this.select.page,

@ -23,6 +23,10 @@
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
</div> </div>
<div>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div>
<div> <div>
<el-button type="primary" size="small" @click="exportExcel"></el-button> <el-button type="primary" size="small" @click="exportExcel"></el-button>
</div> </div>
@ -40,8 +44,8 @@
</div> </div>
<div> <div>
<xy-table :list="list" :showIndexFixed="'left'" :total="total" @pageIndexChange="pageIndexChange" @pageSizeChange="pageSizeChange" <xy-table :list="list" :showIndexFixed="'left'" :total="total" @pageIndexChange="pageIndexChange"
:table-item="table_item"> @pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:status> <template v-slot:status>
<el-table-column align='center' label="状态" width="120" header-align="center"> <el-table-column align='center' label="状态" width="120" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -63,10 +67,10 @@
<el-table-column align='center' fixed="right" label="操作" width="220" header-align="center"> <el-table-column align='center' fixed="right" label="操作" width="220" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="small" v-if="scope.row.status>0" <el-button type="primary" size="small" v-if="scope.row.status>0"
@click="checkBook('show',scope.row.id)">查看</el-button> @click="checkBook('show',scope.row.id)">查看</el-button>
<el-button type="primary" size="small" v-if="scope.row.status===0" <el-button type="primary" size="small" v-if="scope.row.status===0"
@click="checkBook('check',scope.row.id)">审核</el-button> @click="checkBook('check',scope.row.id)">审核</el-button>
<el-button type="primary" size="small" v-if="scope.row.status===3" <el-button type="primary" size="small" v-if="scope.row.status===3"
@click="editBook('editor',scope.row.id,)">编辑</el-button> @click="editBook('editor',scope.row.id,)">编辑</el-button>
<el-popconfirm style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?"> <el-popconfirm style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
<el-button type="danger" size="small" slot="reference">删除</el-button> <el-button type="danger" size="small" slot="reference">删除</el-button>
@ -173,6 +177,14 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect() {
this.select.date = ''
this.select.site = ''
this.select.user_name = ''
this.select.page = 1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,
@ -225,7 +237,7 @@
this.$refs.checkBook.type = type this.$refs.checkBook.type = type
this.$refs.checkBook.isShow = true this.$refs.checkBook.isShow = true
}, },
editBook(type, id,status) { editBook(type, id, status) {
if (id) { if (id) {
this.$refs.addBook.id = id this.$refs.addBook.id = id
} }
@ -238,9 +250,9 @@
this.table_item.map(item => { this.table_item.map(item => {
if (item.prop === 'status') { if (item.prop === 'status') {
_export['status_text'] = item.label _export['status_text'] = item.label
}else if (item.prop === 'date') { } else if (item.prop === 'date') {
_export['start_time'] = '预约开始时间' _export['start_time'] = '预约开始时间'
}else if (item.prop === 'timerange') { } else if (item.prop === 'timerange') {
_export['end_time'] = '预约结束时间' _export['end_time'] = '预约结束时间'
} else { } else {
_export[item.prop] = item.label _export[item.prop] = item.label

@ -17,6 +17,8 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="editBanner('add')"></el-button> <el-button type="primary" size="small" @click="editBanner('add')"></el-button>
@ -96,7 +98,7 @@
value: '首页' value: '首页'
}, { }, {
id: 2, id: 2,
value: '课程中心、我的课程、报名状态' value: '我的课程、报名状态'
} }
// , { // , {
// id: 3, // id: 3,
@ -159,6 +161,13 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.position = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -17,6 +17,8 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="editNotice('add')"></el-button> <el-button type="primary" size="small" @click="editNotice('add')"></el-button>
@ -145,6 +147,13 @@
this.$refs.addDonate.type = type this.$refs.addDonate.type = type
this.$refs.addDonate.isShow = true this.$refs.addDonate.isShow = true
}, },
resetSelect(){
this.select.username = ''
this.select.course = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page_size: this.select.page_size, page_size: this.select.page_size,

@ -12,6 +12,10 @@
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
</div> </div>
<div>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div>
<div> <div>
<el-button type="primary" size="small" @click="editInfo('add')"></el-button> <el-button type="primary" size="small" @click="editInfo('add')"></el-button>
</div> </div>
@ -92,6 +96,12 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -11,6 +11,8 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="editTeacher('add')"></el-button> <el-button type="primary" size="small" @click="editTeacher('add')"></el-button>
@ -108,6 +110,12 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -21,6 +21,7 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div> </div>
</div> </div>
</div> </div>
@ -174,6 +175,13 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.type = ''
this.select.dateRange = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -69,6 +69,7 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
<el-button style="margin-right:10px" type="primary" size="small" @click="exportExcel"></el-button> <el-button style="margin-right:10px" type="primary" size="small" @click="exportExcel"></el-button>
<el-popconfirm @confirm="updateAllStatus" title="确定要批量审核吗?"> <el-popconfirm @confirm="updateAllStatus" title="确定要批量审核吗?">
<el-button type="primary" size="small" slot="reference">批量审核</el-button> <el-button type="primary" size="small" slot="reference">批量审核</el-button>
@ -243,6 +244,19 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.mobile = ''
this.select.company_name = ''
this.select.company_position = ''
this.select.company_area = ''
this.select.company_type = ''
this.select.company_industry = ''
this.select.education = ''
this.select.status = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -22,6 +22,8 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click='select.page=1,getList()'>查询</el-button> <el-button type="primary" size="small" @click='select.page=1,getList()'>查询</el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
<el-button type="primary" size="small" @click="importTable"></el-button> <el-button type="primary" size="small" @click="importTable"></el-button>
<el-button type="primary" size="small" @click="exportExcel"></el-button> <el-button type="primary" size="small" @click="exportExcel"></el-button>
</div> </div>
@ -216,6 +218,13 @@
// {"course_id":15,"course_content_id":188} // {"course_id":15,"course_content_id":188}
}, },
resetSelect(){
this.select.name = ''
this.select.date = ''
this.select.status = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -23,6 +23,9 @@
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
</div> </div>
<div>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div>
</div> </div>
</div> </div>
@ -174,6 +177,13 @@
}) })
this.teacher_options = res.data this.teacher_options = res.data
}, },
resetSelect(){
this.select.name = ''
this.select.type = ''
this.select.dateRange = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -261,7 +261,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" v-if="active===1" @click="closeSubmit"></Button>
</template> </template>
@ -487,8 +487,9 @@
}) })
}, },
closeSubmit() { closeSubmit() {
this.isShow = false
this.$emit('refresh') this.$emit('refresh')
this.isShow = false
}, },
getDetail() { getDetail() {
show({ show({

@ -100,10 +100,10 @@
form: { form: {
name:'', name:'',
status:1, status:1,
wait_tip:"我们将在1-3个工作日内审核并通知您报名结果….", wait_tip:"",
pass_tip:"恭喜您,您已被录取!", pass_tip:"",
fault_tip:'很遗憾,您未通过审核。', fault_tip:'',
back_tip:"很遗憾,您未通过审核。", back_tip:"",
year_total:"" year_total:""
}, },
rules: { rules: {
@ -138,7 +138,7 @@
show({ show({
id: this.id id: this.id
}).then(res => { }).then(res => {
this.form = this.base.requestToForm(res, this.form) this.form = this.base.deepCopy(res)
this.form.status = res.status?res.status:0 this.form.status = res.status?res.status:0
}) })
}, },

@ -5,6 +5,10 @@
<div style="display: flex;align-items: center;justify-content: space-between;font-size: 26px;"> <div style="display: flex;align-items: center;justify-content: space-between;font-size: 26px;">
<div>创建报名表单</div> <div>创建报名表单</div>
<div style="cursor: pointer;"> <div style="cursor: pointer;">
<!-- <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> -->
<Button type="primary" @click="dialogVisible = false">完成并关闭</Button> <Button type="primary" @click="dialogVisible = false">完成并关闭</Button>
</div> </div>
</div> </div>
@ -229,6 +233,7 @@
selectPick(i, index) { selectPick(i, index) {
this.$refs.editPane.selectedIndex = index this.$refs.editPane.selectedIndex = index
this.$refs.editPane.selectedForm = deepCopy(i) this.$refs.editPane.selectedForm = deepCopy(i)
this.$refs.editPane.formList = deepCopy(this.formList)
this.$refs.editPane.showForm = true this.$refs.editPane.showForm = true
}, },
// item // item

@ -107,6 +107,7 @@
selectItem: [], // selectItem: [], //
validation: [], // validation: [], //
parameters: [], // parameters: [], //
formList:[],
forms: [], // forms: [], //
}; };
}, },
@ -127,13 +128,13 @@
} }
}, },
//
changeIsUser(e) { changeIsUser(e) {
console.log("e", e) console.log("e", e)
console.log(this.selectedForm) console.log(this.selectedForm)
if(e){ if(e){
this.selectFormList.map(item => { this.selectFormList.map(item => {
if (e === item.belong_user_table) { if (e === item.belong_user_table) {
// this.selectedForm = this.base.requestToForm(item,this.selectedForm)
this.selectedForm.name = item.name this.selectedForm.name = item.name
this.selectedForm.field = item.field this.selectedForm.field = item.field
this.selectedForm.help = item.help this.selectedForm.help = item.help
@ -151,20 +152,44 @@
}) })
}else{ }else{
this.selectedForm.belong_user = 0 this.selectedForm.belong_user = 0
} }
}, },
saveField() { saveField() {
console.log("this.selectedForm.select_item",this.selectedForm)
if(this.base.isNull(this.selectedForm.name)){
this.$Message.warning("字段名称不能为空")
return
}
if(this.base.isNull(this.selectedForm.field)){
this.$Message.warning("字段标识不能为空")
return
}
this.selectedForm.select_item = [] this.selectedForm.select_item = []
this.selectedForm.select_item = this.selectItem this.selectedForm.select_item = this.selectItem
this.selectedForm.rule = this.validation.join(",") this.selectedForm.rule = this.validation.join(",")
//
//
if (this.selectedForm.edit_input === 'radio' || this.selectedForm.edit_input === 'checkbox') { if (this.selectedForm.edit_input === 'radio' || this.selectedForm.edit_input === 'checkbox') {
if (this.selectedForm.select_item.length === 0) { if (this.selectedForm.select_item.length === 0) {
this.$Message.warning("请输入下拉框选项") this.$Message.warning("请输入下拉框选项")
return return
}else{
//
let count = 0
this.selectedForm.select_item.map(item=>{
if(this.base.isNull(item.value) || this.base.isNull(item.key)){
count++
// item.value = item.key
}
})
if(count>0){
this.$Message.warning("下拉框选项键值不能为空")
return
}
} }
} }
// return // return
@ -195,16 +220,11 @@
watch: { watch: {
selectedForm(newVal) { selectedForm(newVal) {
console.log("newval", newVal) console.log("newval", newVal)
if (newVal) { if (newVal) {
if (newVal.select_item) { if (newVal.select_item) {
this.selectItem = []; this.selectItem = [];
this.selectItem = newVal.select_item this.selectItem = newVal.select_item
// for(let key in newVal.select_item) {
// this.selectItem.push({
// key,
// value: newVal.select_item[key]
// })
// }
} }
this.validation = [] this.validation = []
if (newVal.rule) { if (newVal.rule) {

@ -28,6 +28,7 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div> </div>
</div> </div>
</div> </div>
@ -69,7 +70,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="small" @click="showCourse('show',scope.row.id)"></el-button> <el-button type="primary" size="small" @click="showCourse('show',scope.row.id)"></el-button>
<el-button type="primary" size="small" @click="toTxl(scope.row)"></el-button> <el-button type="primary" size="small" @click="toTxl(scope.row)"></el-button>
<el-button v-if="scope.row.is_fee===1" type="primary" size="small" @click="toPay(scope.row)"></el-button> <el-button v-if="scope.row.is_fee===1" type="primary" size="small"
@click="toPay(scope.row)">缴费记录</el-button>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -106,7 +108,7 @@
page: 1, page: 1,
page_size: 10, page_size: 10,
}, },
history_date:'', history_date: '',
list: [], list: [],
total: 0, total: 0,
table_item: [{ table_item: [{
@ -145,7 +147,7 @@
created() { created() {
this.history_date = this.$moment().add(-30, 'days').format('YYYY-MM-DD'), this.history_date = this.$moment().add(-30, 'days').format('YYYY-MM-DD'),
this.getList() this.getList()
this.getTypes() this.getTypes()
}, },
methods: { methods: {
@ -153,8 +155,8 @@
indexType({ indexType({
page: 1, page: 1,
page_size: 999, page_size: 999,
sort_name:'id', sort_name: 'id',
sort_type:'ASC', sort_type: 'ASC',
}).then(res => { }).then(res => {
// this.courseTypesList = res.data.filter(item => item.status === 1) // this.courseTypesList = res.data.filter(item => item.status === 1)
this.courseTypesList = res.data this.courseTypesList = res.data
@ -169,14 +171,22 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect() {
this.select.name = ''
this.select.type = ''
this.select.dateRange = ''
this.select.status = ''
this.select.page = 1
this.getList()
},
async getList() { async getList() {
console.log("history_date",this.history_date) console.log("history_date", this.history_date)
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,
page_size: this.select.page_size, page_size: this.select.page_size,
show_relation: ['typeDetail'], show_relation: ['typeDetail'],
sort_name:'id', sort_name: 'id',
sort_type:'DESC', sort_type: 'DESC',
filter: [{ filter: [{
key: 'name', key: 'name',
op: 'like', op: 'like',
@ -193,7 +203,7 @@
key: 'start_date', key: 'start_date',
op: 'range', op: 'range',
value: this.select.dateRange value: this.select.dateRange
},{ }, {
key: 'end_date', key: 'end_date',
op: 'lt', op: 'lt',
value: this.history_date value: this.history_date
@ -211,7 +221,7 @@
}, },
showCourse(type, id) { showCourse(type, id) {
if(id){ if (id) {
this.$refs.showCourse.id = id this.$refs.showCourse.id = id
} }
this.$refs.showCourse.type = type this.$refs.showCourse.type = type
@ -228,7 +238,7 @@
id: row.id, id: row.id,
date: row.start_date + '至' + row.end_date, date: row.start_date + '至' + row.end_date,
leibie: value, leibie: value,
is_history:true is_history: true
} }
}) })
}, },
@ -241,7 +251,7 @@
id: row.id, id: row.id,
date: row.start_date + '至' + row.end_date, date: row.start_date + '至' + row.end_date,
leibie: value, leibie: value,
type:'show' type: 'show'
} }
}) })
}, },

@ -29,6 +29,9 @@
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
</div> </div>
<div>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div>
<div> <div>
<el-button type="primary" size="small" @click="editCourse('add')"></el-button> <el-button type="primary" size="small" @click="editCourse('add')"></el-button>
</div> </div>
@ -61,7 +64,7 @@
<el-table-column align='center' label="课程状态" width="120" header-align="center"> <el-table-column align='center' label="课程状态" width="120" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="item in course_date"> <div v-for="item in course_date">
<el-tag :type="item.type" v-if="scope.row.date_status===item.value">{{item.value}}</el-tag> <el-tag :type="item.type" v-if="scope.row.course_status===item.id">{{item.value}}</el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -185,6 +188,15 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.type = ''
this.select.course_status = ''
this.select.dateRange = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -19,6 +19,10 @@
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
</div> </div>
<div>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
</div>
<div> <div>
<el-button type="primary" size="small" @click="exportExcel"></el-button> <el-button type="primary" size="small" @click="exportExcel"></el-button>
</div> </div>
@ -70,7 +74,7 @@
<el-table-column align='center' label="缴费截图" width="100" header-align="center"> <el-table-column align='center' label="缴费截图" width="100" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-for="item in scope.row.fee_files"> <template v-for="item in scope.row.fee_files">
<el-image style="width:'40px';height:'40px'" :src="item.url" <el-image style="width:80px;height:80px" :src="item.url"
:preview-src-list="[item.url]"></el-image> :preview-src-list="[item.url]"></el-image>
</template> </template>
</template> </template>
@ -227,6 +231,12 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.fee_status = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await indexStudy({ const res = await indexStudy({
page: this.select.page, page: this.select.page,

@ -61,6 +61,7 @@
</div> --> </div> -->
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
<el-button type="primary" size="small" @click="importTable"></el-button> <el-button type="primary" size="small" @click="importTable"></el-button>
<el-button type="primary" size="small" @click="exportExcel"></el-button> <el-button type="primary" size="small" @click="exportExcel"></el-button>
</div> </div>
@ -234,6 +235,18 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect(){
this.select.name = ''
this.select.mobile = ''
this.select.company_name = ''
this.select.company_position = ''
this.select.company_area = ''
this.select.company_type = ''
this.select.company_industry = ''
this.select.education = ''
this.select.page=1
this.getList()
},
async getList() { async getList() {
const res = await index({ const res = await index({
page: this.select.page, page: this.select.page,

@ -316,6 +316,7 @@
this.form.status = res.status ? res.status : 0 this.form.status = res.status ? res.status : 0
this.form.score = res.score ? res.score : '' this.form.score = res.score ? res.score : ''
this.form.reason = res.reason ? res.reason : '' this.form.reason = res.reason ? res.reason : ''
this.form.giveup_reason = res.giveup_reason?res.giveup_reason:''
this.fileList = res.files ? res.files : [] this.fileList = res.files ? res.files : []
console.log("this.sign_info", this.sign_info) console.log("this.sign_info", this.sign_info)

@ -92,6 +92,7 @@
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
<el-button type="primary" size="small" @click="importTable"></el-button> <el-button type="primary" size="small" @click="importTable"></el-button>
<el-button type="primary" size="small" @click="updateSchoolmates(1)"></el-button> <el-button type="primary" size="small" @click="updateSchoolmates(1)"></el-button>
<el-button type="primary" size="small" @click="updateSchoolmates(0)"></el-button> <el-button type="primary" size="small" @click="updateSchoolmates(0)"></el-button>
@ -114,7 +115,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item,index) in scope.row.course_signs"> <div v-for="(item,index) in scope.row.course_signs">
<div v-if="item.course" <div v-if="item.course"
style="width:100%;display: flex;justify-content: space-between;align-items: center;margin-bottom:5px"> style="width:100%;display: flex;justify-content: space-between;align-items: center;margin-bottom:5px">
<div> <div>
{{item.course.year?item.course.year:''}}{{item.course.type_detail.name+' | '}}{{item.course.name}} {{item.course.year?item.course.year:''}}{{item.course.type_detail.name+' | '}}{{item.course.name}}
</div> </div>
@ -306,6 +307,25 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect() {
this.select.name=''
this.select.mobile=''
this.select.company_name=''
this.select.course_name=''
this.select.company_position=''
this.select.company_area=''
this.select.company_type=''
this.select.company_industry=''
this.select.is_vip=''
this.select.courses_end_date=''
this.select.is_schoolmate=''
this.select.education=''
this.select.type=''
this.select.status=''
this.select.course_type = ''
this.select.page = 1
this.getList()
},
async getList() { async getList() {
const res = await indexStudy({ const res = await indexStudy({
page: this.select.page, page: this.select.page,

@ -91,6 +91,7 @@
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button> <el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
<el-button type="primary" size="small" @click="exportExcel"></el-button> <el-button type="primary" size="small" @click="exportExcel"></el-button>
</div> </div>
</div> </div>
@ -279,6 +280,25 @@
this.select.page = 1 this.select.page = 1
this.getList() this.getList()
}, },
resetSelect() {
this.select.name = ''
this.select.mobile = ''
this.select.company_name = ''
this.select.course_name = ''
this.select.company_position = ''
this.select.company_area = ''
this.select.company_type = ''
this.select.company_industry = ''
this.select.is_vip = ''
this.select.courses_end_date = ''
this.select.is_schoolmate = ''
this.select.education = ''
this.select.type = ''
this.select.status = ''
this.select.course_type = ''
this.select.page = 1
this.getList()
},
async getList() { async getList() {
const res = await indexStudy({ const res = await indexStudy({
page: this.select.page, page: this.select.page,

Loading…
Cancel
Save