From dc1879fd0713eed48b2c75af5f29a1085291d276 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 07 五月 2024 14:40:55 +0800
Subject: [PATCH] 1.文件替换

---
 src/views/systemSetting/encodingRules.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/views/systemSetting/encodingRules.vue b/src/views/systemSetting/encodingRules.vue
index 7efcb65..104f823 100644
--- a/src/views/systemSetting/encodingRules.vue
+++ b/src/views/systemSetting/encodingRules.vue
@@ -88,7 +88,7 @@
             sortable="custom"
           />
           <el-table-column
-            prop="type"
+            prop="Type"
             label="鑿滃崟绫诲瀷"
             sortable="custom"
           />
@@ -335,10 +335,11 @@
         customID: 'menucode',
         childrenProperty: 'children'
       })
-      this.menuOptions = this.menuOptionsAll.filter(i => i.type === this.dialogForm.type)
+      // this.menuOptions = this.menuOptionsAll.filter(i => i.Type === this.dialogForm.type)
+
     },
     radioChange() {
-      this.menuOptions = this.menuOptionsAll.filter(i => i.type === this.dialogForm.type)
+      this.menuOptions = this.menuOptionsAll.filter(i => i.Type === this.dialogForm.type)
     },
     async getEncodingRules() {
       const res = await EncodingRules(this.form)
@@ -374,8 +375,10 @@
       this.operation = operation
       this.dialogVisible = true
 
+
       this.$nextTick(() => {
-        this.dialogForm.type = row.type
+        this.dialogForm.type = row.Type
+        this.radioChange()
 
         let parentCode = ''
         this.menuOptions.forEach(item => {
@@ -387,7 +390,7 @@
             })
           }
         })
-
+        console.log(parentCode,row.menucode)
         this.$refs.cascader.checkedValue = [parentCode, row.menucode]
         this.dialogForm.rightcode = row.menucode
         this.dialogForm.incbit = row.incbit

--
Gitblit v1.9.3