Blame view

src/views/ywbl/mixin/index.js 492 Bytes
xiaomiao committed
1

2 3 4
/*
 * @Description:
 * @Autor: renchao
5
 * @LastEditTime: 2023-08-30 13:51:05
6 7 8 9 10
 */
export default {
  watch: {
    'ruleForm.sldy.gyfs': {
      handler: function (val, oldVal) {
11
        if (val == '0' && this.ruleForm.qlrList.length > 1 && oldVal) {
12 13 14 15 16 17 18 19 20
          this.ruleForm.sldy.gyfs = oldVal
          this.$message({
            message: '单独所有只能选择一个,请先删除再切换',
            type: 'warning'
          })
        }
      },
      immediate: true
    }
21
  }
22
}