From 05302246665dbb14b26c5d46386bd82d89965396 Mon Sep 17 00:00:00 2001 From: XingChuan <m17600301067@163.com> Date: 星期四, 27 五月 2021 14:47:41 +0800 Subject: [PATCH] 更换报表数据请求方式 --- src/components/table/components/WasteGas.vue | 52 ++-------------------------------------------------- 1 files changed, 2 insertions(+), 50 deletions(-) diff --git a/src/components/table/components/WasteGas.vue b/src/components/table/components/WasteGas.vue index 1bbe3b1..6ad7cd5 100644 --- a/src/components/table/components/WasteGas.vue +++ b/src/components/table/components/WasteGas.vue @@ -1,6 +1,6 @@ <template> <div class="Waste-water"> - <el-table class="tableBox" :data="tableData" :header-cell-style="tableHeaderColor" :cell-style="rowClass" @cell-click="handle"> + <el-table class="tableBox" :data="WasteGastableDataList" :header-cell-style="tableHeaderColor" :cell-style="rowClass" @cell-click="handle"> <el-table-column width="30px" label=""> <template slot-scope="{row,$index}"> <!-- <i class="el-icon-caret-right" v-if="$index ===1"></i>--> @@ -74,55 +74,6 @@ return { isActive: '', isShowIcon: false, - tableData: [{ - UserName: '闆嗗洟鍚嶇О', - WasteWaters: '', - AddOutPut: '', - MonthOutPut: '', - NH4NPut: '', - NH4NMonth: '', - normal: '', - overProof: '', - Abnormal: '', - StopProduction: '', - deficiency: '' - }, { - UserName: '澶╂触鐭冲寲', - WasteWaters: '116.6', - AddOutPut: '58.3', - MonthOutPut: '13.1', - NH4NPut: '58.3', - NH4NMonth: '13.1', - normal: '21', - overProof: '2', - Abnormal: '2', - StopProduction: '2', - deficiency: '2' - }, { - UserName: 'xxxx鐐煎寲3', - WasteWaters: '116.6', - MonthOutPut: '13.1', - NH4NPut: '58.3', - NH4NMonth: '13.1', - normal: '21', - overProof: '2', - Abnormal: '2', - StopProduction: '2', - deficiency: '2' - }, { - UserName: 'xxxx4', - WasteWaters: '116.6', - AddOutPut: '58.3', - MonthOutPut: '13.1', - NH4NPut: '58.3', - NH4NMonth: '13.1', - normal: '21', - overProof: '2', - Abnormal: '2', - StopProduction: '2', - deficiency: '2' - - }], tableHeader1: [ { name: '鎺掓斁鐐�', width: '140', propS: 'value1' }, { name: '鍗曚綅閮ㄩ棬', width: '80', propS: 'value2' }, @@ -137,6 +88,7 @@ ] } }, + props: ['WasteGastableDataList'], methods: { tableHeaderColor ({ columnIndex }) { // return 'background-color: rgba(26, 73, 81, 0.901960784313726);color:#fff;font-wight:500;font-size:12px;text-align:center;height:0px' -- Gitblit v1.8.0