|
@@ -36,7 +36,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<p class="tree-null-p" v-if="!treeList[0]">暂无数据</p>
|
|
|
- <p class="max-left-big-button" @click="handleCommand(3)">+ 新增校院</p>
|
|
|
+ <p class="max-left-big-button" @click="handleCommand(3)">+ 新增校区</p>
|
|
|
</div>
|
|
|
<div class="max-right-box">
|
|
|
<div class="school-box" v-if="checkTreeType == 1">
|
|
@@ -275,11 +275,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- 新增/编辑院校 -->
|
|
|
+ <!-- 新增/编辑校区 -->
|
|
|
<el-dialog :title="dialogTitle" v-if="dialogOpen" :visible.sync="dialogOpen" width="600px" append-to-body>
|
|
|
<el-form ref="dialogForm" :model="dialogForm" :rules="rules" label-width="110px">
|
|
|
- <el-form-item label="院校名称:" prop="nameOne">
|
|
|
- <el-input v-model="dialogForm.nameOne" maxlength="10" placeholder="请输入院校名称"
|
|
|
+ <el-form-item label="校区名称:" prop="nameOne">
|
|
|
+ <el-input v-model="dialogForm.nameOne" maxlength="10" placeholder="请输入校区名称"
|
|
|
:disabled="dialogType==2 || dialogType==22 || dialogType==3 || dialogType==33"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="楼栋名称:" prop="nameTwo"
|
|
@@ -446,7 +446,7 @@
|
|
|
// 表单参数
|
|
|
dialogForm: {},
|
|
|
roomDialogForm: {},
|
|
|
- //院校名称
|
|
|
+ //校区名称
|
|
|
yxName: null,
|
|
|
ldName: null,
|
|
|
lcName: null,
|
|
@@ -454,8 +454,8 @@
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
nameOne: [
|
|
|
- { required: true, message: '请输入院校名称', trigger: 'blur' },
|
|
|
- { required: true, message: '请输入院校名称', validator: this.spaceJudgment, trigger: 'blur' }
|
|
|
+ { required: true, message: '请输入校区名称', trigger: 'blur' },
|
|
|
+ { required: true, message: '请输入校区名称', validator: this.spaceJudgment, trigger: 'blur' }
|
|
|
],
|
|
|
nameTwo: [
|
|
|
{ required: true, message: '请输入楼栋名称', trigger: 'blur' },
|
|
@@ -616,8 +616,8 @@
|
|
|
handleCommand(command, item) {
|
|
|
let self = this
|
|
|
if (command == 1) {
|
|
|
- //编辑院校
|
|
|
- this.$set(this, 'dialogTitle', '编辑院校')
|
|
|
+ //编辑校区
|
|
|
+ this.$set(this, 'dialogTitle', '编辑校区')
|
|
|
this.$set(this, 'dialogForm', {
|
|
|
id: item.id,
|
|
|
nameOne: item.name,
|
|
@@ -626,8 +626,8 @@
|
|
|
this.$set(this, 'dialogType', 11)
|
|
|
this.$set(this, 'dialogOpen', true)
|
|
|
} else if (command == 2) {
|
|
|
- //删除院校
|
|
|
- this.$confirm('确定要删除该院校吗?', '警告', {
|
|
|
+ //删除校区
|
|
|
+ this.$confirm('确定要删除该校区吗?', '警告', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
@@ -637,9 +637,9 @@
|
|
|
}).catch(() => {
|
|
|
})
|
|
|
} else if (command == 3) {
|
|
|
- //新增院校
|
|
|
+ //新增校区
|
|
|
this.$set(this, 'dialogForm', {})
|
|
|
- this.$set(this, 'dialogTitle', '新增院校')
|
|
|
+ this.$set(this, 'dialogTitle', '新增校区')
|
|
|
this.$set(this, 'dialogType', 1)
|
|
|
this.$set(this, 'dialogOpen', true)
|
|
|
} else if (command == 4) {
|