|
@@ -652,7 +652,29 @@ import timetoolVue from '../timetool/timetool.vue';
|
|
this.projectss = this.proads
|
|
this.projectss = this.proads
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ selectDegreeId(domain, index, domainItem, list) {
|
|
|
|
+ this.$axios.post("/report/defaultDegree", {
|
|
|
|
+ projectId: domain.id
|
|
|
|
+ })
|
|
|
|
+ .then(res => {
|
|
|
|
+ if(res.code == "ok") {
|
|
|
|
+ var arr = domainItem.wuduList
|
|
|
|
+ for(var i in arr) {
|
|
|
|
+ if(arr[i].id == res.data.id) {
|
|
|
|
+ domainItem.weiduName = arr[i].name
|
|
|
|
+ domainItem.degreeId = res.data.id
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ } else {
|
|
|
|
+ this.$toast.fail('获取失败:'+res.msg);
|
|
|
|
+ }
|
|
|
|
+ }).catch(err=> {this.$toast.clear();});
|
|
|
|
+ },
|
|
|
|
+
|
|
fZr(item,index) {
|
|
fZr(item,index) {
|
|
|
|
+
|
|
var domainItem = this.form.domains[this.clickIndex];
|
|
var domainItem = this.form.domains[this.clickIndex];
|
|
domainItem.projectId = item.id;
|
|
domainItem.projectId = item.id;
|
|
domainItem.projectName = item.projectName;
|
|
domainItem.projectName = item.projectName;
|
|
@@ -693,6 +715,14 @@ import timetoolVue from '../timetool/timetool.vue';
|
|
if (curProject && this.user.timeType.reportAuditType == 0) {
|
|
if (curProject && this.user.timeType.reportAuditType == 0) {
|
|
this.getProjectAuditorList(domainItem, index);
|
|
this.getProjectAuditorList(domainItem, index);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ console.log(item, '数据')
|
|
|
|
+ if(this.user.timeType.customDegreeActive == 1 && item) {
|
|
|
|
+ var that = this
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ that.selectDegreeId(item, index, that.form.domains[that.clickIndex])
|
|
|
|
+ }, 500)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//获取项目下的任务分组
|
|
//获取项目下的任务分组
|
|
getTaskGroups(domainItem, index) {
|
|
getTaskGroups(domainItem, index) {
|