Compare commits
23 Commits
2267444b4a
...
projects/m
| Author | SHA1 | Date | |
|---|---|---|---|
| be430ebbff | |||
| eb063779b4 | |||
|
|
a2672c1742 | ||
| 4e97989ede | |||
|
|
67200710c9 | ||
| 7e2b75aaa5 | |||
| 8ad9b9d717 | |||
| 3bf2757e42 | |||
|
|
37586a31c5 | ||
|
|
40b023cd8d | ||
| 61b4bf784b | |||
| b0f10b9002 | |||
| e6b9d75f16 | |||
| d9f3434712 | |||
| de15716b7c | |||
| c736992a34 | |||
| dcbb2c719b | |||
| bc2940ca99 | |||
| 76938951ed | |||
| 8b91e7812f | |||
| 9cffa01414 | |||
| 905479d5f4 | |||
| c1ae248234 |
@@ -15,15 +15,14 @@ VUE_APP_TITLE = MES系统
|
|||||||
VUE_APP_BASE_API = '/prod-api'
|
VUE_APP_BASE_API = '/prod-api'
|
||||||
|
|
||||||
# 积木报表指向地址
|
# 积木报表指向地址
|
||||||
VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
|
VUE_APP_JIMU_API = 'http://10.70.2.2:8080'
|
||||||
|
|
||||||
|
|
||||||
# 根据服务器或域名修改
|
# 根据服务器或域名修改
|
||||||
# PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/'
|
PUBLIC_PATH = 'http://10.70.2.32'
|
||||||
PUBLIC_PATH = 'http://192.168.0.33:8889/'
|
|
||||||
|
|
||||||
# 二级部署路径
|
# 二级部署路径
|
||||||
VUE_APP_APP_NAME ='yudao-admin'
|
# VUE_APP_APP_NAME ='yudao-admin'
|
||||||
|
|
||||||
# 多租户的开关
|
# 多租户的开关
|
||||||
VUE_APP_TENANT_ENABLE = true
|
VUE_APP_TENANT_ENABLE = true
|
||||||
|
|||||||
22
.env.stage
22
.env.stage
@@ -1,16 +1,21 @@
|
|||||||
NODE_ENV = production
|
# 生产环境配置
|
||||||
|
ENV = 'production'
|
||||||
|
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 产线监控系统
|
VUE_APP_TITLE = MES系统
|
||||||
|
|
||||||
# 测试环境配置
|
# 芋道管理系统/生产环境
|
||||||
ENV = 'staging'
|
VUE_APP_BASE_API = '/prod-api'
|
||||||
|
|
||||||
# 芋道管理系统/测试环境
|
# 积木报表指向地址
|
||||||
VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn'
|
VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
|
||||||
|
|
||||||
# 静态资源地址
|
|
||||||
PUBLIC_PATH = 'http://static.yudao.iocoder.cn/'
|
# 根据服务器或域名修改
|
||||||
|
PUBLIC_PATH = 'http://192.168.0.33:8889/'
|
||||||
|
|
||||||
|
# 二级部署路径
|
||||||
|
# VUE_APP_APP_NAME ='yudao-admin'
|
||||||
|
|
||||||
# 多租户的开关
|
# 多租户的开关
|
||||||
VUE_APP_TENANT_ENABLE = true
|
VUE_APP_TENANT_ENABLE = true
|
||||||
@@ -20,4 +25,3 @@ VUE_APP_DOC_ENABLE = false
|
|||||||
|
|
||||||
# 百度统计
|
# 百度统计
|
||||||
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
|
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
|
||||||
|
|
||||||
|
|||||||
@@ -360,6 +360,7 @@ export default {
|
|||||||
ts: Date.now(), // 现在的时间戳
|
ts: Date.now(), // 现在的时间戳
|
||||||
}
|
}
|
||||||
reqGet(data).then(res => {
|
reqGet(data).then(res => {
|
||||||
|
console.log(1)
|
||||||
if (res.repCode === '0000') {
|
if (res.repCode === '0000') {
|
||||||
this.backImgBase = res.repData.originalImageBase64
|
this.backImgBase = res.repData.originalImageBase64
|
||||||
this.blockBackImgBase = res.repData.jigsawImageBase64
|
this.blockBackImgBase = res.repData.jigsawImageBase64
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ const tableProps = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
name: "EnergyPlc",
|
name: "EnergyQuantityRealtime",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formConfig: [
|
formConfig: [
|
||||||
@@ -125,10 +125,34 @@ export default {
|
|||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
this.tableH = this.tableHeight(260)
|
this.tableH = this.tableHeight(260)
|
||||||
})
|
})
|
||||||
|
if (location.href.indexOf('?') > 0) {
|
||||||
|
let arr = location.href.split('?')[1].split('&')
|
||||||
|
this.formConfig[1].defaultSelect = [arr[0].split('=')[1], arr[1].split('=')[1]]
|
||||||
|
} else {
|
||||||
|
this.formConfig[1].defaultSelect = [Date.now() - 7*24*3600000, Date.now()]
|
||||||
|
}
|
||||||
|
this.queryParams.startTime = this.formConfig[1].defaultSelect[0]
|
||||||
|
this.queryParams.endTime = this.formConfig[1].defaultSelect[1]
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getTypeList()
|
this.getTypeList()
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
$route: 'initData'
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
initData(to) {
|
||||||
|
if (to.name === 'EnergyQuantityRealtime') {
|
||||||
|
if (location.href.indexOf('?') > 0) {
|
||||||
|
let arr = location.href.split('?')[1].split('&')
|
||||||
|
this.formConfig[1].defaultSelect = [arr[0].split('=')[1], arr[1].split('=')[1]]
|
||||||
|
} else {
|
||||||
|
this.formConfig[1].defaultSelect = [Date.now() - 7*24*3600000, Date.now()]
|
||||||
|
}
|
||||||
|
this.queryParams.startTime = this.formConfig[1].defaultSelect[0]
|
||||||
|
this.queryParams.endTime = this.formConfig[1].defaultSelect[1]
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
this.queryParams.pageNo = 1;
|
this.queryParams.pageNo = 1;
|
||||||
this.queryParams.energyTypeId = val.energyTypeId
|
this.queryParams.energyTypeId = val.energyTypeId
|
||||||
|
|||||||
@@ -80,8 +80,7 @@ export default {
|
|||||||
param: 'timeVal',
|
param: 'timeVal',
|
||||||
defaultSelect: [],
|
defaultSelect: [],
|
||||||
width: 350,
|
width: 350,
|
||||||
clearable: false,
|
clearable: false
|
||||||
required:true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
@@ -122,35 +121,11 @@ export default {
|
|||||||
this.tableH = this.tableHeight(260)
|
this.tableH = this.tableHeight(260)
|
||||||
this.isFold = this.searchBarWidth('energyReportSearchBox', 1180)
|
this.isFold = this.searchBarWidth('energyReportSearchBox', 1180)
|
||||||
})
|
})
|
||||||
if (location.href.indexOf('?') > 0) {
|
|
||||||
let arr = location.href.split('?')[1].split('&')
|
|
||||||
this.formConfig[2].defaultSelect = [arr[0].split('=')[1], arr[1].split('=')[1]]
|
|
||||||
} else {
|
|
||||||
this.formConfig[2].defaultSelect = [Date.now() - 7*24*3600000, Date.now()]
|
|
||||||
}
|
|
||||||
this.queryParams.startTime = this.formConfig[2].defaultSelect[0]
|
|
||||||
this.queryParams.endTime = this.formConfig[2].defaultSelect[1]
|
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getTypeList()
|
this.getTypeList()
|
||||||
this.isFold = this.searchBarWidth('energyReportSearchBox', 1180)
|
this.isFold = this.searchBarWidth('energyReportSearchBox', 1180)
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
$route: 'initData'
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
initData(to) {
|
|
||||||
if (to.name === 'EnergyReportSearch') {
|
|
||||||
if (location.href.indexOf('?') > 0) {
|
|
||||||
let arr = location.href.split('?')[1].split('&')
|
|
||||||
this.formConfig[2].defaultSelect = [arr[0].split('=')[1], arr[1].split('=')[1]]
|
|
||||||
} else {
|
|
||||||
this.formConfig[2].defaultSelect = [Date.now() - 7*24*3600000, Date.now()]
|
|
||||||
}
|
|
||||||
this.queryParams.startTime = this.formConfig[2].defaultSelect[0]
|
|
||||||
this.queryParams.endTime = this.formConfig[2].defaultSelect[1]
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
getTypeList() {
|
getTypeList() {
|
||||||
getEnergyTypeListAll().then((res) => {
|
getEnergyTypeListAll().then((res) => {
|
||||||
this.formConfig[1].selectOptions = res.data || []
|
this.formConfig[1].selectOptions = res.data || []
|
||||||
|
|||||||
@@ -290,7 +290,8 @@ export default {
|
|||||||
break;
|
break;
|
||||||
case '2': // 能源
|
case '2': // 能源
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/energy/monitoring/energy-report-search?startTime='+this.chooseObj.startTime+'&endTime='+this.chooseObj.endTime
|
// path: '/energy/monitoring/energy-report-search?startTime='+this.chooseObj.startTime+'&endTime='+this.chooseObj.endTime
|
||||||
|
path: '/energy/base/energy-quantity-realtime?startTime='+this.chooseObj.startTime+'&endTime='+this.chooseObj.endTime
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<base-table class="base-table__margin" :table-props="productProps" :page="1" :limit="10" :table-data="list">
|
<base-table class="base-table__margin" :table-props="productProps" :page="1" :limit="10" :table-data="list">
|
||||||
</base-table>
|
</base-table>
|
||||||
<div v-for="(item,index) in downProps" :key="index">
|
<div v-for="(item,index) in downProps" :key="index">
|
||||||
<div class="blue-title">工单:{{ list[index].workOrderName }}</div>
|
<div class="blue-title">工单名称:{{ list[index].workOrderName }}</div>
|
||||||
<base-table class="base-table__margin" :table-props="item" :page="1" :limit="10"
|
<base-table class="base-table__margin" :table-props="item" :page="1" :limit="10"
|
||||||
:table-data="downList[index]">
|
:table-data="downList[index]">
|
||||||
</base-table>
|
</base-table>
|
||||||
@@ -214,7 +214,7 @@ export default {
|
|||||||
{
|
{
|
||||||
// width: 160,
|
// width: 160,
|
||||||
prop: 'workOrderName',
|
prop: 'workOrderName',
|
||||||
label: '工单名',
|
label: '工单名称',
|
||||||
},
|
},
|
||||||
...this.dynamicProps,
|
...this.dynamicProps,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
<el-form ref="form" :model="innerDataForm" label-width="100px" v-loading="formLoading">
|
<el-form ref="form" :model="innerDataForm" label-width="100px" v-loading="formLoading">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="工单号" prop="workOrderId" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
<el-form-item label="工单名称" prop="workOrderId" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
||||||
<el-select v-model="innerDataForm.workOrderId" placeholder="请选择工单号" filterable clearable>
|
<el-select v-model="innerDataForm.workOrderId" placeholder="请选择工单名称" filterable clearable>
|
||||||
<el-option v-for="opt in workOrderList" :key="opt.value" :label="opt.label" :value="opt.value" />
|
<el-option v-for="opt in workOrderList" :key="opt.value" :label="opt.label" :value="opt.value" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -141,8 +141,8 @@ export default {
|
|||||||
searchBarFormConfig: [
|
searchBarFormConfig: [
|
||||||
{
|
{
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: '工单号',
|
label: '工单名称',
|
||||||
placeholder: '请选择工单号',
|
placeholder: '请选择工单名称',
|
||||||
param: 'workOrderId',
|
param: 'workOrderId',
|
||||||
selectOptions: [],
|
selectOptions: [],
|
||||||
filterable:true
|
filterable:true
|
||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
{
|
{
|
||||||
// width: 128,
|
// width: 128,
|
||||||
prop: 'workOrderName',
|
prop: 'workOrderName',
|
||||||
label: '工单Id',
|
label: '工单名称',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// width: 128,
|
// width: 128,
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ export default {
|
|||||||
searchBarFormConfig: [
|
searchBarFormConfig: [
|
||||||
{
|
{
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: '工单号',
|
label: '工单名称',
|
||||||
placeholder: '请选择工单号',
|
placeholder: '请选择工单名称',
|
||||||
param: 'workOrderIdList',
|
param: 'workOrderIdList',
|
||||||
selectOptions: [],
|
selectOptions: [],
|
||||||
multiple: true,
|
multiple: true,
|
||||||
@@ -205,8 +205,8 @@ export default {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
// width: 128,
|
// width: 128,
|
||||||
prop: 'workOrderId',
|
prop: 'workOrderName',
|
||||||
label: '工单号',
|
label: '工单名称',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// width: 128,
|
// width: 128,
|
||||||
|
|||||||
Reference in New Issue
Block a user