@@ -324,6 +482,8 @@ const registerModal = ref();
const treeData = ref
([]);
const userStore = useUserStore();
const isShowDM = ref(false)//是否展示指令库功能
+const selectedKeys=ref([]);
+const openKeys=ref([]);
//注册table数据
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
@@ -383,6 +543,16 @@ const emotionTagOpen = ref(false)//情绪标签抽屉
const mainOrgCode = ref()//指令库编码
const filterIzEnabled = ref('enabled')//筛选全部/已启用
+function onOpenChange(record: string[]) {
+ console.log("🚀 ~ onOpenChange ~ record:", record)
+ selectedKeys.value = record
+ // const latestOpenKey = record.find(key => state.openKeys.indexOf(key) === -1);
+ // if (state.rootSubmenuKeys.indexOf(latestOpenKey!) === -1) {
+ // state.openKeys = openKeys;
+ // } else {
+ // state.openKeys = latestOpenKey ? [latestOpenKey] : [];
+ // }
+ }
/**
* 高级查询事件
*/
@@ -831,6 +1001,10 @@ function stopInstruction(data) {
}
});
}
+function editInstruction(data) {
+ insRegisterModal.value.disableSubmit = false;
+ insRegisterModal.value.edit(data);
+}
//新增服务类别
function addCategory(data) {
catRegisterModal.value.disableSubmit = false;
@@ -938,6 +1112,7 @@ function menuItems(data) {
if (data.level === 1) {
const items = [
{ key: 'addIns', label: '新增分类标签', icon: 'ant-design:plus-outlined', canAdd: true, action: addInstruction },
+
]
if (data.canAdd) {
items.push({ key: 'addCat', label: '新增服务类别', icon: 'ant-design:plus-outlined', canAdd: data.canAdd, action: addCategory })
@@ -947,6 +1122,7 @@ function menuItems(data) {
} else if (data.izEnabled === '0') {
items.push({ key: 'stopIns', label: '停用分类标签', icon: 'ant-design:stop-outlined', canAdd: true, action: stopInstruction })
}
+ items.push({ key: 'editIns', label: '修改图标', icon: 'ant-design:edit-outlined', canAdd: true, action: editInstruction },)
return items
}
else if (data.level === 2) {
@@ -1175,4 +1351,18 @@ audio::-webkit-media-controls-time-remaining-display {
height: 81.5vh;
}
}
+:deep(.ant-menu-item-selected){
+ color: #4b4b4b !important;
+}
+:deep(.ant-menu-submenu-title){
+ color: #4b4b4b !important;
+}
+.auto-wrap {
+ word-wrap: break-word; /* 长单词/URL换行 */
+ word-break: break-all; /* 更激进的换行策略 */
+ white-space: normal; /* 默认换行行为 */
+ line-height: 20px !important;
+ display: inline flow-root;
+ padding-top: 10px;
+}
diff --git a/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue b/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue
index 96e92de..38d307c 100644
--- a/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue
+++ b/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue
@@ -1,6 +1,6 @@
-
+
-
-
-
- 暂无文件
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
点击或者拖拽上传
+
+

+
+
+ 文件大小不超过10MB
+ |
+
+
+ 这里是格式说明的具体内容
+
+
+
+ 格式说明
+
+
+
+
+
-
-
-
-
+
+
+
+
点击或者拖拽上传
+
+

+
+
+ 文件大小不超过10MB
+ |
+
+
+ 这里是格式说明的具体内容
+
+
+
+ 格式说明
+
+
+
+
+
+
+
+
+
+
点击或者拖拽上传
+
+

+
+
+ 文件大小不超过10MB
+ |
+
+
+ 这里是格式说明的具体内容
+
+
+
+ 格式说明
+
+
+
+
+
+
+
+
+
+
点击或者拖拽上传
+
+

+
+
+ 文件大小不超过10MB
+ |
+
+
+ 这里是格式说明的具体内容
+
+
+
+ 格式说明
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 暂无文件
-
-
-
-
-
-
-
-
-
- 暂无文件
-
-
-
-
-
-
- 暂无文件
-
-
-
-
+
+
+