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