修改护理区域样式
This commit is contained in:
parent
1e5968ac7b
commit
c8144e10be
|
@ -36,59 +36,58 @@
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="6" :md="8" :sm="24">
|
||||||
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||||
<a-col :lg="6">
|
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||||
</a-col>
|
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!--引用表格-->
|
<a-row>
|
||||||
<BasicTable @register="registerTable">
|
<a-col v-for="(item,index) in tableData" style="padding: 5px" :key="index" :xs="24" :sm="24" :md="12" :lg="12" :xl="8" :xxl="6">
|
||||||
<!--插槽:table标题-->
|
<a-card :title="`NUID:`+item.nuId"
|
||||||
<template #tableTitle>
|
:class="['card-3d']"
|
||||||
|
@mouseenter="item.key"
|
||||||
|
@mouseleave="item.key"
|
||||||
|
@click="isSelected = item">
|
||||||
|
<template #extra>
|
||||||
|
<span class="lxClass" v-if="item.status == 5">停用</span>
|
||||||
|
<span class="zxClass" v-if="item.status != 5">启用</span>
|
||||||
</template>
|
</template>
|
||||||
<!--操作栏-->
|
<p>单元名称:{{item.nuName}}</p>
|
||||||
<template #action="{ record }">
|
<p>创建时间:{{item.createTime}}</p>
|
||||||
<TableAction :actions="getTableAction(record)" />
|
<p>单元类型:{{item.areaFlag_dictText}}</p>
|
||||||
</template>
|
<div style="text-align: center;">
|
||||||
<template v-slot:bodyCell="{ column, record, index, text }">
|
<a-button size="small" @click="handleQiyong(item)" v-if="item.status == 5" style="margin-left:10px" >启用</a-button>
|
||||||
<template v-if="column.key === 'status_dictText'">
|
<a-button size="small" @click="handleTingyong(item)" v-if="item.status != 5" style="margin-left:10px" >停用</a-button>
|
||||||
<a-tag v-if="record.status == '9'"
|
<a-button size="small" @click="handleEdit(item)" style="margin-left:10px" >更名</a-button>
|
||||||
:color="'volcano'"
|
<a-button size="small" @click="handleWlsb(item)" style="margin-left:10px" >设备</a-button>
|
||||||
>
|
<a-popover title="二维码" >
|
||||||
{{ text }}
|
<template #content>
|
||||||
</a-tag>
|
|
||||||
<span v-else>{{text}}</span>
|
|
||||||
</template>
|
|
||||||
<template v-else-if="column.key === 'nuName'">
|
|
||||||
<a @click="handleWlsb(record)">{{text}}</a>
|
|
||||||
</template>
|
|
||||||
<template v-else-if="column.key === 'ewm'">
|
|
||||||
<QRCodeWithLogo
|
<QRCodeWithLogo
|
||||||
:text="record.nuId"
|
:text="item.nuId"
|
||||||
:logoUrl="logoUrl"
|
:logoUrl="logoUrl"
|
||||||
:size="150"
|
:size="150"
|
||||||
:logoSize="40"
|
:logoSize="40"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
<a-button size="small" style="margin-left:10px">二维码</a-button>
|
||||||
</template>
|
</a-popover>
|
||||||
</BasicTable>
|
</div>
|
||||||
|
</a-card>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<NuBaseInfoModal ref="registerModal" @success="handleSuccess"></NuBaseInfoModal>
|
<NuBaseInfoModal ref="registerModal" @success="handleSuccess"></NuBaseInfoModal>
|
||||||
<BaseWlsbListModal ref="wlsbModal" ></BaseWlsbListModal>
|
<BaseWlsbListModal ref="wlsbModal" ></BaseWlsbListModal>
|
||||||
|
|
||||||
<CameraPreviewModal ref="previewModal"></CameraPreviewModal>
|
<CameraPreviewModal ref="previewModal"></CameraPreviewModal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" name="nuBaseInfo-nuBaseInfo" setup>
|
<script lang="ts" name="nuBaseInfo-nuBaseInfo" setup>
|
||||||
import { ref, reactive } from 'vue';
|
import { ref, reactive, onMounted } from 'vue';
|
||||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { columns, superQuerySchema } from './NuBaseInfo.data';
|
import { columns, superQuerySchema } from './NuBaseInfo.data';
|
||||||
|
@ -103,6 +102,7 @@ import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectT
|
||||||
import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue';
|
import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue';
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import QRCodeWithLogo from './EwmImage.vue';
|
import QRCodeWithLogo from './EwmImage.vue';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
|
||||||
const logoUrl = 'https://www.focusnu.com/devops/resource/img/logo.png'; // 替换为你的 Logo URL
|
const logoUrl = 'https://www.focusnu.com/devops/resource/img/logo.png'; // 替换为你的 Logo URL
|
||||||
|
|
||||||
|
@ -112,29 +112,10 @@ const { createMessage } = useMessage();
|
||||||
const previewModal = ref();
|
const previewModal = ref();
|
||||||
const wlsbModal = ref();
|
const wlsbModal = ref();
|
||||||
const queryParam = reactive<any>({});
|
const queryParam = reactive<any>({});
|
||||||
|
const tableData = ref<any>([]);
|
||||||
const toggleSearchStatus = ref<boolean>(false);
|
const toggleSearchStatus = ref<boolean>(false);
|
||||||
const registerModal = ref();
|
const registerModal = ref();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
//注册table数据
|
|
||||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
|
||||||
tableProps: {
|
|
||||||
title: '区域信息',
|
|
||||||
api: qyList,
|
|
||||||
columns,
|
|
||||||
canResize:false,
|
|
||||||
useSearchForm: false,
|
|
||||||
showIndexColumn: true,
|
|
||||||
actionColumn: {
|
|
||||||
width: 160,
|
|
||||||
fixed: 'right',
|
|
||||||
},
|
|
||||||
beforeFetch: async (params) => {
|
|
||||||
params.column = 'status',params.order = 'desc'
|
|
||||||
return Object.assign(params, queryParam);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
|
||||||
const labelCol = reactive({
|
const labelCol = reactive({
|
||||||
xs:24,
|
xs:24,
|
||||||
sm:6,
|
sm:6,
|
||||||
|
@ -170,7 +151,7 @@ const { createMessage } = useMessage();
|
||||||
* 成功回调
|
* 成功回调
|
||||||
*/
|
*/
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
(selectedRowKeys.value = []) && reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -212,37 +193,6 @@ const { createMessage } = useMessage();
|
||||||
previewModal.value.edit(record);
|
previewModal.value.edit(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 操作栏
|
|
||||||
*/
|
|
||||||
function getTableAction(record) {
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
label: '启用',
|
|
||||||
onClick: handleQiyong.bind(null, record),
|
|
||||||
ifShow: record.status == 5,
|
|
||||||
auth: 'nuBaseInfo:nu_base_info:edit'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '停用',
|
|
||||||
onClick: handleTingyong.bind(null, record),
|
|
||||||
ifShow: record.status != 5,
|
|
||||||
auth: 'nuBaseInfo:nu_base_info:edit'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '更名',
|
|
||||||
onClick: handleEdit.bind(null, record),
|
|
||||||
auth: 'nuBaseInfo:nu_base_info:edit'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '预览',
|
|
||||||
onClick: handlePreview.bind(null, record),
|
|
||||||
ifShow: record.deviceMac != null,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询
|
* 查询
|
||||||
*/
|
*/
|
||||||
|
@ -255,12 +205,27 @@ const { createMessage } = useMessage();
|
||||||
*/
|
*/
|
||||||
function searchReset() {
|
function searchReset() {
|
||||||
formRef.value.resetFields();
|
formRef.value.resetFields();
|
||||||
selectedRowKeys.value = [];
|
|
||||||
//刷新数据
|
//刷新数据
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reload() {
|
||||||
|
// const list = qyList(queryParam);
|
||||||
|
// console.log("🚀 ~ reload ~ list:", list)
|
||||||
|
// console.log("🚀 ~ reload ~ list:", list.records)
|
||||||
|
|
||||||
|
defHttp.get({url: '/nuBaseInfo/nuBaseInfo/qyList',params:queryParam}).then(res => {
|
||||||
|
console.log("🚀 ~ defHttp.get ~ res:", res)
|
||||||
|
tableData.value = res.records;
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
//刷新数据
|
||||||
|
reload();
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -289,4 +254,53 @@ const { createMessage } = useMessage();
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.zxClass {
|
||||||
|
font-size: 12px;
|
||||||
|
background: linear-gradient(to right, #1ea0fa, #017de9);
|
||||||
|
border-radius: 8px;
|
||||||
|
height: 25px;
|
||||||
|
color: white;
|
||||||
|
line-height: 25px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lxClass {
|
||||||
|
font-size: 12px;
|
||||||
|
background: linear-gradient(to right, #d1d4d5, #d3d5d6);
|
||||||
|
border-radius: 8px;
|
||||||
|
height: 25px;
|
||||||
|
color: white;
|
||||||
|
line-height: 25px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-card {
|
||||||
|
border: 2px solid #1890ff;
|
||||||
|
box-shadow: 0 0 8px rgba(24, 144, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cardContent{
|
||||||
|
margin-top: -10px;background:white;margin:0 10px;border-radius:8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 基础卡片样式 */
|
||||||
|
.card-3d {
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #f0f0f0; /* 边框增强立体感 */
|
||||||
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
background: white;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 鼠标悬停:阴影加深 + 轻微上浮 */
|
||||||
|
.card-3d:hover {
|
||||||
|
border: 2px solid #1890ff;
|
||||||
|
box-shadow: 0 4px 8px rgba(24, 144, 255, 0.4);
|
||||||
|
transform: translate(-3px,-3px);
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,6 +1,49 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="p-2">
|
<div class="p-2">
|
||||||
<a-row>
|
<a-row>
|
||||||
|
<a-col v-for="(item,index) in sxtList.records" :key="index" :xs="24" :sm="24" :md="12" :lg="12" :xl="8" :xxl="6" style="padding: 8px;">
|
||||||
|
<a-card style="width: 100%;border-radius: 8px;" :headStyle="{ height: '60px', padding: '0 24px' }" :bodyStyle="{ padding: '24px 24px 4px 24px' }">
|
||||||
|
<template #title>
|
||||||
|
<a-row style="font-weight: normal;">
|
||||||
|
<a-col :span="18" style="font-size: 14px;">
|
||||||
|
<div>SN:<span style="font-weight: bold;">{{item.sn}}</span></div>
|
||||||
|
<div style="font-size: 12px;">名称:{{item.deviceName}}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="6" style="text-align: center;padding-top: 4px;">
|
||||||
|
<div :class="item.relayState=='1'?'zxClass':'lxClass'">{{item.deviceStatus=='1'?'在线':'离线'}}</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</template>
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="24" style="margin-top: -10px;"><a-tag color="purple">摄像头</a-tag></a-col>
|
||||||
|
<a-col :span="12" >{{item.nuId_dictText?item.nuId_dictText:'未配置'}}</a-col>
|
||||||
|
<a-col :span="12" style="text-align: right;">
|
||||||
|
<span style="text-align: right;background:#f6f6f6;padding: 2px 10px;border-radius:5px;">NUID: {{item.nuId?item.nuId:'未配置'}}</span>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" style="text-align: center;font-size: 44px;font-weight: bold;margin-top:18px;">
|
||||||
|
<span>摄像头</span>
|
||||||
|
</a-col>
|
||||||
|
<!-- <a-col :span="8" style="padding: 12px 0 0 5px;margin-top:18px;">
|
||||||
|
<div style="font-size: 12px;margin: 5px 0 -5px 2px;padding:2px;">KWH</div>
|
||||||
|
<div style="margin-top:-3px;"><span style="background:#eeeeee;padding: 2px;border-radius:5px;font-size:11px;">用电量</span></div>
|
||||||
|
</a-col> -->
|
||||||
|
</a-row>
|
||||||
|
<a-divider />
|
||||||
|
<p style="text-align:center;">
|
||||||
|
|
||||||
|
<span style="display:inline-block;cursor: pointer;" @click="handlePreview(item)">
|
||||||
|
<span class="tbClass"><img src="../../../../assets/iot/a14.png" style="width:20px;" /></span><br/>
|
||||||
|
<span class="antTitle">预览</span>
|
||||||
|
</span>
|
||||||
|
<span style="display:inline-block;margin-left:10%;cursor: pointer;" @click="handlePicConfig(item)">
|
||||||
|
<span class="tbClass"><img src="../../../../assets/iot/a12.png" style="width:20px;" /></span><br/>
|
||||||
|
<span class="antTitle">画面配置</span>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
</a-card>
|
||||||
|
</a-col>
|
||||||
|
|
||||||
|
|
||||||
<a-col v-for="(item,index) in zndbList.records" :key="index" :xs="24" :sm="24" :md="12" :lg="12" :xl="8" :xxl="6" style="padding: 8px;">
|
<a-col v-for="(item,index) in zndbList.records" :key="index" :xs="24" :sm="24" :md="12" :lg="12" :xl="8" :xxl="6" style="padding: 8px;">
|
||||||
<a-card style="width: 100%;border-radius: 8px;" :headStyle="{ height: '60px', padding: '0 24px' }" :bodyStyle="{ padding: '24px 24px 4px 24px' }">
|
<a-card style="width: 100%;border-radius: 8px;" :headStyle="{ height: '60px', padding: '0 24px' }" :bodyStyle="{ padding: '24px 24px 4px 24px' }">
|
||||||
<template #title>
|
<template #title>
|
||||||
|
@ -175,6 +218,9 @@
|
||||||
<ApiLogWaterModal ref="apiLogWaterModal"></ApiLogWaterModal>
|
<ApiLogWaterModal ref="apiLogWaterModal"></ApiLogWaterModal>
|
||||||
<ApiLogAlarmModal ref="apiLogAlarmModal"></ApiLogAlarmModal>
|
<ApiLogAlarmModal ref="apiLogAlarmModal"></ApiLogAlarmModal>
|
||||||
<DeviceInfoDrawer @register="registerDrawer" @success="handleSuccess" />
|
<DeviceInfoDrawer @register="registerDrawer" @success="handleSuccess" />
|
||||||
|
|
||||||
|
<CameraPreviewModal ref="previewModal"></CameraPreviewModal>
|
||||||
|
<CameraPictureConfigModal ref="cameraPictureConfigModal"></CameraPictureConfigModal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -187,6 +233,8 @@ import ApiLogModal from "@/views/iot/tq/electricity/apilog/ApiLogModal.vue";
|
||||||
import ApiLogWaterModal from "@/views/iot/tq/electricity/apilog/WaterApiLogModal.vue";
|
import ApiLogWaterModal from "@/views/iot/tq/electricity/apilog/WaterApiLogModal.vue";
|
||||||
import ApiLogAlarmModal from '/@/views/iot/yiweilian/components/ApiLogAlarmModal.vue'
|
import ApiLogAlarmModal from '/@/views/iot/yiweilian/components/ApiLogAlarmModal.vue'
|
||||||
import DeviceInfoDrawer from "/@/views/iot/yiweilian/components/DeviceInfoDrawer.vue";
|
import DeviceInfoDrawer from "/@/views/iot/yiweilian/components/DeviceInfoDrawer.vue";
|
||||||
|
import CameraPreviewModal from '/@/views/iot/tplink/camera/components/CameraPreviewModal.vue'
|
||||||
|
import CameraPictureConfigModal from '/@/views/iot/tplink/camera/components/CameraPictureConfigModal.vue';
|
||||||
import {useDrawer} from "@/components/Drawer";
|
import {useDrawer} from "@/components/Drawer";
|
||||||
import {updateDeviceRealTime} from '/@/views/iot/yiweilian/humid.api';
|
import {updateDeviceRealTime} from '/@/views/iot/yiweilian/humid.api';
|
||||||
import {eleSbReset, eleSbControl, eleSbRead } from "/@/views/iot/tq/water/water.api";
|
import {eleSbReset, eleSbControl, eleSbRead } from "/@/views/iot/tq/water/water.api";
|
||||||
|
@ -194,6 +242,9 @@ const formRef = ref();
|
||||||
const apiLogModal = ref();
|
const apiLogModal = ref();
|
||||||
const apiLogWaterModal = ref();
|
const apiLogWaterModal = ref();
|
||||||
const apiLogAlarmModal = ref();
|
const apiLogAlarmModal = ref();
|
||||||
|
const previewModal = ref();
|
||||||
|
const cameraPictureConfigModal = ref();
|
||||||
|
const sxtList = ref<any>({records: []});//摄像头
|
||||||
const zndbList = ref<any>({records: []});//智能电表
|
const zndbList = ref<any>({records: []});//智能电表
|
||||||
const znsbList = ref<any>({records: []});//智能水表
|
const znsbList = ref<any>({records: []});//智能水表
|
||||||
const wsdjList = ref<any>({records: []});//温湿度计
|
const wsdjList = ref<any>({records: []});//温湿度计
|
||||||
|
@ -202,10 +253,20 @@ const anyInfo = ref<any>({});//区域信息
|
||||||
const [registerDrawer, { openDrawer }] = useDrawer();
|
const [registerDrawer, { openDrawer }] = useDrawer();
|
||||||
|
|
||||||
function edit(record) {
|
function edit(record) {
|
||||||
anyInfo.value = record;
|
anyInfo.value = record;
|
||||||
getZndb(record);//智能电表
|
getSxt(record);//摄像头
|
||||||
getZnsb(record);//智能水表
|
getZndb(record);//智能电表
|
||||||
getWsdj(record);//温湿度计
|
getZnsb(record);//智能水表
|
||||||
|
getWsdj(record);//温湿度计
|
||||||
|
}
|
||||||
|
//获取摄像头
|
||||||
|
function getSxt(record){
|
||||||
|
var queryParam = {pageSize:-1,nuId:record.nuId}
|
||||||
|
defHttp.get({url: '/iot/tplink/cameraInfo/list',params:queryParam}).then(res => {
|
||||||
|
console.log("🚀 ~ defHttp.get ~ res:", res)
|
||||||
|
sxtList.value = res;
|
||||||
|
console.log("🚀 ~ defHttp.get ~ 获取摄像头:", sxtList)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
//获取智能电表
|
//获取智能电表
|
||||||
function getZndb(record){
|
function getZndb(record){
|
||||||
|
@ -429,6 +490,31 @@ function getWsdj(record){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 摄像头预览
|
||||||
|
*/
|
||||||
|
function handlePreview(record: Recordable) {
|
||||||
|
previewModal.value.disableSubmit = true;
|
||||||
|
previewModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 摄像头画面配置
|
||||||
|
*/
|
||||||
|
function handlePicConfig(record) {
|
||||||
|
var params = {
|
||||||
|
deviceIndex: record.deviceIndex,
|
||||||
|
parentId: record.parentId,
|
||||||
|
multitrans: record.multitrans,
|
||||||
|
projectId: record.projectId,
|
||||||
|
regionId: record.regionId,
|
||||||
|
ip: record.ip
|
||||||
|
}
|
||||||
|
cameraPictureConfigModal.value.disableSubmit = true;
|
||||||
|
cameraPictureConfigModal.value.edit(params);
|
||||||
|
}
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
edit,
|
edit,
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
|
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
|
||||||
name="NuBaseInfoForm">
|
name="NuBaseInfoForm">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24" style="margin-top: 60px;">
|
<a-col :span="24" style="margin-top: 60px;margin-bottom: 60px;">
|
||||||
<a-form-item label="区域名称" v-bind="validateInfos.nuName" id="NuBaseInfoForm-nuName" name="nuName">
|
<a-form-item label="区域名称" v-bind="validateInfos.nuName" id="NuBaseInfoForm-nuName" name="nuName">
|
||||||
<a-input v-model:value="formData.nuName" placeholder="请输入区域名称" allow-clear></a-input>
|
<a-input v-model:value="formData.nuName" placeholder="请输入区域名称" allow-clear></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<j-modal :title="title" :width="width" :maxHeight="`200px`" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
<j-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||||
<NuBaseInfoForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></NuBaseInfoForm>
|
<NuBaseInfoForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></NuBaseInfoForm>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -215,8 +215,8 @@ const pageParams = ref({ pageNo: 1, pageSize: 8 })
|
||||||
watch(
|
watch(
|
||||||
() => props.data,
|
() => props.data,
|
||||||
async () => {
|
async () => {
|
||||||
queryParam.projectId = props.data.projectId;
|
// queryParam.projectId = props.data.projectId;
|
||||||
queryParam.regionId = props.data.regionId;
|
// queryParam.regionId = props.data.regionId;
|
||||||
let record = unref(props.data);
|
let record = unref(props.data);
|
||||||
if (typeof record !== 'object') {
|
if (typeof record !== 'object') {
|
||||||
record = {};
|
record = {};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
|
<CameraInfoList :data="cameraData" />
|
||||||
<a-row class="p-2" type="flex" :gutter="10">
|
<!-- <a-row class="p-2" type="flex" :gutter="10">
|
||||||
<a-col :xl="4" :lg="24" :md="24" style="margin-bottom: 10px">
|
<a-col :xl="4" :lg="24" :md="24" style="margin-bottom: 10px">
|
||||||
<CameraLeftTree ref="leftTree" @select="onTreeSelect" @rootTreeData="onRootTreeData" />
|
<CameraLeftTree ref="leftTree" @select="onTreeSelect" @rootTreeData="onRootTreeData" />
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<a-empty description="请选择区域" />
|
<a-empty description="请选择区域" />
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row> -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" name="iot-nuIotCameraInfo" setup>
|
<script lang="ts" name="iot-nuIotCameraInfo" setup>
|
||||||
|
|
Loading…
Reference in New Issue