This commit is contained in:
zh
2025-09-25 16:34:21 +08:00
parent 7b83062b90
commit 8a2c0b42ef
5 changed files with 18 additions and 15 deletions

View File

@ -192,6 +192,7 @@ const closeDialog = () => {
modelType.value = ''
dialogVisible.value = false
}
//@ts-ignore
const addType = () => {
if (!modelType.value) {
return ElMessage.warning('请输入军标类型名称')
@ -369,7 +370,7 @@ const allowDrag = (draggingNode: Node) => {
//拖拽结束
//---------------------查看缩略图--------------------
var showImageRow = null
var showImageRow:any = null
const showImage = (row: any) => {
showImageRow = row
eventBus.emit('imagePopDialog', row)
@ -468,7 +469,7 @@ const handleMenuCommand = (command: string) => {
}
}
const handleTypeClick = (row: TypeNode) => {
const handleTypeClick = (row: any) => {
getModelListByType(row.id)
currentTypeId.value = row.$treeNodeId
// // 模拟根据类型ID加载模型数据
@ -635,7 +636,7 @@ const getNamefromPath = (path) => {
return name
}
const handleDelete = (row: ModelItem) => {
const handleDelete = (row: any) => {
ElMessageBox.confirm('是否删除数据?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',

View File

@ -478,7 +478,7 @@ const handleMenuCommand = (command: string) => {
}
}
const handleTypeClick = (row: TypeNode) => {
const handleTypeClick = (row: any) => {
getModelListByType(row.id)
currentTypeId.value = row.$treeNodeId
// // 模拟根据类型ID加载模型数据

View File

@ -233,6 +233,7 @@ const closeDialog = () => {
modelType.value = ''
dialogVisible.value = false
}
//@ts-ignore
const addType = () => {
if (!modelType.value) {
return ElMessage.warning('请输入图标类型名称')
@ -437,7 +438,7 @@ const allowDrag = (draggingNode: Node) => {
//拖拽结束
//---------------------查看缩略图--------------------
var showImageRow = null
var showImageRow:any = null
const showImage = (row: any) => {
showImageRow = row
eventBus.emit('imagePopDialog', row)
@ -550,8 +551,8 @@ const handleMenuCommand = (command: string) => {
}
}
var clickTreeNode = null
const handleTypeClick = (row: TypeNode) => {
var clickTreeNode:any = null
const handleTypeClick = (row: any) => {
getModelListByType(row.id)
currentTypeId.value = row.$treeNodeId
clickTreeNode = row
@ -602,7 +603,7 @@ const handleRenameType = (row: TypeNode) => {
dialogVisible.value = true
}
var clickPhotoRow = null
var clickPhotoRow:any = null
const editPhotoName = (row) => {
dialogTitle.value = '图标重命名'
modelType.value = row.iconName
@ -727,7 +728,7 @@ const getNamefromPath = (path) => {
return name
}
const handleDelete = (row: ModelItem) => {
const handleDelete = (row: any) => {
ElMessageBox.confirm('是否删除数据?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -746,8 +747,8 @@ const handleDelete = (row: ModelItem) => {
.catch(() => {})
}
//立体图标、普通图标
let threePhoto = []
let ordinaryPhoto = []
let threePhoto:any = []
let ordinaryPhoto:any = []
const setPhotoList = () => {
$sendElectronChanel('requireGEMarkerName', {

View File

@ -129,7 +129,7 @@ interface Category {
}
// 模拟数据
const categories = ref<Category[]>([])
const categories = ref<any>([])
const activeTab = ref('0')
const galleryRef = ref<HTMLElement>()
@ -243,7 +243,7 @@ const toggleExpand = (row: any) => {
// loadModelsByType(row.id)
}
const handleTypeClick = (row: TypeNode) => {
const handleTypeClick = (row: any) => {
getModelListByType(row.id)
currentTypeId.value = row.$treeNodeId
}
@ -308,7 +308,7 @@ const renderModel = async (model) => {
cusUpdateNode({ id: params.id, sourceName: params.name, params: JSON.stringify(params) })
})
let DbOption = {
let DbOption:any = {
params: option,
id,
sourceName: model.militaryName,
@ -399,6 +399,7 @@ const close = () => {
}
const setting = () => {
isShowPup.value = false
// @ts-ignore
eventBus.emit('openGraphSetting', (true, isSetting))
}

View File

@ -243,7 +243,7 @@ const toggleExpand = (row: any) => {
}
const addType = ref('')
const handleTypeClick = (row: TypeNode) => {
const handleTypeClick = (row: any) => {
getModelListByType(row.id)
currentTypeId.value = row.$treeNodeId
}