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
96c6508c
Commit
96c6508c
authored
Mar 01, 2023
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交作业-删除作业
parent
90fd91a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
src/views/index/camp/homework/refer.vue
src/views/index/camp/homework/refer.vue
+3
-10
No files found.
src/views/index/camp/homework/refer.vue
View file @
96c6508c
...
@@ -617,8 +617,6 @@
...
@@ -617,8 +617,6 @@
//删除图片
//删除图片
handleRemove
(
file
)
{
handleRemove
(
file
)
{
console
.
log
(
file
,
"
file
"
);
console
.
log
(
file
,
"
file
"
);
console
.
log
(
this
.
stu_fileList
);
console
.
log
(
file
.
url_open
,
"
file
"
);
this
.
$confirm
(
"
此操作将永久删除该文件, 是否继续?
"
,
"
提示
"
,
{
this
.
$confirm
(
"
此操作将永久删除该文件, 是否继续?
"
,
"
提示
"
,
{
confirmButtonText
:
"
确定
"
,
confirmButtonText
:
"
确定
"
,
cancelButtonText
:
"
取消
"
,
cancelButtonText
:
"
取消
"
,
...
@@ -632,22 +630,17 @@
...
@@ -632,22 +630,17 @@
);
//https://yingdi-achievement.oss-cn-beijing.aliyuncs.com/进行分割,
);
//https://yingdi-achievement.oss-cn-beijing.aliyuncs.com/进行分割,
console
.
log
(
str
,
"
str
"
);
console
.
log
(
str
,
"
str
"
);
let
savefile
=
str
[
1
];
let
savefile
=
str
[
1
];
// console.log(savefile, "savefile");
let
stu_work_num
=
this
.
work_nums
;
let
stu_work_num
=
this
.
work_nums
;
delPic
({
object
:
savefile
,
teacher_id
:
stu_work_num
}).
then
((
res
)
=>
{
delPic
({
object
:
savefile
,
teacher_id
:
stu_work_num
}).
then
((
res
)
=>
{
// console.log(res, "delpic");
// console.log(res, "delpic");
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
console
.
log
(
this
.
stu_fileList
);
console
.
log
(
this
.
fileList
);
// console.log(this.stu_fileListoss);
this
.
stu_fileList
.
forEach
((
item
,
idx
)
=>
{
this
.
stu_fileList
.
forEach
((
item
,
idx
)
=>
{
// console.log(idx, "idx");
if
(
item
.
url_open
==
file
.
url_open
)
{
console
.
log
(
item
.
url
==
file
.
url
);
if
(
item
.
url
==
file
.
url
)
{
this
.
stu_fileList
.
splice
(
idx
,
1
);
this
.
stu_fileList
.
splice
(
idx
,
1
);
this
.
fileList
.
splice
(
idx
,
1
);
// this.fileList.splice(idx, 1);
console
.
log
(
this
.
fileList
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
stu_fileListoss
=
this
.
stu_fileList
this
.
stu_fileListoss
=
this
.
stu_fileList
.
map
(
function
(
item
,
index
)
{
.
map
(
function
(
item
,
index
)
{
...
...
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