城阳运营端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.

65 lines
1.4 KiB

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