稽查文档管理
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
866dc923c7
commit
31c9db368c
|
@ -46,9 +46,12 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="catalogue">
|
<div class="catalogue">
|
||||||
<span>{{ $t('trials:trials-workbench:auditDocument:catalogue:title') }}</span>
|
<span>{{ $t('trials:trials-workbench:auditDocument:catalogue:title') }}</span>
|
||||||
<el-breadcrumb separator-class="el-icon-arrow-right">
|
<el-button icon="el-icon-top" class="last_catalogue" :disabled="!Id"
|
||||||
<el-breadcrumb-item v-for="item of catalogueData" :key="item.Id"><span class="catalogue_name"
|
@click.stop="toCatalogue(false)"></el-button>
|
||||||
@click.stop="toCatalogue(item)">{{ item.Name }}</span></el-breadcrumb-item>
|
<el-breadcrumb separator-class="el-icon-arrow-right" class="catalogue_name_box">
|
||||||
|
<el-breadcrumb-item v-for="item of catalogueData" :key="item.Id">
|
||||||
|
<span class="catalogue_name" @click.stop="toCatalogue(item)">{{ item.Name }}</span>
|
||||||
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="tableData" style="width: 99%" row-key="Id" :loading="loading" :row-style="setRowStyle"
|
<el-table :data="tableData" style="width: 99%" row-key="Id" :loading="loading" :row-style="setRowStyle"
|
||||||
|
@ -163,7 +166,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
// 获取当前目录层级
|
// 获取当前目录层级
|
||||||
async getBreadcrumbData() {
|
async getBreadcrumbData() {
|
||||||
if (!this.Id) return false
|
if (!this.Id) return this.catalogueData = []
|
||||||
try {
|
try {
|
||||||
let data = {
|
let data = {
|
||||||
Id: this.Id
|
Id: this.Id
|
||||||
|
@ -176,9 +179,9 @@ export default {
|
||||||
},
|
},
|
||||||
async getList() {
|
async getList() {
|
||||||
try {
|
try {
|
||||||
if (this.Id) {
|
|
||||||
this.searchData.Id = this.Id
|
this.searchData.Id = this.Id
|
||||||
}
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await getAuditDocumentData(this.searchData)
|
let res = await getAuditDocumentData(this.searchData)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
@ -225,10 +228,28 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 重置所有操作
|
||||||
|
resetOpt() {
|
||||||
|
this.expandedRows = []
|
||||||
|
this.checkList = []
|
||||||
|
this.hoverId = null
|
||||||
|
this.renameId = null
|
||||||
|
this.copyList = []
|
||||||
|
this.shearList = []
|
||||||
|
},
|
||||||
// 跳转至目录
|
// 跳转至目录
|
||||||
toCatalogue(row) {
|
toCatalogue(row) {
|
||||||
|
if (!row) {
|
||||||
|
let data = this.catalogueData[this.catalogueData.length - 2]
|
||||||
|
if (data) {
|
||||||
|
return this.toCatalogue(data)
|
||||||
|
} else {
|
||||||
|
row = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
this.Id = row.Id
|
this.Id = row.Id
|
||||||
this.expandedRows = []
|
this.resetOpt()
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getBreadcrumbData()
|
this.getBreadcrumbData()
|
||||||
},
|
},
|
||||||
|
@ -246,7 +267,7 @@ export default {
|
||||||
ParentId: row.ParentId
|
ParentId: row.ParentId
|
||||||
|
|
||||||
}
|
}
|
||||||
let res = await updateAuditDocument(row);
|
let res = await updateAuditDocument(data);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.getList()
|
this.getList()
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
@ -409,6 +430,7 @@ export default {
|
||||||
handleRowDblclick(row) {
|
handleRowDblclick(row) {
|
||||||
if (!row.AuditDocumentTypeEnum) {
|
if (!row.AuditDocumentTypeEnum) {
|
||||||
this.Id = row.Id
|
this.Id = row.Id
|
||||||
|
this.resetOpt()
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getBreadcrumbData()
|
this.getBreadcrumbData()
|
||||||
}
|
}
|
||||||
|
@ -518,17 +540,47 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
.catalogue {
|
.catalogue {
|
||||||
|
width: 99%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 0 0 22px;
|
margin: 0 0 22px;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.last_catalogue {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
line-height: 24px;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
// cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
|
||||||
|
// &:hover {
|
||||||
|
// background-color: #e4f8ff;
|
||||||
|
// border-color: #aedaff;
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
.catalogue_name_box {
|
||||||
|
flex: 1 0 0%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-left: none;
|
||||||
|
padding: 0 10px;
|
||||||
|
border-radius: 0 4px 4px 0;
|
||||||
|
height: 24px;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
.catalogue_name {
|
.catalogue_name {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #3b8cff;
|
color: #3b8cff;
|
||||||
|
|
Loading…
Reference in New Issue