|
@@ -46,7 +46,7 @@
|
|
<el-button
|
|
<el-button
|
|
v-if="checkPrivilege('button', 'select')"
|
|
v-if="checkPrivilege('button', 'select')"
|
|
type="primary"
|
|
type="primary"
|
|
- :disabled="!filter.semesterId || !filter.orgId"
|
|
|
|
|
|
+ :disabled="!filter.semesterId"
|
|
@click="toPage(1)"
|
|
@click="toPage(1)"
|
|
>查询</el-button
|
|
>查询</el-button
|
|
>
|
|
>
|
|
@@ -57,7 +57,7 @@
|
|
type="success"
|
|
type="success"
|
|
icon="el-icon-refresh"
|
|
icon="el-icon-refresh"
|
|
:loading="syncLoading"
|
|
:loading="syncLoading"
|
|
- :disabled="!filter.semesterId || !filter.orgId"
|
|
|
|
|
|
+ :disabled="!filter.semesterId"
|
|
@click="toSync"
|
|
@click="toSync"
|
|
>同步</el-button
|
|
>同步</el-button
|
|
>
|
|
>
|
|
@@ -66,7 +66,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-download"
|
|
icon="el-icon-download"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
- :disabled="!filter.semesterId || !filter.orgId"
|
|
|
|
|
|
+ :disabled="!filter.semesterId"
|
|
@click="toDownloadAll"
|
|
@click="toDownloadAll"
|
|
>一键下载</el-button
|
|
>一键下载</el-button
|
|
>
|
|
>
|
|
@@ -75,7 +75,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-download"
|
|
icon="el-icon-download"
|
|
:loading="exportLoading"
|
|
:loading="exportLoading"
|
|
- :disabled="!filter.semesterId || !filter.orgId"
|
|
|
|
|
|
+ :disabled="!filter.semesterId"
|
|
@click="toExport"
|
|
@click="toExport"
|
|
>成绩导出</el-button
|
|
>成绩导出</el-button
|
|
>
|
|
>
|
|
@@ -208,10 +208,7 @@ export default {
|
|
if (this.syncLoading) return;
|
|
if (this.syncLoading) return;
|
|
this.syncLoading = true;
|
|
this.syncLoading = true;
|
|
const res = await scoreSync({
|
|
const res = await scoreSync({
|
|
- semesterId: this.filter.semesterId,
|
|
|
|
- orgId: this.filter.orgId,
|
|
|
|
- clazzId: this.filter.clazzId,
|
|
|
|
- courseCode: this.filter.courseCode
|
|
|
|
|
|
+ semesterId: this.filter.semesterId
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
this.syncLoading = false;
|
|
this.syncLoading = false;
|
|
if (!res) return;
|
|
if (!res) return;
|