From 81d8c92351a32c36da94e1f28af7f7dbddb0a837 Mon Sep 17 00:00:00 2001 From: libing Date: Tue, 12 Dec 2023 20:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E7=BC=96=E8=BE=91=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisCountry/index.vue | 72 ++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/views/emis/emisCountry/index.vue b/src/views/emis/emisCountry/index.vue index 5827989e..9e914813 100644 --- a/src/views/emis/emisCountry/index.vue +++ b/src/views/emis/emisCountry/index.vue @@ -20,8 +20,50 @@ :filter-node-method="filterNode" ref="tree" default-expand-all + node-key="id" + highlight-current @node-click="handleNodeClick" /> + + + + + @@ -379,6 +421,13 @@ export default { this.domainIdsTree.push(domainTree); //this.getList(); }); + }, + mouseenter(data) { + alert(11); + this.$set(data, 'show', true) + }, + mouseleave(data) { + this.$set(data, 'show', false) }, // 节点单击事件 handleNodeClick(data) { @@ -389,6 +438,29 @@ export default { // this.currentAppName=data.label; this.handleQuery(); // } + }, + handleAddDictType(data) { + if(data != undefined){ + this.currentParentDictId = data.id + } + this.openDictType = true; + this.titleDictType = "添加区域"; + }, + handleUpdateDictType(data) { + this.currentDictId = data.id || this.ids; + this.openDictType = true; + this.titleDictType = "修改区域"; + }, + handleDeleteDictType(data) { + console.log(data) + const dictIds = data.id || this.ids; + this.$modal.confirm('是否确认删除字典编号为"' + dictIds + '"的数据项?').then(function() { + return delEmisContinent(dictIds); + }).then(() => { + console.log("删除成功") + this.getContinentList(); + this.$modal.msgSuccess("删除成功"); + }).catch(() => {}); }, saveCacheDomainId(continentId){ var jObj = {