This commit is contained in:
2025-09-25 16:59:22 +08:00
5 changed files with 18 additions and 15 deletions

View File

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

View File

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

View File

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

View File

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

View File

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