|
|
@@ -15,7 +15,7 @@
|
|
|
</ElCol>
|
|
|
<ElCol :md="24" :lg="12">
|
|
|
<el-form-item label="名称" prop="sysName">
|
|
|
- <el-input v-model="sysform.sysName" placeholder="请输入名称" />
|
|
|
+ <el-input v-model="sysform.sysName" placeholder="请输入名称" maxlength="20" show-word-limit />
|
|
|
<span style="opacity: 0;">x</span>
|
|
|
</el-form-item>
|
|
|
</ElCol>
|
|
|
@@ -27,16 +27,18 @@
|
|
|
</ElCol>
|
|
|
<ElCol :md="24" :lg="12">
|
|
|
<el-form-item label="管理员账号" prop="userAccount">
|
|
|
- <el-input style="display: none;" type="password" />
|
|
|
- <el-input v-model="sysform.userAccount" placeholder="请输入登录账号" type="text" name="formerEmployer" autocomplete="new-password" @blur="userAccountblur" />
|
|
|
+ <el-input style="display: none;" type="password" />
|
|
|
+ <el-input v-model="sysform.userAccount" placeholder="请输入登录账号" maxlength="11" show-word-limit type="text" name="formerEmployer"
|
|
|
+ autocomplete="new-password" @blur="userAccountblur" />
|
|
|
<span style="font-size: 0.7rem;color: #999;">管理员手机号手机号将作为登录账号使用</span>
|
|
|
</el-form-item>
|
|
|
</ElCol>
|
|
|
<ElCol :md="24" :lg="12" v-if="!id">
|
|
|
<el-form-item label="登录密码" prop="password">
|
|
|
- <el-input style="display: none;" type="text" />
|
|
|
+ <el-input style="display: none;" type="text" />
|
|
|
|
|
|
- <el-input v-model="sysform.password" placeholder="请输入登录密码" show-password type="password" autocomplete="new-password" />
|
|
|
+ <el-input v-model="sysform.password" placeholder="请输入登录密码" show-password type="password"
|
|
|
+ autocomplete="new-password" />
|
|
|
</el-form-item>
|
|
|
</ElCol>
|
|
|
|
|
|
@@ -53,7 +55,7 @@
|
|
|
</ElCol>
|
|
|
<ElCol :md="24" :lg="12">
|
|
|
<el-form-item label="详细地址" prop="address">
|
|
|
- <el-input v-model="sysform.address" placeholder="请输入" />
|
|
|
+ <el-input v-model="sysform.address" placeholder="请输入详细地址" />
|
|
|
</el-form-item>
|
|
|
</ElCol>
|
|
|
<ElCol :md="24" :lg="12">
|
|
|
@@ -76,7 +78,7 @@
|
|
|
<el-upload action="#" list-type="picture-card" :auto-upload="false" :on-change="sysIconupload"
|
|
|
ref="upload1" :limit="1" :class="{ disabled: uploadDisabled }" :on-preview="handlePictureCardPreview"
|
|
|
:on-remove="handleRemove">
|
|
|
- <img v-if="sysIconList.url" :src="sysIconList.url" class="avatar" />
|
|
|
+ <img v-if="sysIconList.url" :src="sysIconList.url" class="avatar" style="width: 100%;height: 100%;" />
|
|
|
<el-icon v-else class="avatar-uploader-icon">
|
|
|
<Plus />
|
|
|
</el-icon>
|
|
|
@@ -320,11 +322,11 @@ const detailUpdate = () => {
|
|
|
});
|
|
|
}
|
|
|
const provinceChange = (value: any) => {
|
|
|
- if ( value && value[0] != null && value[1] != null && value[2] != null) {
|
|
|
+ if (value && value[0] != null && value[1] != null && value[2] != null) {
|
|
|
sysform.value.provinceId = value[0];
|
|
|
sysform.value.cityId = value[1];
|
|
|
sysform.value.districtId = value[2];
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
sysform.value.provinceId = "";
|
|
|
sysform.value.cityId = "";
|
|
|
sysform.value.districtId = "";
|