稽查文档管理问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
aaa366934b
commit
0d446746e6
|
@ -16,7 +16,8 @@
|
|||
</el-row>
|
||||
<el-form :inline="true" class="base-search-form">
|
||||
<el-form-item>
|
||||
<el-input v-model="searchData.Name" clearable></el-input>
|
||||
<el-input v-model="searchData.Name" clearable
|
||||
:placeholder="$t('trials:trials-workbench:auditDocument:placeholder:search')"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
|
@ -645,6 +646,7 @@ export default {
|
|||
let res = await deleteAuditDocument(data)
|
||||
if (res.IsSuccess) {
|
||||
this.checkList = []
|
||||
this.rowData = {}
|
||||
this.getList(this.rowData.Id)
|
||||
if (this.$refs.versionDetail) {
|
||||
// this.$refs.versionDetail.getHistoricalVersion()
|
||||
|
@ -679,6 +681,7 @@ export default {
|
|||
// 新增列表数据
|
||||
async uplaodFile(list) {
|
||||
if (!this.isManage) return false
|
||||
console.log(list, 'list')
|
||||
let data = []
|
||||
if (this.config.isVersion) {
|
||||
data.push({
|
||||
|
@ -692,6 +695,17 @@ export default {
|
|||
})
|
||||
} else {
|
||||
data = this.formatData(list)
|
||||
let ParentId = this.Id
|
||||
if (this.rowData && this.rowData.Id) {
|
||||
if (this.rowData.AuditDocumentTypeEnum) {
|
||||
ParentId = this.rowData.ParentId
|
||||
} else {
|
||||
ParentId = this.rowData.Id
|
||||
}
|
||||
}
|
||||
data.forEach(item => {
|
||||
item.ParentId = ParentId
|
||||
})
|
||||
}
|
||||
try {
|
||||
let res = await addAuditDocument(JSON.stringify(data))
|
||||
|
@ -736,10 +750,11 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
obj = obj[str]
|
||||
obj = obj[str] || strObj[str]
|
||||
strKey.push(str)
|
||||
|
||||
})
|
||||
console.log(obj, 'obj')
|
||||
obj.children.push({
|
||||
ParentId: null,
|
||||
Name: item.FileName,
|
||||
|
@ -1059,6 +1074,10 @@ export default {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.base-search-form .el-form-item {
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.auditDocument {
|
||||
|
||||
// position: relative;
|
||||
|
|
Loading…
Reference in New Issue