|
@@ -24,9 +24,7 @@
|
|
|
>
|
|
|
查询
|
|
|
</el-button>
|
|
|
- <el-button size="small" icon="plus" @click="resetSearchForm">
|
|
|
- 重置
|
|
|
- </el-button>
|
|
|
+ <el-button size="small" @click="resetSearchForm"> 重置 </el-button>
|
|
|
<el-button size="small" type="primary" icon="plus" @click="insert">
|
|
|
新增
|
|
|
</el-button>
|
|
@@ -38,17 +36,27 @@
|
|
|
></div>
|
|
|
|
|
|
<span>批量操作:</span>
|
|
|
- <el-button size="small" type="success" @click="enableOrg">
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="success"
|
|
|
+ :disabled="noBatchSelected"
|
|
|
+ @click="enableOrg"
|
|
|
+ >
|
|
|
<i class="fa fa-check" aria-hidden="true"></i>启用
|
|
|
</el-button>
|
|
|
- <el-button size="small" type="danger" @click="disableOrg">
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="danger"
|
|
|
+ :disabled="noBatchSelected"
|
|
|
+ @click="disableOrg"
|
|
|
+ >
|
|
|
<i class="fa fa-close" aria-hidden="true"></i>禁用
|
|
|
</el-button>
|
|
|
|
|
|
<div style="width: 100%;margin-bottom: 10px;"></div>
|
|
|
|
|
|
<!-- 添加或修改学校弹出框 -->
|
|
|
- <el-dialog title="学校信息" :visible.sync="schoolDialog">
|
|
|
+ <el-dialog title="学校信息" width="400px" :visible.sync="schoolDialog">
|
|
|
<el-form
|
|
|
:inline="true"
|
|
|
:model="schoolForm"
|
|
@@ -130,7 +138,7 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
- <el-row class="pull_center">
|
|
|
+ <el-row class="d-flex justify-content-center">
|
|
|
<el-button type="primary" @click="submitForm">保 存</el-button>
|
|
|
<el-button @click="schoolDialog = false">取 消</el-button>
|
|
|
</el-row>
|
|
@@ -146,16 +154,16 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- logo上传弹窗 -->
|
|
|
- <el-dialog title="logo上传" :visible.sync="logoDialog">
|
|
|
- <el-form>
|
|
|
+ <el-dialog title="logo上传" width="350px" :visible.sync="logoDialog">
|
|
|
+ <el-form inline>
|
|
|
<el-row>
|
|
|
- <el-form-item label="学校名称" label-width="120px">
|
|
|
+ <el-form-item label="学校名称">
|
|
|
<el-input class="pull_length" v-model="curSchool.name" disabled />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学校代码" label-width="120px">
|
|
|
+ <el-form-item label="学校代码">
|
|
|
<el-input class="pull_length" v-model="curSchool.code" disabled />
|
|
|
</el-form-item>
|
|
|
- <el-form-item style="margin-left:20px">
|
|
|
+ <el-form-item>
|
|
|
<el-upload
|
|
|
class="form_left"
|
|
|
ref="upload"
|
|
@@ -342,6 +350,9 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState({ user: state => state.user }),
|
|
|
+ noBatchSelected() {
|
|
|
+ return this.selectedOrgIds.length === 0;
|
|
|
+ },
|
|
|
orgIds() {
|
|
|
var orgIds = "";
|
|
|
for (let orgId of this.selectedOrgIds) {
|