guhongwei 4 rokov pred
rodič
commit
87b02d59b6

+ 8 - 5
src/views/superAdminCenter/adminUser/index.vue

@@ -59,12 +59,13 @@ export default {
       total: 0,
 
       formFields: [
-        { label: '机构代码或邀请码', prop: 'code', model: 'code' },
+        // { label: '机构代码或邀请码', model: 'code' },
+        // { label: '机构代码或邀请码', model: 'code', options: { disabled: true } },
         { label: '所属管理员', model: 'pid', type: 'select' },
-        { label: '姓名', prop: 'name', model: 'name' },
-        { label: '机构名称', prop: 'deptname', model: 'deptname' },
-        { label: '手机号', prop: 'phone', model: 'phone', options: { maxLength: 11, minLength: 11, type: 'number' } },
-        { label: '密码', prop: 'password', model: 'password', type: 'password' },
+        { label: '姓名', model: 'name' },
+        { label: '机构名称', model: 'deptname' },
+        { label: '手机号', model: 'phone', options: { maxLength: 11, minLength: 11, type: 'number' } },
+        { label: '密码', model: 'password', type: 'password' },
       ],
       rules: {
         code: [{ required: true, message: '请输入推荐码' }],
@@ -88,9 +89,11 @@ export default {
     },
     // 添加
     toAdd() {
+      this.formFields.push({ label: '机构代码或邀请码', model: 'code' });
       this.dialog = true;
     },
     toEdit({ data }) {
+      this.formFields.push({ label: '机构代码或邀请码', model: 'code', options: { disabled: true } });
       this.$set(this, 'form', data);
       this.dialog = true;
       this.dialogIsNew = false;

+ 2 - 2
src/views/superAdminCenter/dictionary/index.vue

@@ -6,7 +6,7 @@
           <el-col :span="7" class="column">
             <column @setCategory="data => (category = data)" @setList="data => (categoryList = data)"></column>
           </el-col>
-          <el-col :span="17" class="message">
+          <el-col :span="16" class="message">
             <item-list :category="category" :categoryList="categoryList"></item-list>
           </el-col>
         </el-col>
@@ -52,7 +52,7 @@ export default {
   width: 96%;
 }
 .column {
-  width: 27%;
+  width: 30%;
   min-height: 690px;
   border: 1px solid #ccc;
   margin: 0 20px 0 0;