|
@@ -562,6 +562,7 @@
|
|
|
<openDialog v-if="dialog_open" ref="task_createdUpdata" />
|
|
|
<requirement-create
|
|
|
title="新建需求"
|
|
|
+ :data="requirement"
|
|
|
:visible="createDialogVisible"
|
|
|
:info="searchInfo"
|
|
|
@cancel="createDialogVisible=false"
|
|
@@ -587,7 +588,7 @@ import {
|
|
|
} from '@/api/projectIndex'
|
|
|
import openDialog from '@/views/projectManage/dialog_vue'
|
|
|
import RequirementCreate from '@/views/projectManage/requirement/list/create'
|
|
|
-import { getRequirement, showRequirementEnum } from '@/api/requirement.js'
|
|
|
+import { showRequirementEnum } from '@/api/requirement.js'
|
|
|
export default {
|
|
|
components: {
|
|
|
openDialog,
|
|
@@ -741,22 +742,23 @@ export default {
|
|
|
project_Milepost: [],
|
|
|
get_Milepost_data: {}, // 点击原点数据
|
|
|
condition: '',
|
|
|
- noRequire: ''
|
|
|
+ noRequire: '',
|
|
|
+ requirement: {}
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.get_list()
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.showRequirementEnum().then(res => {
|
|
|
- this.getTableData()
|
|
|
- })
|
|
|
- },
|
|
|
methods: {
|
|
|
getTableData() {
|
|
|
- this.loading = true
|
|
|
- getRequirement(this.searchForm).then(res => {
|
|
|
- this.loading = false
|
|
|
+ var url = window.location.href // 获取url中"?"符后的字串
|
|
|
+ this.projectId = url.split('?id=')
|
|
|
+ return projectList({
|
|
|
+ id: Number(this.projectId[1]),
|
|
|
+ curIndex: this.curIndex,
|
|
|
+ pageSize: this.pageSize
|
|
|
+ }).then(res => {
|
|
|
+ this.requirement = res.data[0]
|
|
|
})
|
|
|
},
|
|
|
test2(item, e) {
|