|
@@ -226,6 +226,7 @@
|
|
|
@cancel="updateDialogVisible=false"
|
|
|
@confirm="getRequirementById();updateDialogVisible=false"
|
|
|
/>
|
|
|
+ <task-create v-if="createTaskDialogVisible" ref="task_createdUpdata" />
|
|
|
</el-container>
|
|
|
</template>
|
|
|
|
|
@@ -246,12 +247,14 @@ import RequirementChart from '@/components/chart/index.vue'
|
|
|
import RequirementUpdate from '@/views/projectManage/requirement/list/create.vue'
|
|
|
import Gantt from '@/views/gantta/gantta'
|
|
|
import dateUtil from '@/utils/dateUtil.js'
|
|
|
+import TaskCreate from '@/views/projectManage/dialog_vue'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
RequirementChart,
|
|
|
RequirementUpdate,
|
|
|
- Gantt
|
|
|
+ Gantt,
|
|
|
+ TaskCreate
|
|
|
},
|
|
|
props: {
|
|
|
id: {
|
|
@@ -261,6 +264,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ createTaskDialogVisible: false,
|
|
|
ganttVersions: {},
|
|
|
ganttTableData: null,
|
|
|
loading: {
|
|
@@ -673,7 +677,10 @@ export default {
|
|
|
})
|
|
|
.catch(() => {})
|
|
|
},
|
|
|
- createTask() {},
|
|
|
+ createTask() {
|
|
|
+ this.createTaskDialogVisible = true
|
|
|
+ this.$nextTick(() => { this.$refs.task_createdUpdata.init(3, this.id) })
|
|
|
+ },
|
|
|
updateRequirementStatus(status) {
|
|
|
const modifier = localStorage.getItem('username')
|
|
|
updateRequirementStatus({ id: this.id, status: status.code, modifier: modifier }).then(
|