|
|
@@ -0,0 +1,190 @@
|
|
|
+<template>
|
|
|
+ <div style="padding: 10px 15px">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <template #header>
|
|
|
+ <div class="card-header">
|
|
|
+ <span>Modbus Rtu 协议配置-新增</span>
|
|
|
+ <div>
|
|
|
+ <el-button type="warning" @click="">复位</el-button>
|
|
|
+ <el-button type="primary" @click="">保存</el-button>
|
|
|
+ <el-button type="primary" plain @click="router.back();">返回</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+
|
|
|
+
|
|
|
+ <el-descriptions :column="4">
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ <span style="color: red">*</span> 协议名称
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+
|
|
|
+ <el-descriptions-item >
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ <span style="color: red">*</span> Api接口地址
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ <span style="color: red">*</span> Modbus串口
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ <span style="color: red">*</span> 串口类型
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ <span style="color: red">*</span> 波特率
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ <span style="color: red">*</span> 数据位
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ <span style="color: red">*</span> 奇偶校验
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ <span style="color: red">*</span> 停止位
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+
|
|
|
+ <el-descriptions-item >
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ 轮询间隔时间(毫秒)
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ <el-input placeholder="请输入"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+
|
|
|
+ <el-descriptions-item :span="3">
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right">
|
|
|
+ UUID
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div class="content-w">
|
|
|
+ -
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right; vertical-align: top;">
|
|
|
+ 描述
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div class="content-w" style="min-width: 400px">
|
|
|
+ <el-input type="textarea" :line-count="5" show-word-limit maxlength="200" placeholder="请输入描述"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
+ <template #label>
|
|
|
+ <div style="display: inline-block;min-width: 100px;text-align: right; vertical-align: top;">
|
|
|
+ 备注
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div class="content-w" style="min-width: 400px">
|
|
|
+ <el-input type="textarea" :line-count="5" show-word-limit maxlength="200" placeholder="请输入备注"/>
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts" name="Units">
|
|
|
+import {ref} from "vue";
|
|
|
+import {useRoute, useRouter} from "vue-router";
|
|
|
+import ModbusTcp from "@/views/data/modbusTcp/index.vue";
|
|
|
+
|
|
|
+
|
|
|
+const route = useRoute();
|
|
|
+const router = useRouter();
|
|
|
+
|
|
|
+const tjdata = ref([]);
|
|
|
+const zxdata = ref([]);
|
|
|
+
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.card-header {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
+
|
|
|
+.content-w {
|
|
|
+ display: inline-flex;
|
|
|
+ max-width: 160px;
|
|
|
+}
|
|
|
+</style>
|