|
@@ -7,7 +7,7 @@
|
|
|
<form>
|
|
|
<view class="uni-form-item uni-row">
|
|
|
<view class="title">登录账号</view>
|
|
|
- <input class="uni-input" name="username" :value="username" @input="inputUsername"/>
|
|
|
+ <input class="uni-input inputDisabled" name="username" :value="username" disabled = "true"/>
|
|
|
</view>
|
|
|
<view class="uni-form-item uni-row">
|
|
|
<view class="title">用户姓名</view>
|
|
@@ -80,9 +80,6 @@
|
|
|
this.getUser(id)
|
|
|
},
|
|
|
methods: {
|
|
|
- inputUsername(event : UniInputEvent) {
|
|
|
- this.user.username = event.detail.value
|
|
|
- },
|
|
|
inputName(event : UniInputEvent) {
|
|
|
this.user.name = event.detail.value
|
|
|
},
|
|
@@ -128,7 +125,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.user.username == null && this.user.name == null && this.user.password == null && this.user.confirmPassword == null) {
|
|
|
+ if (this.user.name == null && this.user.password == null && this.user.confirmPassword == null) {
|
|
|
uni.showToast({
|
|
|
title: "没有做修改",
|
|
|
icon: "error"
|
|
@@ -137,7 +134,6 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
getList('app_user', 'id', this.id, null, null, null).then((res : UTSJSONObject) => {
|
|
|
let userList = res?.['data'] as UTSJSONObject[] ?? Array<UTSJSONObject>();
|
|
|
console.log(userList);
|
|
@@ -215,4 +211,8 @@
|
|
|
.title {
|
|
|
width: 100rpx;
|
|
|
}
|
|
|
+
|
|
|
+ .inputDisabled {
|
|
|
+ background-color: #dfdfdf;
|
|
|
+ }
|
|
|
</style>
|