|
@@ -12,12 +12,12 @@
|
|
|
</a-popconfirm>
|
|
|
</template>
|
|
|
</BasicTable>
|
|
|
- <BaseModal @register="register" @add="onSubmit" @update="onSubmit" :form-schemas="workFaceWarningFormSchemas" />
|
|
|
+ <BaseModal @register="register" @add="onSubmit" @update="onSubmit" :destroy-on-close="true" :form-schemas="workFaceWarningSchemas" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" name="system-user" setup>
|
|
|
- import { BasicTable, TableAction } from '/@/components/Table';
|
|
|
+ import { BasicTable, FormSchema } from '/@/components/Table';
|
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
|
import BaseModal from './BaseModal1.vue';
|
|
|
import { useModal } from '/@/components/Modal';
|
|
@@ -79,6 +79,21 @@
|
|
|
//刷新列表
|
|
|
reload();
|
|
|
}
|
|
|
+
|
|
|
+ const workFaceWarningSchemas: FormSchema[] = [
|
|
|
+ ...workFaceWarningFormSchemas,
|
|
|
+ {
|
|
|
+ label: '关联条目',
|
|
|
+ field: 'relatedEntries',
|
|
|
+ component: 'ApiSelect',
|
|
|
+ componentProps: {
|
|
|
+ labelField: 'alarmName',
|
|
|
+ valueField: 'id',
|
|
|
+ resultField: 'records',
|
|
|
+ api: warningLogList.bind(null, { sysId: props.deviceId }),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ];
|
|
|
</script>
|
|
|
|
|
|
<style scoped></style>
|