|
@@ -21,6 +21,9 @@
|
|
|
<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 === 'bd_codec'">
|
|
|
+ <div>{{ scope.row.bd_codec == 0 ? '2.5协议' : scope.row.bd_type == 1 ? '4.0协议' : '其他'}}</div>
|
|
|
+ </template>
|
|
|
<template v-if="item.prop === 'bd_type'">
|
|
|
<div>{{ scope.row.bd_type == 0 ? '北斗普通机' : scope.row.bd_type == 1 ? '北斗指挥机' : scope.row.bd_type == 2 ? '北斗授时模块' : '其他'}}</div>
|
|
|
</template>
|
|
@@ -77,17 +80,18 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="通信机型号" prop="models">
|
|
|
<el-select v-model="form.models" filterable placeholder="请选择" clearable>
|
|
|
+ <el-option label="北斗普通机" value="0" />
|
|
|
<el-option label="北斗指挥机" value="1" />
|
|
|
+ <el-option label="北斗授时模块" value="2" />
|
|
|
</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-input v-model="form.port" placeholder="请输入" />
|
|
|
</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-option label="2.5协议" value="0" />
|
|
|
+ <el-option label="4.0协议" value="1" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="连接参数" prop="parameter">
|
|
@@ -143,8 +147,8 @@ const resetQuery = () => {
|
|
|
const columns = reactive<ColumnProps[]>([
|
|
|
{ prop: "bd_code", label: "北斗号" },
|
|
|
{ prop: "bd_type", label: "型号" },
|
|
|
- { prop: "bd_serial", label: "协议" },
|
|
|
- { prop: "bd_codec", label: "串口号" },
|
|
|
+ { prop: "bd_codec", label: "协议" },
|
|
|
+ { prop: "bd_serial", label: "串口号" },
|
|
|
{ prop: "bd_params", label: "连接参数" },
|
|
|
{ prop: "operation", label: "操作", width:150,align: 'center' }
|
|
|
]);
|