Browse Source

样式调整:dashboardDesigner高度设置为95%以方便操作

xiaoct 7 years ago
parent
commit
2024b7364e

+ 27 - 0
src/components/common/shareQR/shareQR.jsx

@@ -0,0 +1,27 @@
+import React from 'react'
+import QRCode from 'qrcode.react'
+
+class ShareQR extends React.Component {
+    constructor(props) {
+        super(props)
+        this.state = {
+            url: ""
+        }
+    }
+    componentDidMount(){
+
+    this.setState({
+            url: "http://www.baidu.com/"
+            })
+        }
+
+    render(){
+        return(
+            <div>
+                <QRCode size={150} value={this.state.url} level={"L"}/>
+            </div>
+        )
+    }
+}
+
+export default ShareQR

+ 1 - 1
src/components/dashboardDesigner/layout.less

@@ -13,7 +13,7 @@
     &>.ant-layout-content {
         flex: 1;
         .content {
-            height: 100%;
+            height: 95%;
             &>.dashboard-content {
                 height: calc(~"100% - 20px");
                 margin: 10px;

+ 2 - 1
src/constants/url.js

@@ -1,5 +1,6 @@
-const BASE_URL = 'http://192.168.253.189:81/BI';
+// const BASE_URL = 'http://192.168.253.189:81/BI';
 // const BASE_URL = 'http://192.168.253.129:8011';
+const BASE_URL = 'http://10.1.1.168:8094/BI/';
 
 /**后台接口地址 */
 const URLS = {