|
@@ -76,6 +76,11 @@
|
|
<el-dropdown-item v-if="permissions.projectClassification">
|
|
<el-dropdown-item v-if="permissions.projectClassification">
|
|
<el-link type="primary" :underline="false" @click="showClfDialog = true">{{ $t('classificationmanagement') }}</el-link>
|
|
<el-link type="primary" :underline="false" @click="showClfDialog = true">{{ $t('classificationmanagement') }}</el-link>
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item v-if="user.companyId == '7536'">
|
|
|
|
+ <el-link type="primary" :underline="false" @click="qrCodeClickEvent()">
|
|
|
|
+ 二维码管理
|
|
|
|
+ </el-link>
|
|
|
|
+ </el-dropdown-item>
|
|
<el-dropdown-item v-if="user.timeType.mainProjectState == 1">
|
|
<el-dropdown-item v-if="user.timeType.mainProjectState == 1">
|
|
<el-link type="primary" :underline="false" @click="mainProjectDialog = true">{{ $t('masterprojectmanagement') }}</el-link>
|
|
<el-link type="primary" :underline="false" @click="mainProjectDialog = true">{{ $t('masterprojectmanagement') }}</el-link>
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
@@ -109,7 +114,7 @@
|
|
<el-link type="primary" :underline="false" @click="isganttshow = true">{{ $t('resourceallocation') }}</el-link>
|
|
<el-link type="primary" :underline="false" @click="isganttshow = true">{{ $t('resourceallocation') }}</el-link>
|
|
<!-- </router-link> -->
|
|
<!-- </router-link> -->
|
|
<el-dialog v-if="isganttshow" :visible.sync="isganttshow" width="90vw" top="3vh" style="height:96%" class="ganttdialog">
|
|
<el-dialog v-if="isganttshow" :visible.sync="isganttshow" width="90vw" top="3vh" style="height:96%" class="ganttdialog">
|
|
- <projectgantt></projectgantt>
|
|
|
|
|
|
+ <projectgantt ref="projectganttRef"></projectgantt>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
@@ -1754,6 +1759,13 @@
|
|
</el-link>
|
|
</el-link>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 二维码管理 -->
|
|
|
|
+ <el-dialog title="二维码管理" show-header="false" :visible.sync="qrCodeManagementVisable" top="60px" :close-on-click-modal="false" width="1200px">
|
|
|
|
+ <div>
|
|
|
|
+ <QrCodeManagement ref="qrCodeManagementRef"></QrCodeManagement>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
<!-- 选择人 -->
|
|
<!-- 选择人 -->
|
|
<DepartmentSelectionPersonnel :visible="batchProjectTaskParticipantVisible" @changeParticipant="changeTaskParticipantVisible" @submitParticipant="addProjectTaskParticipant"></DepartmentSelectionPersonnel>
|
|
<DepartmentSelectionPersonnel :visible="batchProjectTaskParticipantVisible" @changeParticipant="changeTaskParticipantVisible" @submitParticipant="addProjectTaskParticipant"></DepartmentSelectionPersonnel>
|
|
</section>
|
|
</section>
|
|
@@ -1793,6 +1805,7 @@ a {
|
|
import vueCascader from "@/components/cascader.vue"
|
|
import vueCascader from "@/components/cascader.vue"
|
|
import vueCascadeSelection from "@/components/cascadeSelection.vue"
|
|
import vueCascadeSelection from "@/components/cascadeSelection.vue"
|
|
import DepartmentSelectionPersonnel from "@/components/departmentSelectionPersonnel.vue"
|
|
import DepartmentSelectionPersonnel from "@/components/departmentSelectionPersonnel.vue"
|
|
|
|
+ import QrCodeManagement from './qrCodeManagement.vue'
|
|
|
|
|
|
// 尝试字段
|
|
// 尝试字段
|
|
import selectPersonnel from "@/components/selectPersonnel.vue"
|
|
import selectPersonnel from "@/components/selectPersonnel.vue"
|
|
@@ -1803,7 +1816,8 @@ a {
|
|
vueCascader,
|
|
vueCascader,
|
|
vueCascadeSelection,
|
|
vueCascadeSelection,
|
|
DepartmentSelectionPersonnel,
|
|
DepartmentSelectionPersonnel,
|
|
- selectPersonnel
|
|
|
|
|
|
+ selectPersonnel,
|
|
|
|
+ QrCodeManagement
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -2078,7 +2092,8 @@ a {
|
|
batchChangeStageDialogVisible: false,
|
|
batchChangeStageDialogVisible: false,
|
|
batchChangeStageLoading: false,
|
|
batchChangeStageLoading: false,
|
|
batchProjectTaskParticipantVisible: false,
|
|
batchProjectTaskParticipantVisible: false,
|
|
- batchDepartment: []
|
|
|
|
|
|
+ batchDepartment: [],
|
|
|
|
+ qrCodeManagementVisable: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
// 过滤器
|
|
// 过滤器
|
|
@@ -2121,6 +2136,15 @@ a {
|
|
},
|
|
},
|
|
filterText2(val) {
|
|
filterText2(val) {
|
|
this.$refs.chooseMembTree2.filter(val);
|
|
this.$refs.chooseMembTree2.filter(val);
|
|
|
|
+ },
|
|
|
|
+ '$route'(to, from) {
|
|
|
|
+ if (to.path === '/list') {
|
|
|
|
+ const { messageTaskId } = to.query
|
|
|
|
+ console.log(messageTaskId, '<======== messageTaskId')
|
|
|
|
+ if(messageTaskId && this.user.companyId == 876) {
|
|
|
|
+ this.openTheReviewPopUpWindowSeparately(messageTaskId)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
updated () {
|
|
updated () {
|
|
@@ -2130,6 +2154,19 @@ a {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ openTheReviewPopUpWindowSeparately(taskId) {
|
|
|
|
+ this.isganttshow = true
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ console.log(this.$refs.projectganttRef, ',=========== this.$refs.projectganttRef')
|
|
|
|
+ this.$refs.projectganttRef.parentLevelOpensPopUpWindowGantt({ taskId })
|
|
|
|
+ }, 300)
|
|
|
|
+ },
|
|
|
|
+ qrCodeClickEvent() {
|
|
|
|
+ this.qrCodeManagementVisable = true
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.$refs.qrCodeManagementRef.resetData()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
addProjectTaskParticipant(userList) {
|
|
addProjectTaskParticipant(userList) {
|
|
const userIds = userList.map(item => item.id).join(',')
|
|
const userIds = userList.map(item => item.id).join(',')
|
|
const projectIds = this.checkedProjectArr.map(a => a.id).join(',')
|
|
const projectIds = this.checkedProjectArr.map(a => a.id).join(',')
|
|
@@ -6277,6 +6314,11 @@ a {
|
|
if (this.user.timeType.projectManDay == 1) {
|
|
if (this.user.timeType.projectManDay == 1) {
|
|
this.getManDaySetting();
|
|
this.getManDaySetting();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ const { messageTaskId } = this.$route.query
|
|
|
|
+ if(this.user.companyId == 876 && messageTaskId) {
|
|
|
|
+ this.openTheReviewPopUpWindowSeparately(messageTaskId)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|