|
@@ -635,12 +635,15 @@
|
|
|
:edit-config="{trigger: 'click', mode: 'row', showStatus: false, autoClear: status === 'audit' || status === 'taskFormDetail' ? true : false, icon: '#'}"
|
|
|
>
|
|
|
<vxe-table-column field="name" title="姓名" :edit-render="{name: '$input'}" align="center">
|
|
|
+<!-- <template v-slot:edit="scope">-->
|
|
|
+<!-- <vxe-input v-model="scope.row.name" :disabled="commonJS.isNotEmpty(scope.row.userId) || status === 'audit' || status === 'taskFormDetail'" style="width: 100%">-->
|
|
|
+<!-- <template #suffix>-->
|
|
|
+<!-- <vxe-button :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openUserSearch(scope.$rowIndex)" type="text" content="" icon="el-icon-search" ></vxe-button>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </vxe-input>-->
|
|
|
+<!-- </template>-->
|
|
|
<template v-slot:edit="scope">
|
|
|
- <vxe-input v-model="scope.row.name" :disabled="commonJS.isNotEmpty(scope.row.userId) || status === 'audit' || status === 'taskFormDetail'" style="width: 100%">
|
|
|
- <template #suffix>
|
|
|
- <vxe-button :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openUserSearch(scope.$rowIndex)" type="text" content="" icon="el-icon-search" ></vxe-button>
|
|
|
- </template>
|
|
|
- </vxe-input>
|
|
|
+ <el-input v-model="scope.row.name" ></el-input>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
<vxe-table-column field="workHours" title="预计工时(时)" :edit-render="{name: '$input'}" align="center">
|
|
@@ -1199,7 +1202,9 @@
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ console.log('this.inputForm.members', this.inputForm.members)
|
|
|
this.inputForm.members.forEach((item, index) => {
|
|
|
+ console.log('item', item)
|
|
|
if (this.commonJS.isEmpty(item.name)) {
|
|
|
this.loading = false
|
|
|
this.$message.error('项目组成员姓名不允许为空')
|
|
@@ -1474,23 +1479,26 @@
|
|
|
insertEvent (type) {
|
|
|
if (type === 'member') {
|
|
|
if (this.commonJS.isEmpty(this.inputForm.members)) {
|
|
|
- this.inputForm.members = []
|
|
|
+ this.$refs.memberTable.insertAt({})
|
|
|
+ this.inputForm.members.push({})
|
|
|
+ // this.inputForm.members = []
|
|
|
}
|
|
|
- this.$refs.memberTable.insert().then((data) => {
|
|
|
- data.name = ''
|
|
|
- data.workHours = ''
|
|
|
- data.type = ''
|
|
|
- data.job = ''
|
|
|
- // if (this.commonJS.isEmpty(this.inputForm.members)) {
|
|
|
- // this.inputForm.members = []
|
|
|
- // this.inputForm.members.push(data)
|
|
|
- // } else {
|
|
|
- // this.inputForm.members.push(data)
|
|
|
- // }
|
|
|
- this.inputForm.members.push(data)
|
|
|
- console.log(this.inputForm.members)
|
|
|
- console.log(this.inputForm.members)
|
|
|
- })
|
|
|
+ // this.$refs.memberTable.insert().then((data) => {
|
|
|
+ // data.name = ''
|
|
|
+ // data.workHours = ''
|
|
|
+ // data.type = ''
|
|
|
+ // data.job = ''
|
|
|
+ // // if (this.commonJS.isEmpty(this.inputForm.members)) {
|
|
|
+ // // this.inputForm.members = []
|
|
|
+ // // this.inputForm.members.push(data)
|
|
|
+ // // } else {
|
|
|
+ // // this.inputForm.members.push(data)
|
|
|
+ // // }
|
|
|
+ // this.inputForm.members.push(data)
|
|
|
+ // console.log(this.inputForm.members)
|
|
|
+ // console.log(this.inputForm.members)
|
|
|
+ // })
|
|
|
+ this.memberKey = Math.random()
|
|
|
}
|
|
|
if (type === 'contact') {
|
|
|
this.$refs.contactTable.insert().then((data) => {
|