fix(healthMonitor): 最后一次更新
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</template>
|
||||
</BasicTable>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script setup lang="ts" name="bindRecords-name">
|
||||
import BasicTable from '/@/components/Table/src/BasicTable.vue';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { bindRecordColumns, bindRecordSchema } from '/@/views/healthMonitor/healMonitorManage/monitorToll/bindRecords/bindRecords.data';
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
<notification-news-modal @register="registerModal" @success="handleSuccess" />
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script setup lang="ts" name="healthMonitor-notificationNews">
|
||||
import { BasicTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { list, deleteOne, batchDelete, queryByID, reSend } from './notificationNews.api';
|
||||
|
||||
+27
-1
@@ -151,13 +151,39 @@ export const columnsNew: BasicColumn[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '分配设备数',
|
||||
title: '已分配设备数',
|
||||
dataIndex: ['assignedDeviceNums'],
|
||||
customRender: ({ text }) => {
|
||||
if (!text) return 0;
|
||||
return text;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '未分配设备数',
|
||||
dataIndex: 'unassignedDeviceNums',
|
||||
customRender: ({ record }) => {
|
||||
const total = record.totalAssignedDeviceNums ?? 0;
|
||||
const assigned = record.assignedDeviceNums ?? 0;
|
||||
return total - assigned;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '已绑定设备数',
|
||||
dataIndex: ['assignedDeviceNums'],
|
||||
customRender: ({ text }) => {
|
||||
if (!text) return 0;
|
||||
return text;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '未绑定设备数',
|
||||
dataIndex: 'unassignedDeviceNums',
|
||||
customRender: ({ record }) => {
|
||||
const total = record.totalAssignedDeviceNums ?? 0;
|
||||
const assigned = record.assignedDeviceNums ?? 0;
|
||||
return total - assigned;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '佩戴人员数',
|
||||
dataIndex: ['assignedUserNums'],
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<user-info-modal @register="registerModal" />
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script setup lang="ts" name="userInfoList-name">
|
||||
import BasicTable from '/@/components/Table/src/BasicTable.vue';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, searchSchema } from '/@/views/healthMonitor/healMonitorManage/monitorToll/userInfo/userInfo.data';
|
||||
|
||||
Reference in New Issue
Block a user