@@ -251,6 +265,7 @@
showTinymce: false,
courseTypesList: [],
imgList: [],
+ qunList: [],
publicizeList: [],
form: {
step: '', // 控制课程 课表
@@ -264,6 +279,7 @@
status: 0,
is_arrange: 1,
is_fee: 1,
+ qun_image_id: '',
image_id: '',
publicize_ids: [],
content: '',
@@ -281,11 +297,19 @@
sign_start_date: [{
required: true,
message: '请选择报名开始日期'
+ }],
+ sign_end_date: [{
+ required: true,
+ message: '请选择报名截止日期'
}],
// image_id: [{
// required: true,
// message: '请上传课程封面'
- // }],
+ // }],
+ qun_image_id: [{
+ required: true,
+ message: '请上传群聊二维码'
+ }],
// content: [{
// required: true,
// message: '请输入课程简介'
@@ -305,13 +329,13 @@
methods: {
changeType(e) {
- if (e == 1) {
- this.form.is_arrange = 1
- this.form.is_fee = 1
- } else {
- this.form.is_arrange = 0
- this.form.is_fee = 0
- }
+ // if (e == 1) {
+ // this.form.is_arrange = 1
+ // this.form.is_fee = 1
+ // } else {
+ // this.form.is_arrange = 0
+ // this.form.is_fee = 0
+ // }
},
saveContent(e) {
this.form.content = e
@@ -349,6 +373,18 @@
this.form.image_id = ''
},
+ onExceedQun(file, fileList) {
+ this.$Message.warning("课程封面只需上传一张")
+ },
+ uploadSuccessQun(response, file, fileList) {
+ this.form.qun_image_id = response.id
+ this.qunList = fileList
+ },
+ uploadRemoveQun(file, fileList) {
+ this.qunList = fileList
+ this.form.qun_image_id = ''
+ },
+
uploadSuccesspublic(response, file, fileList) {
this.publicizeList = fileList
},
@@ -415,14 +451,18 @@
getDetail() {
show({
id: this.id,
- show_relation: ['image']
+ show_relation: ['image','qun_image']
}).then(res => {
this.form = this.base.requestToForm(res, this.form)
if (res.image) {
this.imgList.push(res.image)
- }
+ }
+ if (res.qun_image) {
+ this.qunList.push(res.qun_image)
+ }
+
this.publicizeList = res.publicize
- this.form.dateRange = [res.start_date, res.end_date]
+ this.form.dateRange = res.start_date ? [res.start_date, res.end_date] : ''
this.form.status = res.status ? res.status : 0
this.form.is_arrange = res.is_arrange ? res.is_arrange : 0
this.form.is_fee = res.is_fee ? res.is_fee : 0
@@ -470,7 +510,8 @@
} else {
this.id = ''
this.showTinymce = false
- this.imgList = []
+ this.imgList = []
+ this.qunList = []
this.publicizeList = []
this.active = 0
this.formList = []
@@ -485,6 +526,7 @@
status: 0,
is_arrange: 1,
is_fee: 1,
+ qun_image_id: '',
image_id: '',
publicize_ids: [],
content: '',
diff --git a/src/views/course/components/applyForm.vue b/src/views/course/components/applyForm.vue
index 7e8a33c..ae1dfb2 100644
--- a/src/views/course/components/applyForm.vue
+++ b/src/views/course/components/applyForm.vue
@@ -1,6 +1,13 @@
-
+
+
+
+
+
@@ -14,9 +21,11 @@
-
+ :modal="false" :append-to-body="false" :modal-append-to-body="false">
+
基础字段
@@ -49,9 +58,9 @@
diff --git a/src/views/course/history.vue b/src/views/course/history.vue
index a80bdae..38c37ae 100644
--- a/src/views/course/history.vue
+++ b/src/views/course/history.vue
@@ -69,7 +69,7 @@
查看课程
通讯录
- 缴费记录
+ 缴费记录
@@ -143,7 +143,7 @@
}
},
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.getTypes()
@@ -195,7 +195,7 @@
value: this.select.dateRange
},{
key: 'end_date',
- op: 'gt',
+ op: 'lt',
value: this.history_date
}]
})
@@ -227,7 +227,8 @@
title: row.name,
id: row.id,
date: row.start_date + '至' + row.end_date,
- leibie: value
+ leibie: value,
+ is_history:true
}
})
},
diff --git a/src/views/course/index.vue b/src/views/course/index.vue
index c773d17..addd603 100644
--- a/src/views/course/index.vue
+++ b/src/views/course/index.vue
@@ -253,7 +253,8 @@
title: row.name,
id: row.id,
date: row.start_date ? row.start_date + '至' + row.end_date : '',
- leibie: value
+ leibie: value,
+ is_history:row.course_status===40?true:false
}
})
},
diff --git a/src/views/course/txl.vue b/src/views/course/txl.vue
index 4685581..68a807d 100644
--- a/src/views/course/txl.vue
+++ b/src/views/course/txl.vue
@@ -97,11 +97,10 @@
- 设置班委
查看
-
@@ -181,7 +180,8 @@
}, {
prop: 'user.company_name',
label: '公司名称',
- align: 'left',
+ align: 'left',
+ width: 240,
}, {
prop: 'user.company_position',
label: '职务',
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 0d1be08..a17ec28 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -198,7 +198,7 @@
let that = this
this.$store.dispatch('user/loginMsg', this.loginForm).then(() => {
// this.$Message.success("登录成功")
- this.base.showMessage("登录成功",'success')
+ // this.base.showMessage("登录成功",'success')
this.$router.push({
path: this.redirect || '/dashboard'
})
@@ -216,7 +216,7 @@
this.loading = true
this.$store.dispatch('user/login', this.loginForm).then(() => {
// this.$Message.success("登录成功")
- this.base.showMessage("登录成功",'success')
+ // this.base.showMessage("登录成功",'success')
this.$router.push({
path: this.redirect || '/dashboard'
})
diff --git a/src/views/student/components/detail.vue b/src/views/student/components/detail.vue
index fed0c31..0819f13 100644
--- a/src/views/student/components/detail.vue
+++ b/src/views/student/components/detail.vue
@@ -350,14 +350,17 @@
}).then(res => {
this.student_info = res.user
this.sign_result = res
+ this.form.position = res.position?res.position:''
if(res.data && Array.isArray(res.data)){
res.data.map(item=>{
if(!this.base.isNull(item.value) && item.value.indexOf("/storage/files/")!==-1){
item.submit_files = item.value.split(",")
}
})
- }
- this.sign_info = res.data
+ this.sign_info = res.data
+ }else{
+ this.sign_info = []
+ }
this.form.status = res.status?res.status:0
console.log("this.sign_info",this.sign_info)
})
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index 4a7ff20..88a6eef 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -177,7 +177,8 @@
company_industry: '',
is_vip: '',
is_schoolmate: '',
- courses_end_date: '',
+ courses_end_date: '',
+ education:'',
page: 1,
page_size: 10,
},
@@ -280,7 +281,8 @@
company_industry: this.select.company_industry,
is_vip: this.select.is_vip,
courses_end_date: this.select.courses_end_date,
- is_schoolmate: this.select.is_schoolmate
+ is_schoolmate: this.select.is_schoolmate,
+ education:this.select.education
})
this.list = res.list.data
this.total = res.list.total
diff --git a/src/views/student/search.vue b/src/views/student/search.vue
index 5cfea23..ccd4032 100644
--- a/src/views/student/search.vue
+++ b/src/views/student/search.vue
@@ -162,7 +162,8 @@
company_type: '',
company_industry: '',
is_vip: '',
- courses_end_date: '',
+ courses_end_date: '',
+ education:'',
page: 1,
page_size: 10,
},
@@ -252,7 +253,8 @@
company_type: this.select.company_type,
company_industry: this.select.company_industry,
is_vip: this.select.is_vip,
- courses_end_date: this.select.courses_end_date
+ courses_end_date: this.select.courses_end_date,
+ education:this.select.education,
})
this.list = res.list.data
this.total = res.list.total
@@ -289,6 +291,7 @@
company_industry: this.select.company_industry,
is_vip: this.select.is_vip,
courses_end_date: this.select.courses_end_date,
+ education:this.select.education,
is_export: 1,
page: 1,
page_size: 999