[update] 处理流程中人员信息
This commit is contained in:
+4
-6
@@ -120,8 +120,7 @@ export default {
|
||||
}
|
||||
]
|
||||
},
|
||||
modalType: '', // 是在新增还是在编辑,编辑的时候放正在编辑的下标
|
||||
data: undefined
|
||||
modalType: '' // 是在新增还是在编辑,编辑的时候放正在编辑的下标
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -131,7 +130,6 @@ export default {
|
||||
},
|
||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||
initData (data) {
|
||||
this.data = data
|
||||
// 给表单赋值
|
||||
if (data.dataList[0].distributeFlag + '' === '0') {
|
||||
// 不下发联络人
|
||||
@@ -166,11 +164,11 @@ export default {
|
||||
if (result) {
|
||||
if (this.$refs.tableRef) {
|
||||
// 存在表格说明是否下发联络人选择了否
|
||||
if (this.$refs.tableRef.dataSource && this.$refs.tableRef.dataSource.length > 0) {
|
||||
const tableData = this.$refs.tableRef.getDataValidate()
|
||||
if (tableData) {
|
||||
data.formInline = this.formInline
|
||||
data.dataSource = this.$refs.tableRef.dataSource
|
||||
data.dataSource = tableData.dataSource
|
||||
} else {
|
||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||
data = false
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user