Commit da06bbaa authored by 黄奎's avatar 黄奎

页面修改

parent b42d6a4e
<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;
......@@ -60,9 +34,11 @@
cursor: default !important;
pointer-events: none;
}
.disabled-column .el-checkbox__input{
display:none;
.disabled-column .el-checkbox__input {
display: none;
}
</style>
<!--试卷库管理-->
<template>
......@@ -109,7 +85,8 @@
<span v-if="index!=navList.length-1" :key="index">></span>
</template>
</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>
<el-table-column prop="PaperName" label="文件夹/试卷" width="300">
......@@ -181,7 +158,7 @@
{{ scope.row.ReviewerName }}
</template>
</el-table-column>
<el-table-column prop="ExamineStatusStr" label="审核状态">
<el-table-column prop="ExamineStatusStr" label="状态">
<template slot-scope="scope">
{{ scope.row.ExamineStatusStr }}
<template v-if="scope.row.ExamineRemark">
......@@ -225,7 +202,7 @@
<q-item-label>移动到</q-item-label>
</q-item-section>
</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">
<q-item-section>
<q-item-label>设置访问权限</q-item-label>
......@@ -300,11 +277,11 @@
navList: [], //导航列表
IsCreateFolder: false, //是否试卷创建文件夹权限
IsCreatePaper: false, //是否创建试卷权限
IsPaperManager:false,//是否有试卷管理员权限
IsPaperManager: false, //是否有试卷管理员权限
multipleSelection: [],
MoveIds: '',
currentUserInfo: {}, //当前登录用户
commonAccountId:-1,
commonAccountId: -1,
}
},
created() {
......@@ -317,7 +294,7 @@
if (x.FunctionCode == "Paper_CreatePaper") { //判断是否有创建试卷权限
this.IsCreatePaper = true;
}
if (x.FunctionCode == "Paper_Manager") { //判断是否是试卷管理员
if (x.FunctionCode == "Paper_Manager") { //判断是否是试卷管理员
this.IsPaperManager = true;
}
})
......@@ -327,8 +304,8 @@
this.getList();
},
methods: {
isRender(row){
if(row.row.CreateBy!=this.commonAccountId){
isRender(row) {
if (row.row.CreateBy != this.commonAccountId) {
return 'disabled-column'
}
},
......@@ -355,7 +332,7 @@
var myArray = [];
if (this.multipleSelection.length > 0) {
this.multipleSelection.forEach(x => {
if(x.CreateBy==this.commonAccountId){
if (x.CreateBy == this.commonAccountId) {
myArray.push(x.PaperId);
}
})
......@@ -538,7 +515,6 @@
});
})
}
}
}
......
<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>
<!--试卷库管理-->
<template>
......@@ -161,7 +124,7 @@
},
{
name: "ExamineStatusStr",
label: "审核状态",
label: "状态",
field: "ExamineStatusStr",
align: "left",
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment