|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="children-task">
|
|
|
- <label v-if="isTitle">子任务<i class="el-icon-circle-plus child-add" @click="addChild()" /></label>
|
|
|
+ <label v-if="isTitle">子任务<i v-if="formData.level <= 2" class="el-icon-circle-plus child-add" @click="addChild()" /></label>
|
|
|
<div class="children-list">
|
|
|
<div v-for="(item,index) in childrenList" :id="'child' + id + index" :key="'child' + index" class="children-item">
|
|
|
<el-select
|
|
@@ -38,7 +38,7 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="select-people">
|
|
|
- <select-people :value.sync="item.owner" :init="!item.edit" @change="update()" />
|
|
|
+ <select-people :value.sync="item.owner" :init="!item.edit" @change="updateOwner(item)" />
|
|
|
</div>
|
|
|
<div class="child-control">
|
|
|
<el-popover
|
|
@@ -194,6 +194,12 @@ export default {
|
|
|
this.nowSubTask = e
|
|
|
this.changeArea('endTime')
|
|
|
},
|
|
|
+ updateOwner(e) { // 变更负责人
|
|
|
+ if (this.add) return
|
|
|
+ if (e.newNode) return
|
|
|
+ this.nowSubTask = e
|
|
|
+ this.changeArea('owner')
|
|
|
+ },
|
|
|
updateStatus(e) { // 变更状态
|
|
|
if (this.add) return // 如果是新建状态,返回
|
|
|
if (e.newNode) return// 如果是新加节点,返回
|