ソースを参照

用户管理修改设置不能修改名称

yuhan 10 ヶ月 前
コミット
664dbc5d59
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      src/views/module_interLock/systemUser/modules/SystemUserForm.vue

+ 2 - 1
src/views/module_interLock/systemUser/modules/SystemUserForm.vue

@@ -5,7 +5,7 @@
         <a-row>
           <a-col :span="24">
             <a-form-model-item label="用户名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="username">
-              <a-input v-model="model.username" placeholder="请输入用户名称"  ></a-input>
+              <a-input v-model="model.username" placeholder="请输入用户名称" :disabled="userDisabled" ></a-input>
             </a-form-model-item>
           </a-col>
           <a-col :span="24">
@@ -72,6 +72,7 @@
     },
     data () {
       return {
+        userDisabled: false, // 修改时用户名不可修改
         model:{
         },
         labelCol: {