城阳运营端pc前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.7 KiB

5 years ago
<template>
<div>
5 years ago
<c-dialog :showFooter="false"
:title="'操作历史'"
:visible="diaVisible"
@cancel="diaCancel">
<el-card shadow="never"
class="aui-card--fill">
<div class="mod-demo__demo}">
5 years ago
5 years ago
<c-table column-type="index"
:pageVisible="true"
ref="table"
:url="tableUrl"
:params="tableParams"
keyword="OperHistory"
:operations="operations"
:tableHeight="tableHeight">
</c-table>
</div>
</el-card>
</c-dialog>
5 years ago
</div>
</template>
<script>
5 years ago
import CTable from '@c/CTableNoPage'
import { mapGetters } from 'vuex'
5 years ago
import CDialog from '@c/CDialog'
5 years ago
5 years ago
export default {
data () {
return {
loading: false,
5 years ago
diaVisible: false,
codeId: '',
5 years ago
// 模板列表
5 years ago
tableUrl: '/third/code/history',
// tableUrl: 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/code/history',
5 years ago
tableParams: {
type: Object, // table的查询参数
default () {
return {}
5 years ago
}
5 years ago
},
// 列表操作栏的操作项数组
operations: []
5 years ago
}
},
components: {
5 years ago
CTable, CDialog
5 years ago
},
mounted () {
},
methods: {
5 years ago
initData (codeId) {
this.codeId = codeId
this.tableParams.codeId = codeId
this.diaVisible = true
this.$nextTick(() => {
this.$refs.table.loadData() // 解决表格错位
})
},
diaCancel () {
this.diaVisible = false
5 years ago
}
5 years ago
},
computed: {
tableHeight () {
return this.clientHeight - 60 - 80 - 80 - 50 - 400
},
...mapGetters(['clientHeight'])
5 years ago
}
}
</script>