Commit 8cf624ac by lichengming

修改了统计分析的表格

parent a91c915c
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
:show-summary="showSummary !== undefined?true:false" :show-summary="showSummary !== undefined?true:false"
:data="getPage.records" :data="getPage.records"
ref="moveTable" ref="moveTable"
:header-cell-style="{background:'#F8F8F9'}"
:height="300" :height="300"
v-loading="loading" v-loading="loading"
@select-all="_selectAll" @select-all="_selectAll"
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
<Form id="search-form" :label-width="70" inline onsubmit="return false"> <Form id="search-form" :label-width="70" inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item class="search-item" label="人员:"> <Form-item class="search-item" label="人员:">
<AutoCompletes :value="tester" :blur="true" :down-data="testerData" show-key="realname" <AutoCompletes :value="tester" :blur="true" :down-data="testerData" @on-result-change="_testerChange"
placeholder="请选择人员" @on-result-change="_testerChange" show-key="realname" placeholder="请选择人员"
></AutoCompletes> ></AutoCompletes>
</Form-item> </Form-item>
<!-- <Form-item class="search-item" label="服务类型:">--> <!-- <Form-item class="search-item" label="服务类型:">-->
...@@ -21,22 +21,22 @@ ...@@ -21,22 +21,22 @@
<Form-item label="委托日期:"> <Form-item label="委托日期:">
<el-date-picker <el-date-picker
v-model="queryDate" v-model="queryDate"
@change="_dateChange"
type="monthrange" type="monthrange"
range-separator="-" range-separator="-"
start-placeholder="开始月份" start-placeholder="开始月份"
end-placeholder="结束月份" end-placeholder="结束月份"
size="small" size="small"
value-format="yyyy-MM" value-format="yyyy-MM">
@change="_dateChange">
</el-date-picker> </el-date-picker>
</Form-item> </Form-item>
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button type="primary" class="width-80" @click="_search">搜索</Button> <Button @click="_search" type="primary" class="width-80">搜索</Button>
</Form-item> </Form-item>
</Form> </Form>
</div> </div>
<div class="fr"> <div class="fr">
<Button class="width-80" @click="_exportSampleForm">导出</Button> <Button @click="_exportSampleForm" class="width-80">导出</Button>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</Col> </Col>
...@@ -44,23 +44,24 @@ ...@@ -44,23 +44,24 @@
<Col span="24"> <Col span="24">
<Row :gutter="16"> <Row :gutter="16">
<Col span="14"> <Col span="14">
<PTVXETable id="personalTestNum" ref="pageTable" <ElTableNoPage id="table-year" ref="pageTable" :tableHeight="tableHeight"
:page-columns="pageColumns" @on-result-change="_tableResultChange" :getPage="getPage" hide-checkbox >
:table-height="tableHeight" :get-page="getPage" hide-checkbox @on-result-change="_tableResultChange"> <el-table-column fixed type="index" label="序号" width="100">
<vxe-table-column </el-table-column>
<el-table-column
:prop="item.key"
:label="item.title"
:width="item.width"
:min-width="200"
:fixed="item.fixed?item.fixed:undefined"
v-for="item in pageColumns" v-for="item in pageColumns"
:key="item.key" :key="item.key">
:field="item.key"
:title="item.title"
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="item.detail"><a <div v-if="item.detail"><a @click.stop="_detailModal(scope.row)">{{scope.row[item.key]}}</a></div>
@click.stop="_detailModal(scope.row)">{{scope.row[item.key]}}</a></span>
<span v-else>{{scope.row[item.key]}}</span> <span v-else>{{scope.row[item.key]}}</span>
</template> </template>
</vxe-table-column> </el-table-column>
</PTVXETable> </ElTableNoPage>
</Col> </Col>
<Col span="10"> <Col span="10">
<!--pie--> <!--pie-->
...@@ -103,14 +104,54 @@ export default { ...@@ -103,14 +104,54 @@ export default {
{ title: '样品总价', key: 'price', width: 205 } { title: '样品总价', key: 'price', width: 205 }
], ],
groupData: [], groupData: [],
getPage: [ // getPage: [
// {
// tester: 'wwd',
// total: '12',
// ratio: '10%',
// price: '3500'
// },
// {
// tester: 'wwd',
// total: '12',
// ratio: '10%',
// price: '3500'
// },
// {
// tester: 'wwd',
// total: '12',
// ratio: '10%',
// price: '3500'
// }
// ],
getPage: {
records: [
{
tester: 'wwd',
total: '12',
ratio: '10%',
price: '3500'
},
{
tester: 'wwd',
total: '12',
ratio: '10%',
price: '3500'
},
{
tester: 'wwd',
total: '12',
ratio: '10%',
price: '3500'
},
{ {
tester: 'wwd', tester: 'wwd',
total: '12', total: '12',
ratio: '10%', ratio: '10%',
price: '3500' price: '3500'
} }
], ]
},
tempData: { tempData: {
groupId: '', groupId: '',
groupName: '', groupName: '',
...@@ -129,6 +170,7 @@ export default { ...@@ -129,6 +170,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.$refs.pageTable._hideLoading()
// this._contHide() // this._contHide()
// this._getUserGroup() // this._getUserGroup()
// this._getUserList() // this._getUserList()
......
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