projects/mescc/zjl #31
8
.env.dev
8
.env.dev
@ -9,15 +9,15 @@
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 芋道管理系统
|
VUE_APP_TITLE = 发电玻璃智能管控平台
|
||||||
|
|
||||||
# 芋道管理系统/开发环境
|
# 芋道管理系统/开发环境
|
||||||
# VUE_APP_BASE_API = 'http://192.168.1.70:30307'
|
# VUE_APP_BASE_API = 'http://192.168.1.70:30307'
|
||||||
# VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com'
|
VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com'
|
||||||
# sara
|
# sara
|
||||||
# VUE_APP_BASE_API = 'http://192.168.1.63:48080'
|
# VUE_APP_BASE_API = 'http://192.168.1.63:48080'
|
||||||
# 张一丁
|
# 张一丁
|
||||||
VUE_APP_BASE_API = 'http://192.168.4.139:48080'
|
# VUE_APP_BASE_API = 'http://192.168.4.139:48080'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
@ -26,7 +26,7 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
|||||||
VUE_APP_TENANT_ENABLE = true
|
VUE_APP_TENANT_ENABLE = true
|
||||||
|
|
||||||
# 验证码的开关
|
# 验证码的开关
|
||||||
VUE_APP_CAPTCHA_ENABLE = true
|
VUE_APP_CAPTCHA_ENABLE = false
|
||||||
|
|
||||||
# 文档的开关
|
# 文档的开关
|
||||||
VUE_APP_DOC_ENABLE = true
|
VUE_APP_DOC_ENABLE = true
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 芋道管理系统
|
VUE_APP_TITLE = 发电玻璃智能管控平台
|
||||||
|
|
||||||
# 芋道管理系统/本地环境
|
# 芋道管理系统/本地环境
|
||||||
VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn'
|
VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn'
|
||||||
@ -14,7 +14,7 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
|||||||
VUE_APP_TENANT_ENABLE = true
|
VUE_APP_TENANT_ENABLE = true
|
||||||
|
|
||||||
# 验证码的开关
|
# 验证码的开关
|
||||||
VUE_APP_CAPTCHA_ENABLE = true
|
VUE_APP_CAPTCHA_ENABLE = false
|
||||||
|
|
||||||
# 文档的开关
|
# 文档的开关
|
||||||
VUE_APP_DOC_ENABLE = true
|
VUE_APP_DOC_ENABLE = true
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
NODE_ENV = 'production'
|
NODE_ENV = 'production'
|
||||||
|
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 玻璃控股信息平台
|
VUE_APP_TITLE = 发电玻璃智能管控平台
|
||||||
|
|
||||||
# 芋道管理系统/生产环境
|
# 芋道管理系统/生产环境
|
||||||
VUE_APP_BASE_API = ''
|
VUE_APP_BASE_API = ''
|
||||||
@ -16,7 +16,7 @@ PUBLIC_PATH = ''
|
|||||||
VUE_APP_TENANT_ENABLE = true
|
VUE_APP_TENANT_ENABLE = true
|
||||||
|
|
||||||
# 验证码的开关
|
# 验证码的开关
|
||||||
VUE_APP_CAPTCHA_ENABLE = true
|
VUE_APP_CAPTCHA_ENABLE = false
|
||||||
|
|
||||||
# 文档的开关
|
# 文档的开关
|
||||||
VUE_APP_DOC_ENABLE = false
|
VUE_APP_DOC_ENABLE = false
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
NODE_ENV = production
|
NODE_ENV = production
|
||||||
|
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 芋道管理系统
|
VUE_APP_TITLE = 发电玻璃智能管控平台
|
||||||
|
|
||||||
# 测试环境配置
|
# 测试环境配置
|
||||||
ENV = 'staging'
|
ENV = 'staging'
|
||||||
@ -16,7 +16,7 @@ PUBLIC_PATH = 'http://static.yudao.iocoder.cn/'
|
|||||||
VUE_APP_TENANT_ENABLE = true
|
VUE_APP_TENANT_ENABLE = true
|
||||||
|
|
||||||
# 验证码的开关
|
# 验证码的开关
|
||||||
VUE_APP_CAPTCHA_ENABLE = true
|
VUE_APP_CAPTCHA_ENABLE = false
|
||||||
|
|
||||||
# 文档的开关
|
# 文档的开关
|
||||||
VUE_APP_DOC_ENABLE = false
|
VUE_APP_DOC_ENABLE = false
|
||||||
|
@ -4,7 +4,7 @@ NODE_ENV = development
|
|||||||
ENV = 'staging'
|
ENV = 'staging'
|
||||||
|
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 芋道管理系统
|
VUE_APP_TITLE = 发电玻璃智能管控平台
|
||||||
|
|
||||||
# 芋道管理系统/测试环境
|
# 芋道管理系统/测试环境
|
||||||
VUE_APP_BASE_API = 'http://127.0.0.1:48080'
|
VUE_APP_BASE_API = 'http://127.0.0.1:48080'
|
||||||
@ -18,7 +18,7 @@ VUE_APP_APP_NAME ='/admin-ui-vue2/'
|
|||||||
VUE_APP_TENANT_ENABLE = true
|
VUE_APP_TENANT_ENABLE = true
|
||||||
|
|
||||||
# 验证码的开关
|
# 验证码的开关
|
||||||
VUE_APP_CAPTCHA_ENABLE = true
|
VUE_APP_CAPTCHA_ENABLE = false
|
||||||
|
|
||||||
# 文档的开关
|
# 文档的开关
|
||||||
VUE_APP_DOC_ENABLE = true
|
VUE_APP_DOC_ENABLE = true
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB |
@ -49,7 +49,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import logoImg from "@/assets/logo/logo.png";
|
import logoImg from "@/assets/logo/cnbm.png";
|
||||||
import variables from "@/assets/styles/variables.scss";
|
import variables from "@/assets/styles/variables.scss";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -70,7 +70,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: "玻璃控股信息平台",
|
title: "发电玻璃智能管控平台",
|
||||||
logo: logoImg,
|
logo: logoImg,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -104,7 +104,7 @@ export default {
|
|||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: 12px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .sidebar-title {
|
& .sidebar-title {
|
||||||
@ -113,7 +113,7 @@ export default {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
font-size: 14px;
|
font-size: 19px;
|
||||||
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
|
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
@ -218,7 +218,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
codeUrl: "",
|
codeUrl: "",
|
||||||
captchaEnable: true,
|
captchaEnable: false,
|
||||||
tenantEnable: true,
|
tenantEnable: true,
|
||||||
mobileCodeTimer: 0,
|
mobileCodeTimer: 0,
|
||||||
loginForm: {
|
loginForm: {
|
||||||
|
@ -6,60 +6,143 @@
|
|||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div style="display: flex; flex-direction: column; min-height: calc(100vh - 96px - 31px)">
|
<div
|
||||||
<div class="app-container" style="padding: 16px 24px 0; max-height: 45vh; flex-grow: 1;">
|
style="
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: calc(100vh - 96px - 31px);
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="app-container"
|
||||||
|
style="padding: 16px; max-height: 45vh; flex-grow: 1"
|
||||||
|
>
|
||||||
<!-- <div style="position: relative;z-index: 999;"> -->
|
<!-- <div style="position: relative;z-index: 999;"> -->
|
||||||
<el-form :model="listQuery" :inline="true" ref="dataForm" class="blueTip">
|
<el-form :model="listQuery" :inline="true" ref="dataForm" class="blueTip">
|
||||||
<el-form-item label="时间维度" prop="reportTime">
|
<el-form-item label="时间维度" prop="reportTime">
|
||||||
<el-select clearable v-model="timeSelect" placeholder="请选择">
|
<el-select
|
||||||
<el-option v-for="item in timeList" :key="item.value" :label="item.label" :value="item.value">
|
clearable
|
||||||
|
v-model="timeSelect"
|
||||||
|
placeholder="请选择"
|
||||||
|
style="width: 80px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in timeList"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-show="timeSelect === 'month'" label="时间范围" prop="reportTime">
|
<el-form-item
|
||||||
<el-date-picker clearable v-model="listQuery.reportTime" type="monthrange" range-separator="至"
|
v-show="timeSelect === 'month'"
|
||||||
start-placeholder="开始月份" end-placeholder="结束月份" @change="changeTime">
|
label="时间范围"
|
||||||
|
prop="reportTime"
|
||||||
|
>
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="listQuery.reportTime"
|
||||||
|
type="monthrange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始月份"
|
||||||
|
end-placeholder="结束月份"
|
||||||
|
@change="changeTime"
|
||||||
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-show="timeSelect === 'year'" label="时间范围" prop="reportTime">
|
<el-form-item
|
||||||
<el-date-picker clearable v-model="listQuery.reportTime[0]" value-format="yyyy" type="year"
|
v-show="timeSelect === 'year'"
|
||||||
placeholder="开始时间">
|
label="时间范围"
|
||||||
|
prop="reportTime"
|
||||||
|
>
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="listQuery.reportTime[0]"
|
||||||
|
value-format="yyyy"
|
||||||
|
type="year"
|
||||||
|
placeholder="开始时间"
|
||||||
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
~
|
~
|
||||||
<el-date-picker v-model="listQuery.reportTime[1]" value-format="yyyy" type="year" placeholder="结束时间"
|
<el-date-picker
|
||||||
@change="getYear">
|
v-model="listQuery.reportTime[1]"
|
||||||
|
value-format="yyyy"
|
||||||
|
type="year"
|
||||||
|
placeholder="结束时间"
|
||||||
|
@change="getYear"
|
||||||
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="工厂名称" prop="factoryId">
|
<el-form-item label="工厂名称" prop="factoryId">
|
||||||
<el-select clearable v-model="listQuery.factoryId" placeholder="请选择工厂名称">
|
<el-select
|
||||||
<el-option v-for="item in factoryList" :key="item.id" :label="item.name" :value="item.id">
|
multiple
|
||||||
|
collapse-tags
|
||||||
|
v-model="listQuery.factoryId"
|
||||||
|
placeholder="请选择工厂名称"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in factoryList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="玻璃类型" prop="type">
|
<el-form-item label="玻璃类型" prop="type">
|
||||||
<el-select clearable v-model="listQuery.type" placeholder="请选择玻璃类型">
|
<el-select
|
||||||
<el-option v-for="item in typeList" :key="item.id" :label="item.name" :value="item.id">
|
clearable
|
||||||
|
v-model="listQuery.type"
|
||||||
|
placeholder="请选择玻璃类型"
|
||||||
|
style="width: 120px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in typeList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" size="small" @click="getDataList">查询</el-button>
|
<el-button type="primary" size="small" @click="getDataList"
|
||||||
<el-button type="primary" size="small" plain @click="handleExport">导出</el-button>
|
>查询</el-button
|
||||||
|
>
|
||||||
|
<el-button type="primary" size="small" plain @click="handleExport"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<!-- <el-row style="height: 500px;"> -->
|
<!-- <el-row style="height: 500px;"> -->
|
||||||
<!-- <div> -->
|
<!-- <div> -->
|
||||||
<line-chart class="yearChart" ref="lineChart" style="height: 35vh;width: 100%"></line-chart>
|
<line-chart
|
||||||
|
class="yearChart"
|
||||||
|
ref="lineChart"
|
||||||
|
style="height: 35vh; width: 100%"
|
||||||
|
></line-chart>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<!-- </el-row> -->
|
<!-- </el-row> -->
|
||||||
</div>
|
</div>
|
||||||
<!-- <el-row style="height: 400px;"> -->
|
<!-- <el-row style="height: 400px;"> -->
|
||||||
<!-- </el-row> -->
|
<!-- </el-row> -->
|
||||||
<div class="app-container" style="margin-top: 18px; height: unset; flex-grow: 1; padding: 16px;">
|
<div
|
||||||
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
|
class="app-container"
|
||||||
<base-table :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize"
|
style="margin-top: 18px; height: unset; flex-grow: 1; padding: 16px"
|
||||||
:table-data="tableData">
|
>
|
||||||
|
<search-bar
|
||||||
|
:formConfigs="formConfig"
|
||||||
|
ref="searchBarForm"
|
||||||
|
@headBtnClick="buttonClick"
|
||||||
|
/>
|
||||||
|
<base-table
|
||||||
|
:table-props="tableProps"
|
||||||
|
:page="listQuery.pageNo"
|
||||||
|
:limit="listQuery.pageSize"
|
||||||
|
:table-data="tableData"
|
||||||
|
>
|
||||||
</base-table>
|
</base-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -69,9 +152,9 @@
|
|||||||
// import { parseTime } from '../../core/mixins/code-filter';
|
// import { parseTime } from '../../core/mixins/code-filter';
|
||||||
// import { getGlassPage, exportGlasscExcel } from '@/api/report/glass';
|
// import { getGlassPage, exportGlasscExcel } from '@/api/report/glass';
|
||||||
// import inputTable from './inputTable.vue';
|
// import inputTable from './inputTable.vue';
|
||||||
import { report } from 'process';
|
import { report } from "process";
|
||||||
import lineChart from './lineChart';
|
import lineChart from "./lineChart";
|
||||||
import moment from 'moment'
|
import moment from "moment";
|
||||||
// import FileSaver from 'file-saver'
|
// import FileSaver from 'file-saver'
|
||||||
// import * as XLSX from 'xlsx'
|
// import * as XLSX from 'xlsx'
|
||||||
export default {
|
export default {
|
||||||
@ -85,50 +168,62 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
type: null,
|
type: null,
|
||||||
// reportType: 2,
|
// reportType: 2,
|
||||||
reportTime: []
|
reportTime: [],
|
||||||
},
|
},
|
||||||
// startDatePicker: this.beginDate(),
|
// startDatePicker: this.beginDate(),
|
||||||
// endDatePicker: this.processDate(),
|
// endDatePicker: this.processDate(),
|
||||||
yeartsStart: '',
|
yeartsStart: "",
|
||||||
yeartsEnd: '',
|
yeartsEnd: "",
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
// getDataListURL: getGlassPage,
|
// getDataListURL: getGlassPage,
|
||||||
// exportURL: exportGlasscExcel
|
// exportURL: exportGlasscExcel
|
||||||
},
|
},
|
||||||
timeList: [
|
timeList: [
|
||||||
{
|
{
|
||||||
value: 'month',
|
value: "day",
|
||||||
label:'月'
|
label: "日",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'year',
|
value: "week",
|
||||||
label: '年'
|
label: "周",
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
value: "month",
|
||||||
|
label: "月",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "year",
|
||||||
|
label: "年",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
factoryList: [
|
factoryList: [
|
||||||
{
|
{
|
||||||
name: '测试',
|
name: "瑞昌",
|
||||||
id:1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
typeList: [
|
|
||||||
{
|
|
||||||
name: '芯片',
|
|
||||||
id:0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '标准组件',
|
|
||||||
id: 1,
|
id: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'BIPV产品',
|
name: "邯郸",
|
||||||
|
id: 2,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
typeList: [
|
||||||
|
{
|
||||||
|
name: "芯片",
|
||||||
|
id: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "标准组件",
|
||||||
|
id: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "BIPV产品",
|
||||||
id: 2,
|
id: 2,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
{
|
||||||
type: 'title',
|
type: "title",
|
||||||
label: '报表管理',
|
label: "报表管理",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tableProps: [
|
tableProps: [
|
||||||
@ -140,69 +235,72 @@ export default {
|
|||||||
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: "userName",
|
||||||
label: '科目',
|
label: "科目",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'nickName',
|
prop: "nickName",
|
||||||
label: '类别',
|
label: "类别",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'datas',
|
prop: "datas",
|
||||||
label: '数值',
|
label: "数值",
|
||||||
// subcomponent: row
|
// subcomponent: row
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'unit',
|
prop: "unit",
|
||||||
label: '单位',
|
label: "单位",
|
||||||
// subcomponent: row
|
// subcomponent: row
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: "remark",
|
||||||
label: '备注',
|
label: "备注",
|
||||||
// subcomponent: row
|
// subcomponent: row
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
timeSelect:'month',
|
timeSelect: "month",
|
||||||
startTimeStamp: null, //开始时间
|
startTimeStamp: null, //开始时间
|
||||||
endTimeStamp: null, //结束时间
|
endTimeStamp: null, //结束时间
|
||||||
date:'凯盛玻璃控股成员企业2024生产数据',
|
date: "凯盛玻璃控股成员企业2024生产数据",
|
||||||
// reportTime: '',
|
// reportTime: '',
|
||||||
startTimeStamp: '',
|
startTimeStamp: "",
|
||||||
endTimeStamp: '',
|
endTimeStamp: "",
|
||||||
tableData: [
|
tableData: [
|
||||||
{
|
{
|
||||||
userName: 'userName',
|
userName: "userName",
|
||||||
nickName: '用户名',
|
nickName: "用户名",
|
||||||
datas:'111111'
|
datas: "111111",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
userName: 'userName',
|
userName: "userName",
|
||||||
nickName: '用户名',
|
nickName: "用户名",
|
||||||
datas: '111111'
|
datas: "111111",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
userName: 'userName',
|
userName: "userName",
|
||||||
nickName: '用户名',
|
nickName: "用户名",
|
||||||
datas: '111111'
|
datas: "111111",
|
||||||
// subcomponent: row
|
// subcomponent: row
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
// proLineList: [],
|
// proLineList: [],
|
||||||
// all: {}
|
// all: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDict()
|
this.getDict();
|
||||||
// this.getCurrentYearFirst()
|
// this.getCurrentYearFirst()
|
||||||
// this.getDataList()
|
// this.getDataList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getYear(e) {
|
getYear(e) {
|
||||||
if (this.listQuery.reportTime[0] && e - this.listQuery.reportTime[0] > 10) {
|
if (
|
||||||
|
this.listQuery.reportTime[0] &&
|
||||||
|
e - this.listQuery.reportTime[0] > 10
|
||||||
|
) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '年份起止时间不能超过十年',
|
message: "年份起止时间不能超过十年",
|
||||||
type: 'warning'
|
type: "warning",
|
||||||
});
|
});
|
||||||
// console.log();
|
// console.log();
|
||||||
}
|
}
|
||||||
@ -210,24 +308,34 @@ export default {
|
|||||||
},
|
},
|
||||||
changeTime() {
|
changeTime() {
|
||||||
if (this.listQuery.reportTime) {
|
if (this.listQuery.reportTime) {
|
||||||
this.createStartDate = moment(new Date(this.listQuery.reportTime[0]), 'yyyy-MM-dd hh:mm:ss');
|
this.createStartDate = moment(
|
||||||
this.createEndDate = moment(new Date(this.listQuery.reportTime[1]), 'yyyy-MM-dd hh:mm:ss');
|
new Date(this.listQuery.reportTime[0]),
|
||||||
const numDays = (new Date(this.listQuery.reportTime[1]).getTime() - new Date(this.listQuery.reportTime[0]).getTime()) / (24 * 3600 * 1000); if (numDays > 730) {
|
"yyyy-MM-dd hh:mm:ss"
|
||||||
|
);
|
||||||
|
this.createEndDate = moment(
|
||||||
|
new Date(this.listQuery.reportTime[1]),
|
||||||
|
"yyyy-MM-dd hh:mm:ss"
|
||||||
|
);
|
||||||
|
const numDays =
|
||||||
|
(new Date(this.listQuery.reportTime[1]).getTime() -
|
||||||
|
new Date(this.listQuery.reportTime[0]).getTime()) /
|
||||||
|
(24 * 3600 * 1000);
|
||||||
|
if (numDays > 730) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '时间范围不能超过24个月',
|
message: "时间范围不能超过24个月",
|
||||||
type: 'warning'
|
type: "warning",
|
||||||
});
|
});
|
||||||
this.listQuery.reportTime = [];
|
this.listQuery.reportTime = [];
|
||||||
this.createStartDate = '';
|
this.createStartDate = "";
|
||||||
this.createEndDate = '';
|
this.createEndDate = "";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.createStartDate = '';
|
this.createStartDate = "";
|
||||||
this.createEndDate = '';
|
this.createEndDate = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getDict() {
|
async getDict() {
|
||||||
this.$refs.lineChart.initChart()
|
this.$refs.lineChart.initChart();
|
||||||
// 产线列表
|
// 产线列表
|
||||||
// const res = await getCorePLList();
|
// const res = await getCorePLList();
|
||||||
// this.proLineList = res.data;
|
// this.proLineList = res.data;
|
||||||
@ -243,26 +351,24 @@ export default {
|
|||||||
}
|
}
|
||||||
floatVal = Math.round(str * 10000) / 100;
|
floatVal = Math.round(str * 10000) / 100;
|
||||||
let strVal = floatVal.toString();
|
let strVal = floatVal.toString();
|
||||||
let searchVal = strVal.indexOf('.');
|
let searchVal = strVal.indexOf(".");
|
||||||
if (searchVal < 0) {
|
if (searchVal < 0) {
|
||||||
searchVal = strVal.length;
|
searchVal = strVal.length;
|
||||||
strVal += '.';
|
strVal += ".";
|
||||||
}
|
}
|
||||||
while (strVal.length <= searchVal + 2) {
|
while (strVal.length <= searchVal + 2) {
|
||||||
strVal += '0';
|
strVal += "0";
|
||||||
}
|
}
|
||||||
return parseFloat(strVal);
|
return parseFloat(strVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
|
||||||
async getDataList() {
|
|
||||||
},
|
},
|
||||||
|
async getDataList() {},
|
||||||
add0(m) {
|
add0(m) {
|
||||||
return m < 10 ? '0' + m : m
|
return m < 10 ? "0" + m : m;
|
||||||
},
|
},
|
||||||
format(shijianchuo) {
|
format(shijianchuo) {
|
||||||
//shijianchuo是整数,否则要parseInt转换
|
//shijianchuo是整数,否则要parseInt转换
|
||||||
var time = moment(new Date(shijianchuo)).format('YYYY-MM-DD HH:mm:ss')
|
var time = moment(new Date(shijianchuo)).format("YYYY-MM-DD HH:mm:ss");
|
||||||
// console.log(time)
|
// console.log(time)
|
||||||
// var y = time.getFullYear();
|
// var y = time.getFullYear();
|
||||||
// var m = time.getMonth() + 1;
|
// var m = time.getMonth() + 1;
|
||||||
@ -270,7 +376,7 @@ export default {
|
|||||||
// var h = time.getHours();
|
// var h = time.getHours();
|
||||||
// var mm = time.getMinutes();
|
// var mm = time.getMinutes();
|
||||||
// var s = time.getSeconds();
|
// var s = time.getSeconds();
|
||||||
return time
|
return time;
|
||||||
},
|
},
|
||||||
// changeTime(val) {
|
// changeTime(val) {
|
||||||
// if (val) {
|
// if (val) {
|
||||||
@ -295,17 +401,23 @@ export default {
|
|||||||
var year = 1900 + unixtimestamp.getYear();
|
var year = 1900 + unixtimestamp.getYear();
|
||||||
var month = "0" + (unixtimestamp.getMonth() + 1);
|
var month = "0" + (unixtimestamp.getMonth() + 1);
|
||||||
var date = "0" + unixtimestamp.getDate();
|
var date = "0" + unixtimestamp.getDate();
|
||||||
return year + "-" + month.substring(month.length - 2, month.length) + "-" + date.substring(date.length - 2, date.length)
|
return (
|
||||||
|
year +
|
||||||
|
"-" +
|
||||||
|
month.substring(month.length - 2, month.length) +
|
||||||
|
"-" +
|
||||||
|
date.substring(date.length - 2, date.length)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
this.listQuery.reportTime = val.reportTime ? val.reportTime : undefined;
|
this.listQuery.reportTime = val.reportTime ? val.reportTime : undefined;
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case 'search':
|
case "search":
|
||||||
this.listQuery.pageNo = 1;
|
this.listQuery.pageNo = 1;
|
||||||
this.listQuery.pageSize = 10;
|
this.listQuery.pageSize = 10;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case 'export':
|
case "export":
|
||||||
this.handleExport();
|
this.handleExport();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -344,7 +456,6 @@ export default {
|
|||||||
// return wbout;
|
// return wbout;
|
||||||
// //do something......
|
// //do something......
|
||||||
// })
|
// })
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -353,16 +464,15 @@ export default {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.blueTip::before {
|
.blueTip::before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
content: '';
|
content: "";
|
||||||
width: 4px;
|
width: 4px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
background: #0B58FF;
|
background: #0b58ff;
|
||||||
border-radius: 1px;
|
border-radius: 1px;
|
||||||
margin-right: 8PX;
|
margin-right: 8px;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
.app-container {
|
.app-container {
|
||||||
margin: 0 16px 0;
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 16px 16px 0;
|
padding: 16px 16px 0;
|
||||||
|
@ -714,7 +714,7 @@ export default {
|
|||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 20,
|
||||||
username: undefined,
|
username: undefined,
|
||||||
mobile: undefined,
|
mobile: undefined,
|
||||||
status: undefined,
|
status: undefined,
|
||||||
|
Loading…
Reference in New Issue
Block a user