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
da06bbaa
Commit
da06bbaa
authored
Aug 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b42d6a4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
77 deletions
+16
-77
examPaper.vue
src/pages/exam/examPaper.vue
+14
-38
examlist.vue
src/pages/exam/examlist.vue
+2
-39
No files found.
src/pages/exam/examPaper.vue
View file @
da06bbaa
<
style
>
<
style
>
.OtherCourseNum
{
display
:
inline-block
;
width
:
25px
;
height
:
25px
;
text-align
:
center
;
line-height
:
25px
;
border
:
1px
solid
#2961FE
;
border-radius
:
50%
;
cursor
:
pointer
;
color
:
#2961FE
;
}
.OCourseTable
{
width
:
400px
;
text-align
:
center
;
}
.OCourseTable
tr
td
{
height
:
40px
;
}
.OCourseTable
tr
th
{
height
:
40px
;
background-color
:
rgb
(
238
,
238
,
239
);
}
.Exam_PaperName
{
.Exam_PaperName
{
width
:
300px
;
width
:
300px
;
display
:
inline
;
display
:
inline
;
...
@@ -60,9 +34,11 @@
...
@@ -60,9 +34,11 @@
cursor
:
default
!important
;
cursor
:
default
!important
;
pointer-events
:
none
;
pointer-events
:
none
;
}
}
.disabled-column
.el-checkbox__input
{
display
:
none
;
.disabled-column
.el-checkbox__input
{
display
:
none
;
}
}
</
style
>
</
style
>
<!--试卷库管理-->
<!--试卷库管理-->
<
template
>
<
template
>
...
@@ -109,7 +85,8 @@
...
@@ -109,7 +85,8 @@
<span
v-if=
"index!=navList.length-1"
:key=
"index"
>
>
</span>
<span
v-if=
"index!=navList.length-1"
:key=
"index"
>
>
</span>
</
template
>
</
template
>
</div>
</div>
<el-table
:data=
"dataList"
v-loading=
"loading"
ref=
"multipleTable"
:cell-class-name=
"isRender"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"dataList"
v-loading=
"loading"
ref=
"multipleTable"
:cell-class-name=
"isRender"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"PaperName"
label=
"文件夹/试卷"
width=
"300"
>
<el-table-column
prop=
"PaperName"
label=
"文件夹/试卷"
width=
"300"
>
...
@@ -181,7 +158,7 @@
...
@@ -181,7 +158,7 @@
{{
scope
.
row
.
ReviewerName
}}
{{
scope
.
row
.
ReviewerName
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"ExamineStatusStr"
label=
"
审核
状态"
>
<el-table-column
prop=
"ExamineStatusStr"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ExamineStatusStr
}}
{{
scope
.
row
.
ExamineStatusStr
}}
<template
v-if=
"scope.row.ExamineRemark"
>
<template
v-if=
"scope.row.ExamineRemark"
>
...
@@ -225,7 +202,7 @@
...
@@ -225,7 +202,7 @@
<q-item-label>
移动到
</q-item-label>
<q-item-label>
移动到
</q-item-label>
</q-item-section>
</q-item-section>
</q-item>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"showOpenForm(scope.row)"
<q-item
clickable
v-close-popup
@
click=
"showOpenForm(scope.row)"
v-if=
"currentUserInfo.Id==scope.row.CreateBy||IsPaperManager"
>
v-if=
"currentUserInfo.Id==scope.row.CreateBy||IsPaperManager"
>
<q-item-section>
<q-item-section>
<q-item-label>
设置访问权限
</q-item-label>
<q-item-label>
设置访问权限
</q-item-label>
...
@@ -300,11 +277,11 @@
...
@@ -300,11 +277,11 @@
navList
:
[],
//导航列表
navList
:
[],
//导航列表
IsCreateFolder
:
false
,
//是否试卷创建文件夹权限
IsCreateFolder
:
false
,
//是否试卷创建文件夹权限
IsCreatePaper
:
false
,
//是否创建试卷权限
IsCreatePaper
:
false
,
//是否创建试卷权限
IsPaperManager
:
false
,
//是否有试卷管理员权限
IsPaperManager
:
false
,
//是否有试卷管理员权限
multipleSelection
:
[],
multipleSelection
:
[],
MoveIds
:
''
,
MoveIds
:
''
,
currentUserInfo
:
{},
//当前登录用户
currentUserInfo
:
{},
//当前登录用户
commonAccountId
:
-
1
,
commonAccountId
:
-
1
,
}
}
},
},
created
()
{
created
()
{
...
@@ -317,7 +294,7 @@
...
@@ -317,7 +294,7 @@
if
(
x
.
FunctionCode
==
"Paper_CreatePaper"
)
{
//判断是否有创建试卷权限
if
(
x
.
FunctionCode
==
"Paper_CreatePaper"
)
{
//判断是否有创建试卷权限
this
.
IsCreatePaper
=
true
;
this
.
IsCreatePaper
=
true
;
}
}
if
(
x
.
FunctionCode
==
"Paper_Manager"
)
{
//判断是否是试卷管理员
if
(
x
.
FunctionCode
==
"Paper_Manager"
)
{
//判断是否是试卷管理员
this
.
IsPaperManager
=
true
;
this
.
IsPaperManager
=
true
;
}
}
})
})
...
@@ -327,8 +304,8 @@
...
@@ -327,8 +304,8 @@
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
isRender
(
row
){
isRender
(
row
)
{
if
(
row
.
row
.
CreateBy
!=
this
.
commonAccountId
)
{
if
(
row
.
row
.
CreateBy
!=
this
.
commonAccountId
)
{
return
'disabled-column'
return
'disabled-column'
}
}
},
},
...
@@ -355,7 +332,7 @@
...
@@ -355,7 +332,7 @@
var
myArray
=
[];
var
myArray
=
[];
if
(
this
.
multipleSelection
.
length
>
0
)
{
if
(
this
.
multipleSelection
.
length
>
0
)
{
this
.
multipleSelection
.
forEach
(
x
=>
{
this
.
multipleSelection
.
forEach
(
x
=>
{
if
(
x
.
CreateBy
==
this
.
commonAccountId
)
{
if
(
x
.
CreateBy
==
this
.
commonAccountId
)
{
myArray
.
push
(
x
.
PaperId
);
myArray
.
push
(
x
.
PaperId
);
}
}
})
})
...
@@ -538,7 +515,6 @@
...
@@ -538,7 +515,6 @@
});
});
})
})
}
}
}
}
}
}
...
...
src/pages/exam/examlist.vue
View file @
da06bbaa
<
style
>
<
style
>
.OtherCourseNum
{
display
:
inline-block
;
width
:
25px
;
height
:
25px
;
text-align
:
center
;
line-height
:
25px
;
border
:
1px
solid
#2961fe
;
border-radius
:
50%
;
cursor
:
pointer
;
color
:
#2961fe
;
}
.OCourseTable
{
width
:
400px
;
text-align
:
center
;
}
.OCourseTable
tr
td
{
height
:
40px
;
}
.OCourseTable
tr
th
{
height
:
40px
;
background-color
:
rgb
(
238
,
238
,
239
);
}
.Exam_PaperName
{
width
:
300px
;
display
:
inline
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
.Exam_PaperName
i
{
font-size
:
18px
;
}
</
style
>
</
style
>
<!--试卷库管理-->
<!--试卷库管理-->
<
template
>
<
template
>
...
@@ -161,7 +124,7 @@
...
@@ -161,7 +124,7 @@
},
},
{
{
name
:
"ExamineStatusStr"
,
name
:
"ExamineStatusStr"
,
label
:
"
审核
状态"
,
label
:
"状态"
,
field
:
"ExamineStatusStr"
,
field
:
"ExamineStatusStr"
,
align
:
"left"
,
align
:
"left"
,
},
},
...
...
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