This commit is contained in:
2025-12-22 11:07:07 +08:00
parent 14c532b7a4
commit 51003a93bb
8 changed files with 38 additions and 1 deletions

View File

@ -1,6 +1,6 @@
server:
host: 127.0.0.1
port: 8859
port: 8809
path: C:\Users\Administrator\AppData\Roaming\dzsp_shijingjun_offline_Y_save
poi:
global:

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -502,6 +502,7 @@ const addModelDB = (path) => {
if (res.code == 0 || res.code == 200) {
ElMessage.success('导入成功')
modelList.value = []
currModelList.value = []
getModelList()
}
})
@ -668,7 +669,9 @@ const toggleExpand = (row: any) => {
// loadModelsByType(row.id)
contextMenu.visible && (contextMenu.visible = false)
}
let clickTypeId = null //存储点击数据,用来删除时更新右侧列表
const getModelListByType = (id) => {
clickTypeId = id
let formData = new FormData()
formData.append('militaryTypeId', id)
formData.append('name', photoName.value)
@ -835,6 +838,10 @@ const handleDeleteType = (row: TypeNode) => {
if (res.code == 0 || res.code == 200) {
ElMessage.success('删除成功')
getModelList()
if (row.id === clickTypeId) {
modelList.value = []
currModelList.value = []
}
}
})
})

View File

@ -551,6 +551,7 @@ const addModelDB = (path) => {
if (res.code == 0 || res.code == 200) {
ElMessage.success('导入成功')
modelList.value = []
currModelList.value = []
getModelList()
}
})
@ -889,6 +890,7 @@ const handleDeleteType = (row: TypeNode) => {
//如果删除当前选中数据 清空右侧列表
if (row.id === clickTypeId) {
modelList.value = []
currModelList.value = []
}
}
})

View File

@ -592,6 +592,8 @@ const addModelDB = (path) => {
PhotoApi.importModelDB(formData).then((res) => {
if (res.code == 0 || res.code == 200) {
ElMessage.success('导入成功')
modelList.value = []
currModelList.value = []
getModelList()
}
})
@ -760,12 +762,14 @@ const toggleExpand = (row: any) => {
// loadModelsByType(row.id)
contextMenu.visible && (contextMenu.visible = false)
}
let clickTypeId = null //存储点击数据,用来删除时更新右侧列表
const getModelListByType = async (id) => {
if (activeIndex.value === 0) {
modelList.value = threePhoto
} else if (activeIndex.value === 1) {
modelList.value = ordinaryPhoto
} else {
clickTypeId = id
let formData = new FormData()
formData.append('iconTypeId', id)
formData.append('name', photoName.value)
@ -924,6 +928,10 @@ const handleDeleteType = (row: TypeNode) => {
PhotoApi.delModelType(formData).then((res) => {
if (res.code == 0 || res.code == 200) {
ElMessage.success('删除成功')
if (row.id === clickTypeId) {
currModelList.value = []
modelList.value = []
}
getModelList()
}
})

View File

@ -45,6 +45,7 @@
max="100"
min="0"
step="0.01"
disabled
v-model="progressVal"
/>
</div>