diff --git a/src/views/system/Dictionary/components/Left.vue b/src/views/system/Dictionary/components/Left.vue
index e80645bf..4d6c7d4a 100644
--- a/src/views/system/Dictionary/components/Left.vue
+++ b/src/views/system/Dictionary/components/Left.vue
@@ -12,10 +12,10 @@
-
+
-
{{ item.name }}
+
{{ item.name }}
updateDic(item.data)">
@@ -37,10 +37,12 @@
import { getDicList ,deleteDictionary,addDictionary} from '@/api/system/dictionary';
import Save from './save/index.vue'
import { onlyMessage } from '@/utils/comm';
+const emit = defineEmits(['selectData'])
const saveShow = ref(false)
const addType = ref('add')
const listData = ref([])
const editData = ref()
+const selectedKeys = ref([])
const showSave = () =>{
saveShow.value = true
addType.value = 'add'
@@ -96,6 +98,16 @@ const updateDic = (data:any)=>{
}
})
}
+/**
+ * 切换选中字典
+ */
+const selectDic = (selectKeys:any)=>{
+ selectedKeys.value = selectKeys
+ const selectData = listData.value.filter((item:any)=>{
+ return item.id = selectKeys[0]
+ })[0]
+ emit('selectData',selectData)
+}
onMounted(()=>{
queryData()
})
@@ -110,5 +122,8 @@ onMounted(()=>{
.treeItem{
display: flex;
justify-content: space-between;
+ .itemText{
+ line-height: 32px
+ }
}
\ No newline at end of file
diff --git a/src/views/system/Dictionary/components/Right/index.vue b/src/views/system/Dictionary/components/Right/index.vue
new file mode 100644
index 00000000..597c37f2
--- /dev/null
+++ b/src/views/system/Dictionary/components/Right/index.vue
@@ -0,0 +1,27 @@
+
+
+
+
字典ID:{{ data.id }}
+
说明:{{ data.describe }}
+
创建日期:{{ data.name }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/system/Dictionary/index.vue b/src/views/system/Dictionary/index.vue
index 4e272aaf..7081e43d 100644
--- a/src/views/system/Dictionary/index.vue
+++ b/src/views/system/Dictionary/index.vue
@@ -3,9 +3,11 @@
@@ -13,6 +15,11 @@