修改文档详情的跳转

This commit is contained in:
qq787203167
2022-02-24 15:25:19 +08:00
parent 6e2b1010bb
commit 252b72a6de
2 changed files with 62 additions and 13 deletions
@@ -171,6 +171,8 @@
this.dataSource = res.result.records
this.total = res.result.total
this.loading = false
}else{
this.loading = false
}
})
},
@@ -9,23 +9,23 @@
</div>
<div class="doc-detail-right">
<div @click="UpdateLog" class="operator-text">
<a-icon type="reload" />
<a-icon type="reload"/>
更新log
</div>
<div @click="UpdateLog" class="operator-text">
<a-icon type="codepen" />
<div @click="DocumentSplitting" class="operator-text">
<a-icon type="codepen"/>
文档拆分
</div>
<div @click="UpdateLog" class="operator-text">
<a-icon type="file-pdf" />
<a-icon type="file-pdf"/>
文档翻译
</div>
<div @click="UpdateLog" class="operator-text">
<a-icon type="wallet" />
<a-icon type="wallet"/>
文档对比
</div>
<div @click="UpdateLog" class="operator-text">
<a-icon type="folder" />
<a-icon type="folder"/>
知识问答库
</div>
</div>
@@ -86,26 +86,40 @@
:loading="loading"
>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
:show-total="total => ` ${total} `"
show-quick-jumper
show-size-changer
:page-size.sync="pageSize"
:total="total"
@change="onChange"
@showSizeChange="SizeChange"
/>
</div>
</a-modal>
</div>
</a-card>
</template>
<script>
import { getAction, postAction, downFile, downloadFile } from '@/api/manage'
import { JeroListMixin } from '@/mixins/JeroListMixin'
export default {
name: 'docIndex',
mixins:[JeroListMixin],
data() {
return {
url: {
getInfo: 'document/bussDocumentLibraryEO/getInfoById',
list:'log/bussLogE/page',
list: 'log/bussLogE/page'
},
detailList: [],
visible: false,
confirmLoading: false,
loading: false,
dataSource: [],
pageNo: 1,
pageSize: 10,
total: 0,
columns: [
{
title: this.$t('ModificationContent'),
@@ -118,16 +132,16 @@
dataIndex: 'db_field_name',
align: 'center',
ellipsis: true,
width:140
width: 140
},
{
title: this.$t('personnel'),
dataIndex: 'db_field_name',
align: 'center',
ellipsis: true,
width:100
width: 100
}
],
]
}
},
mounted() {
@@ -158,12 +172,44 @@
handleCancel() {
this.visible = false
},
bussLogList() {
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize
}
this.loading = true
postAction(this.url.list, query).then((res) => {
if (res.success) {
this.dataSource = res.result.records
this.total = res.result.total
this.loading = false
}else{
this.loading = false
}
})
},
onChange(page, pageSize) {
this.pageNo = page
this.bussLogList()
},
SizeChange(page, pageSize) {
this.pageSize = pageSize
this.bussLogList()
},
DocumentSplitting(){
this.$router.push({
path:'/docManage/splite',
query:{
serial_number:this.$route.query.serial_number
}
})
},
}
}
</script>
<style lang="less" scoped>
@import '~@assets/less/common.less';
.doc-detail {
padding: 20px;
@@ -186,6 +232,7 @@
.doc-detail-right {
min-width: 500px;
line-height: 30px;
.doc-detail-btn {
margin-left: 10px;
}