Commit fbeb9c2e authored by zhengke's avatar zhengke

修改

parent 29c6692b
......@@ -12,9 +12,15 @@
<q-btn v-if="multipleSelection&&multipleSelection.length>0" color="accent" size="sm" class="q-mr-md" label="删除"
@click="batchDelete()" />
</div>
<q-table :pagination="pageMsg" :loading="loading" selection="multiple" :selected.sync="multipleSelection" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name">
<q-table :pagination="pageMsg" :loading="loading" selection="multiple" :selected.sync="multipleSelection"
no-data-label="暂无相关数据" flat class="sticky-column-table sticky-right-column-table" separator="none"
:data="dataList" :columns="columns" row-key="PaperId">
<template v-slot:header-selection="scope">
<q-checkbox v-model="scope.selected" />
</template>
<template v-slot:body-selection="scope">
<q-checkbox v-model="scope.selected" v-if="scope.row.CreateBy==currentUserInfo.Id" />
</template>
<template v-slot:body-cell-PaperName="props">
<q-td :props="props">
<div class="Exam_PaperName">
......@@ -251,12 +257,23 @@
})
},
mounted() {},
methods: {
isRender(row) {
if (row.row.CreateBy != this.currentUserInfo.Id) {
return 'disabled-column'
watch: {
'multipleSelection': {
handler(val) {
this.multipleSelection = val;
var myArray = [];
if (this.multipleSelection.length > 0) {
this.multipleSelection.forEach(x => {
if (x.CreateBy == this.currentUserInfo.Id) {
myArray.push(x.PaperId);
}
})
this.MoveIds = myArray.toString();
}
}
}
},
methods: {
//提交审核,重新提交审核
submitAudit(item) {
submitApproval({
......@@ -274,19 +291,6 @@
}
})
},
//全选
handleSelectionChange(val) {
this.multipleSelection = val;
var myArray = [];
if (this.multipleSelection.length > 0) {
this.multipleSelection.forEach(x => {
if (x.CreateBy == this.currentUserInfo.Id) {
myArray.push(x.PaperId);
}
})
this.MoveIds = myArray.toString();
}
},
//移动文件
movePaperFile() {
if (this.multipleSelection.length == 0) {
......@@ -309,6 +313,7 @@
},
refreshPage() {
this.$emit('success');
this.multipleSelection=[];
},
//点击编辑 跳转
goExameEdit(item) {
......
......@@ -61,10 +61,6 @@
pointer-events: none;
}
.disabled-column .el-checkbox__input {
display: none;
}
.ExamPaper_Sysuser_Date .el-range-editor .el-range-input {
background-color: transparent;
}
......
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