From ecdffd165cf73c0e3c051c69d1dfdc71ba9331c8 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 26 Nov 2024 01:18:01 +0800
Subject: [PATCH] 突发事件模拟调整
---
src/views/rt/components/box/dataContent.vue | 60 ++++++++++++------------------------------------------------
1 files changed, 12 insertions(+), 48 deletions(-)
diff --git a/src/views/rt/components/box/dataContent.vue b/src/views/rt/components/box/dataContent.vue
index c42cebe..083443a 100644
--- a/src/views/rt/components/box/dataContent.vue
+++ b/src/views/rt/components/box/dataContent.vue
@@ -21,8 +21,8 @@
let currentIndex = ref(0)
// 园区 企业
const tilteList = ref([
- { label: "吉水化工园区", value: "0", id: "1" },
- { label: "吉水化工园区企业", value: "0", id: "2" }
+ { label: "园区救援队伍", value: "0", id: "1" },
+ { label: "企业救援队伍", value: "0", id: "2" }
]);
const pages = {
@@ -33,24 +33,8 @@
onMounted(() => {
getLists(formInline);
- // getCompanyPages();
});
-// function getCompanyPages(param = {}) {
-// param.current = pages.page;
-// param.size = pages.pageSize;
-// getPage(param).then(res => {
-// let companyList = res.data.data.records
-// companyList.forEach(item => {
-// tilteList.value.push({
-// label: item.name,
-// value: item.id,
-// id: item.id
-// })
-// })
-// }).catch(err => {
-// })
-// }
function handleClick(item, index) {
currentIndex.value = index
@@ -118,16 +102,7 @@
getList(param)
.then((res) => {
const data = res.data.data;
- // data.records.forEach((element) => {
- // if (element.type == 1) {
- // element.ownership = "园区";
- // } else {
- // element.ownership = "企业";
- // }
- // });
tableData.value = data.records;
- // pages.total = data.total;
- // loading.value = false;
})
.catch((err) => {
loading.value = false;
@@ -140,21 +115,6 @@
<public-content>
<template #content>
<div class="content_box">
- <!-- <el-form :inline="true" :model="formInline" class="demo-form-inline">
- <el-form-item label="姓名">
- <el-input v-model="formInline.perInCha" placeholder="请输入姓名" clearable style="width: 120px" />
- </el-form-item>
- <el-form-item label="归属">
- <el-select v-model="formInline.type" placeholder="请选择" clearable style="width: 120px">
- <el-option label="园区" value="1" />
- <el-option label="企业" value="2" />
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" @click="onSubmit">查询</el-button>
- <el-button type="" @click="clearBtn">重置</el-button>
- </el-form-item>
- </el-form> -->
<div class="list_box">
<ul>
@@ -167,8 +127,8 @@
<div class="page_box">
- <el-table v-if="formInline.type == 1" :data="tableData" style="width: 100%" :header-cell-style="headerCellStyle"
- :cell-style="tableCellStyle">
+ <el-table border empty-text="" v-if="formInline.type == 1" :data="tableData" style="width: 100%"
+ :header-cell-style="headerCellStyle" :cell-style="tableCellStyle">
<el-table-column prop="teamName" label="救援队伍组名称" />
<el-table-column prop="teamJob" label="救援队伍组职务" />
<el-table-column prop="perInCha" label="责任人姓名" />
@@ -176,11 +136,13 @@
<el-table-column prop="perInChaPho" label="联系电话" />
</el-table>
- <el-table v-else :data="tableData" style="width: 100%" :header-cell-style="headerCellStyle"
+ <el-table border empty-text="" v-else :data="tableData" style="width: 100%" :header-cell-style="headerCellStyle"
:cell-style="tableCellStyle">
<el-table-column prop="firmName" label="企业名称" />
<el-table-column prop="perInCha" label="责任人姓名" />
<el-table-column prop="perInChaPho" label="联系电话" />
+ <el-table-column prop="perInChaTwo" label="责任人姓名" />
+ <el-table-column prop="perInChaPhoTwo" label="联系电话" />
</el-table>
</div>
@@ -204,7 +166,6 @@
.list_box ul {
display: flex;
- /* 使用 Flexbox 布局 */
padding: 0;
margin: 0;
list-style: none;
@@ -214,11 +175,14 @@
padding: 10px;
margin-right: 10px;
cursor: pointer;
+ box-shadow: inset 0 0 40px #409eff;
+ border-radius: 10px;
+ margin-bottom: 5px;
}
.list_box li.active {
- background-color: rgba(117, 116, 116, 0.3);
- color: white;
+ // color: #409eff;
+ box-shadow: inset 0 0 100px #2a8ef1;
}
.page_box {
--
Gitblit v1.9.3