|
@@ -208,12 +208,12 @@ checkList:[],
|
|
|
name: [
|
|
|
{ required: true, message: "任务标题不能为空", trigger: "blur" }
|
|
|
],
|
|
|
- assignedNum: [
|
|
|
- {
|
|
|
- validator: validatorNum,
|
|
|
- trigger: "blur"
|
|
|
- }
|
|
|
- ]
|
|
|
+ // assignedNum: [
|
|
|
+ // {
|
|
|
+ // validator: validatorNum,
|
|
|
+ // trigger: "blur"
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -282,10 +282,11 @@ checkList:[],
|
|
|
let checkList=((this.$refs.tree.getCheckedNodes()).filter(item=>{
|
|
|
return !item.hasOwnProperty('children');
|
|
|
}));
|
|
|
-
|
|
|
- checkList.forEach(item=>{
|
|
|
- item.value='';
|
|
|
- });
|
|
|
+ // let currentCheckList=[];
|
|
|
+ // checkList.forEach(item=>{
|
|
|
+ // item.value='';
|
|
|
+ // currentCheckList.push(item);
|
|
|
+ // });
|
|
|
this.checkList=checkList;
|
|
|
console.log(this.checkList);
|
|
|
this.assignedUsers = this.$refs.tree.getCheckedKeys(true);
|
|
@@ -306,7 +307,7 @@ checkList:[],
|
|
|
let total=0;
|
|
|
let reg = /^\d+$/;
|
|
|
let isValid=this.checkList.some(item=>{
|
|
|
- return !reg.test(item.value) && item.value != "";
|
|
|
+ return !reg.test(item.value) && item.value != ""&&item.value;
|
|
|
});
|
|
|
if(isValid){
|
|
|
this.$message.error( "分配数量只能为数字");
|