Browse Source

大屏门户接口

CzRger 1 year ago
parent
commit
d6597b6274
3 changed files with 14 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 11 0
      src/views/screen/index.vue
  3. 2 1
      vite.config.ts

+ 1 - 0
.gitignore

@@ -23,3 +23,4 @@ social-management-screen
 *.njsproj
 *.sln
 *.sw?
+social-management-screen.zip

+ 11 - 0
src/views/screen/index.vue

@@ -505,6 +505,17 @@ export default defineComponent({
         bbbzs: '0(0%)',
         qt: '0(0%)',
       }
+      axios.get(`/${store.state.app.apiProxy.screenApi}/video/yjtj/record`).then(res => {
+        if (res.status === 200) {
+          state.yjtjqk = {
+            total: res.data.total,
+            ffld: res.data.ffld,
+            cqzl: res.data.cqzl,
+            bbbzs: res.data.bbbzs,
+            qt: res.data.qt,
+          }
+        }
+      })
     }
     onMounted(() => {
       initTSZHQK()

+ 2 - 1
vite.config.ts

@@ -49,7 +49,8 @@ export default defineConfig({
       '/api-csb/': {
         // target: 'http://localhost:8080/',
         // target: 'http://127.0.0.1:3002/',
-        target: 'http://10.110.49.2:8090/api-csb/',
+        // target: 'http://10.110.49.2:8090/api-csb/',
+        target: 'http://csb-broker.paas.sgpt.gov:8086/',
         changeOrigin: true,
         rewrite: path => {
           return path.replace(/^\/api-csb/, '')