|
@@ -806,8 +806,8 @@ export default {
|
|
|
}).catch(err => { })
|
|
|
},
|
|
|
|
|
|
- getRecentlyProject() {
|
|
|
- this.$axios.post('/project/nearProject', {})
|
|
|
+ getRecentlyProject(userId) {
|
|
|
+ this.$axios.post('/project/nearProject', {userId: userId})
|
|
|
.then(res => {
|
|
|
if (res.code == 'ok') {
|
|
|
this.integrationProjectList = res.data;
|
|
@@ -901,12 +901,12 @@ export default {
|
|
|
if(!this.substitute) {
|
|
|
this.form.domains[this.auditor.index][this.auditor.auditorIndex] = this.auditor.item
|
|
|
}
|
|
|
+ this.auditorShow = false
|
|
|
if(this.substitute) {
|
|
|
const { id, name } = this.auditor.item
|
|
|
this.fillingAgent = { id, name }
|
|
|
+ this.getProject(this.fillingAgent.id);
|
|
|
}
|
|
|
- this.auditorShow = false
|
|
|
- console.log('searchAuditor');
|
|
|
},
|
|
|
getAllUsersList() {
|
|
|
this.$axios.post('/user/getSimpleActiveUserList', {})
|
|
@@ -958,8 +958,8 @@ export default {
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
// 获取项目
|
|
|
- getPeoject() {
|
|
|
- this.$axios.post("/project/getProjectList", { forReport: 1 })
|
|
|
+ getProject(userId) {
|
|
|
+ this.$axios.post("/project/getProjectList", { forReport: 1, userId: userId})
|
|
|
.then(res => {
|
|
|
if (res.code == "ok") {
|
|
|
for (var i in res.data) {
|
|
@@ -971,7 +971,7 @@ export default {
|
|
|
this.project = res.data;
|
|
|
this.projectss = this.projectss.filter(p => p.status == 1 || p.status == 4);
|
|
|
this.proads = res.data
|
|
|
- this.getRecentlyProject()
|
|
|
+ this.getRecentlyProject(userId)
|
|
|
} else {
|
|
|
this.$toast.fail('获取失败:' + res.msg);
|
|
|
}
|
|
@@ -1485,29 +1485,6 @@ export default {
|
|
|
for (var i = 0; i < len; i++) { s = '0' + s; }
|
|
|
return s;
|
|
|
},
|
|
|
-
|
|
|
- // 获取项目
|
|
|
- getProject() {
|
|
|
- const toast = this.$toast.loading({
|
|
|
- forbidClick: true,
|
|
|
- duration: 0
|
|
|
- });
|
|
|
- this.$axios.post("/project/getProjectList", {})
|
|
|
- .then(res => {
|
|
|
- if (res.code == "ok") {
|
|
|
- this.$toast.clear();
|
|
|
-
|
|
|
-
|
|
|
- // if (this.project.length > 0) {
|
|
|
- // console.log('this.project[0].id=='+this.project[0].id);
|
|
|
- // this.getTaskList(this.project[0].id);
|
|
|
- // }
|
|
|
- } else {
|
|
|
- this.$toast.clear();
|
|
|
- this.$toast.fail('获取失败:' + res.msg);
|
|
|
- }
|
|
|
- }).catch(err => { this.$toast.clear(); });
|
|
|
- },
|
|
|
getAIReport(createDate) {
|
|
|
const toast = this.$toast.loading({
|
|
|
forbidClick: true,
|
|
@@ -2797,8 +2774,7 @@ export default {
|
|
|
} else if (ua.indexOf("micromessenger") > 0) {
|
|
|
this.isWX = true;
|
|
|
}
|
|
|
- this.getPeoject() // 获取项目
|
|
|
- // console.log('mounted');
|
|
|
+ this.getProject() //获取项目
|
|
|
this.getReportBasecostList()
|
|
|
//获取传递过来的日期
|
|
|
var passDate = this.$route.query.date;
|
|
@@ -2806,7 +2782,6 @@ export default {
|
|
|
this.form.createDate = this.$route.query.date;
|
|
|
}
|
|
|
|
|
|
- // this.getProject();
|
|
|
this.getReport();
|
|
|
this.getAllUsersList()
|
|
|
this.getTimeType();
|