Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
338ad3ef
提交
338ad3ef
authored
9月 14, 2024
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: qiankun改造完成
上级
595acb3a
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
62 行增加
和
21 行删除
+62
-21
package.json
iframe/package.json
+7
-3
index.html
iframe/public/index.html
+5
-6
main.js
iframe/src/main.js
+36
-10
public-path.js
iframe/src/public-path.js
+3
-0
vue.config.js
iframe/vue.config.js
+10
-1
index.vue
...s/MMCFlightControlCenter/components/cesiumLayer/index.vue
+1
-1
没有找到文件。
iframe/package.json
浏览文件 @
338ad3ef
{
"name"
:
"
iframe1
"
,
"name"
:
"
FKZX
"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
"dev"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"lint"
:
"vue-cli-service lint"
"lint"
:
"vue-cli-service lint"
,
"v"
:
"webpack --version"
},
"dependencies"
:
{
"core-js"
:
"^3.8.3"
,
"element-ui"
:
"^2.15.14"
,
"js-base64"
:
"^3.7.7"
,
"url-loader"
:
"^4.1.1"
,
"vue"
:
"^2.6.14"
},
"devDependencies"
:
{
...
...
@@ -36,7 +38,9 @@
"parserOptions"
:
{
"parser"
:
"@babel/eslint-parser"
},
"rules"
:
{}
"rules"
:
{
"no-unused-vars"
:
"off"
}
},
"browserslist"
:
[
"> 1%"
,
...
...
iframe/public/index.html
浏览文件 @
338ad3ef
...
...
@@ -8,12 +8,11 @@
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
<link
rel=
"stylesheet"
href=
"./cesium/Widgets/widgets.css"
>
<script
src=
"./cesium/Cesium.js"
></script>
<script
src=
"./js/icontfont.js"
></script>
<script
type=
"text/javascript"
src=
"./js/nipplejs.min.js"
></script>
<script
src=
"./s3m.js"
></script>
<script
src=
"QingLiu/PIMediaPlayer_api.js"
></script>
<script
type=
"text/javascript"
src=
"QingLiu/kbt_api.js"
></script>
<script
src=
"liveplayer/liveplayer-lib.min.js"
></script>
<script
async
src=
"./js/icontfont.js"
></script>
<script
async
type=
"text/javascript"
src=
"./js/nipplejs.min.js"
></script>
<script
async
src=
"QingLiu/PIMediaPlayer_api.js"
></script>
<script
async
type=
"text/javascript"
src=
"QingLiu/kbt_api.js"
></script>
<script
async
src=
"liveplayer/liveplayer-lib.min.js"
></script>
</head>
<body>
<noscript>
...
...
iframe/src/main.js
浏览文件 @
338ad3ef
import
Vue
from
'vue'
import
Vuex
from
'vuex'
;
import
App
from
'./App.vue'
import
Vue
from
"vue"
;
import
Vuex
from
"vuex"
;
import
App
from
"./App.vue"
;
import
ElementUI
from
"element-ui"
;
import
"element-ui/lib/theme-chalk/index.css"
;
/* import MMCSTL from '../../dist/index';
import '../../dist/style/index.css'; */
import
MMCSTL
from
'../../index'
;
import
'./styles/reset.css'
;
import
MMCSTL
from
"../../index"
;
import
"./styles/reset.css"
;
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
;
Vue
.
use
(
Vuex
);
Vue
.
use
(
ElementUI
);
Vue
.
use
(
MMCSTL
);
new
Vue
({
render
:
h
=>
h
(
App
),
store
:
new
Vuex
.
Store
({}),
}).
$mount
(
'#app'
)
let
router
=
null
;
let
instance
=
null
;
function
render
(
props
=
{})
{
const
{
container
}
=
props
;
instance
=
new
Vue
({
render
:
(
h
)
=>
h
(
App
),
store
:
new
Vuex
.
Store
({}),
}).
$mount
(
container
?
container
.
querySelector
(
'#app'
)
:
'#app'
);
}
// 独立运行时
if
(
!
window
.
__POWERED_BY_QIANKUN__
)
{
render
();
}
export
async
function
bootstrap
()
{
console
.
log
(
'[vue] vue app bootstraped'
);
}
export
async
function
mount
(
props
)
{
console
.
log
(
'[vue] props from main framework'
,
props
);
render
(
props
);
}
export
async
function
unmount
()
{
instance
.
$destroy
();
instance
.
$el
.
innerHTML
=
''
;
instance
=
null
;
router
=
null
;
}
\ No newline at end of file
iframe/src/public-path.js
0 → 100644
浏览文件 @
338ad3ef
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
__webpack_public_path__
=
window
.
__INJECTED_PUBLIC_PATH_BY_QIANKUN__
;
}
iframe/vue.config.js
浏览文件 @
338ad3ef
const
{
defineConfig
}
=
require
(
"@vue/cli-service"
);
const
NodePolyfillPlugin
=
require
(
"node-polyfill-webpack-plugin"
);
// 引入
const
packageName
=
require
(
'./package.json'
).
name
;
const
publicPath
=
process
.
env
.
NODE_ENV
===
'production'
?
'https://tmj-v4.t.mmcuav.cn/tmj_fkzx_v4/'
:
`//localhost:9000`
;
module
.
exports
=
defineConfig
({
publicPath
:
"./"
,
// publicPath: "./",
publicPath
:
publicPath
,
transpileDependencies
:
true
,
productionSourceMap
:
false
,
configureWebpack
:
{
plugins
:
[
new
NodePolyfillPlugin
()],
output
:
{
library
:
`
${
packageName
}
-[name]`
,
libraryTarget
:
'umd'
,
chunkLoadingGlobal
:
`webpackJsonp_
${
packageName
}
`
,
},
},
devServer
:
{
https
:
false
,
...
...
src/components/MMCFlightControlCenter/components/cesiumLayer/index.vue
浏览文件 @
338ad3ef
...
...
@@ -102,7 +102,7 @@ export default {
this
.
viewer
.
imageryLayers
.
addImageryProvider
(
new
Cesium
.
UrlTemplateImageryProvider
({
url
:
"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"
,
maximumLevel
:
1
8
,
maximumLevel
:
1
7
,
})
);
// 星图地球卫星影像 https://datacloud.geovisearth.com/
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论