guhongwei 4 年之前
父节点
当前提交
b4fadf1c00
共有 1 个文件被更改,包括 18 次插入18 次删除
  1. 18 18
      src/views/dockCenter/vipInfo/index.vue

+ 18 - 18
src/views/dockCenter/vipInfo/index.vue

@@ -31,7 +31,7 @@
         </el-col>
       </el-col>
     </el-row>
-     <el-dialog title="添加用户" :visible.sync="dialogVisible" width="90%" :before-close="handleClose">
+    <el-dialog title="添加用户" :visible.sync="dialogVisible" width="90%" :before-close="handleClose">
       <el-col :span="24">
         <el-form :model="form">
           <el-form-item label="用户名" :label-width="formLabelWidth">
@@ -81,35 +81,35 @@ export default {
       // 返回
       navShow: true,
       list: [],
-      dock_id:'',
-      dialogVisible:false,
-          disabled: false,
-      form:{},
-      formLabelWidth:'80px'
+      dock_id: '',
+      dialogVisible: false,
+      disabled: false,
+      form: {},
+      formLabelWidth: '80px',
     };
   },
   created() {
-        this.searchInfo();
+    this.searchInfo();
   },
   methods: {
-     ...dock({ dockQuery: 'query', dockfetch: 'fetch',dockupdate:'update',dockupdateVip: 'updateVip', createvipuser: 'createvipuser' }),
-         ...apply({ applyUpdate: 'update' }),
+    ...dock({ dockQuery: 'query', dockfetch: 'fetch', dockupdate: 'update', dockupdateVip: 'updateVip', createvipuser: 'createvipuser' }),
+    ...apply({ applyUpdate: 'update' }),
     ...authUser({ authUserQuery: 'query', authUserCreate: 'create', authUserUpdate: 'update' }),
     async searchInfo() {
       let res = await this.dockfetch(this.user.uid);
-     if (this.$checkRes(res)) {
-          this.$set(this, `list`, res.data.vipuser);
+      if (this.$checkRes(res)) {
+        this.$set(this, `list`, res.data.vipuser);
         this.$set(this, `dock_id`, res.data.id);
       }
     },
-  // 添加用户
+    // 添加用户
     add() {
       this.dialogVisible = true;
       this.disabled = false;
     },
     // 保存
-    async onSubmit(){
- if (this.form.id) {
+    async onSubmit() {
+      if (this.form.id) {
         const res = await this.authUserUpdate(this.form);
         if (this.$checkRes(res)) {
           let data = {
@@ -165,7 +165,7 @@ export default {
       }
     },
     // 修改
-      // 修改
+    // 修改
     editViP(data) {
       this.dialogVisible = true;
       let newDate = {};
@@ -187,7 +187,7 @@ export default {
       this.form = {};
       this.dialogVisible = false;
     },
-     // 取消
+    // 取消
     handleClose(done) {
       done();
     },
@@ -250,7 +250,7 @@ export default {
     }
   }
 }
-/deep/.el-dialog__body{
-height: 420px;
+/deep/.el-dialog__body {
+  height: 420px;
 }
 </style>