From ada965001c31dae9abb1a6cbc55becfc9f4b6eaa Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期一, 05 八月 2024 11:10:12 +0800
Subject: [PATCH] 智能体管理的页面开发和功能开发

---
 src/views/authority/resource/index.vue |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/views/authority/resource/index.vue b/src/views/authority/resource/index.vue
index 38f1e06..2017ba2 100644
--- a/src/views/authority/resource/index.vue
+++ b/src/views/authority/resource/index.vue
@@ -79,7 +79,7 @@
         <a-form-item field="menuType" label="璧勬簮绫诲瀷">
           <a-select v-model="resourceform.menuType" :options="options" :field-names="fieldNames"
                     :style="{width:'320px'}"
-                    placeholder="璇烽�夋嫨"  />
+                    placeholder="璇烽�夋嫨" />
         </a-form-item>
         <a-form-item field="perms" label="璧勬簮鎺у埗鏉冮檺瀛楃">
           <a-input v-model="resourceform.perms" />
@@ -107,15 +107,15 @@
 // 0鐩綍 1鑿滃崟 2鎸夐挳
 let options = ref([
   {
-    key: "0",
+    key: "3",
     value: "鐩綍"
   },
   {
-    key: "1",
+    key: "0",
     value: "鑿滃崟"
   },
   {
-    key: "2",
+    key: "1",
     value: "鎸夐挳"
   }
 ]);
@@ -141,6 +141,20 @@
 
 const onIconClick = (nodeData) => {
   resourceform.value.parentId = nodeData.menuId;
+  resourceform.value.component = "";
+  resourceform.value.createTime = "";
+  resourceform.value.description = "";
+  resourceform.value.icon = "";
+  resourceform.value.menuId = "";
+  resourceform.value.menuName = "";
+  resourceform.value.menuType = "";
+  resourceform.value.orderNum = "0"
+  resourceform.value.parentName = nodeData.menuName;
+  resourceform.value.path = "";
+  resourceform.value.perms = "";
+  resourceform.value.status = "";
+  resourceform.value.syesourcetype = "";
+
   visible.value = true;
 };
 

--
Gitblit v1.8.0