dedsudiyu il y a 1 an
Parent
commit
a421364230

+ 14 - 14
src/views/comprehensive/laboratoryManagement/building/buildingManagement.vue

@@ -25,7 +25,7 @@
           </div>
         </div>
       </div>
-      <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">
@@ -159,11 +159,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="请输入校名称" :disabled="dialogType==2 || dialogType==3"/>
+        <el-form-item label="校名称:" prop="nameOne">
+          <el-input v-model="dialogForm.nameOne" maxlength="10" placeholder="请输入校名称" :disabled="dialogType==2 || dialogType==3"/>
         </el-form-item>
         <el-form-item label="楼栋名称:" prop="nameTwo" v-if="dialogType==2 || dialogType==3">
           <el-input v-model="dialogForm.nameTwo" maxlength="10" placeholder="请输入楼栋名称" :disabled="dialogType==3"/>
@@ -277,8 +277,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" },
@@ -322,7 +322,7 @@
             cancelButtonText: "取消",
             type: "warning"
           }).then(function() {
-            console.log('删除校',item)
+            console.log('删除校',item)
           }).then(() => {
           }).catch(() => {});
         }else if(type == 3){
@@ -332,23 +332,23 @@
       //楼栋弹出下啦列表选中事件
       handleCommand(command,item){
         if (command == 1){
-          //编辑
-          this.$set(this,'dialogTitle','编辑校');
+          //编辑校
+          this.$set(this,'dialogTitle','编辑校');
           this.$set(this,'dialogType',1);
           this.$set(this,'dialogOpen',true);
         }else if(command == 2){
-          //删除
-          this.$confirm('确定要删除该校吗?', "警告", {
+          //删除校
+          this.$confirm('确定要删除该校吗?', "警告", {
             confirmButtonText: "确定",
             cancelButtonText: "取消",
             type: "warning"
           }).then(function() {
-            console.log('删除校',item)
+            console.log('删除校',item)
           }).then(() => {
           }).catch(() => {});
         }else if(command == 3){
-          //新增
-          this.$set(this,'dialogTitle','新增校');
+          //新增校
+          this.$set(this,'dialogTitle','新增校');
           this.$set(this,'dialogType',1);
           this.$set(this,'dialogOpen',true);
         }else if(command == 4){

+ 13 - 13
src/views/comprehensive/laboratoryManagement/building/newIndex.vue

@@ -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) {