This commit is contained in:
lixiaobang 2023-03-28 10:54:02 +08:00
commit 006ce36a7c
28 changed files with 157 additions and 143 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
src/assets/weather/gale.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
src/assets/weather/hail.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/assets/weather/moon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/assets/weather/rain.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/assets/weather/sand.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
src/assets/weather/smog.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/assets/weather/snow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="hotelApply wl-gantt"> <div class="hotelApply wl-gantt">
<el-table <el-table
height="520" height="600"
:data="tableData" :data="tableData"
class="tableListValue" class="tableListValue"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
@ -12,26 +12,29 @@
:cell-style="cellStyle" :cell-style="cellStyle"
> >
<el-table-column <el-table-column
prop="room" prop="name"
label="任务名称" label="任务名称"
align="center" align="center"
width="140px" width="140px"
fixed
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="beginTime" prop="startDate"
label="开始时间" label="开始时间"
align="center" align="center"
width="120px" width="120px"
fixed
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="endTime" prop="endDate"
label="结束时间" label="结束时间"
align="center" align="center"
width="120px" width="120px"
fixed
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> >
</el-table-column> </el-table-column>
@ -75,94 +78,75 @@ import quarterOfYear from "dayjs/plugin/quarterOfYear";
dayjs.extend(quarterOfYear); // dayjs.extend(quarterOfYear); //
dayjs.extend(isBetween); dayjs.extend(isBetween);
export default { export default {
props: {
tableData: {
type: Array,
default: () => {
return []
}
}
},
name: "", name: "",
data() { data() {
return { return {
tableData: [ tableData: [
{ // {
id: 1, // id: 1,
room: "公寓101", // name: "101",
bedName: "1号床", // bedName: "1",
beginTime: "2021-08-03", // startDate: "2021-08-03",
endTime: "2021-08-04", // endDate: "2021-08-04",
},
{
id: 2,
room: "公寓101",
bedName: "2号床",
beginTime: "2021-08-04",
endTime: "2021-08-5",
liveList: []
},
{
id: 3,
room: "公寓102",
bedName: "1号床",
beginTime: "2021-08-05",
endTime: "2021-08-7",
liveList: []
},
{
id: 4,
room: "公寓102",
bedName: "2号床",
beginTime: "2021-08-01",
endTime: "2021-08-3",
liveList: []
},
{
id: 5,
room: "公寓103",
bedName: "1号床",
beginTime: "2021-08-06",
endTime: "2021-08-8",
liveList: []
},
{
id: 6,
room: "公寓103",
bedName: "2号床",
beginTime: "2021-08-7",
endTime: "2021-08-9",
liveList: []
},
// {
// id: 7,
// room: "103",
// bedName: "2",
// beginTime: "2021-08-7",
// endTime: "2021-08-9",
// liveList: [] // liveList: []
// }, // },
// { // {
// id: 8, // id: 2,
// room: "103", // name: "101",
// bedName: "2", // bedName: "2",
// beginTime: "2021-08-7", // startDate: "2021-08-04",
// endTime: "2021-08-9", // endDate: "2021-08-5",
// liveList: [] // liveList: []
// }, { // },
// id:9, // {
// room: "103", // id: 3,
// bedName: "2", // name: "102",
// beginTime: "2021-08-7", // bedName: "1",
// endTime: "2021-08-9", // startDate: "2021-08-05",
// endDate: "2021-08-7",
// liveList: [] // liveList: []
// }, { // },
// id: 17, // {
// room: "103", // id: 4,
// name: "102",
// bedName: "2", // bedName: "2",
// beginTime: "2021-08-7", // startDate: "2021-08-01",
// endTime: "2021-08-9", // endDate: "2021-08-3",
// liveList: []
// },
// {
// id: 5,
// name: "103",
// bedName: "1",
// startDate: "2021-08-06",
// endDate: "2021-08-8",
// liveList: []
// },
// {
// id: 6,
// name: "103",
// bedName: "2",
// startDate: "2021-08-7",
// endDate: "2021-08-9",
// liveList: [] // liveList: []
// }, // },
], ],
showDrawer: false, // showDrawer: false, //
drawerForm: {}, drawerForm: {},
// //
self_start_date: "2021-08-01", // // self_start_date: "2021-08-01", //
self_end_date: "2021-08-30", // // self_end_date: "2021-08-30", //
self_start_date_day: "", // self_start_date: "2023-01-01", //
self_end_date: "2023-12-30", //
self_start_date_day: "2023-01-01", //
self_start_date_month: "", // self_start_date_month: "", //
self_start_date_year: "", // self_start_date_year: "", //
self_date_type: "monthAndDay" // self_date_type: "monthAndDay" //
@ -203,8 +187,8 @@ export default {
name: "name", // name: "name", //
id: "id", // id id: "id", // id
pid: "pid", // pid pid: "pid", // pid
startDate: "beginTime", // startDate: "startDate", //
endDate: "endTime", // endDate: "endDate", //
realStartDate: "recordBeginTime", // realStartDate: "recordBeginTime", //
realEndDate: "recordEndTime", // realEndDate: "recordEndTime", //
identityId: "identityId", identityId: "identityId",
@ -400,16 +384,17 @@ export default {
} }
return months; return months;
} }
for (let i = start_num; i < end_num; i++) { // for (let i = start_num; i < end_num; i++) {
// // //
months.push({ // months.push({
name: `${i}`, // name: `${i}`,
date: i, // date: i,
full_date: `${year}-${i}`, // full_date: `${year}-${i}`,
id: uuidv4() // id: uuidv4()
});
} // });
return months; // }
// return months;
}, },
/** /**
* 生成日期函数 * 生成日期函数
@ -421,48 +406,55 @@ export default {
generationDays(year, month, isLeap = false, week = false) { generationDays(year, month, isLeap = false, week = false) {
let big_month = [1, 3, 5, 7, 8, 10, 12].includes(month); let big_month = [1, 3, 5, 7, 8, 10, 12].includes(month);
let small_month = [4, 6, 9, 11].includes(month); let small_month = [4, 6, 9, 11].includes(month);
let dates_num = big_month ? 32 : small_month ? 31 : isLeap ? 30 : 29; // let dates_num = big_month ? 32 : small_month ? 31 : isLeap ? 30 : 29;
// let days = [];
// if (week) {
// let _day = 1; //
// let _start_day_inweek = this.timeInWeek(`${year}-${month}-1`);
// if (_start_day_inweek !== 0) {
// _day = 8 - _start_day_inweek;
// }
// for (let i = _day; i < dates_num; i += 7) {
// days.push({
// date: i,
// name: `${month}${i}`,
// id: uuidv4(),
// full_date: `${year}-${month}-${i}`
// });
// }
// } else {
// //
// if (
// year == this.self_start_date_year &&
// month == this.self_start_date_month
// ) {
// for (let i = this.self_start_date_day; i < dates_num; i++) {
// days.push({
// date: i,
// name: `${month}${i}`,
// id: uuidv4(),
// full_date: `${year}-${month}-${i}`
// });
// }
// //
// } else {
// for (let i = 1; i < dates_num; i++) {
// days.push({
// date: i,
// name: `${month}${i}`,
// id: uuidv4(),
// full_date: `${year}-${month}-${i}`
// });
// }
// }
// }
let days = []; let days = [];
if (week) { days.push({
let _day = 1; // date: month,
let _start_day_inweek = this.timeInWeek(`${year}-${month}-1`); name: `${month}`,
if (_start_day_inweek !== 0) {
_day = 8 - _start_day_inweek;
}
for (let i = _day; i < dates_num; i += 7) {
days.push({
date: i,
name: `${i}`,
id: uuidv4(), id: uuidv4(),
full_date: `${year}-${month}-${i}` full_date: `${year}-${month}`
}); });
}
} else {
//
if (
year == this.self_start_date_year &&
month == this.self_start_date_month
) {
for (let i = this.self_start_date_day; i < dates_num; i++) {
days.push({
date: i,
name: `${i}`,
id: uuidv4(),
full_date: `${year}-${month}-${i}`
});
}
//
} else {
for (let i = 1; i < dates_num; i++) {
days.push({
date: i,
name: `${i}`,
id: uuidv4(),
full_date: `${year}-${month}-${i}`
});
}
}
}
return days; return days;
}, },
/** /**
@ -780,7 +772,7 @@ $gantt_item_half: 4px;
} }
.tableListValue{ .tableListValue{
width: 19vw; width: 19vw;
margin-left: 0.8vh; // margin-left: 0.8vh;
// //
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 1.1vh; width: 1.1vh;
@ -797,7 +789,9 @@ $gantt_item_half: 4px;
} }
} }
.el-table__body tr.hover-row.current-row>td.el-table__cell, .el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell, .el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell, .el-table__body tr.hover-row>td.el-table__cell {
background-color: #2f807d!important;
}
.el-table { .el-table {
&.el-table--scrollable-y ::-webkit-scrollbar { &.el-table--scrollable-y ::-webkit-scrollbar {
display: none !important; // display: none !important; //

View File

@ -17,7 +17,7 @@
</div> </div>
<div class="titRight"> <div class="titRight">
<span>{{dateNew}}&nbsp;{{getWeek}}&nbsp;{{time}}</span> <span>{{dateNew}}&nbsp;{{getWeek}}&nbsp;{{time}}</span>
<span></span> <span><img :src='weatherImg' alt="" style="width:100%;height:100%"></span>
<span>&nbsp;&nbsp;天气&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> <span>&nbsp;&nbsp;天气&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<span>{{weatherItem.weather}} &nbsp;{{weatherItem.temperature}}</span> <span>{{weatherItem.weather}} &nbsp;{{weatherItem.temperature}}</span>
</div> </div>
@ -111,6 +111,7 @@ export default {
}, },
data() { data() {
return { return {
weatherImg:require("@/assets/pic/sun.png"),
videoName:'', // videoName:'', //
videoId:'',//Id videoId:'',//Id
// //
@ -423,8 +424,14 @@ export default {
methods: '' methods: ''
}).then(res => { }).then(res => {
this.weatherItem = res.data.lives[0]; this.weatherItem = res.data.lives[0];
this.weatherImg = changeWeatherImg(res.data.lives[0].weather)
}); });
} , },
changeWeatherImg(weather){
if(weather=='雾'){
return require("@/assets/weather/sun.png")
}
},
changeMessage(val) { changeMessage(val) {
this.tienum = val this.tienum = val
}, },

View File

@ -164,8 +164,8 @@
<span>计划进度</span> <span>计划进度</span>
</div> </div>
<div class="tabGtBox"> <div class="tabGtBox">
<!-- <tabGtt></tabGtt> --> <TabGtt :tableData="tableData" ></TabGtt>
<div class="ggtHeader"> <!-- <div class="ggtHeader">
<div style="margin-left: 18px;"> <div style="margin-left: 18px;">
任务名称 任务名称
</div> </div>
@ -257,7 +257,7 @@
<span>2011-11-22</span> <span>2011-11-22</span>
<span style="left: 790px;width:18;"></span> <span style="left: 790px;width:18;"></span>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
@ -277,7 +277,7 @@ import lineBar from "@/components/common/lineBarChart";
import pieChartUnImg from "@/components/common/pieChartUnImg"; import pieChartUnImg from "@/components/common/pieChartUnImg";
import pieDateChart from "@/components/common/pieDateChart"; import pieDateChart from "@/components/common/pieDateChart";
import Resize from '../utils/Resize.vue' import Resize from '../utils/Resize.vue'
import tabGtt from '@/components/common/tableGantt' import TabGtt from '@/components/common/tableGantt'
import {getProjectInfo,getProjectDuration,getProjectInvestment,getPlanProgress,getActualProgress,getCompleteMonthStatus} from "@/api/api"; import {getProjectInfo,getProjectDuration,getProjectInvestment,getPlanProgress,getActualProgress,getCompleteMonthStatus} from "@/api/api";
export default { export default {
@ -287,7 +287,7 @@ export default {
lineBar, lineBar,
pieDateChart, pieDateChart,
Resize, Resize,
tabGtt TabGtt
}, },
data() { data() {
return { return {
@ -626,7 +626,8 @@ export default {
.tabGtBox { .tabGtBox {
position: absolute; position: absolute;
top: 50px; top: 50px;
width: 96%;
left: 20px;
.ggtHeader { .ggtHeader {
width: 820px; width: 820px;
height: 60px; height: 60px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -1,5 +1,5 @@
body { padding: 0; margin: 0 } body { padding: 0; margin: 0 }
#unity-container { position: absolute;width: 1920px;height: 1080px; } #unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) } #unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { width: 100%; height: 100% } #unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #231F20 } #unity-canvas { background: #231F20 }

View File

@ -8,7 +8,7 @@
<link rel="stylesheet" href="TemplateData/style.css"> <link rel="stylesheet" href="TemplateData/style.css">
</head> </head>
<body> <body>
<div id="unity-container" class="unity-desktop"> <div id="unity-container" style="height: 100%;" class="unity-desktop">
<canvas id="unity-canvas" ></canvas> <canvas id="unity-canvas" ></canvas>
<div id="unity-loading-bar"> <div id="unity-loading-bar">
<div id="unity-logo"></div> <div id="unity-logo"></div>
@ -18,9 +18,9 @@
</div> </div>
<div id="unity-warning"> </div> <div id="unity-warning"> </div>
<div id="unity-footer"> <div id="unity-footer">
<div id="unity-webgl-logo"></div> <!-- <div id="unity-webgl-logo"></div>
<div id="unity-fullscreen-button"></div> <div id="unity-fullscreen-button"></div>
<div id="unity-build-title">MqttTest</div> <div id="unity-build-title">MqttTest</div> -->
</div> </div>
</div> </div>
<script> <script>
@ -109,14 +109,26 @@
createUnityInstance(canvas, config, (progress) => { createUnityInstance(canvas, config, (progress) => {
progressBarFull.style.width = 100 * progress + "%"; progressBarFull.style.width = 100 * progress + "%";
}).then((unityInstance) => { }).then((unityInstance) => {
unity = unityInstance
loadingBar.style.display = "none"; loadingBar.style.display = "none";
fullscreenButton.onclick = () => { // fullscreenButton.onclick = () => {
unityInstance.SetFullscreen(1); // unityInstance.SetFullscreen(1);
}; // };
}).catch((message) => { }).catch((message) => {
alert(message); alert(message);
}); });
}; };
function fullScreen(){
if(unity!=null){
unity.SendMessage("GameManager",'FullScreen');
}
}
function exitFullScreen(){
if(unity!=null){
unity.SendMessage("GameManager",'ExitFullScreen');
}
}
document.body.appendChild(script); document.body.appendChild(script);
</script> </script>
</body> </body>