<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 label="班次" prop="BC">
|
<dict-select-tag style="width: 100%"
|
v-model="dataForm.BC"
|
placeholder="班次"
|
dictCode="bc"
|
:clearable="false"/>
|
</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 DictSelectTag from "@/components/dict/dict-select-tag";
|
import { getLastDate, getLastClass } from '@/utils/dateUtils'
|
export default {
|
components: {
|
ReportView,
|
DictSelectTag
|
},
|
data () {
|
return {
|
loading: true,
|
dataForm: {
|
RQ: getLastDate(),
|
BC: getLastClass()
|
},
|
dateValue: getLastDate(),
|
t: new Date().getTime(),
|
reportsrc: `/iail-report/preview?reportModel=whs-sc-bc.ureport.xml&reportId=34¶ms=RQ:${getLastDate()},BC:${getLastClass()}&editable=true`
|
}
|
},
|
methods: {
|
getDataList () {
|
this.loading = true
|
this.t = new Date().getTime()
|
this.reportsrc = `/iail-report/preview?reportModel=whs-sc-bc.ureport.xml&reportId=34¶ms=RQ:${this.dataForm.RQ},BC:${this.dataForm.BC}&editable=true&t=${this.t}`
|
}
|
}
|
}
|
</script>
|