Blame view

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