Browse Source

Merge branch 'master' of http://182.92.126.35:3000/hrx/mky-vent-base

lxh 4 days ago
parent
commit
031c6d86cb

+ 14 - 1
src/views/vent/gas/gasPumpSetting/components/settingForm.vue

@@ -13,6 +13,19 @@
             </template>
           </ListItem>
         </template>
+        <template #select="{ model: m, field, schema }">
+          <ListItem class="w-100%" v-model:value="m[field]" type="input" bordered :label-width="180" :value-width="80">
+            <template #label>
+              {{ schema.label }}
+              <Tooltip v-if="schema.helpMessage" :title="schema.helpMessage">
+                <InfoCircleOutlined />
+              </Tooltip>
+            </template>
+            <template #value>
+              <ApiSelect v-bind="schema.componentProps" v-model:value="m[field]" />
+            </template>
+          </ListItem>
+        </template>
       </BasicForm>
     </div>
     <!-- <div class="setting-form__wrapper">
@@ -80,7 +93,7 @@
   import { Button, Tooltip } from 'ant-design-vue';
   import ListItem from '@/views/vent/gas/components/list/listItem.vue';
   import FormTitle from '@/views/vent/gas/components/form/formTitle.vue';
-  import { useForm, BasicForm } from '/@/components/Form';
+  import { useForm, BasicForm, ApiSelect } from '/@/components/Form';
   import { /** workSurfaceFormSchema, extractionUnitFormSchema, */ calculationFormSchema, paramsFormSchema } from '../gasPumpSetting.data';
   import { ref } from 'vue';
   import { InfoCircleOutlined } from '@ant-design/icons-vue';

+ 19 - 0
src/views/vent/gas/gasPumpSetting/gasPumpSetting.data.ts

@@ -1,5 +1,6 @@
 import { FormSchema } from '@/components/Form';
 import { BasicColumn } from '/@/components/Table';
+import { getTableList } from '../gasPipeNet/gasPipeNet.api';
 
 /** 参数表单配置项 */
 export const paramsFormSchema: FormSchema[] = [
@@ -326,6 +327,24 @@ export const paramsFormSchema: FormSchema[] = [
     component: 'Input',
     slot: 'input',
   },
+  {
+    label: '所属工作面',
+    field: 'manageSystemId',
+    component: 'ApiSelect',
+    slot: 'select',
+    componentProps: {
+      api: getTableList,
+      params: {
+        status: 1,
+        strtype: 'sys_surface*',
+        pageNo: 1,
+        pageSize: 100,
+      },
+      resultField: 'records',
+      labelField: 'systemname',
+      valueField: 'id',
+    },
+  },
 ];
 
 /** 工作面参数表单配置项 */