修改文档详情的跳转
This commit is contained in:
@@ -171,6 +171,8 @@
|
|||||||
this.dataSource = res.result.records
|
this.dataSource = res.result.records
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
}else{
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,23 +9,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="doc-detail-right">
|
<div class="doc-detail-right">
|
||||||
<div @click="UpdateLog" class="operator-text">
|
<div @click="UpdateLog" class="operator-text">
|
||||||
<a-icon type="reload" />
|
<a-icon type="reload"/>
|
||||||
更新log
|
更新log
|
||||||
</div>
|
</div>
|
||||||
<div @click="UpdateLog" class="operator-text">
|
<div @click="DocumentSplitting" class="operator-text">
|
||||||
<a-icon type="codepen" />
|
<a-icon type="codepen"/>
|
||||||
文档拆分
|
文档拆分
|
||||||
</div>
|
</div>
|
||||||
<div @click="UpdateLog" class="operator-text">
|
<div @click="UpdateLog" class="operator-text">
|
||||||
<a-icon type="file-pdf" />
|
<a-icon type="file-pdf"/>
|
||||||
文档翻译
|
文档翻译
|
||||||
</div>
|
</div>
|
||||||
<div @click="UpdateLog" class="operator-text">
|
<div @click="UpdateLog" class="operator-text">
|
||||||
<a-icon type="wallet" />
|
<a-icon type="wallet"/>
|
||||||
文档对比
|
文档对比
|
||||||
</div>
|
</div>
|
||||||
<div @click="UpdateLog" class="operator-text">
|
<div @click="UpdateLog" class="operator-text">
|
||||||
<a-icon type="folder" />
|
<a-icon type="folder"/>
|
||||||
知识问答库
|
知识问答库
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -86,26 +86,40 @@
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
>
|
>
|
||||||
</a-table>
|
</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>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, downFile, downloadFile } from '@/api/manage'
|
import { getAction, postAction, downFile, downloadFile } from '@/api/manage'
|
||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'docIndex',
|
name: 'docIndex',
|
||||||
mixins:[JeroListMixin],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
url: {
|
url: {
|
||||||
getInfo: 'document/bussDocumentLibraryEO/getInfoById',
|
getInfo: 'document/bussDocumentLibraryEO/getInfoById',
|
||||||
list:'log/bussLogE/page',
|
list: 'log/bussLogE/page'
|
||||||
},
|
},
|
||||||
detailList: [],
|
detailList: [],
|
||||||
visible: false,
|
visible: false,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
dataSource: [],
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
total: 0,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('ModificationContent'),
|
title: this.$t('ModificationContent'),
|
||||||
@@ -118,16 +132,16 @@
|
|||||||
dataIndex: 'db_field_name',
|
dataIndex: 'db_field_name',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width:140
|
width: 140
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('personnel'),
|
title: this.$t('personnel'),
|
||||||
dataIndex: 'db_field_name',
|
dataIndex: 'db_field_name',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width:100
|
width: 100
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -158,12 +172,44 @@
|
|||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
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>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@assets/less/common.less';
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
.doc-detail {
|
.doc-detail {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
|
||||||
@@ -186,6 +232,7 @@
|
|||||||
.doc-detail-right {
|
.doc-detail-right {
|
||||||
min-width: 500px;
|
min-width: 500px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
|
|
||||||
.doc-detail-btn {
|
.doc-detail-btn {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user