1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| <template>
| <el-card shadow="never" class="aui-card--fill">
| <el-form :inline="true" :model="dataForm">
| <el-form-item label="日期" prop="RQ">
| <el-date-picker
| v-model="dataForm.RQ"
| type="date"
| format="yyyy-MM-dd"
| value-format="yyyy-MM-dd"
| :clearable="false"
| placeholder="选择日期">
| </el-date-picker>
| </el-form-item>
| <el-form-item>
| <el-button @click="getDataList()" :loading="loading">查询</el-button>
| </el-form-item>
| </el-form>
| <report-view ref="reportView" :src="reportsrc" v-loading="loading" @loadCompleted="loading = false"></report-view>
| </el-card>
| </template>
| <script>
| import ReportView from '@/components/report/report-view'
| import { getNowDate } from '@/utils/dateUtils'
| export default {
| components: {
| ReportView
| },
| data () {
| return {
| loading: true,
| dataForm: {
| RQ: getNowDate()
| },
| dateValue: getNowDate(),
| t: new Date().getTime(),
| reportsrc: `/iail-report/preview?reportModel=whs-sc-day.ureport.xml&reportId=34¶ms=RQ:${getNowDate()}&editable=true`
| }
| },
| methods: {
| getDataList () {
| this.loading = true
| this.t = new Date().getTime()
| this.reportsrc = `/iail-report/preview?reportModel=whs-sc-day.ureport.xml&reportId=34¶ms=RQ:${this.dataForm.RQ}&editable=true&t=${this.t}`
| }
| }
| }
| </script>
|
|