|
@@ -4,7 +4,7 @@
|
|
|
<el-form ref="FilterForm" label-position="left" label-width="85px" inline>
|
|
|
<template v-if="checkPrivilege('condition', 'condition')">
|
|
|
<el-form-item label="课程:">
|
|
|
- <course-select v-model="filter.courseCode" placeholder="请选择课程">
|
|
|
+ <course-select v-model="filter.courseName" placeholder="请选择课程">
|
|
|
</course-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="任课老师:">
|
|
@@ -51,7 +51,7 @@
|
|
|
</el-form>
|
|
|
<div class="part-box-action">
|
|
|
<el-button
|
|
|
- v-if="checkPrivilege('button', 'batchDelete')"
|
|
|
+ v-if="checkPrivilege('button', 'DeleteBatch')"
|
|
|
type="danger"
|
|
|
icon="el-icon-delete"
|
|
|
:loading="loading"
|
|
@@ -65,13 +65,6 @@
|
|
|
@click="toImportTask"
|
|
|
>导入任务</el-button
|
|
|
>
|
|
|
- <el-button
|
|
|
- v-if="checkPrivilege('button', 'add')"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-circle-plus-outline"
|
|
|
- @click="toAdd"
|
|
|
- >新增任务</el-button
|
|
|
- >
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -119,6 +112,7 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
+ v-if="checkPrivilege('link', 'ProgressDetail')"
|
|
|
class="btn-primary"
|
|
|
type="text"
|
|
|
@click="toShowProgress(scope.row)"
|
|
@@ -129,12 +123,12 @@
|
|
|
<el-table-column
|
|
|
class-name="action-column"
|
|
|
label="操作"
|
|
|
- width="200"
|
|
|
+ width="170"
|
|
|
fixed="right"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
- v-if="checkPrivilege('link', 'detail')"
|
|
|
+ v-if="checkPrivilege('link', 'ScanTaskDetail')"
|
|
|
class="btn-primary"
|
|
|
type="text"
|
|
|
@click="toDetail(scope.row)"
|
|
@@ -148,18 +142,18 @@
|
|
|
>删除</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-if="checkPrivilege('link', 'delete')"
|
|
|
+ v-if="checkPrivilege('link', 'ClearScanData')"
|
|
|
class="btn-danger"
|
|
|
type="text"
|
|
|
@click="toClear(scope.row)"
|
|
|
>清除数据</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-if="checkPrivilege('link', 'delete')"
|
|
|
+ v-if="checkPrivilege('link', 'UnbindScanner')"
|
|
|
class="btn-danger"
|
|
|
type="text"
|
|
|
@click="toUnbind(scope.row)"
|
|
|
- >解除扫描员</el-button
|
|
|
+ >解绑扫描员</el-button
|
|
|
>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -211,12 +205,6 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</import-file>
|
|
|
- <!-- ModifyScanTask -->
|
|
|
- <modify-scan-task
|
|
|
- ref="ModifyScanTask"
|
|
|
- :instance="curRow"
|
|
|
- :modified="getList"
|
|
|
- ></modify-scan-task>
|
|
|
<!-- LibraryStateDialog -->
|
|
|
<library-state-dialog ref="LibraryStateDialog" :task="curRow">
|
|
|
</library-state-dialog>
|
|
@@ -236,7 +224,6 @@ import {
|
|
|
unbindScanTaskUser
|
|
|
} from "../api";
|
|
|
import ImportFile from "../../../components/ImportFile.vue";
|
|
|
-import ModifyScanTask from "../components/ModifyScanTask.vue";
|
|
|
import LibraryStateDialog from "../components/LibraryStateDialog.vue";
|
|
|
import ScanTaskDetailDialog from "../components/ScanTaskDetailDialog.vue";
|
|
|
|
|
@@ -244,14 +231,13 @@ export default {
|
|
|
name: "scan-task-manage",
|
|
|
components: {
|
|
|
ImportFile,
|
|
|
- ModifyScanTask,
|
|
|
LibraryStateDialog,
|
|
|
ScanTaskDetailDialog
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
filter: {
|
|
|
- courseCode: "",
|
|
|
+ courseName: "",
|
|
|
teacherName: "",
|
|
|
smallerProgress: undefined,
|
|
|
largerProgress: undefined
|
|
@@ -307,10 +293,6 @@ export default {
|
|
|
this.curRow = row;
|
|
|
this.$refs.ScanTaskDetailDialog.open();
|
|
|
},
|
|
|
- toAdd() {
|
|
|
- this.curRow = {};
|
|
|
- this.$refs.ModifyScanTask.open();
|
|
|
- },
|
|
|
toShowProgress(row) {
|
|
|
this.curRow = row;
|
|
|
this.$refs.LibraryStateDialog.open();
|