Browse Source

页面调整

敲代码的猫 1 month ago
parent
commit
6c65a74f1d

+ 19 - 18
src/components/VideoComponent/index.vue

@@ -121,24 +121,25 @@ export default {
 
     //授权验证
     initViewer() {
-      const that = this;
-      // console.log("session获取id",that.generateUUID())
-      // console.log("时间戳",that.getCurrentTimestamp())
-      DataFunc.post('/uvp-backend-common/api/v1/authorization', {
-        ak: that.cameraConfig.ak,
-        sk: that.cameraConfig.sk
-      },{location: true}).then(res => {
-        console.log("==获取的授权信息==",res);
-        if(res && res.resultValue){
-          that.cameraConfig.token = res.resultValue.token;
-          //that.props.onLoad && that.props.onLoad(that);
-          //加载播放器
-          this.$emit("videoLoad", this);
-        }
-      });
-    },
-
-    
+  const that = this;
+  let apiUrl = '/uvp-backend-common/api/v1/authorization';
+  if (apiUrl.startsWith('/sxgw')) {
+    apiUrl = apiUrl.substring(4);
+  }
+  DataFunc.post(apiUrl, {
+    ak: that.cameraConfig.ak,
+    sk: that.cameraConfig.sk
+  }, { location: true }).then(res => {
+    console.log("==获取的授权信息==", res);
+    if (res && res.resultValue) {
+      that.cameraConfig.token = res.resultValue.token;
+      // 加载播放器
+      this.$emit("videoLoad", this);
+    }
+  }).catch(error => {
+    console.error("请求失败:", error);
+  });
+},
 
     //开始播放
     videoPlay(options) {

+ 4 - 4
src/views/pad/building/energyRateDialog.vue

@@ -951,7 +951,7 @@ export default {
         {
           name: '', //头部
           type: 'pictorialBar',
-          zlevel: 1,
+          zlevel: 5,
           symbolSize: [60, 25], //顶部刻度的圆形
           symbolOffset: [0, -10],
           z: 12,
@@ -982,7 +982,7 @@ export default {
            {
           name: '', //头部
           type: 'pictorialBar',
-          zlevel: 1,
+          zlevel: 5,
           symbolSize: [60, 25], //顶部刻度的圆形
           symbolOffset: [0, -10],
           z: 12,
@@ -1326,7 +1326,7 @@ export default {
         {
           name: '', //头部
           type: 'pictorialBar',
-          zlevel: 1,
+          zlevel: 5,
           symbolSize: [60, 25], //顶部刻度的圆形
           symbolOffset: [0, -10],
           z: 12,
@@ -1357,7 +1357,7 @@ export default {
            {
           name: '', //头部
           type: 'pictorialBar',
-          zlevel: 1,
+          zlevel: 5,
           symbolSize: [60, 25], //顶部刻度的圆形
           symbolOffset: [0, -10],
           z: 12,

+ 4 - 4
src/views/screen/building/energyRateDialog.vue

@@ -949,7 +949,7 @@ export default {
         {
           name: '', //头部
           type: 'pictorialBar',
-          zlevel: 1,
+          zlevel: 5,
           symbolSize: [60, 25], //顶部刻度的圆形
           symbolOffset: [0, -10],
           z: 12,
@@ -980,7 +980,7 @@ export default {
            {
           name: '', //头部
           type: 'pictorialBar',
-          zlevel: 1,
+          zlevel: 5,
           symbolSize: [60, 25], //顶部刻度的圆形
           symbolOffset: [0, -10],
           z: 12,
@@ -1324,7 +1324,7 @@ export default {
         {
           name: '', //头部
           type: 'pictorialBar',
-          zlevel: 1,
+          zlevel: 5,
           symbolSize: [60, 25], //顶部刻度的圆形
           symbolOffset: [0, -10],
           z: 12,
@@ -1355,7 +1355,7 @@ export default {
            {
           name: '', //头部
           type: 'pictorialBar',
-          zlevel: 1,
+          zlevel: 5,
           symbolSize: [60, 25], //顶部刻度的圆形
           symbolOffset: [0, -10],
           z: 12,