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
fbeb9c2e
Commit
fbeb9c2e
authored
Aug 24, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
29c6692b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
25 deletions
+26
-25
exampaperlist.vue
src/components/exam/exampaperlist.vue
+26
-21
examPaper.vue
src/pages/exam/examPaper.vue
+0
-4
No files found.
src/components/exam/exampaperlist.vue
View file @
fbeb9c2e
...
...
@@ -12,9 +12,15 @@
<q-btn
v-if=
"multipleSelection&&multipleSelection.length>0"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"删除"
@
click=
"batchDelete()"
/>
</div>
<q-table
:pagination=
"pageMsg"
:loading=
"loading"
selection=
"multiple"
:selected
.
sync=
"multipleSelection"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<q-table
:pagination=
"pageMsg"
:loading=
"loading"
selection=
"multiple"
:selected
.
sync=
"multipleSelection"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"PaperId"
>
<template
v-slot:header-selection=
"scope"
>
<q-checkbox
v-model=
"scope.selected"
/>
</
template
>
<
template
v-slot:body-selection=
"scope"
>
<q-checkbox
v-model=
"scope.selected"
v-if=
"scope.row.CreateBy==currentUserInfo.Id"
/>
</
template
>
<
template
v-slot:body-cell-PaperName=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"Exam_PaperName"
>
...
...
@@ -251,12 +257,23 @@
})
},
mounted
()
{},
methods
:
{
isRender
(
row
)
{
if
(
row
.
row
.
CreateBy
!=
this
.
currentUserInfo
.
Id
)
{
return
'disabled-column'
watch
:
{
'multipleSelection'
:
{
handler
(
val
)
{
this
.
multipleSelection
=
val
;
var
myArray
=
[];
if
(
this
.
multipleSelection
.
length
>
0
)
{
this
.
multipleSelection
.
forEach
(
x
=>
{
if
(
x
.
CreateBy
==
this
.
currentUserInfo
.
Id
)
{
myArray
.
push
(
x
.
PaperId
);
}
})
this
.
MoveIds
=
myArray
.
toString
();
}
}
},
}
},
methods
:
{
//提交审核,重新提交审核
submitAudit
(
item
)
{
submitApproval
({
...
...
@@ -274,19 +291,6 @@
}
})
},
//全选
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
var
myArray
=
[];
if
(
this
.
multipleSelection
.
length
>
0
)
{
this
.
multipleSelection
.
forEach
(
x
=>
{
if
(
x
.
CreateBy
==
this
.
currentUserInfo
.
Id
)
{
myArray
.
push
(
x
.
PaperId
);
}
})
this
.
MoveIds
=
myArray
.
toString
();
}
},
//移动文件
movePaperFile
()
{
if
(
this
.
multipleSelection
.
length
==
0
)
{
...
...
@@ -309,6 +313,7 @@
},
refreshPage
()
{
this
.
$emit
(
'success'
);
this
.
multipleSelection
=
[];
},
//点击编辑 跳转
goExameEdit
(
item
)
{
...
...
src/pages/exam/examPaper.vue
View file @
fbeb9c2e
...
...
@@ -61,10 +61,6 @@
pointer-events
:
none
;
}
.disabled-column
.el-checkbox__input
{
display
:
none
;
}
.ExamPaper_Sysuser_Date
.el-range-editor
.el-range-input
{
background-color
:
transparent
;
}
...
...
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