|
@@ -50,6 +50,19 @@
|
|
<Time :value="record.expirationTime" mode="datetime" />
|
|
<Time :value="record.expirationTime" mode="datetime" />
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
+ <template #cameraNum="{ record }">
|
|
|
|
+ <Tag
|
|
|
|
+ style="cursor: pointer"
|
|
|
|
+ @click="
|
|
|
|
+ () => {
|
|
|
|
+ openCameraModal(true, record);
|
|
|
|
+ }
|
|
|
|
+ "
|
|
|
|
+ color="green"
|
|
|
|
+ >{{ record.cameraNum }}</Tag
|
|
|
|
+ >
|
|
|
|
+ </template>
|
|
|
|
+
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
<TableAction
|
|
<TableAction
|
|
:actions="[
|
|
:actions="[
|
|
@@ -76,6 +89,7 @@
|
|
<chargeModal @register="registerChargeModal" />
|
|
<chargeModal @register="registerChargeModal" />
|
|
<deviceModal @register="registerDeviceModal" />
|
|
<deviceModal @register="registerDeviceModal" />
|
|
<SubaccountModal @reload="tablereload" @register="registerSubaccountModal" />
|
|
<SubaccountModal @reload="tablereload" @register="registerSubaccountModal" />
|
|
|
|
+ <cameraModal @register="registerCameraModal" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -93,7 +107,9 @@
|
|
import chargeModal from './chargeModal.vue';
|
|
import chargeModal from './chargeModal.vue';
|
|
import deviceModal from './deviceModal.vue';
|
|
import deviceModal from './deviceModal.vue';
|
|
import SubaccountModal from './SubaccountModal.vue';
|
|
import SubaccountModal from './SubaccountModal.vue';
|
|
|
|
+ import cameraModal from './cameraModal.vue';
|
|
import { Time } from '/@/components/Time';
|
|
import { Time } from '/@/components/Time';
|
|
|
|
+ import { Tag } from 'ant-design-vue';
|
|
import type { Result } from '/#/axios';
|
|
import type { Result } from '/#/axios';
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -104,13 +120,16 @@
|
|
chargeModal,
|
|
chargeModal,
|
|
deviceModal,
|
|
deviceModal,
|
|
SubaccountModal,
|
|
SubaccountModal,
|
|
|
|
+ cameraModal,
|
|
Time,
|
|
Time,
|
|
BasicUpload,
|
|
BasicUpload,
|
|
|
|
+ Tag,
|
|
},
|
|
},
|
|
setup() {
|
|
setup() {
|
|
const [registerDeviceModal, { openModal: openDeviceModal }] = useModal();
|
|
const [registerDeviceModal, { openModal: openDeviceModal }] = useModal();
|
|
const [registerChargeModal, { openModal: openChargeModal }] = useModal();
|
|
const [registerChargeModal, { openModal: openChargeModal }] = useModal();
|
|
const [registerSubaccountModal, { openModal: openSubaccountModal }] = useModal();
|
|
const [registerSubaccountModal, { openModal: openSubaccountModal }] = useModal();
|
|
|
|
+ const [registerCameraModal, { openModal: openCameraModal }] = useModal();
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
const columns: BasicColumn[] = [
|
|
const columns: BasicColumn[] = [
|
|
// {
|
|
// {
|
|
@@ -151,6 +170,7 @@
|
|
{
|
|
{
|
|
title: t('routes.corporation.cameraNum'),
|
|
title: t('routes.corporation.cameraNum'),
|
|
dataIndex: 'cameraNum',
|
|
dataIndex: 'cameraNum',
|
|
|
|
+ slots: { customRender: 'cameraNum' },
|
|
width: 80,
|
|
width: 80,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -257,17 +277,13 @@
|
|
sceneLogo: data.message,
|
|
sceneLogo: data.message,
|
|
});
|
|
});
|
|
nextTick(reload);
|
|
nextTick(reload);
|
|
- // updateCompnayApi
|
|
|
|
}
|
|
}
|
|
async function updateFloorLogo(record: Recordable, data: Result) {
|
|
async function updateFloorLogo(record: Recordable, data: Result) {
|
|
- console.log('src', data.message);
|
|
|
|
- console.log('record', record);
|
|
|
|
await updateCompnayApi({
|
|
await updateCompnayApi({
|
|
id: record.id,
|
|
id: record.id,
|
|
floorLogo: data.message,
|
|
floorLogo: data.message,
|
|
});
|
|
});
|
|
nextTick(reload);
|
|
nextTick(reload);
|
|
- // updateCompnayApi
|
|
|
|
}
|
|
}
|
|
|
|
|
|
return {
|
|
return {
|
|
@@ -282,6 +298,9 @@
|
|
handleMusicUpload,
|
|
handleMusicUpload,
|
|
updateSceneLogo,
|
|
updateSceneLogo,
|
|
updateFloorLogo,
|
|
updateFloorLogo,
|
|
|
|
+
|
|
|
|
+ registerCameraModal,
|
|
|
|
+ openCameraModal,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
});
|
|
});
|