Commit da06bbaa authored by 黄奎's avatar 黄奎

页面修改

parent b42d6a4e
<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 @@
}); });
}) })
} }
} }
} }
......
<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",
}, },
......
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