diff --git a/src/components/XSelect.vue b/src/components/XSelect.vue
index 6347e01..e55408c 100644
--- a/src/components/XSelect.vue
+++ b/src/components/XSelect.vue
@@ -2,6 +2,7 @@
import DOWNICON from "../static/icons/down.png";
import {onMounted, reactive} from "vue";
+const emits = defineEmits(['change']);
const {placeholder, api} = defineProps({
placeholder: {
type: String,
@@ -19,6 +20,7 @@ const modelValue = defineModel();
const change = ({detail: {value}}) => {
modelValue.value = list.filter(v => !v.hidden)[value].id;
+ emits('change', modelValue.value);
}
onMounted(() => {
@@ -31,7 +33,7 @@ onMounted(() => {
-
+
{{ placeholder }}
@@ -41,6 +43,7 @@ onMounted(() => {
+
diff --git a/src/pages/accountManagement/index.vue b/src/pages/accountManagement/index.vue
index ee7fecb..506cee4 100644
--- a/src/pages/accountManagement/index.vue
+++ b/src/pages/accountManagement/index.vue
@@ -15,6 +15,7 @@ import Api from "../../api/index.js";
import {onShow} from "@dcloudio/uni-app";
import {useSystemStore} from "../../pinia/SystemStore/index.js";
import XPrompt from "../../components/XPrompt.vue";
+import XSelect from "../../components/XSelect.vue";
const SystemStore = useSystemStore();
const BASE = [
@@ -84,6 +85,14 @@ const deleteItem = async (id) => {
showToast(msg);
await getData();
}
+
+const changeStatus = async (value, item) => {
+ const {msg} = await Api.system.editAccount({
+ ...item,
+ status: value,
+ });
+ showToast(msg);
+}
@@ -122,27 +131,41 @@ const deleteItem = async (id) => {
{{ v.nickname }}
{{ v.account }}
-
+
+ {{ v.status_text }}
+
+
+
+
+
{{ v.status_text }}
-
- {{ v.status_text }}
-
-
- {{ v.status_text }}
+
-
-
{{ v.status_text }}
+
+
+
+
+
+ {{ v.status_text }}
+
+
+
diff --git a/src/pages/addAccount/index.vue b/src/pages/addAccount/index.vue
index 33f04aa..815d7bd 100644
--- a/src/pages/addAccount/index.vue
+++ b/src/pages/addAccount/index.vue
@@ -77,9 +77,6 @@ const getSelect = async () => {
-
-
-
diff --git a/src/pages/messageCenter/index.vue b/src/pages/messageCenter/index.vue
index d31102f..19b52ff 100644
--- a/src/pages/messageCenter/index.vue
+++ b/src/pages/messageCenter/index.vue
@@ -50,7 +50,8 @@ const changeTab = ({index}) => {
-
+