forked from integrated_whb/integrated_whb_vue
				
			允许进入部门,允许进入人员
							parent
							
								
									97b43e070f
								
							
						
					
					
						commit
						6bdbeaf4b4
					
				|  | @ -12,6 +12,12 @@ export const setOtherAlarmConfigurationsAdd = (params) => | ||||||
|   post("/positAlarm/electronicFenceSave", params); // 其他告警配置新增
 |   post("/positAlarm/electronicFenceSave", params); // 其他告警配置新增
 | ||||||
| export const setOtherAlarmConfigurationsEdit = (params) => | export const setOtherAlarmConfigurationsEdit = (params) => | ||||||
|   post("/positAlarm/electronicFenceEdit", params); // 其他告警配置修改
 |   post("/positAlarm/electronicFenceEdit", params); // 其他告警配置修改
 | ||||||
|  | 
 | ||||||
|  | export const getPsnInformationList = (params) => | ||||||
|  |   post("/positAlarm/getPsnInfo", params); // 其他告警配置新增
 | ||||||
|  | export const getDeptInformationList = (params) => | ||||||
|  |   post("/positAlarm/getDeptList", params); // 其他告警配置修改
 | ||||||
|  | 
 | ||||||
| export const getAlarmInformationList = (params) => | export const getAlarmInformationList = (params) => | ||||||
|   post("/positAlarm/getAlArmDataList", params); // 告警信息列表
 |   post("/positAlarm/getAlArmDataList", params); // 告警信息列表
 | ||||||
| export const setAlarmInformationBatchProcessing = (params) => | export const setAlarmInformationBatchProcessing = (params) => | ||||||
|  |  | ||||||
|  | @ -91,10 +91,10 @@ | ||||||
|               <el-form-item label="允许进入人员" prop="eleCrossed"> |               <el-form-item label="允许进入人员" prop="eleCrossed"> | ||||||
|                 <el-select v-model="form.eleCrossed" multiple> |                 <el-select v-model="form.eleCrossed" multiple> | ||||||
|                   <el-option |                   <el-option | ||||||
|                     v-for="item in timeList" |                     v-for="item in psnList" | ||||||
|                     :key="item" |                     :key="item" | ||||||
|                     :label="item" |                     :label="item.label" | ||||||
|                     :value="item" |                     :value="item.value" | ||||||
|                   /> |                   /> | ||||||
|                 </el-select> |                 </el-select> | ||||||
|               </el-form-item> |               </el-form-item> | ||||||
|  | @ -181,10 +181,10 @@ | ||||||
|               <el-form-item label="允许进入部门" prop="eleDept"> |               <el-form-item label="允许进入部门" prop="eleDept"> | ||||||
|                 <el-select v-model="form.eleDept" multiple> |                 <el-select v-model="form.eleDept" multiple> | ||||||
|                   <el-option |                   <el-option | ||||||
|                     v-for="item in timeList" |                     v-for="item in deptList" | ||||||
|                     :key="item" |                     :key="item" | ||||||
|                     :label="item" |                     :label="item.label" | ||||||
|                     :value="item" |                     :value="item.value" | ||||||
|                   /> |                   /> | ||||||
|                 </el-select> |                 </el-select> | ||||||
|               </el-form-item> |               </el-form-item> | ||||||
|  | @ -305,6 +305,8 @@ import { getAssignmentTicketAreaSettingsList } from "@/request/map_settings.js"; | ||||||
| import { | import { | ||||||
|   setOtherAlarmConfigurationsAdd, |   setOtherAlarmConfigurationsAdd, | ||||||
|   setOtherAlarmConfigurationsEdit, |   setOtherAlarmConfigurationsEdit, | ||||||
|  |   getPsnInformationList, | ||||||
|  |   getDeptInformationList, | ||||||
| } from "@/request/alarm_configuration.js"; | } from "@/request/alarm_configuration.js"; | ||||||
| 
 | 
 | ||||||
| const props = defineProps({ | const props = defineProps({ | ||||||
|  | @ -340,6 +342,8 @@ const alarmTypeList = [ | ||||||
|   { id: "7", label: "越界报警" }, |   { id: "7", label: "越界报警" }, | ||||||
| ]; | ]; | ||||||
| const timeList = [10, 20, 30, 60, 120, 300, 600]; | const timeList = [10, 20, 30, 60, 120, 300, 600]; | ||||||
|  | const psnList = []; | ||||||
|  | const deptList = []; | ||||||
| const predefine = [ | const predefine = [ | ||||||
|   "#ff1900", |   "#ff1900", | ||||||
|   "#ff8c00", |   "#ff8c00", | ||||||
|  | @ -430,6 +434,20 @@ const fnGetRegionList = async (type) => { | ||||||
|   if (type === 2) gatheringSilentAreasList.value = resData.rows; |   if (type === 2) gatheringSilentAreasList.value = resData.rows; | ||||||
|   if (type === 3) clusterAlarmAreaList.value = resData.rows; |   if (type === 3) clusterAlarmAreaList.value = resData.rows; | ||||||
| }; | }; | ||||||
|  | const fnGetPsnList = async () => { | ||||||
|  |   const resData = await getPsnInformationList(); | ||||||
|  |   resData.data.forEach((item) => { | ||||||
|  |     psnList.push({ value: item.id, label: item.name }); | ||||||
|  |   }); | ||||||
|  | }; | ||||||
|  | const fnGetDeptList = async () => { | ||||||
|  |   const resData = await getDeptInformationList(); | ||||||
|  |   resData.rows.forEach((item) => { | ||||||
|  |     deptList.push({ value: item.deptId, label: item.deptName }); | ||||||
|  |   }); | ||||||
|  | }; | ||||||
|  | fnGetPsnList(); | ||||||
|  | fnGetDeptList(); | ||||||
| props.isGatheringAlarm === "0" && fnGetRegionList(0); | props.isGatheringAlarm === "0" && fnGetRegionList(0); | ||||||
| props.isGatheringAlarm === "1" && fnGetRegionList(2); | props.isGatheringAlarm === "1" && fnGetRegionList(2); | ||||||
| props.isGatheringAlarm === "1" && fnGetRegionList(3); | props.isGatheringAlarm === "1" && fnGetRegionList(3); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue