Ver Fonte

fix: 删除重复报告查询类型

carver há 2 anos atrás
pai
commit
df762c9dd3

+ 37 - 40
antbuilder/industry/hospitalV2/components/report-list/index.js

@@ -1,45 +1,42 @@
-import services from './service';
-import { reportCmPV_YL } from '../../utils/cloudMonitorHelper';
+import services from "./service";
+import { reportCmPV_YL } from "../../utils/cloudMonitorHelper";
 Component({
-  props: {
-    componentData: {}
-  },
-  data: {
-    typeOptions: [{
-      value: '检查报告',
-      label: '检查报告'
-    }, {
-      value: '检验报告',
-      label: '检验报告'
-    }, {
-      value: '检验报告',
-      label: '检验报告'
-    }]
-  },
+	props: {
+		componentData: {},
+	},
+	data: {
+		typeOptions: [
+			{
+				value: "检查报告",
+				label: "检查报告",
+			},
+			{
+				value: "检验报告",
+				label: "检验报告",
+			},
+		],
+	},
 
-  didMount() {
-    /* 服务预警,检查检验报告查询 */
-    reportCmPV_YL({
-      title: '检查检验报告查询'
-    });
-  },
+	didMount() {
+		/* 服务预警,检查检验报告查询 */
+		reportCmPV_YL({
+			title: "检查检验报告查询",
+		});
+	},
 
-  methods: {
-    onFilterHandel(filters) {
-      this.filters = filters;
-      this.flatRef.refresh();
-    },
+	methods: {
+		onFilterHandel(filters) {
+			this.filters = filters;
+			this.flatRef.refresh();
+		},
 
-    saveRef(ref) {
-      this.flatRef = ref;
-    },
+		saveRef(ref) {
+			this.flatRef = ref;
+		},
 
-    /* 分页逻辑 */
-    async onService(params) {
-      return services.getReportList({ ...this.filters,
-        ...params
-      });
-    }
-
-  }
-});
+		/* 分页逻辑 */
+		async onService(params) {
+			return services.getReportList({ ...this.filters, ...params });
+		},
+	},
+});