|
@@ -1,13 +1,7 @@
|
|
|
<template>
|
|
|
<section class="content">
|
|
|
<div class="box-body">
|
|
|
- <el-form
|
|
|
- :inline="true"
|
|
|
- :model="formSearch"
|
|
|
- label-position="right"
|
|
|
- label-width="70px"
|
|
|
- ref="primaryForm"
|
|
|
- >
|
|
|
+ <el-form :inline="true" :model="formSearch" ref="primaryForm">
|
|
|
<el-row>
|
|
|
<el-form-item label="专业名称">
|
|
|
<el-input
|
|
@@ -51,7 +45,13 @@
|
|
|
>
|
|
|
查询
|
|
|
</el-button>
|
|
|
- <el-button size="small" @click="resetPrimaryForm"> 重置 </el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ @click="resetPrimaryForm"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ >
|
|
|
+ 重置
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
@@ -76,11 +76,21 @@
|
|
|
>
|
|
|
删除
|
|
|
</el-button>
|
|
|
- <el-button size="small" type="primary" @click="impSpecialty">
|
|
|
- <i class="fa fa-upload" aria-hidden="true"></i>导入
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="impSpecialty"
|
|
|
+ icon="el-icon-upload2"
|
|
|
+ >
|
|
|
+ 导入
|
|
|
</el-button>
|
|
|
- <el-button size="small" type="primary" @click="exportSpeciatly">
|
|
|
- <i class="fa fa-upload" aria-hidden="true"></i> 导出
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="exportSpeciatly"
|
|
|
+ icon="el-icon-download"
|
|
|
+ >
|
|
|
+ 导出
|
|
|
</el-button>
|
|
|
|
|
|
<div style="width: 100%;margin-bottom: 10px;"></div>
|
|
@@ -108,6 +118,7 @@
|
|
|
v-model="speciallyForm.code"
|
|
|
auto-complete="off"
|
|
|
placeholder="专业代码"
|
|
|
+ maxlength="100"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="专业名称" prop="name">
|
|
@@ -116,13 +127,14 @@
|
|
|
v-model="speciallyForm.name"
|
|
|
auto-complete="off"
|
|
|
placeholder="专业名称"
|
|
|
+ maxlength="100"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-row class="pull_center">
|
|
|
<el-button type="primary" @click="submitForm('speciallyForm')">
|
|
|
保 存
|
|
|
</el-button>
|
|
|
- <el-button type="danger" @click="close">取 消</el-button>
|
|
|
+ <el-button @click="close">取 消</el-button>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
@@ -130,7 +142,7 @@
|
|
|
<!-- 关联课程弹出框 -->
|
|
|
<el-dialog
|
|
|
:title="courseDialogTitle"
|
|
|
- width="720px"
|
|
|
+ width="740px"
|
|
|
:visible.sync="courseDialog"
|
|
|
>
|
|
|
<!-- 表单 -->
|
|
@@ -154,7 +166,7 @@
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
- icon="search"
|
|
|
+ icon="el-icon-search"
|
|
|
@click="searchCoursePage"
|
|
|
>
|
|
|
查询
|
|
@@ -162,7 +174,7 @@
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
- icon="search"
|
|
|
+ icon="el-icon-plus"
|
|
|
@click="addRelation"
|
|
|
>
|
|
|
新增
|
|
@@ -181,10 +193,11 @@
|
|
|
<span slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
- type="info"
|
|
|
+ type="primary"
|
|
|
@click="deleteRelation(scope.row)"
|
|
|
+ icon="el-icon-edit"
|
|
|
>
|
|
|
- <i class="el-icon-edit"></i> 取消关联
|
|
|
+ 取消关联
|
|
|
</el-button>
|
|
|
</span>
|
|
|
</el-table-column>
|
|
@@ -237,7 +250,6 @@
|
|
|
</el-button>
|
|
|
<el-button @click="addRelationDialog = false">取 消</el-button>
|
|
|
</el-row>
|
|
|
- <el-row class="pull_center"> </el-row>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
|
|
@@ -253,7 +265,7 @@
|
|
|
<el-table-column prop="name" label="专业名称"> </el-table-column>
|
|
|
<el-table-column prop="updateTime" label="更新时间" width="170">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="280">
|
|
|
+ <el-table-column label="操作" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<el-button
|
|
@@ -261,6 +273,7 @@
|
|
|
type="primary"
|
|
|
@click="relation(scope.row)"
|
|
|
plain
|
|
|
+ icon="el-icon-share"
|
|
|
>
|
|
|
关联课程
|
|
|
</el-button>
|