Browse Source

fix: 台账字段调整

deploy-dev
xuziqiang 4 months ago
parent
commit
6be90a8d0c
  1. 1
      hx-ai-intelligent/src/components/ns-modal-form.vue
  2. 3
      hx-ai-intelligent/src/view/equipmentManage/ledger/config.ts
  3. 2
      lib/component/modal/modal.vue

1
hx-ai-intelligent/src/components/ns-modal-form.vue

@ -1,7 +1,6 @@
<template> <template>
<ns-modal <ns-modal
ref="modalRef" ref="modalRef"
centered
v-bind="extraModalConfig" v-bind="extraModalConfig"
destroyOnClose destroyOnClose
v-model:visible="visible" v-model:visible="visible"

3
hx-ai-intelligent/src/view/equipmentManage/ledger/config.ts

@ -1,3 +1,4 @@
import { device } from './../../../api/deviceManage';
import { dateUtil } from '/nerv-lib/util/date-util'; import { dateUtil } from '/nerv-lib/util/date-util';
import { device } from '/@/api/deviceManage'; import { device } from '/@/api/deviceManage';
import { ref } from 'vue'; import { ref } from 'vue';
@ -14,7 +15,7 @@ export const tableConfig = (orgId) => {
title: '设备类别', title: '设备类别',
}, },
params: { orgId }, params: { orgId },
dynamicParams: 'code', dynamicParams: { deviceCode: 'code' },
defaultExpandAll: true, defaultExpandAll: true,
api: device.queryDeviceTree, api: device.queryDeviceTree,
fieldNames: { title: 'deviceType', key: 'code' }, fieldNames: { title: 'deviceType', key: 'code' },

2
lib/component/modal/modal.vue

@ -1,7 +1,7 @@
<!-- @format --> <!-- @format -->
<template> <template>
<a-modal v-bind="getBindValue"> <a-modal v-bind="getBindValue" centered>
<template #[item]="data" v-for="item in Object.keys($slots)" :key="item"> <template #[item]="data" v-for="item in Object.keys($slots)" :key="item">
<slot :name="item" v-bind="data || {}"></slot> <slot :name="item" v-bind="data || {}"></slot>
</template> </template>

Loading…
Cancel
Save