|
@@ -1309,7 +1309,16 @@ import timetoolVue from '../timetool/timetool.vue';
|
|
this.clickIndex = i;
|
|
this.clickIndex = i;
|
|
// var proId = this.form.domains[this.clickIndex].projectId
|
|
// var proId = this.form.domains[this.clickIndex].projectId
|
|
// this.getTaskList(proId)
|
|
// this.getTaskList(proId)
|
|
- this.form.domains[this.clickIndex].showPickerTask = true;
|
|
|
|
|
|
+ // console.log(this.form.domains[this.clickIndex].taskList);
|
|
|
|
+ this.$toast.clear();
|
|
|
|
+ if(!this.form.domains[this.clickIndex].taskList){
|
|
|
|
+ this.$toast.fail('当前项目暂无可选的任务/里程碑');
|
|
|
|
+ }else if(this.form.domains[this.clickIndex].taskList.length == 0){
|
|
|
|
+ this.$toast.fail('当前项目暂无可选的任务/里程碑');
|
|
|
|
+ }else{
|
|
|
|
+ this.form.domains[this.clickIndex].showPickerTask = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
},
|
|
},
|
|
choseTask(value, index) {
|
|
choseTask(value, index) {
|