Browse Source

feat(*): 修改名称

wangxiao 2 years ago
parent
commit
2f8acca3e2
5 changed files with 29 additions and 47 deletions
  1. BIN
      cloudlink.zip
  2. 1 1
      config/proxy.ts
  3. 3 3
      src/pages/Iot/sys/noticeway.vue
  4. 9 27
      src/pages/Iot/tps/device.vue
  5. 16 16
      src/router/index.ts

BIN
cloudlink.zip


+ 1 - 1
config/proxy.ts

@@ -26,7 +26,7 @@ module.exports = {
       // target: 'http://120.223.238.91:8888',
       // target: 'http://120.223.238.91:8888',
       // target: 'http://124.222.113.37:8888',
-      target: 'http://101.126.68.200:18081',
+      target: 'http://111.231.55.175:18081',
       changeOrigin: true,
       pathRewrite: { '^/iot': '' }
     },

+ 3 - 3
src/pages/Iot/sys/noticeway.vue

@@ -1,12 +1,12 @@
 <template>
 <a-spin :spinning="state.loading" >
   <a-row :gutter="[16, 16]">
-      <a-col span="6" >
+      <a-col span="16" >
         <a-card
-          title="邮箱配置"
+          title="参数配置"
         >
         <template v-slot:extra >
-          <a-button type="primary" @click="openModal" >{{modelRef.tenantId ? '修改邮箱' : '创建邮箱'}}</a-button>
+          <a-button type="primary" @click="openModal" >{{modelRef.tenantId ? '修改配置' : '创建配置'}}</a-button>
         </template>
           <a-row>
             <a-col  span="24" class="email" >

+ 9 - 27
src/pages/Iot/tps/device.vue

@@ -72,19 +72,7 @@
         </a-form-item>
         <!-- v-bind="validateInfos.deviceMethod" -->
         <a-form-item label="设备方法"  >
-          <a-select
-            v-model:value="deviceState.deviceMethod"
-            style="width: 170px;"
-            placeholder="请选择设备"
-          >
-            <a-select-option
-              :key="index"
-              :value="item.id"
-              v-for="(item, index) in deviceList"
-            >
-              {{item.deviceLabel}}
-            </a-select-option>
-          </a-select>
+          <a-input placeholder="请输入设备方法" v-model:value="deviceState.deviceMethod" />
         </a-form-item>
       </a-form>
     </a-card>
@@ -95,15 +83,15 @@
       <a-form-item label="sk" >
         <InputTsx allowClear placeholder="sk" v-model:value="deviceState.thirdParam.sk" />
       </a-form-item>
-      <a-form-item label="服务地址" >
+      <a-form-item label="服务请求地址" >
         <InputTsx allowClear placeholder="请输入服务地址" v-model:value="deviceState.thirdParam.endpoint" />
       </a-form-item>
-      <a-form-item label="服务地址" >
+      <a-form-item label="服务请求方法" >
         <a-select
             :value="deviceState.thirdParam.method"
             style="width: 170px;"
             @change="onChangeMethod"
-            placeholder="请选择服务方法"
+            placeholder="请选择服务请求方法"
           >
             <a-select-option
               :key="item"
@@ -114,17 +102,11 @@
             </a-select-option>
           </a-select>
       </a-form-item>
-      <a-form-item label="“属性" >
-        <a-input-group size="large">
-          <a-row :gutter="8">
-            <a-col :span="5">
-              <a-input v-model:value="deviceState.thirdParam.attributeKey" />
-            </a-col>
-            <a-col :span="8">
-              <a-input v-model:value="deviceState.thirdParam.attributeJsonPath" />
-            </a-col>
-          </a-row>
-        </a-input-group>
+      <a-form-item label="属性Key" >
+        <a-input placeholder="tem" v-model:value="deviceState.thirdParam.attributeKey" />
+      </a-form-item>
+      <a-form-item label="结果取值JSONPath" >
+        <a-input placeholder="比如$.store.book[0].title" v-model:value="deviceState.thirdParam.attributeJsonPath" />
       </a-form-item>
     </a-card>
   </RealView>

+ 16 - 16
src/router/index.ts

@@ -173,38 +173,38 @@ const iot = {
       component: () => import('@/pages/iot/ota/index.vue')
     },
     {
-      path: '/sys',
-      name: '系统设置',
+      path: '/tps',
+      name: '第三方服务',
       redirect: '/sys/noticeway',
       icon: 'DatabaseOutlined',
       children: [
         {
-          path: '/sys/noticeway',
-          name: '通知方式',
-          component: () => import('@/pages/iot/sys/noticeway.vue')
+          path: '/tps/list',
+          name: '服务列表',
+          component: () => import('@/pages/iot/tps/list.vue')
         },
         {
-          path: '/sys/notice',
-          name: '通知设置',
-          component: () => import('@/pages/iot/sys/notice.vue')
+          path: '/tps/device',
+          name: '设备服务',
+          component: () => import('@/pages/iot/tps/device.vue')
         }
       ]
     },
     {
-      path: '/tps',
-      name: '第三方服务',
+      path: '/sys',
+      name: '系统设置',
       redirect: '/sys/noticeway',
       icon: 'DatabaseOutlined',
       children: [
         {
-          path: '/tps/list',
-          name: '服务列表',
-          component: () => import('@/pages/iot/tps/list.vue')
+          path: '/sys/noticeway',
+          name: '参数配置',
+          component: () => import('@/pages/iot/sys/noticeway.vue')
         },
         {
-          path: '/tps/device',
-          name: '设备服务',
-          component: () => import('@/pages/iot/tps/device.vue')
+          path: '/sys/notice',
+          name: '通知设置',
+          component: () => import('@/pages/iot/sys/notice.vue')
         }
       ]
     },