Commit 7b076dd9 authored by huai.li's avatar huai.li

修复任务新建

parent f79b85bf
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
watch: { watch: {
checkGroupOptionsList (val) { checkGroupOptionsList (val) {
this.groupOptionsList = [] this.groupOptionsList = []
console.log('------', val, this.checkGroupFormItem)
val.forEach(item => { val.forEach(item => {
let checkItems = item.child.map(i => i.key).filter(i => this.checkGroupFormItem.some(ele => ele === i)) let checkItems = item.child.map(i => i.key).filter(i => this.checkGroupFormItem.some(ele => ele === i))
this.$set(item, 'isIndeterminate', checkItems.length > 0 && checkItems.length < item.child.length) this.$set(item, 'isIndeterminate', checkItems.length > 0 && checkItems.length < item.child.length)
......
...@@ -39,11 +39,11 @@ ...@@ -39,11 +39,11 @@
v-model.trim="model.description"> v-model.trim="model.description">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="成员" prop="TaskGroupUsers" class="ec-clear-left ec-form-item-lg is-required"> <el-form-item label="成员" prop="taskGroupUsers" class="ec-clear-left ec-form-item-lg is-required">
<multiple-check-group <multiple-check-group
:check-group-form-item="model.TaskGroupUsers" :check-group-form-item="model.taskGroupUsers"
:check-group-options-list="taskGroupsUArray" :check-group-options-list="taskGroupsUArray"
@update:item="val => {model.TaskGroupUsers = val}"> @update:item="val => {model.taskGroupUsers = val}">
</multiple-check-group> </multiple-check-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
......
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
target_completed_at: '', target_completed_at: '',
situation: '', situation: '',
description: '', description: '',
TaskGroupUsers: [] taskGroupUsers: []
} }
} }
}, },
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="12" :xs="24"> <el-col :span="12" :xs="24">
<span>成员:</span> <span>成员:</span>
<span v-for="sItem in item.taskGroupUserRelationships"> <span v-for="sItem in item.taskGroupUsers">
<img class="user-avatar rounded-circle" :src="sItem.user.avatar.name">{{ sItem.user.name }} <img class="user-avatar rounded-circle" :src="sItem.avatar.name">{{ sItem.name }}
</span> </span>
</el-col> </el-col>
<!-- <el-col :span="6" :xs="24"> <!-- <el-col :span="6" :xs="24">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment