浏览代码

调整机构

luojun 2 年之前
父节点
当前提交
b2a213fd76
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/views/system/dept/dialog.edit.vue

+ 9 - 9
src/views/system/dept/dialog.edit.vue

@@ -72,7 +72,8 @@
           <el-row>
             <el-col :span="12">
               <el-form-item label="是否可用" prop="isLock">
-                <el-switch v-model="form.isLock"> </el-switch>
+                <el-switch v-model="form.isLock" :active-value="0"
+          :inactive-value="1"> </el-switch>
               </el-form-item>
             </el-col>
             <el-col :span="12">
@@ -80,7 +81,8 @@
                 label="加钞间出入口远程控制"
                 prop="cashAddingRoomRemoteControl"
               >
-                <el-switch v-model="form.cashAddingRoomRemoteControl">
+                <el-switch v-model="form.cashAddingRoomRemoteControl" :active-value="1"
+          :inactive-value="0">
                 </el-switch>
               </el-form-item>
             </el-col>
@@ -432,9 +434,9 @@ export default {
     },
 
     async show(row) {
-        this.form={};
-        this.id=0;
-        this.constructionList=[];
+      this.form = {};
+      this.id = 0;
+      this.constructionList = [];
       if (row != 0) {
         // console.log(row)
         this.orgid = row.orgid;
@@ -472,12 +474,10 @@ export default {
           : 0;
         console.log(this.form);
         addOrUpdate(this.form).then((data) => {
-            this.$modal.msgSuccess("添加成功");
-this.onHide();
-            
+          this.$modal.msgSuccess("添加成功");
+          this.onHide();
         });
         // this.$emit("success");
-        
       });
     },