loulijun2021
2024-05-07 dc1879fd0713eed48b2c75af5f29a1085291d276
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