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/WMS/WIDESEA_WMSClient/src/views/system/Sys_Tenant.vue | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 102 insertions(+), 0 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSClient/src/views/system/Sys_Tenant.vue b/Code/WMS/WIDESEA_WMSClient/src/views/system/Sys_Tenant.vue
new file mode 100644
index 0000000..d0bd301
--- /dev/null
+++ b/Code/WMS/WIDESEA_WMSClient/src/views/system/Sys_Tenant.vue
@@ -0,0 +1,102 @@
+锘�<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() {
+ // 绉熸埛绠$悊涓婚厤缃細瀵规帴 api/tenant銆�
+ const table = ref({
+ key: "tenantId",
+ footer: "Foots",
+ cnName: "绉熸埛绠$悊",
+ name: "sys_Tenant",
+ url: "/tenant/",
+ sortName: "tenantId",
+ });
+
+ const editFormFields = ref({
+ tenantName: "",
+ tenantType: "",
+ dbType: "",
+ connectionString: "",
+ status: "",
+ remark: "",
+ });
+
+ const editFormOptions = ref([
+ [
+ { field: "tenantName", title: "绉熸埛鍚嶇О", type: "string", required: true },
+ { field: "tenantType", title: "绉熸埛绫诲瀷", type: "number", required: true },
+ { field: "dbType", title: "鏁版嵁搴撶被鍨�", type: "number", required: true },
+ ],
+ [
+ { field: "status", title: "鐘舵��", type: "select", dataKey: "enableStatusEnum", data: [] },
+ { field: "connectionString", title: "杩炴帴瀛楃涓�", type: "textarea" },
+ { field: "remark", title: "澶囨敞", type: "textarea" },
+ ],
+ ]);
+
+ const searchFormFields = ref({
+ tenantName: "",
+ tenantType: "",
+ dbType: "",
+ status: "",
+ });
+
+ const searchFormOptions = ref([
+ [
+ { title: "绉熸埛鍚嶇О", field: "tenantName", type: "like" },
+ { title: "绉熸埛绫诲瀷", field: "tenantType", type: "number" },
+ { title: "鏁版嵁搴撶被鍨�", field: "dbType", type: "number" },
+ { title: "鐘舵��", field: "status", type: "select", dataKey: "enableStatusEnum", data: [] },
+ ],
+ ]);
+
+ const columns = ref([
+ { field: "tenantId", title: "绉熸埛ID", type: "int", width: 90, align: "left" },
+ { field: "tenantName", title: "绉熸埛鍚嶇О", type: "string", width: 180, align: "left" },
+ { field: "tenantType", title: "绉熸埛绫诲瀷", type: "int", width: 110, align: "left" },
+ { field: "dbType", title: "鏁版嵁搴撶被鍨�", type: "int", width: 110, align: "left" },
+ { field: "status", title: "鐘舵��", type: "int", width: 100, align: "left", bind: { key: "enableStatusEnum", data: [] } },
+ { field: "connectionString", title: "杩炴帴瀛楃涓�", type: "string", width: 280, align: "left" },
+ { field: "creater", title: "鍒涘缓浜�", type: "string", width: 100, align: "left" },
+ { field: "createDate", title: "鍒涘缓鏃堕棿", type: "datetime", width: 160, align: "left" },
+ { field: "modifier", title: "淇敼浜�", type: "string", width: 100, align: "left", hidden: true },
+ { field: "modifyDate", title: "淇敼鏃堕棿", type: "datetime", width: 160, align: "left", hidden: true },
+ { field: "remark", title: "澶囨敞", type: "string", width: 180, align: "left" },
+ ]);
+
+ const detail = ref({
+ cnName: "#detailCnName",
+ table: "",
+ columns: [],
+ sortName: "",
+ });
+
+ return {
+ table,
+ extend,
+ editFormFields,
+ editFormOptions,
+ searchFormFields,
+ searchFormOptions,
+ columns,
+ detail,
+ };
+ },
+});
+</script>
--
Gitblit v1.9.3