|  | @@ -15,7 +15,7 @@
 | 
	
		
			
				|  |  |        :device-type="cfg.deviceType"
 | 
	
		
			
				|  |  |        :data="pumpDataSource"
 | 
	
		
			
				|  |  |        :visible="true"
 | 
	
		
			
				|  |  | -      :style="{ zIndex: 3 }"
 | 
	
		
			
				|  |  | +      :style="{ zIndex: 1 }"
 | 
	
		
			
				|  |  |      />
 | 
	
		
			
				|  |  |      <div class="scene-box">
 | 
	
		
			
				|  |  |        <div class="bottom-tabs-box" @mousedown="setDivHeight($event, 175, scroll, 0)">
 | 
	
	
		
			
				|  | @@ -38,6 +38,10 @@
 | 
	
		
			
				|  |  |                  <template #action="{ record }">
 | 
	
		
			
				|  |  |                    <TableAction
 | 
	
		
			
				|  |  |                      :actions="[
 | 
	
		
			
				|  |  | +                      {
 | 
	
		
			
				|  |  | +                        label: '控制',
 | 
	
		
			
				|  |  | +                        onClick: () => controlHandler(record),
 | 
	
		
			
				|  |  | +                      },
 | 
	
		
			
				|  |  |                        {
 | 
	
		
			
				|  |  |                          label: '定位',
 | 
	
		
			
				|  |  |                          onClick: goLocation.bind(null, record),
 | 
	
	
		
			
				|  | @@ -69,13 +73,16 @@
 | 
	
		
			
				|  |  |          </DvBorderBox8>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  | +    <BasicModal @register="registerModal" @ok="submitHandler">
 | 
	
		
			
				|  |  | +      <BasicForm @register="registerForm" />
 | 
	
		
			
				|  |  | +    </BasicModal>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script setup lang="ts">
 | 
	
		
			
				|  |  |    import CustomHeader from '/@/components/vent/customHeader.vue';
 | 
	
		
			
				|  |  |    import { setDivHeight } from '/@/utils/event';
 | 
	
		
			
				|  |  | -  import { onMounted, ref } from 'vue';
 | 
	
		
			
				|  |  | +  import { onMounted, ref, nextTick } from 'vue';
 | 
	
		
			
				|  |  |    import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
 | 
	
		
			
				|  |  |    import ModuleCommon from '../../home/configurable/components/ModuleCommon.vue';
 | 
	
		
			
				|  |  |    import { moduleConfigs } from './gasPipeNet.data';
 | 
	
	
		
			
				|  | @@ -86,6 +93,9 @@
 | 
	
		
			
				|  |  |    import { get } from 'lodash-es';
 | 
	
		
			
				|  |  |    import { getActions } from '/@/qiankun/state';
 | 
	
		
			
				|  |  |    import { TableAction } from '/@/components/Table';
 | 
	
		
			
				|  |  | +  import { BasicModal, useModal } from '/@/components/Modal';
 | 
	
		
			
				|  |  | +  import { BasicForm, useForm } from '/@/components/Form';
 | 
	
		
			
				|  |  | +  import { message } from 'ant-design-vue';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    const scroll = ref<{ x: true; y: number }>({ x: true, y: 202 });
 | 
	
		
			
				|  |  |    const activeKey = ref('1');
 | 
	
	
		
			
				|  | @@ -110,6 +120,38 @@
 | 
	
		
			
				|  |  |      actions.setGlobalState({ locationId: record.deviceID, locationObj: null, pageObj: null });
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +  const [registerModal, { openModal, closeModal }] = useModal();
 | 
	
		
			
				|  |  | +  const [registerForm, { setFieldsValue, validate }] = useForm({
 | 
	
		
			
				|  |  | +    showActionButtonGroup: false,
 | 
	
		
			
				|  |  | +    schemas: [
 | 
	
		
			
				|  |  | +      {
 | 
	
		
			
				|  |  | +        label: '开度',
 | 
	
		
			
				|  |  | +        component: 'Input',
 | 
	
		
			
				|  |  | +        field: 'degree',
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      {
 | 
	
		
			
				|  |  | +        label: '密码',
 | 
	
		
			
				|  |  | +        component: 'InputPassword',
 | 
	
		
			
				|  |  | +        field: 'pwd',
 | 
	
		
			
				|  |  | +        required: true,
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +    ],
 | 
	
		
			
				|  |  | +  });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  function submitHandler() {
 | 
	
		
			
				|  |  | +    validate().then((val) => {
 | 
	
		
			
				|  |  | +      message.success('VAL:' + JSON.stringify(val));
 | 
	
		
			
				|  |  | +      closeModal();
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  function controlHandler(record) {
 | 
	
		
			
				|  |  | +    openModal();
 | 
	
		
			
				|  |  | +    nextTick(() => {
 | 
	
		
			
				|  |  | +      setFieldsValue(record);
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    onMounted(() => {
 | 
	
		
			
				|  |  |      getSysDataSource();
 | 
	
		
			
				|  |  |    });
 |