From e1beaf409dca5c236dd42bc9f3f3619eeb3e5ae2 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 17 七月 2023 14:23:22 +0800
Subject: [PATCH] 代码整合
---
Source/UBCS-WEB/dist/src/option/system/dict.js | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 210 insertions(+), 0 deletions(-)
diff --git a/Source/UBCS-WEB/dist/src/option/system/dict.js b/Source/UBCS-WEB/dist/src/option/system/dict.js
new file mode 100644
index 0000000..f90d3c3
--- /dev/null
+++ b/Source/UBCS-WEB/dist/src/option/system/dict.js
@@ -0,0 +1,210 @@
+export const optionParent = {
+ height: 'auto',
+ calcHeight: 30,
+ tip: false,
+ searchShow: true,
+ searchMenuSpan: 10,
+ border: true,
+ index: true,
+ selection: true,
+ viewBtn: true,
+ menuWidth: 250,
+ dialogWidth: 880,
+ dialogClickModal: false,
+ column: [
+ {
+ label: "瀛楀吀缂栧彿",
+ prop: "code",
+ search: true,
+ slot: true,
+ span: 24,
+ rules: [
+ {
+ required: true,
+ message: "璇疯緭鍏ュ瓧鍏哥紪鍙�",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "瀛楀吀鍚嶇О",
+ prop: "dictValue",
+ search: true,
+ align: "center",
+ rules: [
+ {
+ required: true,
+ message: "璇疯緭鍏ュ瓧鍏稿悕绉�",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "瀛楀吀鎺掑簭",
+ prop: "sort",
+ type: "number",
+ align: "right",
+ width: 100,
+ rules: [
+ {
+ required: true,
+ message: "璇疯緭鍏ュ瓧鍏告帓搴�",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "灏佸瓨",
+ prop: "isSealed",
+ type: "switch",
+ align: "center",
+ width: 100,
+ dicData: [
+ {
+ label: "鍚�",
+ value: 0
+ },
+ {
+ label: "鏄�",
+ value: 1
+ }
+ ],
+ value: 0,
+ slot: true,
+ rules: [
+ {
+ required: true,
+ message: "璇烽�夋嫨灏佸瓨",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "瀛楀吀澶囨敞",
+ prop: "remark",
+ hide: true
+ }
+ ]
+};
+
+export const optionChild = {
+ height: 'auto',
+ calcHeight: 95,
+ tip: false,
+ searchShow: true,
+ searchMenuSpan: 10,
+ tree: true,
+ border: true,
+ index: true,
+ selection: true,
+ viewBtn: true,
+ menuWidth: 300,
+ dialogWidth: 880,
+ dialogClickModal: false,
+ column: [
+ {
+ label: "瀛楀吀缂栧彿",
+ prop: "code",
+ addDisabled: true,
+ editDisabled: true,
+ search: true,
+ span: 24,
+ rules: [
+ {
+ required: true,
+ message: "璇疯緭鍏ュ瓧鍏哥紪鍙�",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "瀛楀吀鍚嶇О",
+ prop: "dictValue",
+ search: true,
+ align: "center",
+ rules: [
+ {
+ required: true,
+ message: "璇疯緭鍏ュ瓧鍏稿悕绉�",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "涓婄骇瀛楀吀",
+ prop: "parentId",
+ type: "tree",
+ dicData: [],
+ hide: true,
+ props: {
+ label: "title"
+ },
+ addDisabled: true,
+ editDisabled: true,
+ rules: [
+ {
+ required: false,
+ message: "璇烽�夋嫨涓婄骇瀛楀吀",
+ trigger: "click"
+ }
+ ]
+ },
+ {
+ label: "瀛楀吀閿��",
+ prop: "dictKey",
+ width: 80,
+ rules: [
+ {
+ required: true,
+ message: "璇疯緭鍏ュ瓧鍏搁敭鍊�",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "瀛楀吀鎺掑簭",
+ prop: "sort",
+ type: "number",
+ align: "right",
+ hide: true,
+ rules: [
+ {
+ required: true,
+ message: "璇疯緭鍏ュ瓧鍏告帓搴�",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "灏佸瓨",
+ prop: "isSealed",
+ type: "switch",
+ align: "center",
+ width: 80,
+ dicData: [
+ {
+ label: "鍚�",
+ value: 0
+ },
+ {
+ label: "鏄�",
+ value: 1
+ }
+ ],
+ value: 0,
+ slot: true,
+ rules: [
+ {
+ required: true,
+ message: "璇烽�夋嫨灏佸瓨",
+ trigger: "blur"
+ }
+ ]
+ },
+ {
+ label: "瀛楀吀澶囨敞",
+ prop: "remark",
+ hide: true
+ }
+ ]
+};
--
Gitblit v1.9.3