index.js 624 Bytes
import { log } from "bpmn-js-token-simulation"

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