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

修复任务新建

parent f79b85bf
......@@ -72,6 +72,7 @@
watch: {
checkGroupOptionsList (val) {
this.groupOptionsList = []
console.log('------', val, this.checkGroupFormItem)
val.forEach(item => {
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)
......
......@@ -39,11 +39,11 @@
v-model.trim="model.description">
</el-input>
</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
:check-group-form-item="model.TaskGroupUsers"
:check-group-form-item="model.taskGroupUsers"
:check-group-options-list="taskGroupsUArray"
@update:item="val => {model.TaskGroupUsers = val}">
@update:item="val => {model.taskGroupUsers = val}">
</multiple-check-group>
</el-form-item>
</el-form>
......
......@@ -36,7 +36,7 @@ export default {
target_completed_at: '',
situation: '',
description: '',
TaskGroupUsers: []
taskGroupUsers: []
}
}
},
......
......@@ -44,8 +44,8 @@
<el-row :gutter="10">
<el-col :span="12" :xs="24">
<span>成员:</span>
<span v-for="sItem in item.taskGroupUserRelationships">
<img class="user-avatar rounded-circle" :src="sItem.user.avatar.name">{{ sItem.user.name }}
<span v-for="sItem in item.taskGroupUsers">
<img class="user-avatar rounded-circle" :src="sItem.avatar.name">{{ sItem.name }}
</span>
</el-col>
<!-- <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