Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
402d9e3d
Commit
402d9e3d
authored
Oct 10, 2023
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
作业
parent
0aebfb6f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
27 deletions
+21
-27
src/components/index/SignUp/pass.vue
src/components/index/SignUp/pass.vue
+4
-6
src/views/index/camp/Homework.vue
src/views/index/camp/Homework.vue
+0
-1
src/views/index/camp/homework/refer.vue
src/views/index/camp/homework/refer.vue
+16
-20
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+1
-0
No files found.
src/components/index/SignUp/pass.vue
View file @
402d9e3d
...
...
@@ -27,7 +27,7 @@
<
script
>
/* eslint-disable */
import
{
sign
UpInit
,
signBack
}
from
"
r/index/signUp
"
;
import
{
sign
Back
,
signUpInit
}
from
"
r/index/signUp
"
;
export
default
{
name
:
"
Pass
"
,
...
...
@@ -36,9 +36,7 @@
examine_status
:
window
.
localStorage
.
getItem
(
"
examine_status
"
+
this
.
$store
.
state
.
indexIdentity
),
examine_reason
:
window
.
localStorage
.
getItem
(
"
examine_reason
"
+
this
.
$store
.
state
.
indexIdentity
),
examine_reason
:
""
,
signBackStatus
:
""
,
status_val
:
""
,
status
:
""
,
...
...
@@ -128,7 +126,6 @@
this
.
type
=
"
success
"
;
}
this
.
$emit
(
"
getStatus
"
,
this
.
type
);
const
code
=
this
.
$store
.
state
.
indexIdentity
;
//订单支付金额
window
.
localStorage
.
setItem
(
"
has_amount
"
+
code
,
res
.
data
.
has_amount
);
...
...
@@ -136,7 +133,8 @@
window
.
localStorage
.
setItem
(
"
order_no
"
+
code
,
res
.
data
.
order_no
);
this
.
examine_status
=
res
.
data
.
examine_status
;
window
.
localStorage
.
setItem
(
"
examine_status
"
+
code
,
res
.
data
.
examine_status
);
//返回错误原因
window
.
localStorage
.
setItem
(
"
examine_reason
"
+
code
,
res
.
data
.
examine_reason
);
//资料审核状态
// window.localStorage.setItem("examine_reason" + code, res.data.examine_reason); //资料审核状态
this
.
examine_reason
=
res
.
data
.
examine_reason
const
aPath
=
res
.
data
.
achievement_path
;
if
(
aPath
)
{
let
arr
=
aPath
.
split
(
"
,
"
);
...
...
src/views/index/camp/Homework.vue
View file @
402d9e3d
...
...
@@ -149,7 +149,6 @@
let
endTime
=
new
Date
((
item
.
end_time
).
replace
(
/-/g
,
"
/
"
)).
getTime
()
let
nowDate
=
new
Date
().
getTime
()
this
.
end_time
=
nowDate
<
endTime
?
true
:
false
}
else
if
(
item
.
time_out
==
2
)
{
return
this
.
$message
.
error
(
"
填写作业时间未开始
"
);
}
...
...
src/views/index/camp/homework/refer.vue
View file @
402d9e3d
...
...
@@ -408,17 +408,18 @@
if
(
gotfileList
)
{
this
.
stu_fileList
=
gotfileList
.
map
((
item
)
=>
{
return
{
name
:
item
.
url
.
split
(
"
/work/
"
)[
1
]
,
name
:
decodeURI
(
item
.
url
.
split
(
"
/work/
"
)[
1
])
,
url
:
item
.
url
,
url_open
:
item
.
url_open
,
url_open
:
decodeURI
(
item
.
url_open
)
,
type
:
item
.
type
,
};
});
this
.
fileList
=
gotfileList
.
map
((
item
)
=>
{
return
{
url_open
:
item
.
url_open
,
url_open
:
decodeURI
(
item
.
url_open
)
,
};
});
console
.
log
(
this
.
stu_fileList
)
}
this
.
$forceUpdate
();
}
else
if
(
student_status
==
2
)
{
...
...
@@ -518,7 +519,6 @@
});
},
});
console
.
log
(
resData
)
cos
.
putObject
({
Bucket
:
resData
.
credentials
.
bucket
,
Region
:
resData
.
credentials
.
region
,
...
...
@@ -541,11 +541,13 @@
}
);
}
else
{
this
.
$message
.
error
(
resData
.
msg
);
this
.
isUploading
=
false
;
this
.
$message
.
error
(
res
.
data
.
msg
);
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
this
.
isUploading
=
false
;
});
},
// cos上传-告诉后端上传成功
...
...
@@ -561,8 +563,9 @@
this
.
$forceUpdate
();
let
obj
=
{
url_open
:
res
.
data
.
picture_path
,
savefile
:
res
.
data
.
config
.
savefile
,
name
:
res
.
data
.
config
.
savefile
.
split
(
"
/work/
"
)[
1
],
name
:
decodeURI
(
res
.
data
.
real_filename
.
split
(
"
/work/
"
)[
1
]),
// savefile: res.data.config.savefile,
// name: res.data.config.savefile.split("/work/")[1],
};
this
.
stu_fileList
.
push
(
obj
);
this
.
fileList
.
push
(
obj
);
...
...
@@ -664,9 +667,8 @@
let
getfile
=
file
.
url_open
;
// console.log(savefile.match(/^(?:[^\/]|\/\/)*/),'222222');//获取域名
let
str
=
getfile
.
split
(
"
https://yingdi-achievement-1320656968.cos.ap-beijing.myqcloud.com/
"
);
//https://yingdi-achievement-1320656968.cos.ap-beijing.myqcloud.com/进行分割,
console
.
log
(
str
,
"
str
"
);
"
https://campiste-1320656968.cos.ap-beijing.myqcloud.com/
"
);
//https://campiste-1320656968.cos.ap-beijing.myqcloud.com/进行分割,
let
savefile
=
str
[
1
].
split
(
'
?
'
)[
0
];
let
stu_work_num
=
this
.
work_nums
;
delPic
({
object
:
savefile
,
teacher_id
:
stu_work_num
}).
then
((
res
)
=>
{
...
...
@@ -678,7 +680,6 @@
if
(
item
.
url_open
==
file
.
url_open
)
{
this
.
stu_fileList
.
splice
(
idx
,
1
);
// this.fileList.splice(idx, 1);
console
.
log
(
this
.
fileList
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
stu_fileListoss
=
this
.
stu_fileList
.
map
(
function
(
item
,
index
)
{
...
...
@@ -743,17 +744,14 @@
})
.
catch
((
_
)
=>
{
});
}
,
},
// 未完成
notReadHandle
()
{
this
.
formData
.
teacher_id
=
this
.
work_nums
;
console
.
log
(
this
.
stu_fileList
)
this
.
formData
.
stu_enclosure_url
=
this
.
stu_fileList
.
map
((
item
)
=>
{
return
item
.
url_open
;
return
decodeURI
(
item
.
url_open
.
split
(
'
?sign=
'
)[
0
])
;
})
.
join
(
"
,
"
);
console
.
log
(
this
.
formData
.
stu_enclosure_url
)
subStudentWork
(
this
.
formData
)
.
then
((
response
)
=>
{
// console.log(response);
...
...
@@ -771,8 +769,7 @@
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
,
},
// 提交按钮
confirm
()
{
if
(
this
.
stu_fileList
.
length
==
0
)
{
...
...
@@ -802,8 +799,7 @@
message
:
"
已取消
"
,
});
});
}
,
},
},
watch
:
{
...
...
src/views/index/recruit/Index.vue
View file @
402d9e3d
...
...
@@ -57,6 +57,7 @@
},
created
()
{
this
.
info
=
this
.
$store
.
state
.
info
;
console
.
log
(
this
.
info
)
setTimeout
(()
=>
{
this
.
anchorList
=
this
.
getAnchor
(
this
.
info
.
student_recruitment_brochure
);
},
1000
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment