|
@@ -22,10 +22,19 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div class="part-box-action">
|
|
<div class="part-box-action">
|
|
- <el-button type="danger" :loading="loading" @click="toBatchDelete"
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="checkPrivilege('button', 'delete')"
|
|
|
|
+ type="danger"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ @click="toBatchDelete"
|
|
>批量删除</el-button
|
|
>批量删除</el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="toAdd">新建分析批次</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="checkPrivilege('button', 'add')"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="toAdd"
|
|
|
|
+ >新建分析批次</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="part-box part-box-pad">
|
|
<div class="part-box part-box-pad">
|
|
@@ -54,6 +63,7 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="checkPrivilege('link', 'window')"
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
:disabled="loading"
|
|
:disabled="loading"
|
|
@@ -61,7 +71,10 @@
|
|
>添加分析试卷</el-button
|
|
>添加分析试卷</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- v-if="scope.row.status === 'READY_TO_CALCULATE'"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ checkPrivilege('link', 'StartCalc') &&
|
|
|
|
+ scope.row.status === 'READY_TO_CALCULATE'
|
|
|
|
+ "
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
:disabled="loading"
|
|
:disabled="loading"
|
|
@@ -69,7 +82,10 @@
|
|
>开始计算</el-button
|
|
>开始计算</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- v-if="scope.row.status === 'PUSH_GRADE_BATCH'"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ checkPrivilege('link', 'push') &&
|
|
|
|
+ scope.row.status === 'PUSH_GRADE_BATCH'
|
|
|
|
+ "
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
:disabled="loading"
|
|
:disabled="loading"
|
|
@@ -77,7 +93,10 @@
|
|
>提交分析数据</el-button
|
|
>提交分析数据</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- v-if="scope.row.status !== 'SETTING_GRADE_PAPER'"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ checkPrivilege('link', 'import') &&
|
|
|
|
+ scope.row.status !== 'SETTING_GRADE_PAPER'
|
|
|
|
+ "
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
:disabled="loading"
|
|
:disabled="loading"
|
|
@@ -85,6 +104,7 @@
|
|
>导入</el-button
|
|
>导入</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="checkPrivilege('link', 'delete')"
|
|
class="btn-danger"
|
|
class="btn-danger"
|
|
type="text"
|
|
type="text"
|
|
:disabled="loading"
|
|
:disabled="loading"
|
|
@@ -109,18 +129,21 @@
|
|
|
|
|
|
<!-- ModifyAnalysisBatch -->
|
|
<!-- ModifyAnalysisBatch -->
|
|
<modify-analysis-batch
|
|
<modify-analysis-batch
|
|
|
|
+ v-if="checkPrivilege('button', 'add')"
|
|
ref="ModifyAnalysisBatch"
|
|
ref="ModifyAnalysisBatch"
|
|
:instance="curRow"
|
|
:instance="curRow"
|
|
@modified="getList"
|
|
@modified="getList"
|
|
></modify-analysis-batch>
|
|
></modify-analysis-batch>
|
|
<!-- ModifyAnalysisBatchPaper -->
|
|
<!-- ModifyAnalysisBatchPaper -->
|
|
<modify-analysis-batch-paper
|
|
<modify-analysis-batch-paper
|
|
|
|
+ v-if="checkPrivilege('link', 'window')"
|
|
ref="ModifyAnalysisBatchPaper"
|
|
ref="ModifyAnalysisBatchPaper"
|
|
:instance="curRow"
|
|
:instance="curRow"
|
|
@closed="getList"
|
|
@closed="getList"
|
|
></modify-analysis-batch-paper>
|
|
></modify-analysis-batch-paper>
|
|
<!-- 数据导入 -->
|
|
<!-- 数据导入 -->
|
|
<import-file
|
|
<import-file
|
|
|
|
+ v-if="checkPrivilege('link', 'import')"
|
|
ref="ImportFile"
|
|
ref="ImportFile"
|
|
title="上传文件"
|
|
title="上传文件"
|
|
:upload-url="uploadUrl"
|
|
:upload-url="uploadUrl"
|