forked from TALL/tall3-pc-keti
9 changed files with 312 additions and 40 deletions
@ -0,0 +1,23 @@ |
|||
module.exports = { |
|||
frequency: { |
|||
so2: 0, // SO2采样频率
|
|||
metal: 0, // 金属腐蚀采样频率
|
|||
th: 0, // 温湿度 采样频率
|
|||
salt: 0, // 盐雾 采样频率
|
|||
}, // 采样频率
|
|||
count: 0, // 采集个数
|
|||
time: new Date(), // 设置时间
|
|||
batteryLow: 0, // 电池电压低阈值
|
|||
batteryHigh: 0, // 电池电压高阈值
|
|||
sunHigh: 0, // 太阳能电压高阈值
|
|||
humidityHigh: 0, // 湿度高阈值
|
|||
temperatureLow: 0, // 温度低阈值
|
|||
temperatureHigh: 0, // 温度高阈值
|
|||
securityMode: 0, // 安全模式 0->不加密 1->加密
|
|||
corrosiveType: '', // 金属腐蚀类型
|
|||
report: { |
|||
type: 0, // 上报周期类型 0->时间点 1->周期
|
|||
timePoints: [0, 0, 0, 0, 0, 0], // 设置时间点
|
|||
cycle: 0, // 上报周期分钟数
|
|||
}, |
|||
}; |
@ -0,0 +1,13 @@ |
|||
module.exports = { |
|||
ip1: '', |
|||
port1: '', |
|||
ip2: '', |
|||
port2: '', |
|||
ip3: '', |
|||
port3: '', |
|||
ipBackup: '', // 备用ip
|
|||
portBackup: '', // 备用端口号
|
|||
account: '', // 账号
|
|||
password: '', // 密码
|
|||
apn: '', // apn
|
|||
}; |
@ -1,11 +1,9 @@ |
|||
import 'virtual:windi.css' |
|||
import 'virtual:windi.css'; |
|||
|
|||
import App from './App.vue' |
|||
import { createApp } from 'vue' |
|||
import { createApp } from 'vue'; |
|||
import App from './App.vue'; |
|||
import router from './routers/index'; |
|||
|
|||
const app = createApp(App); |
|||
|
|||
app |
|||
.use(router) |
|||
.mount('#app') |
|||
app.use(router).mount('#app'); |
|||
|
@ -0,0 +1,175 @@ |
|||
<template> |
|||
<el-form label-position="top" :model="data" ref="networkForm"> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="设备ID号" prop="deviceId"> |
|||
<el-input v-model="data.deviceId"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="设备完整ID" prop="deviceFullId"> |
|||
<el-input v-model="data.deviceFullId"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="地区" prop="area"> |
|||
<el-input v-model="data.area"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="安装地点名称" prop="address"> |
|||
<el-input v-model="data.address"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="联系人" prop="contact"> |
|||
<el-input v-model="data.contact"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="电话" prop="phone"> |
|||
<el-input v-model="data.phone"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="经度" prop="lon"> |
|||
<el-input v-model="data.lon"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="纬度" prop="lat"> |
|||
<el-input v-model="data.lat"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="负责人" prop="head"> |
|||
<el-input v-model="data.head"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="安装位置" prop="installLocation"> |
|||
<el-input v-model="data.installLocation"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="安装时间" prop="installTime"> |
|||
<el-input v-model="data.installTime"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="正式运行时间" prop="runTime"> |
|||
<el-input v-model="data.runTime"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="链路地址" prop="linkAddress"> |
|||
<el-input v-model="data.linkAddress"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="探头编号" prop="probNo"> |
|||
<el-input v-model="data.probNo"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="试样" prop="simple"> |
|||
<el-input v-model="data.simple"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="sim卡1" prop="sim1"> |
|||
<el-input v-model="data.sim1"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="设备朝向" prop="deviceDirection"> |
|||
<el-input v-model="data.deviceDirection"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="与主站后台联调情况" prop="joint"> |
|||
<el-input v-model="data.joint"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input v-model="data.remark" type="textarea"></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20" class="mt-5 pl-2"> |
|||
<el-form-item> |
|||
<el-button type="primary" @click="onSubmit">提交</el-button> |
|||
<el-button @click="onReset">重置</el-button> |
|||
</el-form-item> |
|||
</el-row> |
|||
</el-form> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import { reactive, ref } from 'vue'; |
|||
|
|||
const data = reactive({ |
|||
deviceId: '', // 设备id |
|||
deviceFullId: '', // 设备完整id |
|||
deviceDirection: '', // 设备朝向 |
|||
area: '', // 地区 |
|||
address: '', // 安装地点名称 |
|||
contact: '', // 联系人 |
|||
phone: '', // 联系人电话 |
|||
lon: '', // 经度 |
|||
lat: '', // 纬度 |
|||
head: '', // 负责人 |
|||
installLocation: '', // 安装位置 |
|||
installTime: '', // 安装时间 |
|||
runTime: '', // 正式运行时间 |
|||
linkAddress: '', // 链路地址 |
|||
probNo: '', // 探头编号 |
|||
simple: '', // 试样 |
|||
sim1: '', // sim卡1 |
|||
joint: '', // 主站后台联调情况 |
|||
remark: '', // 备注 |
|||
}); |
|||
|
|||
const networkForm = ref(null); // form |
|||
|
|||
// 提交表单 |
|||
const onSubmit = () => { |
|||
networkForm.value.validate(valid => { |
|||
console.log(valid, { ...data }); |
|||
}); |
|||
}; |
|||
|
|||
// 重置表单 |
|||
const onReset = () => { |
|||
networkForm.value.resetFields(); |
|||
}; |
|||
</script> |
Loading…
Reference in new issue