Browse Source

代码提交

cxs 1 month ago
parent
commit
1250b0d7be

+ 13 - 0
src/styles/common.scss

@@ -251,4 +251,17 @@
     margin-top: 10px;
     margin-bottom: 20px;
   }
+
+  .disposition-bottom{
+    display: flex;
+    align-items: flex-end;
+    justify-content: right;
+    flex-shrink: 0;
+    flex-grow: 0;
+  }
+
+  .form-inline{
+    display: flex;
+    flex-direction: column
+  }
 }

+ 1 - 1
src/views/maintenance/siteRecords/index.vue

@@ -274,7 +274,7 @@ const submitForm = () => {
 
 /** 删除按钮操作 */
 const handleDelete = async (row?: any) => {
-  ElMessageBox.confirm('是否确认删除岗位编号为"' + row.b + '"的数据项?', {
+  ElMessageBox.confirm('是否确认删除编号为"' + row.b + '"的数据项?', {
     confirmButtonText: '删除',
     cancelButtonText: '取消',
     type: 'warning',

+ 61 - 0
src/views/system/disposition/components/configurationAuthorization.vue

@@ -0,0 +1,61 @@
+<template>
+  <el-form :inline="true" :model="formInline" label-position="top" class="form-inline">
+    <div style="display: flex;flex-direction: column;height: 86vh">
+      <div style="flex-grow: 1;">
+        <div class="disposition-title">给自动站授权</div>
+        <el-row :gutter="20">
+          <el-col :span="4">
+            <el-form-item label="授时间隔" style="width: 200px">
+              <el-select v-model="formInline.region">
+                <el-option label="1小时" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <div class="disposition-title">数据补发</div>
+        <el-row :gutter="20">
+          <el-col :span="4">
+            <el-form-item label="补发时段" style="width: 200px">
+              <el-select v-model="formInline.region">
+                <el-option label="720小时" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <div class="disposition-title">给电脑授时</div>
+        <el-row :gutter="20">
+          <el-col :span="4">
+            <el-form-item label="系统授时类型" style="width: 200px">
+              <el-select v-model="formInline.region">
+                <el-option label="自动站授时" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item label="自动站" style="width: 200px">
+              <el-select v-model="formInline.region">
+                <el-option label="test1" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </div>
+      <div class="disposition-bottom">
+        <el-button > 重置 </el-button>
+        <el-button type="primary"> 确定 </el-button>
+      </div>
+    </div>
+  </el-form>
+</template>
+
+<script setup lang="tsx">
+import {ref} from "vue";
+
+const formInline = ref<any>({
+  user:"",
+  region:""
+})
+</script>
+
+<style scoped>
+</style>

+ 96 - 0
src/views/system/disposition/components/configurationBasic.vue

@@ -0,0 +1,96 @@
+<template>
+  <el-form :inline="true" :model="formInline" class="form-inline" label-position="top">
+    <div style="display: flex;flex-direction: column;height: 86vh">
+      <div style="flex-grow: 1;">
+        <div class="disposition-title">采集服务器配置</div>
+        <el-row :gutter="20">
+          <el-col :span="4">
+            <el-form-item label="采集服务地址" style="width: 200px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item label="采集服务端口" style="width: 200px">
+              <el-input v-model="formInline.user" placeholder="审批人"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <div class="disposition-title">数据库参数配置</div>
+        <el-row :gutter="20">
+          <el-col :span="4">
+            <el-form-item label="数据库类型" style="width: 200px">
+              <el-select v-model="formInline.region">
+                <el-option label="数据库1" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="20">
+          <el-col :span="4">
+            <el-form-item label="达梦实例名" style="width: 200px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item label="达梦地址" style="width: 200px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item label="达梦端口" style="width: 200px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item label="达梦账号" style="width: 200px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item label="达梦密码" style="width: 250px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <div class="disposition-title">前端地图配置</div>
+        <el-row :gutter="20">
+          <el-col :span="4">
+            <el-form-item label="前端地图地址" style="width: 200px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <div class="disposition-title">本地网页服务</div>
+        <el-row :gutter="20">
+          <el-col :span="4">
+            <el-form-item label="地址" style="width: 200px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item label="端口" style="width: 200px">
+              <el-input v-model="formInline.user"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </div>
+      <div class="disposition-bottom">
+        <el-button > 重置 </el-button>
+        <el-button type="primary"> 确定 </el-button>
+      </div>
+    </div>
+  </el-form>
+</template>
+
+<script setup lang="tsx">
+import {ref} from "vue";
+
+const formInline = ref<any>({
+  user:"",
+  region:""
+})
+</script>
+
+<style scoped>
+
+</style>

+ 152 - 0
src/views/system/disposition/components/configurationGlobal.vue

@@ -0,0 +1,152 @@
+<template>
+  <el-form :inline="true" :model="formInline" label-position="top" class="form-inline">
+    <div style="display: flex;flex-direction: column;height: 86vh">
+      <div style="flex-grow: 1;">
+        <div class="disposition-title">提示音配置</div>
+        <el-row :gutter="20">
+          <el-col :span="5">
+            <el-form-item style="width: 250px">
+              <el-checkbox v-model="formInline.checkboxValue">正点值班时间提醒声音选择</el-checkbox>
+              <el-select v-model="formInline.region">
+                <el-option label="传感器故障.wav" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="5">
+            <el-form-item style="width: 250px">
+              <el-checkbox v-model="formInline.checkboxValue">仪器检定证提醒声音选择</el-checkbox>
+              <el-select v-model="formInline.region">
+                <el-option label="传感器故障.wav" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="5">
+            <el-form-item style="width: 250px">
+              <el-checkbox v-model="formInline.checkboxValue">自动编发报文声音选择</el-checkbox>
+              <el-select v-model="formInline.region">
+                <el-option label="传感器故障.wav" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="5">
+            <el-form-item style="width: 250px">
+              <el-checkbox v-model="formInline.checkboxValue">传感器故障提醒声音选择</el-checkbox>
+              <el-select v-model="formInline.region">
+                <el-option label="传感器故障.wav" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="20">
+          <el-col :span="5">
+            <el-form-item style="width: 250px">
+              <el-checkbox v-model="formInline.checkboxValue">正点值班时间提醒声音选择</el-checkbox>
+              <el-select v-model="formInline.region">
+                <el-option label="传感器故障.wav" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="5">
+            <el-form-item style="width: 250px">
+              <el-checkbox v-model="formInline.checkboxValue">仪器检定证提醒声音选择</el-checkbox>
+              <el-select v-model="formInline.region">
+                <el-option label="传感器故障.wav" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="5">
+            <el-form-item style="width: 250px">
+              <el-checkbox v-model="formInline.checkboxValue">自动编发报文声音选择</el-checkbox>
+              <el-select v-model="formInline.region">
+                <el-option label="传感器故障.wav" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="5">
+            <el-form-item style="width: 250px">
+              <el-checkbox v-model="formInline.checkboxValue">传感器故障提醒声音选择</el-checkbox>
+              <el-select v-model="formInline.region">
+                <el-option label="传感器故障.wav" value="1"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <div class="disposition-title">全局策略配置</div>
+        <el-row :gutter="20">
+          <el-col :span="10">
+            <el-form-item>
+              <el-checkbox v-model="formInline.checkboxValue">能见度</el-checkbox>
+              <el-input v-model="formInline.user" placeholder="请输入告警条件"></el-input>
+              <el-input v-model="formInline.user" placeholder="请输入消警条件" style="margin-top: 10px"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="10">
+            <el-form-item>
+              <el-checkbox v-model="formInline.checkboxValue">大气电场</el-checkbox>
+              <el-input v-model="formInline.user" placeholder="请输入告警条件"></el-input>
+              <el-input v-model="formInline.user" placeholder="请输入消警条件" style="margin-top: 10px"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="20">
+          <el-col :span="10">
+            <el-form-item>
+              <el-checkbox v-model="formInline.checkboxValue">能见度</el-checkbox>
+              <el-input v-model="formInline.user" placeholder="请输入告警条件"></el-input>
+              <el-input v-model="formInline.user" placeholder="请输入消警条件" style="margin-top: 10px"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="10">
+            <el-form-item>
+              <el-checkbox v-model="formInline.checkboxValue">气温</el-checkbox>
+              <el-input v-model="formInline.user" placeholder="请输入告警条件"></el-input>
+              <el-input v-model="formInline.user" placeholder="请输入消警条件" style="margin-top: 10px"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="20">
+          <el-col :span="10">
+            <el-form-item>
+              <el-checkbox v-model="formInline.checkboxValue">湿度</el-checkbox>
+              <el-input v-model="formInline.user" placeholder="请输入告警条件"></el-input>
+              <el-input v-model="formInline.user" placeholder="请输入消警条件" style="margin-top: 10px"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="10">
+            <el-form-item>
+              <el-checkbox v-model="formInline.checkboxValue">雨量</el-checkbox>
+              <el-input v-model="formInline.user" placeholder="请输入告警条件"></el-input>
+              <el-input v-model="formInline.user" placeholder="请输入消警条件" style="margin-top: 10px"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="20">
+          <el-col :span="10">
+            <el-form-item>
+              <el-checkbox v-model="formInline.checkboxValue">云低</el-checkbox>
+              <el-input v-model="formInline.user" placeholder="请输入告警条件"></el-input>
+              <el-input v-model="formInline.user" placeholder="请输入消警条件" style="margin-top: 10px"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </div>
+      <div class="disposition-bottom">
+        <el-button > 重置 </el-button>
+        <el-button type="primary"> 确定 </el-button>
+      </div>
+    </div>
+  </el-form>
+</template>
+
+<script setup lang="tsx">
+import {ref} from "vue";
+
+const formInline = ref<any>({
+  user:"",
+  region:"",
+  checkboxValue:false
+})
+</script>
+
+<style scoped>
+</style>

+ 233 - 0
src/views/system/disposition/components/distributionAutomatic.vue

@@ -0,0 +1,233 @@
+<template>
+  <div style="display: flex;flex-direction: column;height: 86vh">
+    <div style="flex-grow: 1;">
+      <!-- 表格头部 操作按钮 -->
+      <div class="table-header">
+        <div class="header-button-lf">
+          <el-form :model="queryParams" label-width="auto"  :inline="true">
+            <el-form-item>
+              <el-button  style="margin-left: 10px" type="primary" plain  @click="handleAdd"> 新增 </el-button>
+            </el-form-item>
+          </el-form>
+        </div>
+      </div>
+      <!-- 表格主体 -->
+      <el-table stripe ref="tableRef" :border="true" :data="processTableData"  size="small">
+        <el-table-column align="left" label="序号" width="80px" :show-overflow-tooltip="true">
+          <template #default="scope">
+            {{ scope.$index + 1 }}
+          </template>
+        </el-table-column>
+        <template v-for="item in columns" :key="item">
+          <el-table-column v-bind="item" :align="item.align ?? 'left'" :reserve-selection="item.type == 'selection'" :show-overflow-tooltip="true">
+            <template #default="scope">
+              <template v-if="item.prop === 'operation'">
+                <el-tooltip
+                  class="box-item"
+                  effect="dark"
+                  content="编辑"
+                  placement="top"
+                >
+                  <el-button type="primary" link @click="handleUpdate">
+                    <img class="operation-img" src="@/assets/images/edit.png">
+                  </el-button>
+                </el-tooltip>
+                <el-tooltip
+                  class="box-item"
+                  effect="dark"
+                  content="删除"
+                  placement="top"
+                >
+                  <el-button type="primary" link  @click="handleDelete(scope.row)">
+                    <img class="operation-img" src="@/assets/images/delete.png">
+                  </el-button>
+                </el-tooltip>
+              </template>
+            </template>
+          </el-table-column>
+        </template>
+
+        <!-- 无数据 -->
+        <template #empty>
+          <div class="table-empty">
+            <slot name="empty">
+              <img src="@/assets/images/notData.png" alt="notData" />
+              <div>暂无数据</div>
+            </slot>
+          </div>
+        </template>
+      </el-table>
+    </div>
+    <div class="disposition-bottom">
+      <el-button > 重置 </el-button>
+      <el-button type="primary"> 确定 </el-button>
+    </div>
+    <!-- 添加或修改对话框 -->
+    <el-dialog :title="dialog.title" v-model="dialog.visible" width="800px" append-to-body>
+      <el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
+        <el-form-item label="名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入FTP名称" />
+        </el-form-item>
+        <el-form-item label="地址" prop="address">
+          <el-input v-model="form.address" placeholder="请输入FTP地址" />
+        </el-form-item>
+        <el-form-item label="端口" prop="port">
+          <el-input v-model="form.port" placeholder="请输入FTP端口" />
+        </el-form-item>
+        <el-form-item label="账号" prop="account">
+          <el-input v-model="form.account" placeholder="请输入FTP账号" />
+        </el-form-item>
+        <el-form-item label="密码" prop="name">
+          <el-input v-model="form.name" placeholder="请输入FTP密码" />
+        </el-form-item>
+        <el-form-item label="事务" prop="password">
+          <el-input v-model="form.password" placeholder="请输入FTP事务" />
+        </el-form-item>
+        <el-form-item label="状态" prop="state">
+          <el-radio-group v-model="form.state">
+            <el-radio :label="1">启用</el-radio>
+            <el-radio :label="0">禁用</el-radio>
+          </el-radio-group>
+        </el-form-item>
+
+      </el-form>
+      <template #footer>
+        <div class="dialog-footer">
+          <el-button @click="cancel">取 消</el-button>
+          <el-button type="primary" @click="submitForm">确 定</el-button>
+        </div>
+      </template>
+    </el-dialog>
+  </div>
+</template>
+
+<script setup lang="ts">
+import { ref, reactive } from "vue";
+import { ColumnProps } from "@/components/ProTable/interface";
+import { ElMessageBox } from 'element-plus'
+
+const queryParams = ref({
+});
+
+// 查询功能
+const handleQuery = () => {
+  queryParams.value.pageNum = 1;
+};
+
+//搜索功能
+const resetQuery = () => {
+  queryParams.value.pageNum = 1;
+};
+
+
+const processTableData = ref([
+  {
+    id: "681913747276782417",
+    a: "MySecureFTPServer",
+    b: "192.168.1.100",
+    c: "2121",
+    d: "ftpuser",
+    e: "15200,N,8,1",
+    f: "是"
+  }
+]);
+
+// 表格配置项
+const columns = reactive<ColumnProps[]>([
+  { prop: "a", label: "FTP名称" },
+  { prop: "b", label: "FTP地址" },
+  { prop: "c", label: "FTP端口" },
+  { prop: "d", label: "FTP账号" },
+  { prop: "e", label: "FTP事务" },
+  { prop: "f", label: "是否启用" },
+  { prop: "operation", label: "操作", width:150,align: 'center' }
+]);
+
+const dialog = reactive<any>({
+  visible: false,
+  title: ''
+});
+const formRef = ref<any>();
+const rules = ref<any>(
+  {
+    name: [{ required: true, message: "FTP名称不能为空", trigger: "blur" }],
+    address: [{ required: true, message: "FTP地址不能为空", trigger: "blur" }],
+    port: [{ required: true, message: "FTP端口不能为空", trigger: "blur" }],
+    account: [{ required: true, message: "FTP账号不能为空", trigger: "blur" }],
+    password: [{ required: true, message: "FTP密码不能为空", trigger: "blur" }],
+    affairs: [{ required: true, message: "FTP事务不能为空", trigger: "blur" }],
+    state: [{ required: true, message: "请选择启用", trigger: "blur" }],
+  }
+);
+
+
+const initFormData = ref<any>(
+  {
+    name: "",
+    address: "",
+    port: "",
+    account:"",
+    password:"",
+    affairs:"",
+    state:"1"
+  }
+);
+
+
+const form = ref<any>({...initFormData});
+
+/** 新增按钮操作 */
+const handleAdd = () => {
+  reset();
+  dialog.visible = true;
+  dialog.title = "FTP信息新增";
+}
+
+/** 修改按钮操作 */
+const handleUpdate = async (row?: any) => {
+  reset();
+  dialog.visible = true;
+  dialog.title = "FTP信息编辑";
+}
+
+/** 取消按钮 */
+const cancel = () => {
+  reset();
+  dialog.visible = false;
+}
+/** 表单重置 */
+const reset = () => {
+  form.value = { ...initFormData };
+  formRef.value?.resetFields();
+}
+
+/** 提交按钮 */
+const submitForm = () => {
+  formRef.value?.validate(async (valid: boolean) => {
+    if (valid) {
+      dialog.visible = false;
+    }
+  });
+}
+
+/** 删除按钮操作 */
+const handleDelete = async (row?: any) => {
+  ElMessageBox.confirm('是否确认删除编号为"' + row.b + '"的数据项?', {
+    confirmButtonText: '删除',
+    cancelButtonText: '取消',
+    type: 'warning',
+    title:'删除数据',
+    draggable: true
+  })
+    .then(() => {
+
+    })
+    .catch(() => {
+
+    })
+}
+
+</script>
+
+<style scoped>
+</style>

+ 225 - 0
src/views/system/disposition/components/serviceBeidou.vue

@@ -0,0 +1,225 @@
+<template>
+  <div style="display: flex;flex-direction: column;height: 86vh">
+    <div style="flex-grow: 1;">
+      <!-- 表格头部 操作按钮 -->
+      <div class="table-header">
+        <div class="header-button-lf">
+          <el-form :model="queryParams" label-width="auto"  :inline="true">
+            <el-form-item>
+              <el-button  style="margin-left: 10px" type="primary" plain  @click="handleAdd"> 新增 </el-button>
+            </el-form-item>
+          </el-form>
+        </div>
+      </div>
+      <!-- 表格主体 -->
+      <el-table stripe ref="tableRef" :border="true" :data="processTableData"  size="small">
+        <el-table-column align="left" label="序号" width="80px" :show-overflow-tooltip="true">
+          <template #default="scope">
+            {{ scope.$index + 1 }}
+          </template>
+        </el-table-column>
+        <template v-for="item in columns" :key="item">
+          <el-table-column v-bind="item" :align="item.align ?? 'left'" :reserve-selection="item.type == 'selection'" :show-overflow-tooltip="true">
+            <template #default="scope">
+              <template v-if="item.prop === 'operation'">
+                <el-tooltip
+                  class="box-item"
+                  effect="dark"
+                  content="编辑"
+                  placement="top"
+                >
+                  <el-button type="primary" link @click="handleUpdate">
+                    <img class="operation-img" src="@/assets/images/edit.png">
+                  </el-button>
+                </el-tooltip>
+                <el-tooltip
+                  class="box-item"
+                  effect="dark"
+                  content="删除"
+                  placement="top"
+                >
+                  <el-button type="primary" link  @click="handleDelete(scope.row)">
+                    <img class="operation-img" src="@/assets/images/delete.png">
+                  </el-button>
+                </el-tooltip>
+              </template>
+            </template>
+          </el-table-column>
+        </template>
+
+        <!-- 无数据 -->
+        <template #empty>
+          <div class="table-empty">
+            <slot name="empty">
+              <img src="@/assets/images/notData.png" alt="notData" />
+              <div>暂无数据</div>
+            </slot>
+          </div>
+        </template>
+      </el-table>
+    </div>
+    <div class="disposition-bottom">
+      <el-button > 重置 </el-button>
+      <el-button type="primary"> 确定 </el-button>
+    </div>
+    <!-- 添加或修改对话框 -->
+    <el-dialog :title="dialog.title" v-model="dialog.visible" width="800px" append-to-body>
+      <el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
+        <el-form-item label="本机北斗ID号" prop="id">
+          <el-input v-model="form.id" placeholder="请输入本机北斗ID号" />
+        </el-form-item>
+        <el-form-item label="通信机型号" prop="models">
+          <el-select v-model="form.models" filterable placeholder="请选择" clearable>
+            <el-option label="北斗指挥机" value="1" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="串口号" prop="port">
+          <el-select v-model="form.port" filterable placeholder="请选择" clearable>
+            <el-option label="2.5协议" value="1" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="通信机协议" prop="agreement">
+          <el-select v-model="form.agreement" filterable placeholder="请选择" clearable>
+            <el-option label="/dev/ttyAMAO" value="1" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="连接参数" prop="parameter">
+          <el-select v-model="form.parameter" filterable placeholder="请选择" clearable>
+            <el-option label="15200,N,8,1" value="1" />
+          </el-select>
+        </el-form-item>
+      </el-form>
+      <template #footer>
+        <div class="dialog-footer">
+          <el-button @click="cancel">取 消</el-button>
+          <el-button type="primary" @click="submitForm">确 定</el-button>
+        </div>
+      </template>
+    </el-dialog>
+  </div>
+</template>
+
+<script setup lang="ts">
+import { ref, reactive } from "vue";
+import { ColumnProps } from "@/components/ProTable/interface";
+import { ElMessageBox } from 'element-plus'
+
+const queryParams = ref({
+});
+
+// 查询功能
+const handleQuery = () => {
+  queryParams.value.pageNum = 1;
+};
+
+//搜索功能
+const resetQuery = () => {
+  queryParams.value.pageNum = 1;
+};
+
+
+const processTableData = ref([
+  {
+    id: "681913747276782417",
+    a: "458789",
+    b: "北斗指挥机",
+    c: "2.5协议",
+    d: "/dev/ttyAMAO",
+    e: "15200,N,8,1"
+  }
+]);
+
+// 表格配置项
+const columns = reactive<ColumnProps[]>([
+  { prop: "a", label: "北斗号" },
+  { prop: "b", label: "型号" },
+  { prop: "c", label: "协议" },
+  { prop: "d", label: "串口号" },
+  { prop: "e", label: "连接参数" },
+  { prop: "operation", label: "操作", width:150,align: 'center' }
+]);
+
+const dialog = reactive<any>({
+  visible: false,
+  title: ''
+});
+const formRef = ref<any>();
+const rules = ref<any>(
+  {
+    id: [{ required: true, message: "本机北斗ID号不能为空", trigger: "blur" }],
+    models: [{ required: true, message: "通信机型号不能为空", trigger: "blur" }],
+    port: [{ required: true, message: "串口号不能为空", trigger: "blur" }],
+    agreement: [{ required: true, message: "通信机协议不能为空", trigger: "blur" }],
+    parameter: [{ required: true, message: "连接参数不能为空", trigger: "blur" }],
+  }
+);
+
+
+const initFormData = ref<any>(
+  {
+    id: "",
+    models: "",
+    port: "",
+    agreement:"",
+    parameter:""
+  }
+);
+
+
+const form = ref<any>({...initFormData});
+
+/** 新增按钮操作 */
+const handleAdd = () => {
+  reset();
+  dialog.visible = true;
+  dialog.title = "北斗通信设置";
+}
+
+/** 修改按钮操作 */
+const handleUpdate = async (row?: any) => {
+  reset();
+  dialog.visible = true;
+  dialog.title = "北斗通信编辑";
+}
+
+/** 取消按钮 */
+const cancel = () => {
+  reset();
+  dialog.visible = false;
+}
+/** 表单重置 */
+const reset = () => {
+  form.value = { ...initFormData };
+  formRef.value?.resetFields();
+}
+
+/** 提交按钮 */
+const submitForm = () => {
+  formRef.value?.validate(async (valid: boolean) => {
+    if (valid) {
+      dialog.visible = false;
+    }
+  });
+}
+
+/** 删除按钮操作 */
+const handleDelete = async (row?: any) => {
+  ElMessageBox.confirm('是否确认删除编号为"' + row.b + '"的数据项?', {
+    confirmButtonText: '删除',
+    cancelButtonText: '取消',
+    type: 'warning',
+    title:'删除数据',
+    draggable: true
+  })
+    .then(() => {
+
+    })
+    .catch(() => {
+
+    })
+}
+
+</script>
+
+<style scoped>
+</style>

+ 18 - 82
src/views/system/disposition/index.vue

@@ -3,97 +3,33 @@
     <div class="card table-main">
       <el-tabs tab-position="left" class="demo-tabs" style="height: 100%">
         <el-tab-pane label="基本配置">
-          <el-form :inline="true" :model="formInline" class="demo-form-inline" style="display: flex;flex-direction: column" label-position="top">
-            <div class="disposition-title">采集服务器配置</div>
-            <el-row :gutter="20">
-              <el-col :span="4">
-                <el-form-item label="采集服务地址" style="width: 200px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-              <el-col :span="4">
-                <el-form-item label="采集服务端口" style="width: 200px">
-                  <el-input v-model="formInline.user" placeholder="审批人"></el-input>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <div class="disposition-title">数据库参数配置</div>
-            <el-row :gutter="20">
-              <el-col :span="4">
-                <el-form-item label="数据库类型" style="width: 200px">
-                  <el-select v-model="formInline.region">
-                    <el-option label="数据库1" value="1"></el-option>
-                  </el-select>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row :gutter="20">
-              <el-col :span="4">
-                <el-form-item label="达梦实例名" style="width: 200px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-              <el-col :span="4">
-                <el-form-item label="达梦地址" style="width: 200px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-              <el-col :span="4">
-                <el-form-item label="达梦端口" style="width: 200px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-              <el-col :span="4">
-                <el-form-item label="达梦账号" style="width: 200px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-              <el-col :span="4">
-                <el-form-item label="达梦密码" style="width: 250px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <div class="disposition-title">前端地图配置</div>
-            <el-row :gutter="20">
-              <el-col :span="4">
-                <el-form-item label="前端地图地址" style="width: 200px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <div class="disposition-title">本地网页服务</div>
-            <el-row :gutter="20">
-              <el-col :span="4">
-                <el-form-item label="地址" style="width: 200px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-              <el-col :span="4">
-                <el-form-item label="端口" style="width: 200px">
-                  <el-input v-model="formInline.user"></el-input>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
+          <configuration-basic></configuration-basic>
+        </el-tab-pane>
+        <el-tab-pane label="数据自动分发">
+          <distribution-automatic></distribution-automatic>
+        </el-tab-pane>
+        <el-tab-pane label="北斗服务配置">
+          <service-beidou></service-beidou>
+        </el-tab-pane>
+        <el-tab-pane label="授时服务配置">
+         <configuration-authorization></configuration-authorization>
+        </el-tab-pane>
+        <el-tab-pane label="全局配置">
+          <configuration-global></configuration-global>
         </el-tab-pane>
-        <el-tab-pane label="数据自动分发">数据自动分发</el-tab-pane>
-        <el-tab-pane label="北斗服务配置">北斗服务配置</el-tab-pane>
-        <el-tab-pane label="授时服务配置">授时服务配置</el-tab-pane>
-        <el-tab-pane label="全局配置">全局配置</el-tab-pane>
       </el-tabs>
     </div>
   </div>
 </template>
 
 <script setup lang="tsx">
+import ConfigurationBasic from "./components/configurationBasic.vue"
+import ConfigurationAuthorization from "./components/configurationAuthorization.vue";
+import ServiceBeidou from "./components/serviceBeidou.vue";
+import DistributionAutomatic from "./components/distributionAutomatic.vue";
+import ConfigurationGlobal from "./components/configurationGlobal.vue";
 import { onMounted, reactive, ref } from "vue";
 onMounted(() => {
 
 });
-
-const formInline = ref<any>({
-  user:"",
-  region:""
-})
 </script>