Commit 685642c0 authored by xinzhedeai's avatar xinzhedeai

内蒙突泉首页图片处理

parent 373b51df
const { run } = require('runjs')
const chalk = require('chalk')
const config = require('../vue.config.js')
const rawArgv = process.argv.slice(2)
const args = rawArgv.join(' ')
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
const report = rawArgv.includes('--report')
run(`vue-cli-service build ${args}`)
const port = 9526
const publicPath = config.publicPath
var connect = require('connect')
var serveStatic = require('serve-static')
const app = connect()
app.use(
publicPath,
serveStatic('./dist', {
index: ['index.html', '/']
})
)
app.listen(port, function () {
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
if (report) {
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
}
})
} else {
run(`vue-cli-service build ${args}`)
}
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="app-container"> <div class="app-container">
<div class="box-card"> <div class="box-card">
<div class="top-title"> <div class="top-title">
<span class="title-text">历史数据</span> <span class="title-text">历史数据</span>
</div> </div>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="" prop="sensorid"> <el-form-item label="" prop="sensorid">
<el-input <el-input
......
<template> <template>
<div class="app-container"> <div class="app-container" style="padding:0">
<div class="tab-nav"> <img src="/img/index.png" style="width: 100%;height: 800px;">
<!-- <div class="tab-nav">
<ul class="tab-lits"> <ul class="tab-lits">
<li v-for="(item, index) in tabs" :key="index" :class="{ active: activeTab === index }" <li v-for="(item, index) in tabs" :key="index" :class="{ active: activeTab === index }"
@click="handtabclick(index,item)"> @click="handtabclick(index,item)">
...@@ -13,9 +14,9 @@ ...@@ -13,9 +14,9 @@
value-format="yyyy-MM-dd HH:mm:ss" @change="handleTimeRangeChange" /> value-format="yyyy-MM-dd HH:mm:ss" @change="handleTimeRangeChange" />
</ul> </ul>
</div> </div>
<iframe src="/sjzGwz" id="target-iframe" scrolling="no"></iframe> <iframe src="/sjzGwz" id="target-iframe" scrolling="no"></iframe> -->
<!-- 钻孔应力弹窗 --> <!-- 钻孔应力弹窗 -->
<el-dialog :title="zktitle" :visible.sync="zkDialog" append-to-body> <!-- <el-dialog :title="zktitle" :visible.sync="zkDialog" append-to-body>
<el-form ref="form" :model="form" label-width="120px" style="width:100%;height: 100%;display: flex;"> <el-form ref="form" :model="form" label-width="120px" style="width:100%;height: 100%;display: flex;">
<div class="tableline"> <div class="tableline">
<el-form-item label="设备名称" prop="pointcode"> <el-form-item label="设备名称" prop="pointcode">
...@@ -54,9 +55,9 @@ ...@@ -54,9 +55,9 @@
</div> </div>
</el-form> </el-form>
</el-dialog> </el-dialog> -->
<!-- 巷道位移弹窗 --> <!-- 巷道位移弹窗 -->
<el-dialog :title="xdtitle" :visible.sync="xdDialog" append-to-body> <!-- <el-dialog :title="xdtitle" :visible.sync="xdDialog" append-to-body>
<el-form ref="xdform" :model="xdform" label-width="200px" style="width:100%;height: 100%;display: flex;"> <el-form ref="xdform" :model="xdform" label-width="200px" style="width:100%;height: 100%;display: flex;">
<div class="tableline"> <div class="tableline">
<el-form-item label="设备名称" prop="devicename"> <el-form-item label="设备名称" prop="devicename">
...@@ -95,9 +96,9 @@ ...@@ -95,9 +96,9 @@
</div> </div>
</div> </div>
</el-form> </el-form>
</el-dialog> </el-dialog> -->
<!-- 微震监测弹窗 --> <!-- 微震监测弹窗 -->
<el-dialog :title="wztitle" :visible.sync="wzopen"> <!-- <el-dialog :title="wztitle" :visible.sync="wzopen">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick"> <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="波形" name="first"> <el-tab-pane label="波形" name="first">
<div class="wrapper" v-for="(item,index) in this.chartData" :key="index"> <div class="wrapper" v-for="(item,index) in this.chartData" :key="index">
...@@ -160,7 +161,7 @@ ...@@ -160,7 +161,7 @@
</el-form> </el-form>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-dialog> </el-dialog> -->
</div> </div>
</template> </template>
......
...@@ -34,8 +34,12 @@ module.exports = { ...@@ -34,8 +34,12 @@ module.exports = {
open: true, open: true,
proxy: { proxy: {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://192.168.0.103:8085/lswz`, // 线上内网 // target: `http://192.168.0.103:8085/lswz`, // 线上内网
// target: `http://192.168.1.79:8085/lswz`, // 广建薪给内网
// target: `http://192.168.3.188:8085/lswz`, // target: `http://192.168.3.188:8085/lswz`,
target: `http://192.168.3.166:8085/lswz`, // 广建本地新
//target: `http://192.168.3.37:8085/lswz`, //target: `http://192.168.3.37:8085/lswz`,
// target: `http://10.50.70.100:8085/lswz`, // target: `http://10.50.70.100:8085/lswz`,
changeOrigin: true, changeOrigin: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment