|
@@ -196,7 +196,7 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
// this.form.setFieldsValue(pick(this.data,'type'))
|
|
// this.form.setFieldsValue(pick(this.data,'type'))
|
|
console.log('表单回显数据', this.data.start_time)
|
|
console.log('表单回显数据', this.data.start_time)
|
|
- this.fileList = [{ fileUrl: 'file/20210602/微信图片_20200831182839_1622623148179.jpg' }]
|
|
|
|
|
|
+ this.fileList = JSON.parse(JSON.stringify(res.result.childList))
|
|
this.getFileList()
|
|
this.getFileList()
|
|
console.log(this.fileList)
|
|
console.log(this.fileList)
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
@@ -222,13 +222,13 @@ export default {
|
|
formData.procDefId = this.processData.id
|
|
formData.procDefId = this.processData.id
|
|
formData.procDeTitle = this.processData.name
|
|
formData.procDeTitle = this.processData.name
|
|
if (!formData.tableName) formData.tableName = this.processData.businessTable
|
|
if (!formData.tableName) formData.tableName = this.processData.businessTable
|
|
- formData.filedNames = _.keys(values).join(',')
|
|
|
|
|
|
+ formData.filedNames = _.keys(values).join(',')+",table_name_b"
|
|
var url = this.url.addApply
|
|
var url = this.url.addApply
|
|
if (!this.isNew) {
|
|
if (!this.isNew) {
|
|
url = this.url.editForm
|
|
url = this.url.editForm
|
|
}
|
|
}
|
|
//获取文件集合
|
|
//获取文件集合
|
|
- formData.tableNameB = 'cd_leave_file' //子表表名
|
|
|
|
|
|
+ formData.table_name_b = 'cd_reimbursement_file' //子表表名
|
|
formData.childList = '' //子表数据
|
|
formData.childList = '' //子表数据
|
|
let childList = []
|
|
let childList = []
|
|
if (this.fileList != null && this.fileList.length > 0) {
|
|
if (this.fileList != null && this.fileList.length > 0) {
|
|
@@ -283,8 +283,8 @@ export default {
|
|
(element.uid = index + 1),
|
|
(element.uid = index + 1),
|
|
(element.name = fileName),
|
|
(element.name = fileName),
|
|
(element.status = 'done'),
|
|
(element.status = 'done'),
|
|
- (element.url = '/jeecg-boot/sys/common/downloadFile/' + element.fileUrl)
|
|
|
|
- element.response = { message: element.fileUrl }
|
|
|
|
|
|
+ (element.url = '/jeecg-boot/sys/common/downloadFile/' + element.file_url)
|
|
|
|
+ element.response = { message: element.file_url }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|