فهرست منبع

fix(models): 产品模型必须存在 一些特殊的数据

wang xiao 2 سال پیش
والد
کامیت
d67891d05f
1فایلهای تغییر یافته به همراه17 افزوده شده و 9 حذف شده
  1. 17 9
      src/pages/Iot/model/models.vue

+ 17 - 9
src/pages/Iot/model/models.vue

@@ -23,17 +23,15 @@
         <template v-if="column.key === 'updateAt'" >
           {{dayjs(record.updateAt).format('YYYY/MM/DD HH:MM:ss')}}
         </template>
+        <template v-if="column.key === 'transportType'" >
+          <a-tag  >{{record.transportType}}</a-tag>
+        </template>
+        <template v-if="column.key === 'payloadType'" >
+          <a-tag  color="blue">{{record.payloadType}}</a-tag>
+        </template>
         <template v-if="column.key === 'action'" >
           <a-space>
             <a @click="goDetailPage(record.id)" >查看</a>
-            <a-popconfirm
-                  title="确实要删除吗?"
-                  ok-text="确定"
-                  cancel-text="取消"
-                  @confirm="confirmDel(record.id)"
-                >
-                  <a href="#">删除</a>
-                </a-popconfirm>
           </a-space>
         </template>
       </template>
@@ -82,10 +80,20 @@ const columns = [
     key: 'id'
   },
   {
-    title: '模型名称',
+    title: '名称',
     dataIndex: 'templateLabel',
     key: 'templateLabel'
   },
+  {
+    title: '传输协议',
+    dataIndex: 'transportType',
+    key: 'transportType'
+  },
+  {
+    title: '数据格式',
+    dataIndex: 'payloadType',
+    key: 'payloadType'
+  },
   {
     title: '创建时间',
     dataIndex: 'createAt',