flx:修复人员风险第一次不显示 文字提示弹窗太长导致页面宽度超出

This commit is contained in:
X_Rian 2024-07-08 13:42:35 +08:00
parent 0031b96c64
commit c8658c737d
5 changed files with 33 additions and 36 deletions

View File

@ -4,7 +4,7 @@ NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用) # 本地环境接口地址(/api/index.ts文件中使用)
# 后端本地 # 后端本地
# VITE_API_URL = 'http://192.168.34.155:19111' # VITE_API_URL = 'http://192.168.34.155:19111'
# VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地 VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地
# VITE_API_URL = 'http://182.90.224.237:51234' #雄哥远程 # VITE_API_URL = 'http://182.90.224.237:51234' #雄哥远程
# VITE_API_URL = 'http://192.168.34.221:28889' # VITE_API_URL = 'http://192.168.34.221:28889'
# VITE_API_URL = 'http://121.196.214.246/api' # VITE_API_URL = 'http://121.196.214.246/api'
@ -25,7 +25,7 @@ NODE_ENV = 'development'
# 七参数标准版(演示平台) # 七参数标准版(演示平台)
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809' # VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
# agjt # agjt
VITE_API_URL = 'http://42.180.188.17:9809' #生产环境 # VITE_API_URL = 'http://42.180.188.17:9809' #生产环境
# VITE_API_URL = 'http://42.180.188.17:11211' #测试环境 # VITE_API_URL = 'http://42.180.188.17:11211' #测试环境
# VITE_API_URL = 'http://jxj.zhgdyun.com:19812' # VITE_API_URL = 'http://jxj.zhgdyun.com:19812'
# 苏立信/重庆市南岸区 # 苏立信/重庆市南岸区

View File

@ -372,3 +372,7 @@
background-color: #262d47 !important; background-color: #262d47 !important;
color: #fff; color: #fff;
} }
.el-popper.is-dark {
max-width: 500px;
}

View File

@ -152,7 +152,7 @@ s
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, ref, reactive } from "vue"; import { onMounted, ref, reactive, nextTick } from "vue";
import * as echarts from "echarts"; import * as echarts from "echarts";
// import ECharts from "vue-echarts"; // import ECharts from "vue-echarts";
import { selectQualityStatisticsApi } from "@/api/modules/projectOverview"; import { selectQualityStatisticsApi } from "@/api/modules/projectOverview";
@ -327,7 +327,6 @@ const handleTab = (val: number) => {
activeIfo.activeIndex = val; activeIfo.activeIndex = val;
queryAttendanceOfEachCompany(false); queryAttendanceOfEachCompany(false);
} else if (activeIfo.activeIndex == 0) { } else if (activeIfo.activeIndex == 0) {
activeIfo.activeIndex = val;
getWorkerRiskByProject(false, 1); getWorkerRiskByProject(false, 1);
} }
}; };
@ -547,7 +546,7 @@ const getWorkerRiskByProject = async (showLoading: boolean, val: number) => {
]; ];
randerInfo.titleInfo.percentage = res.result.area; randerInfo.titleInfo.percentage = res.result.area;
} }
// activeIfo.activeIndex = val; activeIfo.activeIndex = val;
}; };
const setIntervalFn = (showLoading: boolean) => { const setIntervalFn = (showLoading: boolean) => {

View File

@ -981,18 +981,18 @@ onMounted(async () => {
// drawEchart3(); // drawEchart3();
// await getCompanyList(); // await getCompanyList();
// await getMemberCountList("search"); // await getMemberCountList("search");
refScrollbar.value.wrapRef.addEventListener("scroll", (e: any) => { // refScrollbar.value.wrapRef.addEventListener("scroll", (e: any) => {
const scrollTop = e.target.scrollTop; // const scrollTop = e.target.scrollTop;
const scrollHeight = e.target.scrollHeight; // const scrollHeight = e.target.scrollHeight;
const clientHeight = e.target.clientHeight; // const clientHeight = e.target.clientHeight;
// // //
if (scrollTop >= scrollHeight - clientHeight - 1) { // if (scrollTop >= scrollHeight - clientHeight - 1) {
if (moreScroll.value) { // if (moreScroll.value) {
// getMemberCountList("more"); // // getMemberCountList("more");
getXzSecurityQualitylnspectionRecordlist("more"); // getXzSecurityQualitylnspectionRecordlist("more");
} // }
} // }
}); // });
}); });
</script> </script>

View File

@ -53,17 +53,11 @@
<div>{{ index + 1 }}</div> <div>{{ index + 1 }}</div>
<div>{{ item.problemDescription }}</div> <div>{{ item.problemDescription }}</div>
<div> <div>
<el-tooltip class="box-item" effect="dark" :content="item.remark" placement="top-start"> <el-tooltip :hide-after="500" class="box-item" effect="dark" :content="item.remark" placement="top-start">
<span>{{item.remark}}</span> <span>{{ item.remark }}</span>
</el-tooltip> </el-tooltip>
</div> </div>
<div>{{ item.level == 1 <div>{{ item.level == 1 ? "重大" : item.level == 2 ? "较大" : item.level == 3 ? "一般" : "低" }}</div>
? "重大"
: item.level == 2
? "较大"
: item.level == 3
? "一般"
: "低" }}</div>
<div>{{ item.inspectTime }}</div> <div>{{ item.inspectTime }}</div>
</div> </div>
<div class="notoDta" v-if="partyMemberList.length == 0"> <div class="notoDta" v-if="partyMemberList.length == 0">
@ -107,7 +101,7 @@ const searchForm = ref({
}); });
const checked = ref(1); const checked = ref(1);
const partyMemberList = ref({} as any); const partyMemberList = ref({} as any);
const statisticsData = ref({} as any) const statisticsData = ref({} as any);
const changeSelect = (index: any) => { const changeSelect = (index: any) => {
checked.value = index; checked.value = index;
}; };
@ -288,7 +282,7 @@ onMounted(async () => {
} }
} }
} }
.radio-content{ .radio-content {
margin-top: 2%; margin-top: 2%;
:deep(.el-radio) { :deep(.el-radio) {
.el-radio__label { .el-radio__label {