|
@@ -46,20 +46,15 @@
|
|
@click="back"
|
|
@click="back"
|
|
>返回</el-button
|
|
>返回</el-button
|
|
>
|
|
>
|
|
- <el-button
|
|
|
|
- size="small"
|
|
|
|
- type="primary"
|
|
|
|
- icon="el-icon-upload2"
|
|
|
|
- @click="imp"
|
|
|
|
- >导入</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- size="small"
|
|
|
|
- type="primary"
|
|
|
|
- icon="el-icon-download"
|
|
|
|
- @click="exportCourse"
|
|
|
|
- >导出</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-dropdown style="margin-left:10px;" @command="handleCommand">
|
|
|
|
+ <el-button size="small" type="primary"
|
|
|
|
+ >更多菜单 <i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item command="in">导入</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="out">导出</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<!-- 导入弹窗 -->
|
|
<!-- 导入弹窗 -->
|
|
@@ -298,15 +293,6 @@ export default {
|
|
console.log(tempData);
|
|
console.log(tempData);
|
|
this.tableData = tempData;
|
|
this.tableData = tempData;
|
|
},
|
|
},
|
|
- handleCommand(command) {
|
|
|
|
- if (command == "importSub") {
|
|
|
|
- console.log("导入主观题");
|
|
|
|
- } else if (command == "importOb") {
|
|
|
|
- console.log("导入客观题");
|
|
|
|
- } else if (command == "importMarker") {
|
|
|
|
- console.log("导入评卷员");
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
initSetting() {
|
|
initSetting() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.$http
|
|
this.$http
|
|
@@ -443,6 +429,10 @@ export default {
|
|
key +
|
|
key +
|
|
"&$token=" +
|
|
"&$token=" +
|
|
token;
|
|
token;
|
|
|
|
+ },
|
|
|
|
+ handleCommand(buttonType) {
|
|
|
|
+ if (buttonType == "in") this.imp();
|
|
|
|
+ else if (buttonType == "out") this.exportCourse();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|