Commit be00ed9c by honghong

返利明细-表格添加空白区域

parent 6b843fed
...@@ -8,8 +8,8 @@ ENV = 'production' ...@@ -8,8 +8,8 @@ ENV = 'production'
VUE_APP_BASE_API = '' VUE_APP_BASE_API = ''
# 网址 # 网址
#VUE_APP_BASE_URL = 'http://192.168.0.150:8955/' VUE_APP_BASE_URL = 'http://192.168.0.129:8955/'
VUE_APP_BASE_URL = 'http://ebcgxw.natappfree.cc' #VUE_APP_BASE_URL = 'http://ebcgxw.natappfree.cc'
# 路由懒加载 # 路由懒加载
......
...@@ -4,6 +4,7 @@ import store from './store' ...@@ -4,6 +4,7 @@ import store from './store'
import router from './router' import router from './router'
import './plugins' import './plugins'
import '@/layouts/export' import '@/layouts/export'
/** /**
* @author https://vue-admin-beautiful.com (不想保留author可删除) * @author https://vue-admin-beautiful.com (不想保留author可删除)
* @description 生产环境默认都使用mock,如果正式用于生产环境时,记得去掉 * @description 生产环境默认都使用mock,如果正式用于生产环境时,记得去掉
......
...@@ -455,7 +455,7 @@ export const asyncRoutes = [ ...@@ -455,7 +455,7 @@ export const asyncRoutes = [
alwaysShow: true, alwaysShow: true,
meta: { meta: {
title: '供应商对账', title: '供应商对账',
icon: 'box-open', icon: 'yen-sign',
}, },
children: [ children: [
{ {
......
...@@ -190,13 +190,27 @@ ...@@ -190,13 +190,27 @@
</div> </div>
<el-table <el-table
v-loading="loading" v-loading="loading"
:class="table.length ? 'table-padding-bottom' : ''"
:data="table" :data="table"
border border
:header-cell-style="headerStyle" :header-cell-style="headerStyle"
:cell-style="rowStyle" :cell-style="rowStyle"
height="52vh" height="52vh"
> >
<el-table-column type="index" label="序号" width="80"></el-table-column> <el-table-column
type="index"
label="序号"
width="80"
:index="indexMethod"
>
<template scope="scope">
<span>
{{
(queryForm.pageNum - 1) * queryForm.pageSize + scope.$index + 1
}}
</span>
</template>
</el-table-column>
<el-table-column prop="supplierNo" label="供应商编号"></el-table-column> <el-table-column prop="supplierNo" label="供应商编号"></el-table-column>
<el-table-column <el-table-column
prop="supplierName" prop="supplierName"
...@@ -457,11 +471,18 @@ ...@@ -457,11 +471,18 @@
console.log(h - this.fixedHeight, '大什么呢') console.log(h - this.fixedHeight, '大什么呢')
this.tableHeight = h - this.fixedHeight this.tableHeight = h - this.fixedHeight
}, },
// mounted() {
// this.getList()
// },
methods: { methods: {
getData() {
let arr = []
this.total = 50
for (let i = 0; i < 10; i++) {
console.log(i, 'i')
arr.push({
supplierName: '22',
})
}
this.table = arr
},
//获取表格列表 //获取表格列表
getList() { getList() {
this.loading = true this.loading = true
...@@ -474,6 +495,15 @@ ...@@ -474,6 +495,15 @@
this.loading = false this.loading = false
}) })
}, },
indexMethod(index) {
console.log(
(this.queryForm.pageNum - 1) * this.queryForm.pageSize + index + 1,
'小标'
)
return (
(this.queryForm.pageNum - 1) * this.queryForm.pageSize + index + 1
)
},
headerStyle() { headerStyle() {
return 'background:#409eff;text-align:center;color:#fff;' return 'background:#409eff;text-align:center;color:#fff;'
}, },
...@@ -540,6 +570,9 @@ ...@@ -540,6 +570,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .table-padding-bottom .el-table__body {
padding-bottom: 600px !important;
}
.el-form::v-deep { .el-form::v-deep {
width: 100%; width: 100%;
display: flex; display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment