|
|
@ -6,56 +6,45 @@
|
|
|
|
!-->
|
|
|
|
!-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="main-layout">
|
|
|
|
<div class="main-layout">
|
|
|
|
<el-form ref="form"
|
|
|
|
<el-form ref="form" :model="params" :rules="rules" label-width="120px">
|
|
|
|
:model="params"
|
|
|
|
|
|
|
|
:rules="rules"
|
|
|
|
|
|
|
|
label-width="120px">
|
|
|
|
|
|
|
|
<!-- 搜索 -->
|
|
|
|
<!-- 搜索 -->
|
|
|
|
<el-row :gutter="10">
|
|
|
|
<el-row :gutter="10">
|
|
|
|
<el-col :xs="24"
|
|
|
|
<el-col :xs="24" :sm="20" :md="12" :lg="6" :xl="4">
|
|
|
|
:sm="20"
|
|
|
|
|
|
|
|
:md="12"
|
|
|
|
|
|
|
|
:lg="6"
|
|
|
|
|
|
|
|
:xl="4">
|
|
|
|
|
|
|
|
<el-form-item label="名称">
|
|
|
|
<el-form-item label="名称">
|
|
|
|
<el-input v-model="params.reportName"
|
|
|
|
<el-input
|
|
|
|
size="mini"
|
|
|
|
v-model="params.reportName"
|
|
|
|
clearable
|
|
|
|
size="mini"
|
|
|
|
placeholder="名称"
|
|
|
|
clearable
|
|
|
|
class="filter-item" />
|
|
|
|
placeholder="名称"
|
|
|
|
|
|
|
|
class="filter-item"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :xs="24"
|
|
|
|
<el-col :xs="24" :sm="20" :md="12" :lg="6" :xl="4">
|
|
|
|
:sm="20"
|
|
|
|
|
|
|
|
:md="12"
|
|
|
|
|
|
|
|
:lg="6"
|
|
|
|
|
|
|
|
:xl="4">
|
|
|
|
|
|
|
|
<el-form-item label="报表编码">
|
|
|
|
<el-form-item label="报表编码">
|
|
|
|
<el-input v-model="params.reportCode"
|
|
|
|
<el-input
|
|
|
|
size="mini"
|
|
|
|
v-model="params.reportCode"
|
|
|
|
clearable
|
|
|
|
size="mini"
|
|
|
|
placeholder="报表编码"
|
|
|
|
clearable
|
|
|
|
class="filter-item" />
|
|
|
|
placeholder="报表编码"
|
|
|
|
|
|
|
|
class="filter-item"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :xs="24"
|
|
|
|
<el-col :xs="24" :sm="20" :md="4" :lg="4" :xl="4">
|
|
|
|
:sm="20"
|
|
|
|
<el-button type="primary" size="mini" @click="search('form')"
|
|
|
|
:md="4"
|
|
|
|
>查询</el-button
|
|
|
|
:lg="4"
|
|
|
|
>
|
|
|
|
:xl="4">
|
|
|
|
<el-button type="danger" size="mini" @click="reset('form')"
|
|
|
|
<el-button type="primary"
|
|
|
|
>重置</el-button
|
|
|
|
size="mini"
|
|
|
|
>
|
|
|
|
@click="search('form')">查询</el-button>
|
|
|
|
|
|
|
|
<el-button type="danger"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="reset('form')">重置</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-col v-for="item in list" :key="item.id" :span="6">
|
|
|
|
<el-col v-for="item in list" :key="item.id" :span="6">
|
|
|
|
<div class="bg">
|
|
|
|
<div class="bg">
|
|
|
|
<div class="rgba" />
|
|
|
|
<img class="bg-img" src="../../../assets/images/charts.jpg" alt="" />
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
<header>{{ item.reportName }}</header>
|
|
|
|
<header>{{ item.reportName }}</header>
|
|
|
|
<footer>
|
|
|
|
<footer>
|
|
|
@ -80,19 +69,21 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<div class="block">
|
|
|
|
<div class="block">
|
|
|
|
<el-pagination :total="totalCount"
|
|
|
|
<el-pagination
|
|
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
|
|
:total="totalCount"
|
|
|
|
:page-size="params.pageSize"
|
|
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
|
|
:current-page="params.pageNumber"
|
|
|
|
:page-size="params.pageSize"
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
:current-page="params.pageNumber"
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
@current-change="handleCurrentChange" />
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { reportPageList } from '@/api/report'
|
|
|
|
import { reportPageList } from "@/api/report";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Login",
|
|
|
|
name: "Login",
|
|
|
|
components: {},
|
|
|
|
components: {},
|
|
|
@ -102,61 +93,72 @@ export default {
|
|
|
|
totalCount: 0,
|
|
|
|
totalCount: 0,
|
|
|
|
totalPage: 0,
|
|
|
|
totalPage: 0,
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
reportCode: '',
|
|
|
|
reportCode: "",
|
|
|
|
reportName: '',
|
|
|
|
reportName: "",
|
|
|
|
// reportType: '',
|
|
|
|
// reportType: '',
|
|
|
|
pageNumber: 1,
|
|
|
|
pageNumber: 1,
|
|
|
|
pageSize: 8,
|
|
|
|
pageSize: 8,
|
|
|
|
order: 'DESC',
|
|
|
|
order: "DESC",
|
|
|
|
sort: 'update_time',
|
|
|
|
sort: "update_time"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {},
|
|
|
|
mounted() {},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.queryByPage()
|
|
|
|
this.queryByPage();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// 查询
|
|
|
|
// 查询
|
|
|
|
search () {
|
|
|
|
search() {
|
|
|
|
this.params.pageNumber = 1
|
|
|
|
this.params.pageNumber = 1;
|
|
|
|
this.queryByPage()
|
|
|
|
this.queryByPage();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 重置
|
|
|
|
// 重置
|
|
|
|
reset (formName) {
|
|
|
|
reset(formName) {
|
|
|
|
this.$refs[formName].resetFields()
|
|
|
|
this.$refs[formName].resetFields();
|
|
|
|
this.params.reportName = ''
|
|
|
|
this.params.reportName = "";
|
|
|
|
this.params.reportCode = ''
|
|
|
|
this.params.reportCode = "";
|
|
|
|
this.params.pageNumber = 1
|
|
|
|
this.params.pageNumber = 1;
|
|
|
|
this.queryByPage()
|
|
|
|
this.queryByPage();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async queryByPage () {
|
|
|
|
async queryByPage() {
|
|
|
|
const res = await reportPageList(this.params)
|
|
|
|
const res = await reportPageList(this.params);
|
|
|
|
if (res.code != '200') return
|
|
|
|
if (res.code != "200") return;
|
|
|
|
this.listLoading = true
|
|
|
|
this.listLoading = true;
|
|
|
|
this.list = res.data.records
|
|
|
|
this.list = res.data.records;
|
|
|
|
this.list.forEach((value) => {
|
|
|
|
this.list.forEach(value => {
|
|
|
|
value['reportNameCode'] = value.reportName + '[' + value.reportCode + ']'
|
|
|
|
value["reportNameCode"] =
|
|
|
|
})
|
|
|
|
value.reportName + "[" + value.reportCode + "]";
|
|
|
|
this.totalCount = res.data.total
|
|
|
|
});
|
|
|
|
this.totalPage = res.data.pages
|
|
|
|
this.totalCount = res.data.total;
|
|
|
|
this.listLoading = false
|
|
|
|
this.totalPage = res.data.pages;
|
|
|
|
|
|
|
|
this.listLoading = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSizeChange (val) {
|
|
|
|
handleSizeChange(val) {
|
|
|
|
this.params.pageSize = val
|
|
|
|
this.params.pageSize = val;
|
|
|
|
this.queryByPage()
|
|
|
|
this.queryByPage();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleCurrentChange (val) {
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
this.params.pageNumber = val
|
|
|
|
this.params.pageNumber = val;
|
|
|
|
this.queryByPage()
|
|
|
|
this.queryByPage();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
openDesign(val) {
|
|
|
|
openDesign(val) {
|
|
|
|
var routeUrl = this.$router.resolve({ path: '/bigscreen/designer', query: { reportCode: val.reportCode, reportId: val.id, accessKey: val.accessKey } })
|
|
|
|
var routeUrl = this.$router.resolve({
|
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
|
path: "/bigscreen/designer",
|
|
|
|
|
|
|
|
query: {
|
|
|
|
|
|
|
|
reportCode: val.reportCode,
|
|
|
|
|
|
|
|
reportId: val.id,
|
|
|
|
|
|
|
|
accessKey: val.accessKey
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
window.open(routeUrl.href, "_blank");
|
|
|
|
},
|
|
|
|
},
|
|
|
|
viewDesign(val) {
|
|
|
|
viewDesign(val) {
|
|
|
|
var routeUrl = this.$router.resolve({ path: '/bigscreen/viewer', query: { reportCode: val.reportCode } })
|
|
|
|
var routeUrl = this.$router.resolve({
|
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
|
path: "/bigscreen/viewer",
|
|
|
|
|
|
|
|
query: { reportCode: val.reportCode }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
window.open(routeUrl.href, "_blank");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -181,15 +183,10 @@ export default {
|
|
|
|
border: 12px solid white;
|
|
|
|
border: 12px solid white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.bg::before {
|
|
|
|
.bg .bg-img {
|
|
|
|
content: "";
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-image: url("../../../assets/images/charts.jpg");
|
|
|
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
|
|
background-position: left top;
|
|
|
|
|
|
|
|
filter: blur(6px);
|
|
|
|
filter: blur(6px);
|
|
|
|
z-index: 2;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|