|
@@ -2,6 +2,11 @@
|
|
|
<div class="p-4">
|
|
<div class="p-4">
|
|
|
<BasicTable @register="registerTable">
|
|
<BasicTable @register="registerTable">
|
|
|
<template #toolbar> </template>
|
|
<template #toolbar> </template>
|
|
|
|
|
+ <template #setMeal="{ record }">
|
|
|
|
|
+ <div style="color: #0960bd; cursor: pointer" @click="opensetMealModal(true, record)">{{
|
|
|
|
|
+ record.liveRoomCapacities
|
|
|
|
|
+ }}</div>
|
|
|
|
|
+ </template>
|
|
|
<template #sceneLogo="{ record }">
|
|
<template #sceneLogo="{ record }">
|
|
|
<CropperAvatar
|
|
<CropperAvatar
|
|
|
:showBtn="false"
|
|
:showBtn="false"
|
|
@@ -98,23 +103,21 @@
|
|
|
<SubaccountModal @register="registerSubaccountModal" @update="reload" />
|
|
<SubaccountModal @register="registerSubaccountModal" @update="reload" />
|
|
|
<cameraModal @register="registerCameraModal" @ok="reload" />
|
|
<cameraModal @register="registerCameraModal" @ok="reload" />
|
|
|
<TimeModal @register="registerTimeModal" @submit="reload" />
|
|
<TimeModal @register="registerTimeModal" @submit="reload" />
|
|
|
|
|
+ <SetMealModal @register="registersetMealModal" @submit="reload" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
import { defineComponent, nextTick } from 'vue';
|
|
import { defineComponent, nextTick } from 'vue';
|
|
|
import { BasicTable, useTable, BasicColumn, FormProps, TableAction } from '/@/components/Table';
|
|
import { BasicTable, useTable, BasicColumn, FormProps, TableAction } from '/@/components/Table';
|
|
|
- // import { CollapseContainer } from '/@/components/Container';
|
|
|
|
|
import { CropperAvatar } from '/@/components/Cropper';
|
|
import { CropperAvatar } from '/@/components/Cropper';
|
|
|
import { BasicUpload } from '/@/components/Upload';
|
|
import { BasicUpload } from '/@/components/Upload';
|
|
|
- // import { uploadApi } from '/@/api/sys/upload';
|
|
|
|
|
- // import { Avatar } from 'ant-design-vue';
|
|
|
|
|
- // import { getBasicColumns, getBasicData } from './tableData';
|
|
|
|
|
import { ListApi, uploadLogoApi, updateCompnayApi } from '/@/api/corporation/list';
|
|
import { ListApi, uploadLogoApi, updateCompnayApi } from '/@/api/corporation/list';
|
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import chargeModal from './chargeModal.vue';
|
|
import chargeModal from './chargeModal.vue';
|
|
|
import deviceModal from './deviceModal.vue';
|
|
import deviceModal from './deviceModal.vue';
|
|
|
import TimeModal from './setTime.vue';
|
|
import TimeModal from './setTime.vue';
|
|
|
|
|
+ import SetMealModal from './SetMealModal.vue';
|
|
|
import SubaccountModal from './SubaccountModal.vue';
|
|
import SubaccountModal from './SubaccountModal.vue';
|
|
|
import cameraModal from './cameraModal.vue';
|
|
import cameraModal from './cameraModal.vue';
|
|
|
import { Time } from '/@/components/Time';
|
|
import { Time } from '/@/components/Time';
|
|
@@ -134,6 +137,7 @@
|
|
|
BasicUpload,
|
|
BasicUpload,
|
|
|
Tag,
|
|
Tag,
|
|
|
TimeModal,
|
|
TimeModal,
|
|
|
|
|
+ SetMealModal,
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const [registerDeviceModal, { openModal: openDeviceModal }] = useModal();
|
|
const [registerDeviceModal, { openModal: openDeviceModal }] = useModal();
|
|
@@ -141,6 +145,7 @@
|
|
|
const [registerSubaccountModal, { openModal: openSubaccountModal }] = useModal();
|
|
const [registerSubaccountModal, { openModal: openSubaccountModal }] = useModal();
|
|
|
const [registerCameraModal, { openModal: openCameraModal }] = useModal();
|
|
const [registerCameraModal, { openModal: openCameraModal }] = useModal();
|
|
|
const [registerTimeModal, { openModal: openTimeModal }] = useModal();
|
|
const [registerTimeModal, { openModal: openTimeModal }] = useModal();
|
|
|
|
|
+ const [registersetMealModal, { openModal: opensetMealModal }] = useModal();
|
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
|
const columns: BasicColumn[] = [
|
|
const columns: BasicColumn[] = [
|
|
|
// {
|
|
// {
|
|
@@ -197,6 +202,12 @@
|
|
|
width: 80,
|
|
width: 80,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
|
|
+ title: '带看套餐',
|
|
|
|
|
+ dataIndex: 'cameraNum',
|
|
|
|
|
+ slots: { customRender: 'setMeal' },
|
|
|
|
|
+ width: 80,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
title: t('routes.corporation.point'),
|
|
title: t('routes.corporation.point'),
|
|
|
ellipsis: false,
|
|
ellipsis: false,
|
|
|
dataIndex: 'point',
|
|
dataIndex: 'point',
|
|
@@ -316,6 +327,7 @@
|
|
|
registerChargeModal,
|
|
registerChargeModal,
|
|
|
registerDeviceModal,
|
|
registerDeviceModal,
|
|
|
registerTimeModal,
|
|
registerTimeModal,
|
|
|
|
|
+ registersetMealModal,
|
|
|
registerSubaccountModal,
|
|
registerSubaccountModal,
|
|
|
handleOpenModal,
|
|
handleOpenModal,
|
|
|
uploadLogoApi: uploadLogoApi as any,
|
|
uploadLogoApi: uploadLogoApi as any,
|
|
@@ -326,6 +338,7 @@
|
|
|
registerCameraModal,
|
|
registerCameraModal,
|
|
|
openCameraModal,
|
|
openCameraModal,
|
|
|
openTimeModal,
|
|
openTimeModal,
|
|
|
|
|
+ opensetMealModal,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|