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