天气
This commit is contained in:
@ -4,6 +4,10 @@ directories:
|
||||
buildResources: build
|
||||
|
||||
files:
|
||||
- 'out/**/*'
|
||||
- 'package.json'
|
||||
- 'resources/**/*'
|
||||
- '!node_modules/**/*'
|
||||
- '!**/.vscode/*'
|
||||
- '!src/*'
|
||||
- '!electron.vite.config.{js,ts,mjs,cjs}'
|
||||
@ -11,16 +15,32 @@ files:
|
||||
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
|
||||
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
||||
|
||||
extraFiles:
|
||||
- from: './ffplay/'
|
||||
to: './ffplay'
|
||||
|
||||
extraResources:
|
||||
- from: 'node_modules'
|
||||
to: 'node_modules'
|
||||
|
||||
asar: true
|
||||
asarUnpack:
|
||||
- resources/**
|
||||
- node_modules/**/*.node
|
||||
- node_modules/**/*.dll
|
||||
win:
|
||||
executableName: 实景三维电子沙盘系统
|
||||
icon: build/icons/81.ico
|
||||
nsis:
|
||||
artifactName: ${name}-${version}-setup.${ext}
|
||||
artifactName: 实景三维电子沙盘系统-${version}-setup.${ext}
|
||||
shortcutName: 实景三维电子沙盘系统
|
||||
uninstallDisplayName: 实景三维电子沙盘系统
|
||||
createDesktopShortcut: always
|
||||
include: "installer.nsh"
|
||||
oneClick: false
|
||||
perMachine: true
|
||||
allowToChangeInstallationDirectory: true
|
||||
language: "2052"
|
||||
mac:
|
||||
entitlementsInherit: build/entitlements.mac.plist
|
||||
extendInfo:
|
||||
|
||||
4051
package-lock.json
generated
4051
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "electron-app",
|
||||
"version": "1.0.0",
|
||||
"version": "v4.0.0",
|
||||
"description": "An Electron application with Vue and TypeScript",
|
||||
"main": "./out/main/index.js",
|
||||
"author": "example.com",
|
||||
@ -29,11 +29,11 @@
|
||||
"archiver": "^7.0.1",
|
||||
"axios": "^1.11.0",
|
||||
"clipboard": "^2.0.11",
|
||||
"compressing": "^2.0.0",
|
||||
"compressing": "^1.5.1",
|
||||
"date-fns": "^4.1.0",
|
||||
"dayjs": "^1.11.18",
|
||||
"echarts": "^6.0.0",
|
||||
"electron-store": "^8.1.0",
|
||||
"electron-store": "8.1.0",
|
||||
"electron-updater": "^6.3.9",
|
||||
"element-plus": "^2.10.4",
|
||||
"express": "^5.1.0",
|
||||
|
||||
Binary file not shown.
@ -194,9 +194,12 @@ export default {
|
||||
speedUnit: '速度单位',
|
||||
administrativeArea: '行政区划',
|
||||
skinList: {
|
||||
yingguangse: '荧光色',
|
||||
gonganlan: '科技蓝',
|
||||
hong: '烈日红'
|
||||
color1: '标准蓝',
|
||||
color2: '军队绿',
|
||||
color3: '湖光绿',
|
||||
color4: '科技蓝',
|
||||
color5: '骄阳红',
|
||||
color6: '活力橙',
|
||||
}
|
||||
},
|
||||
searchWay: {
|
||||
|
||||
@ -193,9 +193,12 @@ export default {
|
||||
speedUnit: 'speed',
|
||||
administrativeArea: 'administrativeArea',
|
||||
skinList: {
|
||||
yingguangse: 'Fluorescent',
|
||||
gonganlan: 'Tech Blue',
|
||||
hong: 'Sun Red'
|
||||
color1: 'Standard Blue',
|
||||
color2: 'Army Green',
|
||||
color3: 'Lake Green',
|
||||
color4: 'Technology Blue',
|
||||
color5: 'Sun Red',
|
||||
color6: 'Vibrant Orange',
|
||||
}
|
||||
},
|
||||
searchWay: {
|
||||
|
||||
@ -193,10 +193,13 @@ export default {
|
||||
speedUnit: '速度單位',
|
||||
administrativeArea: '行政區劃',
|
||||
skinList: {
|
||||
yingguangse: '熒光色',
|
||||
gonganlan: '科技藍',
|
||||
hong: '烈日紅'
|
||||
},
|
||||
color1: '標准藍',
|
||||
color2: '軍隊綠',
|
||||
color3: '湖光綠',
|
||||
color4: '科技藍',
|
||||
color5: '驕陽紅',
|
||||
color6: '活力橙',
|
||||
}
|
||||
},
|
||||
searchWay: {
|
||||
title: '搜索方式',
|
||||
|
||||
@ -211,27 +211,6 @@ const bottomMenuList = ref([
|
||||
availablePort.value +
|
||||
"/" +
|
||||
"GEMarker1/A-ablu-blank.png",
|
||||
},
|
||||
attribute: {
|
||||
goods: {
|
||||
content: [
|
||||
{
|
||||
id: 1,
|
||||
name: '物资1',
|
||||
cnt: 10
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: '物资2',
|
||||
cnt: 10
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: '物资3',
|
||||
cnt: 10
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div class="head_box">
|
||||
<!-- <span class="head_title">实景三维电子沙盘系统</span> -->
|
||||
<!-- <headSvg style="width: 100%;height: 100%;"></headSvg> -->
|
||||
<img width="100%" height="100%" :src="`../../../src/assets/images/theme/${skinInfo}/head.png`" alt="" />
|
||||
<img width="100%" height="100%" :src="headImg" alt="" />
|
||||
</div>
|
||||
<div class="dateTime">
|
||||
<span>{{ date.hms }}</span>
|
||||
@ -27,6 +27,32 @@ import { useI18n } from 'vue-i18n'
|
||||
import setTool from './components/setTool/setTool.vue'
|
||||
import weather from './components/weather/index.vue'
|
||||
import headSvg from './components/head_svg.vue'
|
||||
import color1 from '@/assets/images/theme/color1/head.png'
|
||||
import color2 from '@/assets/images/theme/color2/head.png'
|
||||
import color3 from '@/assets/images/theme/color3/head.png'
|
||||
import color4 from '@/assets/images/theme/color4/head.png'
|
||||
import color5 from '@/assets/images/theme/color5/head.png'
|
||||
import color6 from '@/assets/images/theme/color6/head.png'
|
||||
|
||||
const headImg = computed(() => {
|
||||
switch (skinInfo.value) {
|
||||
case 'color1':
|
||||
return color1
|
||||
case 'color2':
|
||||
return color2
|
||||
case 'color3':
|
||||
return color3
|
||||
case 'color4':
|
||||
return color4
|
||||
case 'color5':
|
||||
return color5
|
||||
case 'color6':
|
||||
return color6
|
||||
default:
|
||||
return color1
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
const skinInfo = ref(JSON.parse(localStorage.getItem("systemSetting") || '{}').skinInfo || 'color1')
|
||||
|
||||
|
||||
@ -93,7 +93,7 @@
|
||||
<div class="td" style="width: 80px; flex: 0 80px; min-width: 80px">{{ item.type }}</div>
|
||||
<div class="td" style="width: 126px; flex: 0 126px; min-width: 126px">{{ item.ip }}</div>
|
||||
<div class="td" style="width: 80px; flex: 0 80px; min-width: 80px">{{ item.port }}</div>
|
||||
<div class="td" style="width: 80px; flex: 0 80px; min-width: 80px">{{ item.userName }}</div>
|
||||
<div class="td" style="width: 80px; flex: 0 80px; min-width: 80px">{{ item.username }}</div>
|
||||
<div class="td">{{ item.password }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -229,6 +229,7 @@
|
||||
import { ref } from 'vue'
|
||||
import { inject } from 'vue'
|
||||
import { deviceApi } from '@/api/deviceManage'
|
||||
import { MaterialApi } from '@/api/material'
|
||||
|
||||
let ipcRenderer;
|
||||
if (window && window.process && window.process.type === 'renderer') {
|
||||
@ -281,37 +282,15 @@ const goodsFilter = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
const goodsSelect = (page) => {
|
||||
allGoodsList.value = [
|
||||
// {
|
||||
// id: '1',
|
||||
// name: '物资1'
|
||||
// },
|
||||
// {
|
||||
// id: '2',
|
||||
// name: '物资2'
|
||||
// },
|
||||
// {
|
||||
// id: '3',
|
||||
// name: '物资3'
|
||||
// },
|
||||
// {
|
||||
// id: '4',
|
||||
// name: '物资4'
|
||||
// },
|
||||
// {
|
||||
// id: '5',
|
||||
// name: '物资5'
|
||||
// },
|
||||
// {
|
||||
// id: '6',
|
||||
// name: '物资6'
|
||||
// },
|
||||
// {
|
||||
// id: '7',
|
||||
// name: '物资7'
|
||||
// }
|
||||
]
|
||||
const goodsSelect = async (page) => {
|
||||
let formData = new FormData()
|
||||
formData.append('pageNum', 1)
|
||||
formData.append('pageSize', 999999)
|
||||
formData.append('name', goodsKeywords.value)
|
||||
const res = await MaterialApi.getList(formData)
|
||||
if (res.code === 200) {
|
||||
allGoodsList.value = res.data.records
|
||||
}
|
||||
for (let i = props.entityOptions.attributeGoods.length - 1; i >= 0; i--) {
|
||||
let flag = false
|
||||
for (let m = 0; m < allGoodsList.value.length; m++) {
|
||||
|
||||
@ -588,7 +588,7 @@ export const useTree = () => {
|
||||
(window as any).pressModelEntities = new Map();
|
||||
for (let i = res.data.list.length - 1; i >= 0; i--) {
|
||||
if (!res.data.list[i].id) {
|
||||
// res.data.splice(i, 1);
|
||||
// res.data.list.splice(i, 1);
|
||||
res.data.list[i].id = generateRandomString(20, false)
|
||||
}
|
||||
if (res.data.list[i].sourceType == "pressModel") {
|
||||
|
||||
Reference in New Issue
Block a user