Commit 5f2f2eef by ZcyJames

1.手工拟报支持打包后通过静态配置文件修改ip和port

parent 5cf1747c
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
<script async src="/webapi/report/bopnew/public/visitTransEsModule/RcpmisRules" ></script> <script async src="/webapi/report/bopnew/public/visitTransEsModule/RcpmisRules" ></script>
<script async src="/webapi/report/bopnew/public/visitTransEsModule/JSHRules" ></script> <script async src="/webapi/report/bopnew/public/visitTransEsModule/JSHRules" ></script>
<script async src="/webapi/report/bopnew/public/visitTransEsModule/CFARules" ></script> <script async src="/webapi/report/bopnew/public/visitTransEsModule/CFARules" ></script>
<script async src="<%= process.env.BASE_URL %>static/swifteditor_config.js" ></script>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<el-row style="height:9000px;margin-top: 20px;"> <el-row style="height:9000px;margin-top: 20px;">
<div style="height: 100%"> <div style="height: 100%">
<iframe v-if="model.msgp.typ === 'sf2'" src="http://25.8.43.1:8086/swifteditor" width="100%"></iframe> <iframe v-if="model.msgp.typ === 'sf2'" :src="swifteditorApi" width="100%"></iframe>
<iframe v-else-if="model.msgp.typ === 'iso'" src="http://192.168.0.114:8080/swiftiso-editor" width="100%"></iframe> <iframe v-else-if="model.msgp.typ === 'iso'" :src="swiftisoeditorApi" width="100%"></iframe>
</div> </div>
</el-row> </el-row>
...@@ -41,6 +41,8 @@ export default { ...@@ -41,6 +41,8 @@ export default {
pageSize: 10, pageSize: 10,
total: 0, total: 0,
}, },
swifteditorApi:window.swiftBase.Swift_Editor_Api,
swiftisoeditorApi:window.swiftBase.Swiftiso_Editor_Api,
}; };
}, },
computed: { computed: {
......
window.swiftBase = {
//修改ip和port即可,特殊情况下:后面的项目路径看实际部署时的项目名(保持一致即可)
Swift_Editor_Api:"http://192.168.0.114:8080/swifteditor",
Swiftiso_Editor_Api:"",
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment