caner 1 year ago
parent
commit
392dfc1229

+ 4 - 3
package.json

@@ -11,6 +11,7 @@
   "dependencies": {
   "dependencies": {
     "@wangeditor/editor": "^5.1.18",
     "@wangeditor/editor": "^5.1.18",
     "@wangeditor/editor-for-vue": "^5.1.12",
     "@wangeditor/editor-for-vue": "^5.1.12",
+    "date-fns": "^4.1.0",
     "echarts": "^5.5.1",
     "echarts": "^5.5.1",
     "html2canvas": "^1.4.1",
     "html2canvas": "^1.4.1",
     "jspdf": "^2.5.1",
     "jspdf": "^2.5.1",
@@ -21,15 +22,15 @@
     "pinia": "^2.1.7",
     "pinia": "^2.1.7",
     "pinia-plugin-persist": "^1.0.0",
     "pinia-plugin-persist": "^1.0.0",
     "socket.io-client": "^4.7.5",
     "socket.io-client": "^4.7.5",
+    "three": "^0.145.0",
     "vue": "^3.4.31",
     "vue": "^3.4.31",
     "vue-router": "^4.4.0",
     "vue-router": "^4.4.0",
-    "xlsx": "^0.18.5",
-    "three": "^0.145.0"
+    "xlsx": "^0.18.5"
   },
   },
   "devDependencies": {
   "devDependencies": {
-    "@types/three": "^0.144.0",
     "@types/leaflet": "^1.9.12",
     "@types/leaflet": "^1.9.12",
     "@types/node": "^20.10.4",
     "@types/node": "^20.10.4",
+    "@types/three": "^0.144.0",
     "@typescript-eslint/parser": "^7.16.0",
     "@typescript-eslint/parser": "^7.16.0",
     "@vitejs/plugin-vue": "^5.0.5",
     "@vitejs/plugin-vue": "^5.0.5",
     "eslint": "^8.57.0",
     "eslint": "^8.57.0",

+ 4 - 0
src/pages/views/face/index.vue

@@ -217,10 +217,14 @@
 </template>
 </template>
 
 
 <script setup lang='ts'>
 <script setup lang='ts'>
+import { onMounted } from 'vue'
 
 
 function clickFace(num: number) {
 function clickFace(num: number) {
   console.log('掌子面点击', num)
   console.log('掌子面点击', num)
 }
 }
+
+onMounted(() => { document.title = 'SVG隧道图' })
+
 </script>
 </script>
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 .svgBox {
 .svgBox {

+ 1 - 0
src/pages/views/leaflet/index.vue

@@ -556,6 +556,7 @@ function destory() {
 }
 }
 
 
 onMounted(() => {
 onMounted(() => {
+  document.title = 'leaflet画图'
   if (Object.keys(store.currentStratum).length) {
   if (Object.keys(store.currentStratum).length) {
     if (Map.value) {
     if (Map.value) {
       changeMap('', store.currentStratum)
       changeMap('', store.currentStratum)

+ 5 - 3
src/pages/views/process/index.vue

@@ -123,7 +123,8 @@
 </template>
 </template>
 
 
 <script setup lang='ts'>
 <script setup lang='ts'>
-import { ref, watch } from 'vue'
+import { onMounted, ref, watch } from 'vue'
+import { format } from 'date-fns'
 
 
 interface Item {
 interface Item {
   name: string,
   name: string,
@@ -237,8 +238,8 @@ const tipData = ref({
 function countTime(item: Item[]) {
 function countTime(item: Item[]) {
   const arr = item.map((el, k) => ({
   const arr = item.map((el, k) => ({
     ...el,
     ...el,
-    st: `${el.sTime}`,
-    et: `${el.eTime}`,
+    st: `${format(el.sTime, 'HH:mm')}`,
+    et: `${format(el.eTime, 'HH:mm')}`,
     width: Math.floor((el.eTime! - el.sTime!) / 1000 / 60 / 60 * 10) / 10 * 60,
     width: Math.floor((el.eTime! - el.sTime!) / 1000 / 60 / 60 * 10) / 10 * 60,
     X: (new Date(el.sTime!).getHours() - 1 + new Date(el.sTime!).getMinutes() / 60) * 60,
     X: (new Date(el.sTime!).getHours() - 1 + new Date(el.sTime!).getMinutes() / 60) * 60,
     Y: 50 + k * 40
     Y: 50 + k * 40
@@ -259,6 +260,7 @@ watch(() => props.data, (v) => {
   planDetail.value = countTime(v)
   planDetail.value = countTime(v)
 }, { immediate: true })
 }, { immediate: true })
 
 
+onMounted(() => { document.title = 'SVG进度' })
 </script>
 </script>
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 .process {
 .process {

+ 2 - 0
src/pages/views/three/index.vue

@@ -264,6 +264,8 @@ function initThree() {
   // 点击事件
   // 点击事件
   OBJclickEvent()
   OBJclickEvent()
   addOBJ()
   addOBJ()
+  //
+  document.title = '3D热力图点图'
 }
 }
 
 
 watch(() => props.holeConfig.data, () => addOBJ())
 watch(() => props.holeConfig.data, () => addOBJ())