Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
3e8e28bf
Commit
3e8e28bf
authored
Aug 18, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除修改
parent
6ac1ea3f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
16 deletions
+101
-16
question.js
src/api/question/question.js
+12
-0
index.js
src/api/teacher/index.js
+13
-1
examPaper.vue
src/pages/exam/examPaper.vue
+76
-15
No files found.
src/api/question/question.js
View file @
3e8e28bf
...
...
@@ -291,3 +291,15 @@ export function DeletePaperDetails(data) {
data
})
}
/**
* 删除试卷、文件夹
* @param {*} data
*/
export
function
deletePaperInfo
(
data
)
{
return
request
({
url
:
'/Exam/DeletePaper'
,
method
:
'post'
,
data
})
}
src/api/teacher/index.js
View file @
3e8e28bf
...
...
@@ -215,3 +215,15 @@ export function queryExamPublish(data) {
data
})
}
/**
* 删除试卷、文件夹
* @param {*} data
*/
export
function
deletePaperInfo
(
data
)
{
return
request
({
url
:
'/Exam/DeletePaper'
,
method
:
'post'
,
data
})
}
src/pages/exam/examPaper.vue
View file @
3e8e28bf
...
...
@@ -129,22 +129,37 @@
<
template
v-if=
"scope.row.PaperType==2"
>
<q-btn
flat
size=
"xs"
color=
"primary"
style=
"font-weight:400"
@
click=
"goExameEdit(scope.row)"
label=
"编辑"
/>
</
template
>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left: 10px"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"publishExam(scope.row)
"
>
<q-item
clickable
v-close-popup
@
click=
"publishExam(scope.row)"
v-if=
"scope.row.PaperType==2
"
>
<q-item-section>
<q-item-label>
发布考试
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"showPaperInfo(scope.row)
"
>
<q-item
clickable
v-close-popup
@
click=
"showPaperInfo(scope.row)"
v-if=
"scope.row.PaperType==2
"
>
<q-item-section>
<q-item-label>
详情
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"movePaperInfo(scope.row)"
>
<q-item-section>
<q-item-label>
移动到
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"copyPaperInfo(scope.row)"
v-if=
"scope.row.PaperType==2"
>
<q-item-section>
<q-item-label>
复制
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"deletePaperInfo(scope.row)"
>
<q-item-section>
<q-item-label>
删除
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</template>
</template>
</el-table-column>
</el-table>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
...
...
@@ -157,7 +172,8 @@
<
script
>
import
paperfolderForm
from
'../../components/exam/paperfolder-form'
import
{
GetPaperPage
GetPaperPage
,
deletePaperInfo
}
from
'../../api/teacher/index'
;
//获取校区列表
export
default
{
...
...
@@ -255,6 +271,51 @@
this
.
OpenNewUrl
(
'/exam/paperInfo'
,
{
Id
:
PaperId
})
},
//移动到文件夹
movePaperInfo
(
item
)
{
},
//复制
copyPaperInfo
(
item
)
{
},
//删除
deletePaperInfo
(
item
)
{
var
msg
=
{
PaperId
:
item
.
PaperId
}
var
message
=
""
;
if
(
item
.
PaperType
==
1
)
{
message
=
"是否要删除【"
+
item
.
PaperName
+
"】及下面的内容?"
;
}
else
{
message
=
"是否要删除【"
+
item
.
PaperName
+
"】试卷?"
}
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
message
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
deletePaperInfo
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
refreshPage
();
}
});
}).
onCancel
(()
=>
{
});
}
}
}
...
...
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