|
@@ -21,22 +21,26 @@
|
|
|
<div class="r-btn">
|
|
|
<template v-if="pkgBtnErrorMsg">
|
|
|
<el-tooltip effect="dark" :content="pkgBtnErrorMsg" placement="top-start">
|
|
|
- <el-button class="error-message" disabled>生成失败<i class="el-icon-warning-outline el-icon--right"></i></el-button>
|
|
|
+ <el-button size="small" class="error-message" disabled>生成失败<i class="el-icon-warning-outline el-icon--right"></i></el-button>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <el-button v-if="pkgDetailShow" :disabled="exportPkgDisabled" size="small" @click="downInfo(2)">{{ pkgBtnText }}</el-button>
|
|
|
+ <el-button :type="exportPkgDisabled ? '' : 'primary'" v-if="pkgDetailShow" :disabled="exportPkgDisabled" size="small" @click="downInfo(2)">{{
|
|
|
+ pkgBtnText
|
|
|
+ }}</el-button>
|
|
|
</template>
|
|
|
<el-button type="primary" size="small" @click="exportPersonalPackage">个人执行包数据导出</el-button>
|
|
|
</div>
|
|
|
<div class="r-btn">
|
|
|
<template v-if="taskDetailErrorMsg">
|
|
|
<el-tooltip effect="dark" :content="taskDetailErrorMsg" placement="top-start">
|
|
|
- <el-button class="error-message" disabled>生成失败<i class="el-icon-warning-outline el-icon--right"></i></el-button>
|
|
|
+ <el-button size="small" class="error-message" disabled>生成失败<i class="el-icon-warning-outline el-icon--right"></i></el-button>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <el-button v-if="taskDetailShow" :disabled="exportTaskDetailDisabled" size="small" @click="downInfo(1)">{{ taskDetailBtnText }}</el-button>
|
|
|
+ <el-button :type="exportTaskDetailDisabled ? '' : 'primary'" v-if="taskDetailShow" :disabled="exportTaskDetailDisabled" size="small" @click="downInfo(1)">{{
|
|
|
+ taskDetailBtnText
|
|
|
+ }}</el-button>
|
|
|
</template>
|
|
|
<el-button type="primary" size="small" @click="exportPersonalTaskDetails">个人任务明细数据导出</el-button>
|
|
|
</div>
|
|
@@ -590,6 +594,7 @@ export default {
|
|
|
async gerTaskExprotResult() {
|
|
|
const checkStatus = async () => {
|
|
|
const res = await getExportResult({ type: 'TASK_DETAIL' });
|
|
|
+ this.taskDetailErrorMsg = '';
|
|
|
if (res.data.code === 0) {
|
|
|
this.taskDetailShow = true;
|
|
|
const status = res.data.data.status;
|
|
@@ -603,7 +608,7 @@ export default {
|
|
|
this.exportTaskDetailDisabled = false;
|
|
|
return true;
|
|
|
} else if (status === 'ERROR') {
|
|
|
- this.taskDetailBtnText = res.data.data.errorMsg;
|
|
|
+ this.taskDetailErrorMsg = res.data.data.errorMsg || '导出失败';
|
|
|
this.exportTaskDetailDisabled = true;
|
|
|
return true;
|
|
|
} else {
|
|
@@ -635,6 +640,7 @@ export default {
|
|
|
async gerPkgExprotResult() {
|
|
|
const checkStatus = async () => {
|
|
|
const res = await getExportResult({ type: 'SCORE_PACKAGE_SUB' });
|
|
|
+ this.pkgBtnErrorMsg = '';
|
|
|
if (res.data.code === 0) {
|
|
|
this.pkgDetailShow = true;
|
|
|
const status = res.data.data.status;
|
|
@@ -648,7 +654,7 @@ export default {
|
|
|
this.exportPkgDisabled = false;
|
|
|
return true;
|
|
|
} else if (status === 'ERROR') {
|
|
|
- this.pkgBtnText = res.data.data.errorMsg;
|
|
|
+ this.pkgBtnErrorMsg = res.data.data.errorMsg || '生成失败';
|
|
|
this.exportPkgDisabled = true;
|
|
|
return true;
|
|
|
} else {
|
|
@@ -744,7 +750,7 @@ export default {
|
|
|
|
|
|
i {
|
|
|
font-weight: 600;
|
|
|
- font-size: 14px;
|
|
|
+ font-size: 12px;
|
|
|
}
|
|
|
|
|
|
&:hover {
|