index.js 518 Bytes
/*
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-08-01 18:05:25
 */
export default {
  data () {
    return {
    }
  },
  watch: {
    'ruleForm.sldy.gyfs': {
      handler: function (val, oldVal) {
        if (val == '0' && this.ruleForm.qlrList.length > 1) {
          this.ruleForm.sldy.gyfs = oldVal
          this.$message({
            message: '单独所有只能选择一个,请先删除再切换',
            type: 'warning'
          })
        }
      },
      immediate: true
    }
  },
}