-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/customer/index.vue b/src/views/system/customer/index.vue
index b4daa97..4b22b8b 100644
--- a/src/views/system/customer/index.vue
+++ b/src/views/system/customer/index.vue
@@ -70,6 +70,7 @@
await store.dispatch('customer/search');
loading.value = false;
};
+ onActivated(handleSearch);
const handleEnable = async (row) => {
loading.value = true;
await store.dispatch('customer/enable', { userId: row.id, isEnable: !row.isEnable });
diff --git a/src/views/system/employee/index.vue b/src/views/system/employee/index.vue
index 85753aa..18b464d 100644
--- a/src/views/system/employee/index.vue
+++ b/src/views/system/employee/index.vue
@@ -59,6 +59,7 @@
await store.dispatch('employee/search');
loading.value = false;
};
+ onActivated(handleSearch);
const handleCreate = () => {
router.push({ name: 'CreateEmployee' });
};
@@ -66,12 +67,10 @@
router.push({ name: 'UpdateEmployee', params: { id: row.id } });
};
const handleRemove = async (rows) => {
- loading.value = true;
- await store.dispatch(
+ store.dispatch(
'employee/remove',
rows.map((item) => item.id)
);
- loading.value = false;
};
const handleEnable = async (row) => {
loading.value = true;
diff --git a/src/views/system/notify/index.vue b/src/views/system/notify/index.vue
new file mode 100644
index 0000000..05dcc84
--- /dev/null
+++ b/src/views/system/notify/index.vue
@@ -0,0 +1,185 @@
+