查询
导出
@@ -122,14 +132,16 @@
return {
subjectObj: {},
select: {
- name: '',
+ name: '',
+ mobile:'',
course_id: '',
company_name: '',
company_position: '',
company_area: '',
company_type: '',
company_industry: '',
- status: '',
+ status: '',
+ apply_status:'',
page: 1,
page_size: 10
},
@@ -215,6 +227,7 @@
page: this.select.page,
page_size: this.select.page_size,
name: this.select.name,
+ mobile:this.select.mobile,
company_name: this.select.company_name,
company_position: this.select.company_position,
company_area: this.select.company_area,
@@ -227,7 +240,7 @@
}, {
key: 'status',
op: 'eq',
- value: this.select.status
+ value: this.select.apply_status
}]
})
this.list = res.data
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 3426823..0d1be08 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -13,8 +13,8 @@
欢迎登录
- 账号登录
- 短信登录
+ 账号登录
+ 短信登录
@@ -69,7 +69,8 @@
loginMsg
} from "@/api/user.js"
import {
- setToken
+ setToken,
+ getToken
} from '@/utils/auth'
const defaultSettings = require('../../../src/settings.js')
export default {
@@ -155,17 +156,20 @@
return
}
if (this.base.isNull(this.loginForm.mobile)) {
- this.$Message.warning('请输入手机号')
+ // this.$Message.warning('请输入手机号')
+ this.base.showMessage("请输入手机号",'error')
return
}
if (!this.base.isPhone(this.loginForm.mobile)) {
- this.$Message.warning('请输入正确的手机号')
+ // this.$Message.warning('请输入正确的手机号')
+ this.base.showMessage("请输入正确的手机号",'error')
return
}
getMsg({
mobile: this.loginForm.mobile
- }).then(res => {
- this.$Message.success('发送成功')
+ }).then(res => {
+ this.base.showMessage("发送成功",'success')
+ // this.$Message.success('发送成功')
// 短信发送后 60s
this.hasSend = true
this.sendTimer = setInterval(() => {
@@ -181,24 +185,25 @@
// 短信登录
handleMsgLogin(){
if (this.base.isNull(this.loginForm.mobile)) {
- this.$Message.warning('请输入手机号')
+ // this.$Message.warning('请输入手机号')
+ this.base.showMessage("请输入手机号",'error')
return
}
if (this.base.isNull(this.loginForm.code)) {
- this.$Message.warning('请输入验证码')
+ // this.$Message.warning('请输入验证码')
+ this.base.showMessage("请输入验证码",'error')
return
}
this.loading = true
- loginMsg({
- mobile:this.loginForm.mobile,
- code:this.loginForm.code
- }).then(res=>{
- setToken(res.access_token)
+ let that = this
+ this.$store.dispatch('user/loginMsg', this.loginForm).then(() => {
+ // this.$Message.success("登录成功")
+ this.base.showMessage("登录成功",'success')
this.$router.push({
path: this.redirect || '/dashboard'
})
this.loading = false
- }).catch(res=>{
+ }).catch(() => {
this.loading = false
})
},
@@ -210,7 +215,8 @@
if (valid) {
this.loading = true
this.$store.dispatch('user/login', this.loginForm).then(() => {
-
+ // this.$Message.success("登录成功")
+ this.base.showMessage("登录成功",'success')
this.$router.push({
path: this.redirect || '/dashboard'
})
@@ -411,7 +417,8 @@
border: none;
height: 47px;
line-height: 47px;
- padding: 0;
+ padding: 0;
+ cursor: pointer;
font-size: 18px;
}
diff --git a/src/views/student/components/detail.vue b/src/views/student/components/detail.vue
index bfc80f6..a733b7c 100644
--- a/src/views/student/components/detail.vue
+++ b/src/views/student/components/detail.vue
@@ -16,7 +16,7 @@
-
+
姓名
@@ -104,19 +104,32 @@
style="margin-bottom: 10px; border: 0px; margin-top: 15px">
-
-
-
- {{item.name}}
-
- {{item.value}}
-
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+ {{item.value}}
+
+
+
-
+
@@ -131,8 +144,8 @@
评分:
{{sign_result.score}}
-
-
附件:
+
+
录取通知书:
备注:
- {{sign_result.reason}}
+ {{sign_result.reason?sign_result.reason:''}}
@@ -176,15 +189,18 @@
-
+
- 附件:
+ 录取通知书:
- 点击上传
+ ref="pictureUpload" :auto-upload="true"
+ accept=".xls, .ppt, .pdf, .docx, .xlsx, .pptx"
+ :limit="1" :on-success="uploadSuccess" :on-remove="uploadRemove">
+ 点击上传
+ 只能上传xls/ppt/pdf/docx/xlsx/pptx文件
@@ -204,9 +220,9 @@
确认
- 取消
- 关闭
@@ -237,7 +253,8 @@
type: 'show',
typeName: '查看个人明细',
id: '',
- action: `${process.env.VUE_APP_UPLOAD_API}`,
+ action: `${process.env.VUE_APP_UPLOAD_API}`,
+ host:`${process.env.VUE_APP_BASE_API}`,
subjectObj: {},
student_info: {},
row: {},
@@ -260,7 +277,14 @@
},
uploadRemove(file, fileList) {
this.fileList = fileList
- },
+ },
+ // beforeUpload(file) {
+ // const isImage = file.type.includes('image');
+ // if (!isImage) {
+ // this.$message.error('请上传正确的图片格式文件');
+ // }
+ // return isImage && isLt2M;
+ // },
submit() {
if (this.id) {
this.form.id = this.id
@@ -305,8 +329,16 @@
show_relation: ['user']
}).then(res => {
this.student_info = res.user
- this.sign_result = res
- this.sign_info = res.data
+ this.sign_result = res
+ 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
+ console.log("this.sign_info",this.sign_info)
})
}
},
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index ad23925..b7b9173 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -10,6 +10,9 @@
+
+
+
@@ -113,9 +116,11 @@
-
+
+
VIP学员
+
普通学员
@@ -150,7 +155,8 @@
return {
path: '',
select: {
- name: '',
+ name: '',
+ mobile:'',
course_name: '',
company_name: '',
company_position: '',
@@ -244,7 +250,8 @@
const res = await indexStudy({
page: this.select.page,
page_size: this.select.page_size,
- name: this.select.name,
+ name: this.select.name,
+ mobile:this.select.mobile,
company_name: this.select.company_name,
company_position: this.select.company_position,
company_area: this.select.company_area,
diff --git a/src/views/student/search.vue b/src/views/student/search.vue
index 72d8f1f..c9182c7 100644
--- a/src/views/student/search.vue
+++ b/src/views/student/search.vue
@@ -10,6 +10,9 @@
+
+
+
@@ -140,7 +143,8 @@
return {
path: '',
select: {
- name: '',
+ name: '',
+ mobile:'',
course_name: '',
company_name: '',
company_position: '',
@@ -230,7 +234,8 @@
const res = await indexStudy({
page: this.select.page,
page_size: this.select.page_size,
- name: this.select.name,
+ name: this.select.name,
+ mobile:this.select.mobile,
company_name: this.select.company_name,
company_position: this.select.company_position,
company_area: this.select.company_area,