修改
This commit is contained in:
@ -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.
19
src/renderer/src/assets/basis/basis_transcoder.js
Normal file
19
src/renderer/src/assets/basis/basis_transcoder.js
Normal file
File diff suppressed because one or more lines are too long
BIN
src/renderer/src/assets/basis/basis_transcoder.wasm
Normal file
BIN
src/renderer/src/assets/basis/basis_transcoder.wasm
Normal file
Binary file not shown.
@ -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 = []
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@ -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 = []
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
@ -45,6 +45,7 @@
|
||||
max="100"
|
||||
min="0"
|
||||
step="0.01"
|
||||
disabled
|
||||
v-model="progressVal"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user