|
@@ -3016,7 +3016,10 @@
|
|
|
for(var i in newFrom) {
|
|
for(var i in newFrom) {
|
|
|
const { domains, createDate } = newFrom[i]
|
|
const { domains, createDate } = newFrom[i]
|
|
|
for(var j in domains) {
|
|
for(var j in domains) {
|
|
|
- if(domains[j].projectId && !domains[j].groupId) {
|
|
|
|
|
|
|
+ if (domains[j].isPublic) {
|
|
|
|
|
+ console.log('有公共项目');
|
|
|
|
|
+ }
|
|
|
|
|
+ if(domains[j].projectId && !(this.user.company.nonProjectSimple==1 && domains[j].isPublic) && !domains[j].groupId) {
|
|
|
arrList.push({
|
|
arrList.push({
|
|
|
dateTime: createDate,
|
|
dateTime: createDate,
|
|
|
projectName: domains[j].projectName,
|
|
projectName: domains[j].projectName,
|
|
@@ -3153,6 +3156,7 @@
|
|
|
progress: 100,
|
|
progress: 100,
|
|
|
projectId: '',
|
|
projectId: '',
|
|
|
projectName: '',
|
|
projectName: '',
|
|
|
|
|
+ isPublic: 0,
|
|
|
state: 2,
|
|
state: 2,
|
|
|
workingTime: 8,
|
|
workingTime: 8,
|
|
|
worktimeList: []
|
|
worktimeList: []
|
|
@@ -3170,7 +3174,7 @@
|
|
|
const {
|
|
const {
|
|
|
id,
|
|
id,
|
|
|
endTime, startTime, content, groupId, groupName,
|
|
endTime, startTime, content, groupId, groupName,
|
|
|
- projectAuditorId, projectAuditorName, projectId,
|
|
|
|
|
|
|
+ projectAuditorId, projectAuditorName, projectId, isPublic,
|
|
|
projectName, state, taskId, taskName, overtimeHours,
|
|
projectName, state, taskId, taskName, overtimeHours,
|
|
|
stage, taskGroups, isOvertime, workingTime, subProjectId, progress,
|
|
stage, taskGroups, isOvertime, workingTime, subProjectId, progress,
|
|
|
multiDegrId, degreeId, degreeList, customText
|
|
multiDegrId, degreeId, degreeList, customText
|
|
@@ -3200,7 +3204,7 @@
|
|
|
let newObj = {
|
|
let newObj = {
|
|
|
...objectItem, id,
|
|
...objectItem, id,
|
|
|
endTime, startTime, content, groupId, groupName,
|
|
endTime, startTime, content, groupId, groupName,
|
|
|
- projectAuditorId, projectAuditorName, projectId,
|
|
|
|
|
|
|
+ projectAuditorId, projectAuditorName, projectId,isPublic,
|
|
|
projectName, state, taskId, taskName, overtimeHours,
|
|
projectName, state, taskId, taskName, overtimeHours,
|
|
|
stage, taskGroups, workingTime, subProjectId, progress,
|
|
stage, taskGroups, workingTime, subProjectId, progress,
|
|
|
isOvertime: isOvertime == 1 ? true : false,
|
|
isOvertime: isOvertime == 1 ? true : false,
|
|
@@ -3231,9 +3235,9 @@
|
|
|
let newArrItem = JSON.parse(JSON.stringify(arrItem))
|
|
let newArrItem = JSON.parse(JSON.stringify(arrItem))
|
|
|
const { domains } = newArrItem
|
|
const { domains } = newArrItem
|
|
|
for(let i in domains) {
|
|
for(let i in domains) {
|
|
|
- const { projectId, projectName, stage, groupId, groupName, degreeId } = domains[i]
|
|
|
|
|
|
|
+ const { projectId, projectName,isPublic, stage, groupId, groupName, degreeId } = domains[i]
|
|
|
if(projectId) {
|
|
if(projectId) {
|
|
|
- this.fZr({ projectId, projectName }, 0, true, i)
|
|
|
|
|
|
|
+ this.fZr({ projectId, projectName, isPublic }, 0, true, i)
|
|
|
// if(timeType.customDegreeActive == 1) {
|
|
// if(timeType.customDegreeActive == 1) {
|
|
|
// this.dimension(projectId, 0, true, timeType.customDegreeMultiple, i)
|
|
// this.dimension(projectId, 0, true, timeType.customDegreeMultiple, i)
|
|
|
// }
|
|
// }
|