|
@@ -45,11 +45,10 @@
|
|
|
<el-popover placement="bottom" title="开发负责人" width="400" trigger="click">
|
|
|
<div class="blueStr" />
|
|
|
<search-people :value.sync="form_query.rqmtProposer" :clearable="false" :multiple="false" style="width: 100%;" @change="changeArea" />
|
|
|
- <el-input v-model="form_query.rqmtProposer" placeholder="请输入内容" @input="search()" />
|
|
|
- <div v-for="(item, index) in memberIDAP" :key="index" class="Layout_space_between involveApp-top-bottom cursorPo">
|
|
|
- <span>{{ item.idap }}</span>
|
|
|
- <span>{{ item.name }}</span>
|
|
|
- <span>{{ item.deptName }}</span>
|
|
|
+ <div class="Layout_space_between involveApp-top-bottom">
|
|
|
+ <span>{{ taskAdip.idap }}</span>
|
|
|
+ <span>{{ taskAdip.name }}</span>
|
|
|
+ <span>{{ taskAdip.deptName }}</span>
|
|
|
</div>
|
|
|
<span slot="reference" class="cursorPo">开发负责人:{{ scope.row.rdObject.name !== null? scope.row.rdObject.name: '无' }}</span>
|
|
|
</el-popover>
|
|
@@ -97,7 +96,7 @@
|
|
|
</div>
|
|
|
<div align="right" style="margin-top:20px;">
|
|
|
<el-button size="mini" @click="$refs.Simulation.click()">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="taskSyncScheduleToDpm(scope.row.id, taskDataList)">确 定</el-button>
|
|
|
</div>
|
|
|
<i slot="reference" class="el-icon-sort cursorPo deg" @click="getTaskList(scope.row)" />
|
|
|
</el-popover>
|
|
@@ -153,11 +152,10 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import searchPeople from '@/components/select/searchPeople'
|
|
|
-import { listByRequire, taskListAvailableDpmTask, taskSetTaskRelated, taskDeleteRelationship, taskShowRelatedDpmTask } from '@/api/requirement.js'
|
|
|
+import { listByRequire, taskListAvailableDpmTask, taskSetTaskRelated, taskDeleteRelationship, taskShowRelatedDpmTask, taskSyncScheduleToDpm } from '@/api/requirement.js'
|
|
|
import scheduleList from '@/views/projectManage/components/scheduleList.vue'
|
|
|
import '@/styles/PublicStyle/index.scss' // 通用css
|
|
|
import { configShowTaskStatusEnum } from '@/api/taskIndex'
|
|
|
-import { memberQueryMemberInfoByIDAPorName } from '@/api/projectIndex'
|
|
|
import { taskUpdate } from '@/api/taskIndex'
|
|
|
import schedule from '@/views/projectManage/schedule' // 排期锁定弹窗
|
|
|
import taskDialog from '@/views/projectManage/taskList/dialog/taskDialog' // 任务状态修改(已上线/已提测/已准出)
|
|
@@ -180,7 +178,7 @@ export default {
|
|
|
requirementId: Number(this.$route.query.id),
|
|
|
allStatus: [], // task状态
|
|
|
taskDataList: [], // 同步排期到望岳的任务
|
|
|
- memberIDAP: [],
|
|
|
+ taskAdip: {}, // 查询的负责人
|
|
|
tableData: [],
|
|
|
checkAlls: false,
|
|
|
taskIdObject: {},
|
|
@@ -274,6 +272,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ async taskSyncScheduleToDpm(id, data) {
|
|
|
+ const arr = []
|
|
|
+ data.map(item => arr.push(item.id))
|
|
|
+ const res = await taskSyncScheduleToDpm(arr, id)
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$refs.Simulation.click()
|
|
|
+ this.$message({ message: '同步排期成功', type: 'success', offset: 150 })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
async getDplList(taskId) {
|
|
|
const res = await taskListAvailableDpmTask(taskId)
|
|
|
if (res.code === 200) {
|
|
@@ -318,12 +326,6 @@ export default {
|
|
|
return 'cell-grey'
|
|
|
}
|
|
|
},
|
|
|
- async search(val) { // 人员搜索
|
|
|
- const res = await memberQueryMemberInfoByIDAPorName({ memberIDAP: val })
|
|
|
- if (res.code === 200) {
|
|
|
- this.memberIDAP = res.data
|
|
|
- }
|
|
|
- },
|
|
|
jump(url) {
|
|
|
window.open(url, '_blank')
|
|
|
},
|
|
@@ -394,7 +396,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
changeArea(value) {
|
|
|
- console.log(value, 'cdsncjds')
|
|
|
+ this.taskAdip = value
|
|
|
},
|
|
|
changeCheckout(rows) {
|
|
|
if (rows) {
|