Browse Source

fix: 服务发布、监控、调用

zouooh 1 year ago
parent
commit
7711dd1b0a

+ 1 - 0
.gitignore

@@ -12,3 +12,4 @@ yarn-error.log*
12 12
 *.ntvs*
13 13
 *.njsproj
14 14
 *.sln
15
+/package-lock.json

+ 2 - 2
src/config/index.js

@@ -4,11 +4,11 @@
4 4
 const Config = {
5 5
   dev: {
6 6
 // BASE_API: 'https://172.16.36.211:8800', // http://172.16.36.211:8800
7
-    BASE_API: 'https://park.lhzhtc.cn/luohe2_ee/api', // http://172.16.36.211:8800
7
+    BASE_API: 'http://localhost:16399/luohe2_ee/api', // http://172.16.36.211:8800
8 8
   },
9 9
   build: {
10 10
 //服务地址及端口配置
11
-    BASE_API: 'http://101.42.41.254:83/luohe2_ee/api', // http://172.16.36.211:8800,
11
+    BASE_API: 'https://park.lhzhtc.cn/luohe2_ee/api', // http://172.16.36.211:8800,
12 12
   },
13 13
   applicationName: '漯河停车管理系统',
14 14
 }

+ 9 - 2
src/pages/index/components/service_call_function.vue

@@ -13,6 +13,11 @@
13 13
       <el-form-item style="text-align: center;margin-top: 20px;">
14 14
         <el-button type="primary" @click="submitForm('ruleForm')">调用接口</el-button>
15 15
       </el-form-item>
16
+      <el-form-item>
17
+        <div style="color: white">
18
+          {{resStr}}
19
+        </div>
20
+      </el-form-item>
16 21
     </el-form>
17 22
   </div>
18 23
 </template>
@@ -27,7 +32,8 @@ export default {
27 32
         apiUrl: '',
28 33
         accessKey: '',
29 34
         publicKey: ''
30
-      }
35
+      },
36
+      resStr:''
31 37
     }
32 38
   },
33 39
   mounted() {
@@ -41,7 +47,8 @@ export default {
41 47
           let params = this.ruleForm
42 48
           api.fwdy(params).then(res => {
43 49
             this.$message({type: 'success', message: '调用成功!'})
44
-            this.resetForm(formName)
50
+            //this.resetForm(formName)
51
+            this.resStr = res.data
45 52
           })
46 53
         } else {
47 54
           console.log('error submit!!');

+ 7 - 3
src/pages/index/components/service_monitor.vue

@@ -23,12 +23,16 @@ export default {
23 23
     return {
24 24
       columns: [
25 25
         {
26
-          label: '模块名称',
27
-          key: 'moduleName'
26
+          label: '服务名称',
27
+          key: 'interfaceName'
28 28
         },
29 29
         {
30 30
           label: '接口地址',
31
-          key: 'apiUrl'
31
+          key: 'interfaceUrl'
32
+        },
33
+        {
34
+          label: '运行状态',
35
+          key: 'interfaceStatus'
32 36
         },
33 37
       ],
34 38
       tableData: [],

+ 1 - 1
src/pages/index/components/service_publish.vue

@@ -63,7 +63,7 @@ export default {
63 63
         },
64 64
         {
65 65
           label: '发布人',
66
-          key: 'serveName'
66
+          key: 'createUser'
67 67
         }
68 68
       ],
69 69
       tableData: [],

+ 2 - 2
static/mung-local-config.js

@@ -1,9 +1,9 @@
1 1
 window.mungConfig = {
2 2
   dev: {
3
-    BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"
3
+    BASE_API: "http://localhost:16399/luohe2_ee/api"
4 4
   },
5 5
   build: {
6
-    BASE_API: "http://101.42.41.254:83/luohe2_ee/api"
6
+    BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"
7 7
   },
8 8
 // casConfig: {
9 9
 // isLogin: false,