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文件中使用)
# 后端本地
# 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://192.168.34.221:28889'
# VITE_API_URL = 'http://121.196.214.246/api'
@ -25,7 +25,7 @@ NODE_ENV = 'development'
# 七参数标准版(演示平台)
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
# 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://jxj.zhgdyun.com:19812'
# 苏立信/重庆市南岸区

View File

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

View File

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

View File

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

View File

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