MrShi
2024-02-22 8d7bb4ac830444afde480a588e99952105ea8ede
platform/src/components/system/role/OperaRoleWindow.vue
@@ -35,8 +35,7 @@
        id: null,
        code: '',
        name: '',
        remark: '',
        type: '',
        remark: ''
      },
      // 验证规则
      rules: {
@@ -50,14 +49,13 @@
    }
  },
  methods: {
    open (title, target, type) {
    open (title, target) {
      this.title = title
      this.visible = true
      // 新建
      if (target == null) {
        this.$nextTick(() => {
          this.$refs.form.resetFields()
          this.form.type = type
          this.form[this.configData['field.id']] = null
        })
        return
@@ -68,7 +66,6 @@
        for (const key in this.form) {
          this.form[key] = target[key]
        }
        this.form.type = type
      })
    },
    confirm () {