|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="p-4">
|
|
|
<BasicTable @register="registerTable">
|
|
|
<template #toolbar>
|
|
|
- <a-button type="primary" @click="handleCreate">新增项目</a-button>
|
|
|
+ <a-button type="primary" @click="handleCreate">{{ t('layout.map.addPro') }}</a-button>
|
|
|
</template>
|
|
|
<template #isShow="{ record }">
|
|
|
<Switch
|
|
|
@@ -23,29 +23,29 @@
|
|
|
{
|
|
|
// color: 'warning',
|
|
|
// icon: 'mage:edit-fill',
|
|
|
- label: '项目信息',
|
|
|
- tooltip: '项目信息',
|
|
|
+ label: t('layout.map.projectInfo'),
|
|
|
+ tooltip: t('layout.map.projectInfo'),
|
|
|
onClick: () => handleOpenInfo(record),
|
|
|
},
|
|
|
{
|
|
|
// color: 'warning',
|
|
|
// icon: 'mage:edit-fill',
|
|
|
- label: '场景管理',
|
|
|
- tooltip: '场景管理',
|
|
|
+ label: t('routes.dashboard.scenes'),
|
|
|
+ tooltip: t('routes.dashboard.scenes'),
|
|
|
onClick: () => handleOpenScene(record),
|
|
|
},
|
|
|
{
|
|
|
// color: 'warning',
|
|
|
// icon: 'mage:edit-fill',
|
|
|
- label: '地图模式',
|
|
|
- tooltip: '地图模式',
|
|
|
+ label: t('layout.map.mapMode'),
|
|
|
+ tooltip: t('layout.map.mapMode'),
|
|
|
onClick: () => handleOpenMap(record),
|
|
|
},
|
|
|
{
|
|
|
color: 'error',
|
|
|
// icon: 'mage:edit-fill',
|
|
|
- label: '删除',
|
|
|
- tooltip: '删除',
|
|
|
+ label: t('common.delText'),
|
|
|
+ tooltip: t('common.delText'),
|
|
|
popConfirm: {
|
|
|
title: t('common.delConfirm'),
|
|
|
confirm: handleDelete.bind(null, record),
|
|
|
@@ -120,12 +120,12 @@
|
|
|
width: 60,
|
|
|
},
|
|
|
{
|
|
|
- title: '项目名称',
|
|
|
+ title: t('layout.map.projectName'),
|
|
|
dataIndex: 'projectName',
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
- title: '项目编号',
|
|
|
+ title: t('layout.map.projectSn'),
|
|
|
dataIndex: 'projectSn',
|
|
|
width: 100,
|
|
|
},
|
|
|
@@ -136,7 +136,7 @@
|
|
|
width: 200,
|
|
|
},
|
|
|
{
|
|
|
- title: '首页显示',
|
|
|
+ title: t('layout.map.isShow'),
|
|
|
dataIndex: 'isShow',
|
|
|
slots: { customRender: 'isShow' },
|
|
|
width: 100,
|
|
|
@@ -156,8 +156,8 @@
|
|
|
labelWidth: 100,
|
|
|
schemas: [
|
|
|
{
|
|
|
- field: 'projectName',
|
|
|
- label: '项目名称',
|
|
|
+ field: t('layout.map.projectName'),
|
|
|
+ label: t('layout.map.projectName'),
|
|
|
component: 'Input',
|
|
|
colProps: {
|
|
|
xl: 5,
|