From d01295c254063b3349a86a4474e04a62b284bd19 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 24 三月 2026 16:26:07 +0800
Subject: [PATCH] 一些配置

---
 Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Tenant.vue |  238 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 238 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Tenant.vue b/Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Tenant.vue
new file mode 100644
index 0000000..93d3e4f
--- /dev/null
+++ b/Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Tenant.vue
@@ -0,0 +1,238 @@
+锘�<template>
+  <view-grid
+    ref="grid"
+    :columns="columns"
+    :detail="detail"
+    :editFormFields="editFormFields"
+    :editFormOptions="editFormOptions"
+    :searchFormFields="searchFormFields"
+    :searchFormOptions="searchFormOptions"
+    :table="table"
+    :extend="extend"
+  >
+  </view-grid>
+</template>
+<script>
+import extend from "@/extension/system/Sys_Tenant.js";
+import { ref, defineComponent } from "vue";
+
+export default defineComponent({
+  setup() {
+    const tenantTypeOptions = [
+      { key: 0, value: "榛樿绉熸埛" },
+      { key: 1, value: "浼佷笟绉熸埛" },
+      { key: 2, value: "骞冲彴绉熸埛" },
+    ];
+
+    const dbTypeOptions = [
+      { key: 0, value: "SqlServer" },
+      { key: 1, value: "MySql" },
+      { key: 2, value: "PostgreSQL" },
+      { key: 3, value: "Oracle" },
+      { key: 4, value: "Sqlite" },
+    ];
+
+    const statusOptions = [
+      { key: 1, value: "鍚敤" },
+      { key: 0, value: "绂佺敤" },
+    ];
+
+    const table = ref({
+      key: "tenantId",
+      footer: "Foots",
+      cnName: "绉熸埛绠$悊",
+      name: "Sys_Tenant",
+      url: "/tenant/",
+      sortName: "tenantId",
+    });
+
+    const editFormFields = ref({
+      tenantName: "",
+      tenantType: 0,
+      dbType: 0,
+      connectionString: "",
+      status: 1,
+      remark: "",
+    });
+
+    const editFormOptions = ref([
+      [
+        { title: "绉熸埛鍚嶇О", required: true, field: "tenantName", type: "string" },
+        {
+          title: "绉熸埛绫诲瀷",
+          required: true,
+          field: "tenantType",
+          type: "select",
+          data: tenantTypeOptions,
+        },
+      ],
+      [
+        {
+          title: "鏁版嵁搴撶被鍨�",
+          required: true,
+          field: "dbType",
+          type: "select",
+          data: dbTypeOptions,
+        },
+        {
+          title: "鐘舵��",
+          required: true,
+          field: "status",
+          type: "select",
+          data: statusOptions,
+        },
+      ],
+      [
+        {
+          title: "杩炴帴瀛楃涓�",
+          required: true,
+          field: "connectionString",
+          colSize: 12,
+          type: "textarea",
+        },
+      ],
+      [{ title: "澶囨敞", field: "remark", colSize: 12, type: "textarea" }],
+    ]);
+
+    const searchFormFields = ref({
+      tenantName: "",
+      tenantType: "",
+      dbType: "",
+      status: "",
+    });
+
+    const searchFormOptions = ref([
+      [
+        { title: "绉熸埛鍚嶇О", field: "tenantName", type: "like" },
+        {
+          title: "绉熸埛绫诲瀷",
+          field: "tenantType",
+          type: "select",
+          data: tenantTypeOptions,
+        },
+      ],
+      [
+        {
+          title: "鏁版嵁搴撶被鍨�",
+          field: "dbType",
+          type: "select",
+          data: dbTypeOptions,
+        },
+        {
+          title: "鐘舵��",
+          field: "status",
+          type: "select",
+          data: statusOptions,
+        },
+      ],
+    ]);
+
+    const columns = ref([
+      {
+        field: "tenantId",
+        title: "绉熸埛ID",
+        type: "int",
+        width: 110,
+        readonly: true,
+        require: true,
+        align: "left",
+      },
+      {
+        field: "tenantName",
+        title: "绉熸埛鍚嶇О",
+        type: "string",
+        width: 180,
+        require: true,
+        align: "left",
+      },
+      {
+        field: "tenantType",
+        title: "绉熸埛绫诲瀷",
+        type: "int",
+        width: 120,
+        align: "left",
+        bind: { key: "tenantTypeLocal", data: tenantTypeOptions },
+      },
+      {
+        field: "dbType",
+        title: "鏁版嵁搴撶被鍨�",
+        type: "int",
+        width: 140,
+        align: "left",
+        bind: { key: "dbTypeLocal", data: dbTypeOptions },
+      },
+      {
+        field: "status",
+        title: "鐘舵��",
+        type: "int",
+        width: 100,
+        align: "left",
+        bind: { key: "tenantStatusLocal", data: statusOptions },
+      },
+      {
+        field: "connectionString",
+        title: "杩炴帴瀛楃涓�",
+        type: "string",
+        width: 320,
+        align: "left",
+      },
+      {
+        field: "creater",
+        title: "鍒涘缓浜�",
+        type: "string",
+        width: 100,
+        align: "left",
+      },
+      {
+        field: "createDate",
+        title: "鍒涘缓鏃堕棿",
+        type: "datetime",
+        width: 160,
+        align: "left",
+        sort: true,
+      },
+      {
+        field: "modifier",
+        title: "淇敼浜�",
+        type: "string",
+        width: 100,
+        align: "left",
+      },
+      {
+        field: "modifyDate",
+        title: "淇敼鏃堕棿",
+        type: "datetime",
+        width: 160,
+        align: "left",
+        sort: true,
+      },
+      {
+        field: "remark",
+        title: "澶囨敞",
+        type: "string",
+        width: 180,
+        align: "left",
+      },
+    ]);
+
+    const detail = ref({
+      cnName: "",
+      table: "",
+      columns: [],
+      sortName: "",
+      key: "",
+    });
+
+    return {
+      table,
+      extend,
+      editFormFields,
+      editFormOptions,
+      searchFormFields,
+      searchFormOptions,
+      columns,
+      detail,
+    };
+  },
+});
+</script>

--
Gitblit v1.9.3