Commit e08679c0 authored by zhengke's avatar zhengke

修改

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