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