文件名从 src/views/data/da/point/index.vue 修改 |
| | |
| | | type="primary" |
| | | plain |
| | | @click="openForm('create')" |
| | | v-hasPermi="['system:tenant:create']" |
| | | v-hasPermi="['data:point:create']" |
| | | > |
| | | <Icon icon="ep:plus" class="mr-5px" /> |
| | | 新增 |
| | |
| | | <!-- 列表 --> |
| | | <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" /> |
| | |
| | | <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"> |
| | |
| | | link |
| | | type="primary" |
| | | @click="openForm('update', scope.row.id)" |
| | | v-hasPermi="['system:tenant:update']" |
| | | v-hasPermi="['data:point:update']" |
| | | > |
| | | 编辑 |
| | | </el-button> |
| | |
| | | link |
| | | type="danger" |
| | | @click="handleDelete(scope.row.id)" |
| | | v-hasPermi="['system:tenant:delete']" |
| | | v-hasPermi="['data:point:delete']" |
| | | > |
| | | 删除 |
| | | </el-button> |
| | |
| | | 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() // 国际化 |