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}`)
}
<template>
<div class="app-container">
<div class="tab-nav">
<div class="app-container" style="padding:0">
<img src="/img/index.png" style="width: 100%;height: 800px;">
<!-- <div class="tab-nav">
<ul class="tab-lits">
<li v-for="(item, index) in tabs" :key="index" :class="{ active: activeTab === index }"
@click="handtabclick(index,item)">
......@@ -13,9 +14,9 @@
value-format="yyyy-MM-dd HH:mm:ss" @change="handleTimeRangeChange" />
</ul>
</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;">
<div class="tableline">
<el-form-item label="设备名称" prop="pointcode">
......@@ -54,9 +55,9 @@
</div>
</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;">
<div class="tableline">
<el-form-item label="设备名称" prop="devicename">
......@@ -95,9 +96,9 @@
</div>
</div>
</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-tab-pane label="波形" name="first">
<div class="wrapper" v-for="(item,index) in this.chartData" :key="index">
......@@ -160,7 +161,7 @@
</el-form>
</el-tab-pane>
</el-tabs>
</el-dialog>
</el-dialog> -->
</div>
</template>
......
......@@ -34,8 +34,12 @@ module.exports = {
open: true,
proxy: {
[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.166:8085/lswz`, // 广建本地新
//target: `http://192.168.3.37:8085/lswz`,
// target: `http://10.50.70.100:8085/lswz`,
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