|
@@ -27,9 +27,13 @@
|
|
|
<Icon class="mr-5px" icon="ep:plus" />
|
|
<Icon class="mr-5px" icon="ep:plus" />
|
|
|
添加功能
|
|
添加功能
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-button v-hasPermi="[`iot:thing-model:query`]" plain type="success" @click="openTSL">
|
|
|
|
|
|
|
+ <!-- <el-button
|
|
|
|
|
+ v-hasPermi="[`iot:thing-model-common:query`]"
|
|
|
|
|
+ plain
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ @click="openTSL">
|
|
|
TSL
|
|
TSL
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ </el-button> -->
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</ContentWrap>
|
|
</ContentWrap>
|
|
@@ -37,43 +41,43 @@
|
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
|
<ContentWrap>
|
|
<ContentWrap>
|
|
|
<el-tabs>
|
|
<el-tabs>
|
|
|
- <el-table v-loading="loading" :data="list" :show-overflow-tooltip="true" :stripe="true">
|
|
|
|
|
|
|
+ <zm-table :loading="loading" :data="list">
|
|
|
<el-table-column align="center" label="功能类型" prop="type">
|
|
<el-table-column align="center" label="功能类型" prop="type">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<dict-tag :type="DICT_TYPE.IOT_THING_MODEL_TYPE" :value="scope.row.type" />
|
|
<dict-tag :type="DICT_TYPE.IOT_THING_MODEL_TYPE" :value="scope.row.type" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="功能名称" prop="name" />
|
|
|
|
|
- <el-table-column align="center" label="标识符" prop="identifier" />
|
|
|
|
|
- <el-table-column align="center" label="数据类型" prop="identifier">
|
|
|
|
|
|
|
+ <zm-table-column align="center" label="功能名称" prop="name" />
|
|
|
|
|
+ <zm-table-column align="center" label="标识符" prop="identifier" />
|
|
|
|
|
+ <zm-table-column align="center" label="数据类型" prop="identifier">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
{{ getDataTypeOptionsLabel(row.property?.dataType) ?? '-' }}
|
|
{{ getDataTypeOptionsLabel(row.property?.dataType) ?? '-' }}
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column align="left" label="数据定义" prop="identifier">
|
|
|
|
|
|
|
+ </zm-table-column>
|
|
|
|
|
+ <zm-table-column align="left" label="数据定义" prop="identifier">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<DataDefinition :data="row" />
|
|
<DataDefinition :data="row" />
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column align="center" label="操作">
|
|
|
|
|
|
|
+ </zm-table-column>
|
|
|
|
|
+ <zm-table-column align="center" label="操作">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-hasPermi="[`iot:thing-model:update`]"
|
|
|
|
|
|
|
+ v-hasPermi="[`iot:thing-model-common:update`]"
|
|
|
link
|
|
link
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="openForm('update', scope.row.id)">
|
|
@click="openForm('update', scope.row.id)">
|
|
|
编辑
|
|
编辑
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-hasPermi="['iot:thing-model:delete']"
|
|
|
|
|
|
|
+ v-hasPermi="['iot:thing-model-common:delete']"
|
|
|
link
|
|
link
|
|
|
type="danger"
|
|
type="danger"
|
|
|
@click="handleDelete(scope.row.id)">
|
|
@click="handleDelete(scope.row.id)">
|
|
|
删除
|
|
删除
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
- </el-table>
|
|
|
|
|
|
|
+ </zm-table-column>
|
|
|
|
|
+ </zm-table>
|
|
|
<!-- 分页 -->
|
|
<!-- 分页 -->
|
|
|
<Pagination
|
|
<Pagination
|
|
|
v-model:limit="queryParams.pageSize"
|
|
v-model:limit="queryParams.pageSize"
|