= {
maxlength: 50,
},
},
+ // {
+ // label: "状态",
+ // prop: "status",
+ // type: "radio",
+ // options: [
+ // { label: "正常", value: 1 },
+ // { label: "禁用", value: 0 },
+ // ],
+ // initialValue: 1,
+ // },
{
- label: "状态",
+ label: "状态123",
prop: "status",
- type: "radio",
- options: [
- { label: "正常", value: 1 },
- { label: "禁用", value: 0 },
- ],
+ type: "switch",
+ attrs: {
+ activeText: "正常",
+ inactiveText: "禁用",
+ activeValue: 1,
+ inactiveValue: 0,
+ },
},
],
};
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index f43353ea..4ebe87c3 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -91,13 +91,14 @@
size="large"
class="w-full"
@click.prevent="handleLoginSubmit"
- >{{ $t("login.login") }}
+ >
+ {{ $t("login.login") }}
{{ $t("login.username") }}: admin
- {{ $t("login.password") }}: 123456
+ {{ $t("login.password") }}: 123456
@@ -155,6 +156,8 @@ const loginFormRef = ref();
const loginData = ref({
username: "admin",
password: "123456",
+ captchaKey: "",
+ captchaCode: "",
} as LoginData);
const loginRules = computed(() => {
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 1ce59526..14867eee 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -28,13 +28,14 @@
clearable
class="!w-[100px]"
>
-
-
+
+
-
+
@@ -140,10 +136,15 @@
width="120"
/>
-
+
- {{ scope.row.status == 1 ? "启用" : "禁用" }}
+ {{ scope.row.status == 1 ? "正常" : "禁用" }}
@@ -268,10 +269,14 @@
-
- 正常
- 禁用
-
+