MrShi
2024-02-05 5019ed6016b47221321bf395cd102dc4b51b4724
platform/src/components/system/role/OperaRoleWindow.vue
@@ -35,7 +35,8 @@
        id: null,
        code: '',
        name: '',
        remark: ''
        remark: '',
        type: '',
      },
      // 验证规则
      rules: {
@@ -49,13 +50,14 @@
    }
  },
  methods: {
    open (title, target) {
    open (title, target, type) {
      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
@@ -66,6 +68,7 @@
        for (const key in this.form) {
          this.form[key] = target[key]
        }
        this.form.type = type
      })
    },
    confirm () {