Pārlūkot izejas kodu

子账号管理

zouzs 6 dienas atpakaļ
vecāks
revīzija
97d5722828
1 mainītis faili ar 1 papildinājumiem un 39 dzēšanām
  1. 1 39
      src/views/childAccount/index.vue

+ 1 - 39
src/views/childAccount/index.vue

@@ -12,7 +12,6 @@
       :table="{
         actionBar: { buttons, type: 'link', width: 180 },
         adaptive: { offsetBottom: 50 },
-        onFormChange: handleTableChange,
         hasIndexColumn: true
       }"
       :pageInfoMap="{ page: 'pageNum', pageSize: 'pageSize' }"
@@ -53,7 +52,7 @@ import {
   toRefs
 } from "vue";
 import type { FormRules } from "element-plus";
-import { ElMessage, ElMessageBox } from "element-plus";
+import { ElMessage } from "element-plus";
 import {
   type FieldValues,
   type PlusColumn,
@@ -62,8 +61,6 @@ import {
   PlusPageInstance,
   useTable
 } from "plus-pro-components";
-import { isString } from "@pureadmin/utils";
-import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
 import { useRouter } from "vue-router";
 import {
   createChildAccount,
@@ -73,18 +70,11 @@ import {
   merchantUserInfoupdateStatus,
   updateChildAccount
 } from "@/api/childAccount";
-import { getLocalDict } from "@/api/public";
 
 defineOptions({
   name: "ChildAccount"
 });
 
-onMounted(() => {
-  getLocalDict().then(res => {
-    console.log(res);
-  });
-});
-
 const router = useRouter();
 
 const plusPageInstance = ref<PlusPageInstance | null>(null);
@@ -102,34 +92,6 @@ const refresh = () => {
   plusPageInstance.value?.getList();
 };
 
-const handleTableChange = (values: FieldValues) => {
-  console.log(values);
-  ElMessageBox.confirm("确定修改此数据吗?", "提示", {
-    confirmButtonText: "确定",
-    cancelButtonText: "取消",
-    type: "warning"
-  })
-    .then(async () => {
-      try {
-        let data = {
-          id: values.row.id,
-          status: values.row.status
-        };
-        let res = await switchIpAccountStatus(data);
-        if (res.code === 200) {
-          ElMessage.success("修改成功");
-        } else {
-          ElMessage.error(res.msg);
-        }
-      } catch (e) {
-        ElMessage.error("修改失败");
-      }
-    })
-    .finally(() => {
-      refresh();
-    });
-};
-
 const dialogTitle = computed(() => (state.isCreate ? "新增" : "编辑"));
 
 // 表格数据