| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656 |
- <template>
- <DashboardLayout ref="layout" layoutClass="special-situation-monitoring">
- <template #header-left>
- </template>
- <template #header-right>
- <!-- 日期 -->
- <DateTimeWidget />
- </template>
- <template #map>
- <!-- 路口列表 -->
- <div v-if="currentView === 'list-mode' && activeLeftTab === 'crossing'" class="list-mode-panel">
- <CrossingListPanel :onViewDetail="handleCrossingViewDetail"/>
- </div>
- <!-- 地图 -->
- <TongzhouTrafficMap v-else ref="trafficMapRef"
- amapKey="db2da7e3e248c3b2077d53fc809be63f"
- securityJsCode="a7413c674852c5eaf01d90813c5b7ef6"
- :mode="activeLeftTab === 'crossing' ? '路口' : activeLeftTab === 'trunkLine' ? '干线' : activeLeftTab === 'specialDuty' ? '特勤' : ''"
- @map-crossing-click="handleMapCrossingClick"
- />
- </template>
- <template #left>
- <!-- 左侧Tab菜单栏 -->
- <div class="left-sidebar-wrap" v-if="currentView !== 'list-mode'">
- <TechTabs v-model="activeLeftTab" type="underline" @tab-click="handleTabClick">
- <TechTabPane label="总览" name="overview" class="menu-scroll-view">
- <MenuItem theme="tech" v-for="item in menuData" :key="item.id" :node="item" :level="0"
- @node-click="handleMenuClick" @folder-click="handleFolderClick"/>
- </TechTabPane>
- <TechTabPane label="路口" name="crossing" class="menu-scroll-view">
- <MenuItem theme="tech" v-for="item in menuData" :key="item.id" :node="item" :level="0"
- @node-click="handleMenuClick" />
- </TechTabPane>
- <TechTabPane label="干线" name="trunkLine" class="menu-scroll-view">
- <MenuItem v-for="item in menuData" :key="item.id" :node="item" :level="0"
- @node-click="handleMenuClick">
- <template #label="{ node }">
- <span v-if="node.children && node.children.length > 0">{{ node.label }}</span>
- <span v-else>{{ node.label }} 绿波带</span>
- </template>
- </MenuItem>
- </TechTabPane>
- <TechTabPane label="特勤" name="specialDuty" class="menu-scroll-view special-duty-pane">
- <TechTable ref="dutyTable" :columns="tableColumns" :data="tableData" class="duty-table">
- <template #level="{ row }">
- <span :title="row.level" :style="{ color: row.level === '二级' ? '#FFDF0C' : '#F00' }">
- {{ row.level }}
- </span>
- </template>
- <template #status="{ row }">
- <span :title="row.status" :style="{ color: row.status === '进行中' ? '#FFDF0C' : row.status === '未开始' ? '#fff' : '#8dc453' }">
- {{ row.status }}
- </span>
- </template>
- <template #action="{ row }">
- <div class="btn-group">
- <span class="action-btn" @click="handleSpecialTaskView(row)">查看</span>
- <span v-if="row.status === '未开始'" class="action-btn action-start" @click="handleSpecialTaskStart(row)">立即执行</span>
- <span v-if="row.status === '进行中'" class="action-btn action-end" @click="handleSpecialTaskEnd(row)">立即结束</span>
- </div>
- </template>
- </TechTable>
- </TechTabPane>
- </TechTabs>
- </div>
- </template>
- <template #right>
- <!-- 模式切换按钮组 -->
- <div class="mode-switch" v-if="activeLeftTab === 'crossing'">
- <ButtonGroup v-model="currentView" :options="viewOptions" @select="onViewSelect" />
- </div>
- </template>
- <template #center>
- <!-- 顶部常驻图表区域(替代弹窗) -->
- <div class="top-charts-bar" v-if="currentView !== 'list-mode'">
- <!-- 总览Tab -->
- <template v-if="activeLeftTab === 'overview'">
- <div class="top-chart-box overview-chart-box">
- <OnlineStatusTabs />
- </div>
- <div class="top-chart-box overview-chart-box">
- <DeviceStatusTabs />
- </div>
- </template>
- <!-- 路口Tab -->
- <template v-if="activeLeftTab === 'crossing'">
- <div class="top-chart-box crossing-chart-box">
- <RingDonutChart v-if="crossingTopCharts.onlineChart" v-bind="crossingTopCharts.onlineChart" />
- </div>
- <div class="top-chart-box crossing-chart-box">
- <RingDonutChart v-if="crossingTopCharts.faultChart" v-bind="crossingTopCharts.faultChart" />
- </div>
- </template>
- </div>
- </template>
- </DashboardLayout>
- </template>
- <script>
- import DashboardLayout from '@/layouts/DashboardLayout.vue';
- import DateTimeWidget from '@/components/ui/DateTimeWidget.vue';
- import TechTabs from '@/components/ui/TechTabs.vue';
- import TechTabPane from '@/components/ui/TechTabPane.vue';
- import TongzhouTrafficMap from '@/components/TongzhouTrafficMap.vue';
- import MenuItem from '@/components/ui/MenuItem.vue';
- import ButtonGroup from '@/components/ui/ButtonGroup.vue';
- import TechTable from '@/components/ui/TechTable.vue';
- import CrossingListPanel from '@/components/ui/CrossingListPanel.vue';
- import OnlineStatusTabs from '@/components/ui/OnlineStatusTabs.vue';
- import DeviceStatusTabs from '@/components/ui/DeviceStatusTabs.vue';
- import RingDonutChart from '@/components/ui/RingDonutChart.vue';
- import { apiGetTongzhouMenuTree, apiGetTasks, apiGetTrafficTimeSpace, apiGetCrossingTopCharts, apiGetSpecialTaskMonitorData, apiGetOverviewTopCharts, apiGetCrossingDetailData } from '@/api';
- export default {
- name: "HomePage",
- components: {
- DashboardLayout,
- DateTimeWidget,
- TechTabs,
- TechTabPane,
- TongzhouTrafficMap,
- MenuItem,
- ButtonGroup,
- TechTable,
- CrossingListPanel,
- OnlineStatusTabs,
- DeviceStatusTabs,
- RingDonutChart
- },
- data() {
- return {
- // 左侧边栏数据
- activeLeftTab: '',
- menuData: [],
- // 地图模式切换数据
- currentView: 'map-mode',
- viewOptions: [
- { label: '列表模式', value: 'list-mode' },
- { label: '地图模式', value: 'map-mode' },
- ],
- // 特勤表头
- tableColumns: [
- { label: '序号', key: 'id', width: '10%' },
- { label: '名称', key: 'name', width: '30%' },
- { label: '执行人', key: 'executor', width: '15%' },
- { label: '等级', key: 'level', width: '12%' },
- { label: '状态', key: 'status', width: '13%' },
- { label: '操作', key: 'action', width: '20%' }
- ],
- tableData: [],
- // 路口顶部图表数据
- crossingTopCharts: {},
- // 路口多选分屏
- crossingSelections: [],
- maxCrossingSlots: 4,
- };
- },
- watch: {
- // 监听路由参数变化(解决多次从首页点击不同数据跳转过来,页面不刷新的问题)
- '$route.query': {
- handler() {
- this.checkRouteParams();
- },
- deep: true
- }
- },
- created() {
- },
- async mounted() {
- // 加载菜单和任务数据
- const [menuData, taskData] = await Promise.all([
- apiGetTongzhouMenuTree(),
- apiGetTasks({ pageSize: 5 }),
- ]);
- this.menuData = menuData || [];
- this.tableData = taskData?.list || taskData || [];
- // 组件挂载时检查路由
- this.checkRouteParams();
- // 初始显示顶部图表(如果没有路由参数覆盖的话)
- if (Object.keys(this.$route.query).length === 0) {
- this.activeLeftTab = 'overview';
- this.showTopChartDalogs();
- }
- },
- methods: {
- // 处理地图点击事件
- handleMapCrossingClick(mapData, lnglat, pixel) {
- console.log('父组件接收到了地图路口点击事件:', mapData);
- console.log('父组件接收到了地图路口点击事件:', lnglat);
- console.log('父组件接收到了地图路口点击事件:', pixel);
- // 组装模拟数据
- const scale = window.innerWidth / 1920;
- let nodeData = {
- id: mapData.position[0] + mapData.position[1],
- label: mapData.road,
- // 反算为设计稿坐标(SmartDialog 内部会再乘 scale)
- pixelX: pixel ? Math.round(pixel.x / scale) : 950,
- pixelY: pixel ? Math.round(pixel.y / scale) : 430,
- }
- console.log(nodeData);
- if (this.activeLeftTab === 'overview') { // 总览
- this.showOverviewDalogs(nodeData);
- } else if (this.activeLeftTab === 'crossing') { // 路口
- this.showCrossingDalogs(nodeData);
- } else if (this.activeLeftTab === 'trunkLine') { // 干线
- this.showTrunkLineDalogs(nodeData);
- } else if (this.activeLeftTab === 'specialDuty') { // 特勤
- this.showSpecialDutyDalogs(nodeData);
- }
- },
- // 模式切换
- onViewSelect(item) {
- console.log('你点击了:', item.label);
- this.currentView = item.value;
- this.$refs.layout.clearDialogs(); // 清空全部弹窗
- this.crossingSelections = [];
- // 列表模式弹窗
- if (this.currentView === 'list-mode') {
- // this.$refs.layout.openDialog({
- // id: 'crossing-list', // 这里的 ID 可以根据实际业务场景动态生成
- // title: '',
- // component: 'CrossingListPanel',
- // width: 1920,
- // height: 750,
- // center: false,
- // showClose: true,
- // noPadding: false,
- // enableDblclickExpand: false,
- // position: { x: 100, y: 150 },
- // data: {
- // onViewDetail: (rowData) => this.handleCrossingViewDetail(rowData)
- // }
- // });
- } else {
- this.loadCrossingTopCharts();
- }
- },
- // 处理tab点击
- handleTabClick(tabName) {
- console.log('父组件接收到了tab点击事件:', tabName);
- this.$refs.layout.clearDialogs(); // 清空全部弹窗
- this.crossingSelections = [];
- this.showTopChartDalogs(); // 根据当前Tab显示对应的顶部常驻图表
- },
- // 处理菜单folder标题点击
- handleFolderClick(nodeData) {
- console.log('父组件接收到了文件夹点击事件:', nodeData);
- // 临时逻辑,有真实接口后可以删除
- const index = Math.floor(Math.random() * 10);
- const position = localStorage.getItem(`pos${index + 1}`).split(',');
- // 地图联动
- this.$refs.trafficMapRef.focusByLocation([Number(position[0]), Number(position[1])]);
- },
- // 处理菜单点击
- handleMenuClick(nodeData) {
- console.log('父组件接收到了最底层路口点击事件:', nodeData);
- // 通过地图组件获取像素坐标(如果有经纬度的话)
- // if (nodeData.lng && nodeData.lat && this.$refs.trafficMapRef) {
- // // 地图联动
- // this.$refs.trafficMapRef.focusByLocation([nodeData.lng, nodeData.lat]);
- // const pixel = this.$refs.trafficMapRef.lngLatToPixel(nodeData.lng, nodeData.lat);
- // if (pixel) {
- // const scale = window.innerWidth / 1920;
- // nodeData.pixelX = Math.round(pixel.x / scale) + 20;
- // nodeData.pixelY = Math.round(pixel.y / scale);
- // }
- // }
- // 根据Tab来显示不同的弹窗内容
- if (this.activeLeftTab === 'overview') { // 总览
- // 临时逻辑,有真实接口后可以删除
- const index = Math.floor(Math.random() * 10);
- const position = localStorage.getItem(`pos${index + 1}`).split(',');
- // 地图联动
- this.$refs.trafficMapRef.focusByLocation([Number(position[0]), Number(position[1])]);
-
- this.showOverviewDalogs(nodeData);
- } else if (this.activeLeftTab === 'crossing') { // 路口
- this.showCrossingDalogs(nodeData);
- } else if (this.activeLeftTab === 'trunkLine') { // 干线
- this.showTrunkLineDalogs(nodeData);
- } else if (this.activeLeftTab === 'specialDuty') { // 特勤
- this.showSpecialDutyDalogs(nodeData);
- }
- },
- // 处理弹窗双击展开(通过 onExpand 回调从 Layout 传入)
- handleDoubleClickExpend(nodeData) {
- console.log('处理弹窗双击事件', nodeData);
- if (this.activeLeftTab === 'crossing' || this.activeLeftTab === 'overview') {
- this.showCrossingDetailDialogs(nodeData);
- }
- },
- // 显示顶部常驻图表(根据当前Tab状态)
- showTopChartDalogs() {
- if (this.activeLeftTab === 'crossing') {
- this.loadCrossingTopCharts();
- }
- },
- // 显示总览弹窗组
- showOverviewDalogs(nodeData) {
- console.log('显示总览弹窗组', nodeData.id, nodeData.label);
- // 路口弹窗
- this.$refs.layout.openDialog({
- id: 'crossing3_' + nodeData.id, // 这里的 ID 可以根据实际业务场景动态生成
- title: nodeData.label,
- component: 'CrossingPanel',
- width: 260,
- height: 260,
- center: false,
- showClose: true,
- position: { x: (nodeData.pixelX || 950) + 20, y: nodeData.pixelY || 430 },
- noPadding: false,
- data: {
- ...nodeData,
- onExpand: (data) => this.handleDoubleClickExpend(data)
- },
- onClose: () => {
- // this.$refs.layout.handleDialogClose('top-chart-crossing-1');
- // this.$refs.layout.handleDialogClose('top-chart-crossing-2');
- }
- });
- },
- async loadCrossingTopCharts() {
- try {
- this.crossingTopCharts = await apiGetCrossingTopCharts();
- } catch (e) { /* ignore */ }
- },
- // 显示路口弹窗组(多选分屏)
- showCrossingDalogs(nodeData) {
- console.log('路口多选', nodeData.id, nodeData.label);
- // 1. 已选中 → 取消选中
- const existIndex = this.crossingSelections.findIndex(c => c.id === nodeData.id);
- if (existIndex !== -1) {
- this.crossingSelections.splice(existIndex, 1);
- if (this.crossingSelections.length === 0) {
- this.$refs.layout.handleDialogClose('crossing-multi-view');
- return;
- }
- this.openCrossingMultiView();
- return;
- }
- // 2. 已满 → 先进先出
- if (this.crossingSelections.length >= this.maxCrossingSlots) {
- this.crossingSelections.shift();
- }
- // 3. 追加选中
- this.crossingSelections.push({ ...nodeData });
- // 4. 打开或更新弹窗
- this.openCrossingMultiView();
- },
- openCrossingMultiView() {
- this.$refs.layout.openDialog({
- id: 'crossing-multi-view',
- title: '',
- component: 'CrossingMultiView',
- width: 1400,
- height: 700,
- center: false,
- position: { x: 500, y: 150 },
- showClose: false,
- noPadding: true,
- enableDblclickExpand: false,
- draggable: false,
- data: {
- crossings: [...this.crossingSelections],
- maxSlots: this.maxCrossingSlots,
- onRemove: (id) => this.handleCrossingRemove(id),
- onReorder: (newOrder) => {
- this.crossingSelections = newOrder;
- }
- },
- onClose: () => {
- this.crossingSelections = [];
- }
- });
- },
- handleCrossingRemove(id) {
- this.crossingSelections = this.crossingSelections.filter(c => c.id !== id);
- if (this.crossingSelections.length === 0) {
- this.$refs.layout.handleDialogClose('crossing-multi-view');
- } else {
- this.openCrossingMultiView();
- }
- },
- // 单个路口详情弹窗(总览双击展开等场景使用)
- async showCrossingDetailDialogs(nodeData) {
- console.log('显示路口详情弹窗组', nodeData.id, nodeData.label);
- const detailData = await apiGetCrossingDetailData(nodeData.id);
- const dialogId = 'crossing_detail' + nodeData.id;
- this.$refs.layout.openDialog({
- id: dialogId,
- title: ' ',
- component: 'CrossingDetailPanel',
- width: 1315,
- height: 682,
- center: false,
- showClose: true,
- position: { x: 500, y: 170 },
- noPadding: false,
- enableDblclickExpand: false,
- data: { ...nodeData, preloadedData: detailData },
- headerComponent: 'CrossingDetailHeader',
- headerProps: {
- currentRoute: detailData?.currentRoute || {},
- intersectionData: detailData?.intersectionData || {},
- cycleLength: detailData?.cycleLength || 0,
- }
- });
- },
- // 路口列表模式下弹窗
- handleCrossingViewDetail(rowData) {
- console.log('显示路口列表查看', rowData);
- this.showCrossingDetailDialogs(rowData);
- },
- // 显示干线弹窗组
- async showTrunkLineDalogs(nodeData) {
- console.log('显示干线弹窗组', nodeData.id, nodeData.label);
- const tsData = await apiGetTrafficTimeSpace();
- this.$refs.layout.openDialog({
- id: nodeData.id,
- title: nodeData.label,
- component: 'TrafficTimeSpace',
- width: 1000,
- height: 500,
- center: true,
- showClose: true,
- data: tsData,
- });
- },
- // 显示特勤弹窗组
- showSpecialDutyDalogs(nodeData) {
- console.log('显示特勤弹窗组', nodeData.id, nodeData.label);
- this.openDutyDetailDialog(nodeData);
- },
- // === 解析路由参数并执行对应操作 ===
- checkRouteParams() {
- // 统一参数接收:特勤接收 id,路口接收 intersectionName 和 plan
- const { tab, action, id, } = this.$route.query;
- if (!tab) return; // 如果没有传递 tab 参数,说明是正常访问,不处理
- // 1. 处理“特勤线路”跳转
- if (tab === 'specialDuty') {
- this.activeLeftTab = 'specialDuty'; // 切换到左侧【特勤】Tab
- this.handleTabClick('specialDuty'); // 手动触发 Tab 切换事件,更新顶部图表
- // 这里判断的条件改为 id
- if (action === 'open-dialog' && id) {
- this.$nextTick(() => {
- this.openDutyDetailDialog({id: id, label: '特勤路口'}); // 打开特勤弹窗
- });
- }
- }
- // 2. 处理“关键路口”跳转
- else if (tab === 'crossing') {
- this.activeLeftTab = 'crossing'; // 切换到左侧【路口】Tab
- this.handleTabClick('crossing'); // 手动触发 Tab 切换事件,更新顶部图表
- if (action === 'open-dialog') {
- this.$nextTick(() => {
- // 构造一个假的 nodeData 传给详情弹窗方法
- this.showCrossingDetailDialogs({
- id: 'route_' + new Date().getTime(), // 动态生成一个ID防重复
- label: '路口详情',
- });
- });
- }
- }
- },
- // === 特勤详情弹窗 (你需要根据实际组件名替换) ===
- async openDutyDetailDialog(nodeData) {
- console.log('准备打开特勤线路详情:', nodeData);
- // 1. 获取数据
- const panelData = await apiGetSpecialTaskMonitorData(nodeData.id);
- const id = 'special-task-dialog' + new Date().getTime();
- // 2. 呼出弹窗
- this.$refs.layout.openDialog({
- id: id,
- title: ' ', // 留空以隐藏默认标题,使用自定义 Header
- width: 1400, // 弹窗宽一点,容纳 3 列
- height: 700,
- center: false,
- showClose: true,
- noPadding: true, // 去除默认内边距,让内部组件自己控制
- position: {x: 200, y: 150},
- // 挂载主体组件和数据
- component: 'SpecialTaskMonitorPanel',
- data: { panelData: panelData },
- // 挂载自定义 Header 和数据
- headerComponent: 'TaskMonitorHeader',
- headerProps: {
- taskData: panelData.taskInfo,
- onStartTask: () => {
- console.log('点击了立即执行');
- panelData.taskInfo.status = '进行中';
- const tableRow = this.tableData.find(r => r.id === nodeData.id);
- if (tableRow) tableRow.status = '进行中';
- },
- onEndTask: () => {
- console.log('点击了立即结束');
- panelData.taskInfo.status = '已完成';
- const tableRow = this.tableData.find(r => r.id === nodeData.id);
- if (tableRow) tableRow.status = '已完成';
- }
- }
- });
- },
- handleSpecialTaskView(row) {
- console.log('查看特勤线路,当前数据:', row);
- this.openDutyDetailDialog(row);
- },
- handleSpecialTaskStart(row) {
- console.log('立即执行特勤任务:', row);
- row.status = '进行中';
- },
- handleSpecialTaskEnd(row) {
- console.log('立即结束特勤任务:', row);
- row.status = '已完成';
- },
- }
- }
- </script>
- <style scoped>
- .mode-switch {
- display: flex;
- flex-direction: row;
- justify-content: flex-end;
- }
- .mode-switch>div {
- width: 200px;
- }
- .duty-table {
- margin-top: 10px;
- }
- .action-btn {
- cursor: pointer;
- color: #4da8ff;
- margin-right: 10px;
- }
- .action-btn:hover {
- text-decoration: underline;
- }
- .action-start {
- color: #67c23a;
- }
- .action-end {
- color: #f56c6c;
- }
- .top-charts-bar {
- display: flex;
- justify-content: center;
- gap: clamp(10px, 1.04vw, 20px);
- pointer-events: none;
- }
- .top-chart-box {
- pointer-events: auto;
- flex-shrink: 0;
- background: radial-gradient(circle at 20% 0%, rgba(40,120,200,0.5) 0%, rgba(20,60,130,0.7) 70%);
- box-shadow: inset 0px 0px 0.625rem 0px rgba(88, 146, 255, 0.4), inset 1.25rem 0px 1.875rem -0.625rem rgba(88, 146, 255, 0.15);
- border: 1px solid rgba(255, 255, 255, 0.15);
- border-radius: clamp(6px, 0.625vw, 12px);
- overflow: hidden;
- }
- /* --- 总览Tab图表尺寸适配 (原 300x160) --- */
- .overview-chart-box {
- /* clamp(最小值, 理想值(1920下比例), 最大值) */
- width: clamp(200px, 15.625vw, 300px);
- height: clamp(106px, 8.333vw, 160px);
- }
- /* --- 路口Tab图表尺寸适配 (原 228x124) --- */
- .crossing-chart-box {
- width: clamp(152px, 11.875vw, 228px);
- height: clamp(82px, 6.458vw, 124px);
- }
- ::v-deep .list-mode-panel {
- position: absolute;
- inset: 0;
- padding: 150px 30px 30px 30px;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- /* 针对特勤 Tab 单独剥离背景和边框 */
- ::v-deep .special-duty-pane {
- background: transparent !important;
- background-color: transparent !important;
- background-image: none !important;
- border: none !important;
- box-shadow: none !important;
- outline: none !important;
- }
- /* 如果你的科技UI边框是利用伪元素(::before / ::after)绘制的,再加上这两句抹除 */
- ::v-deep .special-duty-pane::before,
- ::v-deep .special-duty-pane::after {
- display: none !important;
- }
- ::v-deep .special-duty-pane .tech-table tbody td {
- color: #ffffff;
- font-size: clamp(12px, 2.5cqw, 14px);
- padding: clamp(8px, 1.5cqw, 10px) clamp(8px, 1.5cqw, 10px);
- white-space: normal !important;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- ::v-deep .special-duty-pane .tech-table thead th {
- background-color: rgba(17, 36, 70, 1);
- }
- ::v-deep .special-duty-pane .tech-table tbody tr:nth-child(odd) {
- background-color: rgba(30, 50, 90, 1);
- }
- ::v-deep .special-duty-pane .tech-table tbody .table-row {
- background-color: rgba(30, 50, 90, 1);
- }
- ::v-deep .special-duty-pane .tech-table tbody .table-row:hover {
- background-color: rgb(75, 112, 185);
- }
- ::v-deep .special-duty-pane .tech-table .btn-group {
- display: flex;
- gap: 10px;
- flex-direction: column;
- }
- </style>
|