
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
vue2.0
npm install ts-bi
import tsBi from 'ts-bi';
import 'ts-bi/lib/style/index.css'
Vue.use(tsBi, { store });
- 引入设计列表模块
<template>
<biEditor></biEditor>
</template>
- 预览右上角显示
设计按钮:引入预览时,传biOutDesign参数,点击设计可直达设计区
新建一个biPreview.vue文件,页面路径为:views/bi/biPreview.vue,路径必须严格遵守,不然将无法渲染
页面内容如下:
<template>
<div
class="height100"
>
<!--页面设计器 -->
<biPreviewForm
:params="params"
:key="'page'+ new Date()"
:isFromPreview="true"
></biPreviewForm>
</div>
</template>
<script>
export default {
name: 'biPreview',
components: {
},
data: function() {
return {
show: true,
params: {}
}
},
created() {
this.params = this.paramsFn()
},
mounted() {
},
methods: {
// 地址参数获取
paramsFn() {
if (this.$route.query && this.$route.query.mid) {
// 门户或者自定义报表或物理单表
return {
id: this.$route.path.substring(14),
type: this.$route.query.type
}
}
return { id: '' }
}
},
watch: {
$route(to, from) {
let fromId =
from.path &&
from.path.indexOf('/bi/biPreview_') == 0 ?from.path.substring(14)
: ''
if (fromId) {
// 删除跳转走后的页面内容
let biPreviewMap = { ...this.$store.state.biPreviewMap }
delete biPreviewMap[fromId]
this.$store.commit('setAllBiPreviewMap', { ...biPreviewMap })
}
this.params = this.paramsFn()
}
}
}
</script>
<template>
<formCenterGrid></formCenterGrid>
</template>
FAQs
bi组件库
The npm package ts-bi receives a total of 12 weekly downloads. As such, ts-bi popularity was classified as not popular.
We found that ts-bi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.