9.28问题修复

dev_xd
lj7788@126.com 2025-09-28 17:34:29 +08:00
parent a7a686fd52
commit 5f7273b6e2
4 changed files with 75 additions and 5 deletions

View File

@ -12,7 +12,7 @@
<script> <script>
window.yanzhuAppTitle = window.webCfg?.webTitle || "数字建安施工"; window.yanzhuAppTitle = window.webCfg?.webTitle || "数字建安施工";
</script> </script>
<link rel="icon" href="/cdn/bsimages/faviconnew.ico?v=4" /> <link rel="icon" href="/cdn/bsimages/faviconnew.ico?v=6" />
<title>数字建安施工</title> <title>数字建安施工</title>
<script <script
type="text/javascript" type="text/javascript"
@ -27,8 +27,6 @@
<link rel="stylesheet" href="/cdn/Cesium/Widgets/widgets.css" /> <link rel="stylesheet" href="/cdn/Cesium/Widgets/widgets.css" />
<!--[if lt IE 11 <!--[if lt IE 11
]><script> ]><script>
window.location.href = "/html/ie.html"; window.location.href = "/html/ie.html";
@ -217,6 +215,42 @@
color: #fff; color: #fff;
opacity: 0.5; opacity: 0.5;
} }
#translate {
position: absolute;
top: 11px;
left: 50%;
}
/* 隐藏原生的 select 样式 */
#translate select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 7px;
border: 1px solid rgb(159, 206, 255);
border-radius: 5px;
background-color: rgb(235, 245, 255);
color: rgb(72, 162, 255);
font-size: 14px;
font-weight: bold;
width: 150px;
}
/* 美化 select 的下拉箭头 */
#translate::after {
content: "▼"; /* Unicode编码表示向下的箭头 */
position: absolute;
color: rgb(72, 162, 255);
top: 8px;
right: 10px;
font-size: 12px;
}
/* 美化选项内容 */
#translate option {
padding: 5px;
background-color: #f9f9f9;
color: rgb(72, 162, 255);
}
</style> </style>
</head> </head>
@ -233,5 +267,35 @@
<script> <script>
window.document.title = window.yanzhuAppTitle; window.document.title = window.yanzhuAppTitle;
</script> </script>
<!-- 全局配置-多语言切换-开始 -->
<!-- <script src="<%= BASE_URL %>static/translate.js"></script> -->
<script src="/cdn/tools/translate.js"></script>
<script>
//设置本地语种(当前网页的语种)。如果不设置,默认就是 'chinese_simplified' 简体中文
// translate.language.setDefaultTo('english') //设置默认翻译为的语种
// translate.language.setLocal('english')
translate.service.use("client.edge");
//翻译自定义
// translate.nomenclature.append(
// 'chinese_simplified',
// 'english'
// )
//开启html页面变化的监控对变化部分会进行自动翻译
translate.listener.start();
//不显示语言选择标签
translate.selectLanguageTag.show = true;
//执行翻译初始化操作显示出select语言选择
//translate.execute();
//VUE的渲染需要时间所以留出一点点时间来进行翻译切换
document.addEventListener("DOMContentLoaded", function () {
// //页面 DOM 已渲染完毕当然最好是能监控到整个vue渲染完毕后触发最好
translate.execute();
// //2秒后再一次避免有遗漏
setTimeout(function () {
translate.execute()
}, 2000)
});
</script>
</body> </body>
</html> </html>

View File

@ -37,7 +37,9 @@ export default {
}, 400); }, 400);
// //
window.addEventListener("resize", () => { window.addEventListener("resize", () => {
if(this.chart){
this.chart.resize(); this.chart.resize();
}
}); });
}, },
methods: { methods: {

View File

@ -139,6 +139,9 @@ function getCookie() {
getCode() getCode()
getCookie() getCookie()
setTimeout(()=>{
translate.execute();
},1000);
</script> </script>
<style lang='scss'> <style lang='scss'>

View File

@ -165,6 +165,7 @@ function getList() {
return; return;
} }
loading.value = true; loading.value = true;
queryParams.value.noBim=1;
listPlan(queryParams.value).then((response) => { listPlan(queryParams.value).then((response) => {
let tmps = response.data || []; let tmps = response.data || [];
// tmps.forEach(tmp => { // tmps.forEach(tmp => {