Commit d5e720c8 by huyue

修复日报

1 parent 36b391cb
......@@ -24,7 +24,7 @@
<div class="basic-info"><span>缺失份数:</span>{{ templateData.undoCount }}份</div>
<div class="title">明细数据 <el-button type="primary" size="mini" @click="exportTable">导出</el-button></div>
<el-table :data="tableData" border style="width: 100%;text-align: center;">
<el-table-column v-for="(item, index) in tableParams" :key="index" :prop="item.prop" :label="item.label">
<el-table-column v-for="(item, index) in tableParams" :sortable="item.sortable" :key="index" :prop="item.prop" :label="item.label">
<template slot-scope="scope">
<slot :scope="scope.row">
{{ scope.row[item.prop] == null ? '-' : scope.row[item.prop] }}
......@@ -118,15 +118,18 @@ export default {
},
{
label: '最近提交日报日期',
prop: 'lastSubmitDate'
prop: 'lastSubmitDate',
sortable: true
},
{
label: '本周提交总数',
prop: 'weekSubmitCount'
prop: 'weekSubmitCount',
sortable: true
},
{
label: '本月提交总数',
prop: 'monthSubmitCount'
prop: 'monthSubmitCount',
sortable: true
}
]
}
......
......@@ -9,6 +9,7 @@
v-model="searchForm.createdDate"
type="date"
placeholder="选择日期"
:clearable="false"
:picker-options="pickerOption"
@change="dateChange">
</el-date-picker>
......@@ -72,12 +73,12 @@
<template v-if="scope.scope[scope.prop].monthRate">
<div :class="scope.scope[scope.prop].monthRate > 0 ? 'red' : scope.scope[scope.prop].monthRate == 0 ? '' : 'green'">月 {{scope.scope[scope.prop].monthRate}}%</div>
</template>
<template v-else>-</template>
<template v-else>月 -</template>
<div class="line"></div>
<template v-if="scope.scope[scope.prop].weekRate">
<div :class="scope.scope[scope.prop].weekRate > 0 ? 'red' : scope.scope[scope.prop].weekRate == 0 ? '' : 'green'">周 {{scope.scope[scope.prop].weekRate}}%</div>
</template>
<template v-else>-</template>
<template v-else>周 -</template>
</div>
</div>
<div class="text-box" slot="text" slot-scope="scope">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!