Commit e08679c0 authored by zhengke's avatar zhengke

修改

parent 28f26929
......@@ -60,7 +60,9 @@
cursor: default !important;
pointer-events: none;
}
.disabled-column .el-checkbox__input{
display:none;
}
</style>
<!--试卷库管理-->
<template>
......@@ -107,7 +109,7 @@
<span v-if="index!=navList.length-1" :key="index">></span>
</template>
</div>
<el-table :data="dataList" v-loading="loading" ref="multipleTable" @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">
......@@ -302,6 +304,7 @@
multipleSelection: [],
MoveIds: '',
currentUserInfo: {}, //当前登录用户
commonAccountId:-1,
}
},
created() {
......@@ -318,11 +321,17 @@
this.IsPaperManager = true;
}
})
this.commonAccountId = this.currentUserInfo.AccountId;
},
mounted() {
this.getList();
},
methods: {
isRender(row){
if(row.row.CreateBy!=this.commonAccountId){
return 'disabled-column'
}
},
//提交审核,重新提交审核
submitAudit(item) {
submitApproval({
......@@ -346,7 +355,9 @@
var myArray = [];
if (this.multipleSelection.length > 0) {
this.multipleSelection.forEach(x => {
myArray.push(x.PaperId);
if(x.CreateBy==this.commonAccountId){
myArray.push(x.PaperId);
}
})
this.MoveIds = myArray.toString();
}
......
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