Browse Source

no message

kllay 5 days ago
parent
commit
c2dd95d995
2 changed files with 63 additions and 8 deletions
  1. 4 0
      src/theme/element.scss
  2. 59 8
      src/views/system/device/crud.tsx

+ 4 - 0
src/theme/element.scss

@@ -242,7 +242,10 @@
 ------------------------------- */
 .el-overlay {
 	overflow: hidden;
+	
 	.el-overlay-dialog {
+		pointer-events: none;
+		
 		display: flex;
 		align-items: center;
 		justify-content: center;
@@ -250,6 +253,7 @@
 		width: 100%;
 		height: 100%;
 		.el-dialog {
+			pointer-events: auto;
 			margin: 0 auto !important;
 			position: absolute;
 			.el-dialog__body {

+ 59 - 8
src/views/system/device/crud.tsx

@@ -617,10 +617,61 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				// 		rules: [{ required: true, message: '请输入设备购入价格' }],
 				// 	},
 				// },
-				// ...commonCrudConfig({
-				// 	create_datetime: { search: false },
-				// 	update_datetime: { search: false },
-				// }),
+				jieyong: {
+					title: '借用',
+					search: { show: false },
+					type: 'input',
+					column: { minWidth: 120 },
+					form: {
+						component: { placeholder: '请输入借用' }
+					},
+					viewForm:{
+						component: { placeholder: '' },
+						rules: [{ required: true, message: '' }],
+					}
+				},
+				weixiu: {
+					title: '维修',
+					search: { show: false },
+					type: 'input',
+					column: { minWidth: 120 },
+					form: {
+						component: { placeholder: '请输入维修' }
+					},
+					viewForm:{
+						component: { placeholder: '' },
+						rules: [{ required: true, message: '' }],
+					}
+				},
+				baoyang: {
+					title: '保养',
+					search: { show: false },
+					type: 'input',
+					column: { minWidth: 120 },
+					form: {
+						component: { placeholder: '请输入保养' }
+					},
+					viewForm:{
+						component: { placeholder: '' },
+						rules: [{ required: true, message: '' }],
+					}
+				},
+				tongji: {
+					title: '统计',
+					search: { show: false },
+					type: 'input',
+					column: { minWidth: 120 },
+					form: {
+						component: { placeholder: '请输入统计' }
+					},
+					viewForm:{
+						component: { placeholder: '' },
+						rules: [{ required: true, message: '' }],
+					}
+				},
+
+
+
 			},
 			form: {
 				wrapper: {
@@ -652,25 +703,25 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					borrow: {
 						label: "借用记录",
 						icon: "el-icon-price-tag",
-						columns: []
+						columns: ["jieyong",]
 					},
 					maintenance: {
 						label: "维修记录",
 						collapsed: true, //默认折叠
 						icon: "el-icon-warning-outline",
-						columns: [""]
+						columns: ["weixiu"]
 					},
 					maintain: {
 						label: "保养记录",
 						collapsed: true, //默认折叠
 						icon: "el-icon-warning-outline",
-						columns: []
+						columns: ["baoyang"]
 					},
 					datastatis: {
 						label: "数据统计",
 						collapsed: true, //默认折叠
 						icon: "el-icon-warning-outline",
-						columns: []
+						columns: ["tongji"]
 					},