|
@@ -72,13 +72,6 @@
|
|
@click="toImport"
|
|
@click="toImport"
|
|
>导入课程</el-button
|
|
>导入课程</el-button
|
|
>
|
|
>
|
|
- <el-button
|
|
|
|
- v-if="checkPrivilege('button', 'import')"
|
|
|
|
- type="primary"
|
|
|
|
- icon="el-icon-s-order"
|
|
|
|
- @click="toDataTask"
|
|
|
|
- >导入结果查询</el-button
|
|
|
|
- >
|
|
|
|
<el-button
|
|
<el-button
|
|
v-if="checkPrivilege('button', 'add')"
|
|
v-if="checkPrivilege('button', 'add')"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -176,12 +169,6 @@
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
@upload-success="uploadSuccess"
|
|
@upload-success="uploadSuccess"
|
|
></import-file>
|
|
></import-file>
|
|
- <!-- data-task-dialog -->
|
|
|
|
- <data-task-dialog
|
|
|
|
- v-if="checkPrivilege('button', 'import')"
|
|
|
|
- ref="DataTaskDialog"
|
|
|
|
- task-type="COURSE_IMPORT"
|
|
|
|
- ></data-task-dialog>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -313,14 +300,11 @@ export default {
|
|
toImport() {
|
|
toImport() {
|
|
this.$refs.ImportFile.open();
|
|
this.$refs.ImportFile.open();
|
|
},
|
|
},
|
|
- toDataTask() {
|
|
|
|
- this.$refs.DataTaskDialog.open();
|
|
|
|
- },
|
|
|
|
validError(errorData) {
|
|
validError(errorData) {
|
|
this.$message.error(errorData.message);
|
|
this.$message.error(errorData.message);
|
|
},
|
|
},
|
|
uploadSuccess() {
|
|
uploadSuccess() {
|
|
- this.$message.success("文件上传成功,后台正在导入!");
|
|
|
|
|
|
+ this.$message.success("文件上传成功!");
|
|
this.getList();
|
|
this.getList();
|
|
}
|
|
}
|
|
}
|
|
}
|