dedsudiyu 10 місяців тому
батько
коміт
d1b454aaa7
2 змінених файлів з 17 додано та 9 видалено
  1. 8 0
      pages_basics/api/index.js
  2. 9 9
      pages_basics/views/record/index.vue

+ 8 - 0
pages_basics/api/index.js

@@ -32,6 +32,14 @@ export const laboratoryEventFindByEventId = (data) => {
 		data: { ...data }
 	})
 };
+//进出记录-实验室列表
+export const laboratoryAppletSignSubList = (data) => {
+	return apiResquest({
+		url: `/laboratory/applet/signSubList`,
+		method: 'POST',
+		data: { ...data }
+	})
+};
 //进出记录-列表
 export const laboratoryAppletPassOutList = (data) => {
 	return apiResquest({

+ 9 - 9
pages_basics/views/record/index.vue

@@ -44,9 +44,7 @@
 		config
 	} from '@/api/request/config.js'
 	import {
-		systemSubjectGetListByPower
-	} from '@/api/commonality/permission.js'
-	import {
+		laboratoryAppletSignSubList,
 		laboratoryAppletPassOutList
 	} from '@/pages_basics/api/index.js'
 	export default {
@@ -72,15 +70,17 @@
 
 		},
 		onShow() {
-			this.systemSubjectGetListByPower();
+			this.laboratoryAppletSignSubList();
 			this.getList();
 		},
 		methods: {
 			//选中数据
 			tableButton(item) {
-				uni.navigateTo({
-					url: '/pages_basics/views/record/infoPage?item=' + encodeURIComponent(JSON.stringify(item)) //安全警报
-				});
+				if(item.accessStatus == 2){
+					uni.navigateTo({
+						url: '/pages_basics/views/record/infoPage?item=' + encodeURIComponent(JSON.stringify(item)) //安全警报
+					});
+				}
 			},
 			changeLog(e) {
 				this.$set(this.queryParams,'page',1);
@@ -145,11 +145,11 @@
 				}
 			},
 			//查询实验室
-			async systemSubjectGetListByPower() {
+			async laboratoryAppletSignSubList() {
 				let self = this;
 				const {
 					data
-				} = await systemSubjectGetListByPower();
+				} = await laboratoryAppletSignSubList();
 				if (data.code == 200) {
 					let nameList = ['全部'];
 					let list = [{