|
|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
<div class="container normal-panel" >
|
|
|
<div class="flex-align-center flex-between mt-10">
|
|
|
- <el-input
|
|
|
- style="width:200px"
|
|
|
- size="small"
|
|
|
- suffix-icon="el-icon-search"
|
|
|
- v-model="param.content.where.condition"
|
|
|
- placeholder="搜索"
|
|
|
+ <el-input
|
|
|
+ style="width:200px"
|
|
|
+ size="small"
|
|
|
+ suffix-icon="el-icon-search"
|
|
|
+ v-model="param.content.where.condition"
|
|
|
+ placeholder="搜索"
|
|
|
@keyup.enter.native="queryOptions()" @clear="queryOptions()" clearable></el-input>
|
|
|
</div>
|
|
|
<tableLayout ref="table" :layout="tablecols" :data="list" :opwidth="200" :custom="true" :height="tableHieght" @rowClick="rowShow">
|
|
|
@@ -31,6 +31,7 @@
|
|
|
|
|
|
<script>
|
|
|
import add from './add'
|
|
|
+import tableLayout from '@/components/dynamic-table/index1'
|
|
|
import { log } from '@antv/g2plot/lib/utils'
|
|
|
export default {
|
|
|
data () {
|
|
|
@@ -45,7 +46,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- tableHieght:560,
|
|
|
+ tableHieght:'calc(100vh - 270px)',
|
|
|
tablecols:[],
|
|
|
// optionmxlist:[],
|
|
|
// expands: [],
|
|
|
@@ -58,14 +59,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
|
- add
|
|
|
+ add,tableLayout
|
|
|
},
|
|
|
methods:{
|
|
|
async queryOptions (setRow) {
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.list = res.data
|
|
|
console.log(this.list);
|
|
|
-
|
|
|
+
|
|
|
this.total = res.total
|
|
|
this.currentPage = res.pageNumber
|
|
|
this.$nextTick(() => {
|
|
|
@@ -140,4 +141,4 @@ export default {
|
|
|
|
|
|
</script>
|
|
|
<style>
|
|
|
-</style>
|
|
|
+</style>
|