+
{{ item.weather }}{{ item.tempMin }}°/{{ item.tempMax }}°
{{ item.week }}({{ item.date }})
@@ -78,15 +82,15 @@ const props = defineProps({
type: Boolean,
default: false
}
-})
+});
-const emit = defineEmits(['changePage'])
+const emit = defineEmits(['changePage']);
const safetyDay = ref
(0);
-const weatherList = ref([])
-const timer = ref(0)
-const offsetY = ref(0)
-const curIndex = ref(0)
+const weatherList = ref([]);
+const timer = ref(0);
+const offsetY = ref(0);
+const curIndex = ref(0);
const transition = ref('transform 0.5s ease');
const pendingPause = ref(false);
@@ -106,18 +110,16 @@ function judgeDayOrNight(sunRise: string, sunSet: string) {
const now = new Date();
const currentMinutes = now.getHours() * 60 + now.getMinutes();
// true 白天 false 夜晚
- return currentMinutes >= sunRiseMinutes && currentMinutes <= sunSetMinutes
- ? true
- : false;
+ return currentMinutes >= sunRiseMinutes && currentMinutes <= sunSetMinutes ? true : false;
}
/**
* 设置天气周期滑动
*/
const setWeatherScroll = () => {
- curIndex.value += 1
+ curIndex.value += 1;
transition.value = 'transform 0.3s ease';
- offsetY.value = curIndex.value * 60
+ offsetY.value = curIndex.value * 60;
if (curIndex.value === weatherList.value.length - 1) {
setTimeout(() => {
@@ -126,7 +128,7 @@ const setWeatherScroll = () => {
offsetY.value = 0;
}, 350);
}
-}
+};
function startScroll() {
if (timer.value) clearInterval(timer.value);
@@ -135,57 +137,56 @@ function startScroll() {
function requestPause() {
if (timer.value) {
- clearInterval(timer.value)
- timer.value = null
+ clearInterval(timer.value);
+ timer.value = null;
}
pendingPause.value = true;
}
function resumeScroll() {
- console.log('resumeScroll')
+ console.log('resumeScroll');
pendingPause.value = false;
startScroll();
}
-
onMounted(() => {
/**
* 获取安全生产天数
*/
- getScreenSafetyDay(props.projectId).then(res => {
- const { data, code } = res
+ getScreenSafetyDay(props.projectId).then((res) => {
+ const { data, code } = res;
if (code === 200) {
safetyDay.value = data.safetyDay;
}
- })
+ });
/**
* 获取近三天天气
*/
- getScreenWeather(props.projectId).then(res => {
- const { data, code } = res
+ getScreenWeather(props.projectId).then((res) => {
+ const { data, code } = res;
if (code === 200) {
- data.forEach(item => {
+ data.forEach((item) => {
if (judgeDayOrNight(item.sunRise, item.sunSet)) {
- item.weather = item.dayStatus
- item.icon = item.dayIcon
+ item.weather = item.dayStatus;
+ item.icon = item.dayIcon;
} else {
- item.weather = item.nightStatus
- item.icon = item.nightIcon
+ item.weather = item.nightStatus;
+ item.icon = item.nightIcon;
}
- })
- weatherList.value = data
+ });
+ weatherList.value = data;
// 多添加第一项 实现无缝衔接
- weatherList.value = [...weatherList.value, weatherList.value[0]]
- startScroll()
+ weatherList.value = [...weatherList.value, weatherList.value[0]];
+ startScroll();
}
- })
+ });
});
onUnmounted(() => {
if (timer.value) {
- clearInterval(timer.value)
+ clearInterval(timer.value);
}
-})
+});
diff --git a/src/views/materials/overallPlanMaterialSupply/indexEdit.vue b/src/views/materials/overallPlanMaterialSupply/indexEdit.vue
index 56c849b..0781865 100644
--- a/src/views/materials/overallPlanMaterialSupply/indexEdit.vue
+++ b/src/views/materials/overallPlanMaterialSupply/indexEdit.vue
@@ -73,12 +73,12 @@
-->
-
-
-
-
-
-
+
+
+
+
+
+
@@ -214,7 +214,7 @@ const getInfo = () => {
console.log('res.data', masterDataRes);
Object.assign(form.value, masterDataRes?.data[0]);
// console.log('form', form.value);
- tableData.value = res.rows.reverse();//翻转
+ tableData.value = res.rows; //正序显示
loading.value = false;
buttonLoading.value = false;
});
@@ -319,9 +319,7 @@ onMounted(() => {
.el-input__inner,
.el-select .el-input__inner {
border-radius: 4px;
- transition:
- border-color 0.2s,
- box-shadow 0.2s;
+ transition: border-color 0.2s, box-shadow 0.2s;
&:focus {
border-color: var(--primary-light);
@@ -331,9 +329,7 @@ onMounted(() => {
.el-textarea__inner {
border-radius: 4px;
- transition:
- border-color 0.2s,
- box-shadow 0.2s;
+ transition: border-color 0.2s, box-shadow 0.2s;
&:focus {
border-color: var(--primary-light);
diff --git a/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue b/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue
index a3a86c6..e92ea01 100644
--- a/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue
+++ b/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue
@@ -292,7 +292,7 @@
- {{ sonForm.areaValue && sonForm.transferStatus == '1' ? `提示:当前剩余${sonSummaryInfo.remainingArea} 亩未流转面积` : '' }}
+ {{ sonForm.areaValue && sonForm.transferStatus == '1' ? `提示:当前剩余${sonSummaryInfo.remainingArea} 亩` : '' }}
@@ -325,7 +325,7 @@
- {{ sonForm.areaValue && sonForm.transferStatus == '2' ? `提示:当前剩余 ${sonSummaryInfo.remainingArea} 亩未流转面积` : '' }}
+ {{ sonForm.areaValue && sonForm.transferStatus == '2' ? `提示:当前剩余 ${sonSummaryInfo.remainingArea} 亩` : '' }}
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index 540bb57..872df4a 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -46,16 +46,16 @@
:load="loadChildren"
:has-children="hasChildren"
>
-
-
+
+
-
-
-
-
+
+
+
+
@@ -65,7 +65,7 @@
{{ scope.row.createTime }}
-
+