修改文档详情的跳转
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user