qinhouyu 8 months ago
parent
commit
70cb56ff54

+ 1 - 1
screen-demo/.npmrc

@@ -1,2 +1,2 @@
 registry=https://registry.npmjs.org/
-@ct:registry=http://10.38.77.5:8081/repository/npm-public/
+@ct:registry=http://10.38.77.5:8081/repository/npm-public/

+ 2 - 2
screen-demo/package.json

@@ -3,13 +3,13 @@
   "version": "0.1.0",
   "private": true,
   "scripts": {
-    "dev": "vue-cli-service serve",
+    "dev": "vue-cli-service serve --port 8080",
     "serve": "vue-cli-service serve",
     "build": "vue-cli-service build",
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
-    "@ct/ct_map_ol": "^1.0.5",
+    "@ct/ct_map_ol": "^2.2.22",
     "@ct/iframe-connect-sdk": "^1.0.18",
     "core-js": "^3.8.3",
     "echarts": "5.4.0",

+ 7 - 10
screen-demo/src/main.js

@@ -14,20 +14,17 @@ const { iframeSDK, requestSDK, postMsgUtil } = sdk;
 Vue.prototype.$iframeSDK = iframeSDK;
 Vue.prototype.$requestSDK = requestSDK;
 Vue.prototype.$postMsgUtil = postMsgUtil;
-
+// echarts
+import echarts from 'echarts'
+Vue.prototype.echarts = echarts
 Vue.use(Element, { size: "small" });
-Vue.prototype.isCross = true
 
-localStorage.setItem("isCross", true)
 
 // 监听父页面的发送事件
-localStorage.setItem('isCross', true)
-postMsgUtil.listen("checkCrossResult", function (data) {
-  console.log("datadatadata===", data);
-  Vue.prototype.isCross = data != 200;
-  localStorage.setItem("isCross", data !== 200)
-})
-
+postMsgUtil.listen("checkCrossResult", function ({data}) {
+  Vue.prototype.isCross = data !== 200
+  localStorage.setItem('isCross', data !== 200)
+});
 new Vue({
   router,
   render: h => h(App),

File diff suppressed because it is too large
+ 797 - 475
screen-demo/src/views/templateInstance.vue


+ 3 - 5
screen-demo/vue.config.js

@@ -1,9 +1,7 @@
 const { defineConfig } = require('@vue/cli-service')
 module.exports = defineConfig({
+  transpileDependencies: true,
   devServer: {
-    port: 8080,
-    https: false
-  },
-  transpileDependencies: true
+      port:8080
+  }
 })
-