潘志宝
2024-09-25 85c27f3fc2250993efbc866ccab982e1e6705c2b
测点配置
已重命名2个文件
21 ■■■■■ 文件已修改
src/views/data/point/DaPointForm.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/data/point/index.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/data/point/DaPointForm.vue
文件名从 src/views/data/da/point/DaPointForm.vue 修改
@@ -131,6 +131,8 @@
  const formRules = reactive({
    pointNo: [{ required: true, message: '测点编码不能为空', trigger: 'blur' }],
    pointName: [{ required: true, message: '测点名称不能为空', trigger: 'blur' }],
    pointType: [{ required: true, message: '测点类型不能为空', trigger: 'blur' }],
    dataType: [{ required: true, message: '数据类型不能为空', trigger: 'blur' }],
  })
  const formRef = ref() // 表单 Ref
src/views/data/point/index.vue
文件名从 src/views/data/da/point/index.vue 修改
@@ -39,7 +39,7 @@
          type="primary"
          plain
          @click="openForm('create')"
          v-hasPermi="['system:tenant:create']"
          v-hasPermi="['data:point:create']"
        >
          <Icon icon="ep:plus" class="mr-5px" />
          新增
@@ -51,8 +51,8 @@
  <!-- 列表 -->
  <ContentWrap>
    <el-table v-loading="loading" :data="list">
      <el-table-column label="测点编码" align="center" prop="pointNo" />
      <el-table-column label="测点名称" align="center" prop="pointName" />
      <el-table-column label="测点编码" header-align="center" align="left" min-width="100" prop="pointNo" />
      <el-table-column label="测点名称" header-align="center" align="left" min-width="100" prop="pointName" />
      <el-table-column label="测点类型" align="center" prop="pointType" />
      <el-table-column label="数据类型" align="center" prop="dataType" />
      <el-table-column label="值类型" align="center" prop="valueType" />
@@ -64,7 +64,12 @@
      <el-table-column label="最小值" align="center" prop="minValue" />
      <el-table-column label="采集频率" align="center" prop="minfreqid" />
      <el-table-column label="备注" align="center" prop="remark" />
      <el-table-column label="是否启用" align="center" prop="isEnable" />
      <el-table-column label="是否启用" align="center" prop="isEnable">
        <template #default="scope">
          <el-tag v-if="scope.row.isEnable === 1" size="small">是</el-tag>
          <el-tag v-else size="small" type="danger">否</el-tag>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" min-width="110" fixed="right">
        <template #default="scope">
@@ -72,7 +77,7 @@
            link
            type="primary"
            @click="openForm('update', scope.row.id)"
            v-hasPermi="['system:tenant:update']"
            v-hasPermi="['data:point:update']"
          >
            编辑
          </el-button>
@@ -80,7 +85,7 @@
            link
            type="danger"
            @click="handleDelete(scope.row.id)"
            v-hasPermi="['system:tenant:delete']"
            v-hasPermi="['data:point:delete']"
          >
            删除
          </el-button>
@@ -104,7 +109,7 @@
import DaPointForm from './DaPointForm.vue'
import * as DaPoint from '@/api/data/da/point'
defineOptions({name: 'DataDaPoint'})
defineOptions({name: 'DataPoint'})
  const message = useMessage() // 消息弹窗
  const {t} = useI18n() // 国际化