feat: 添加数据源、数据集删除操作前判断是否已经被大屏使用

main
wu.jian2 2 years ago
parent d7aeb50a65
commit 6c73607daf

@ -368,5 +368,6 @@ GitHub.sublime-settings
lib lib
data-room-ui data-room-ui
dataRoomUi
bigScreen bigScreen
bigScreen.zip bigScreen.zip

File diff suppressed because it is too large Load Diff

@ -53,6 +53,7 @@
"@amap/amap-jsapi-loader": "^1.0.1", "@amap/amap-jsapi-loader": "^1.0.1",
"@antv/g2plot": "2.4.0", "@antv/g2plot": "2.4.0",
"@jiaminghi/data-view": "2.10.0", "@jiaminghi/data-view": "2.10.0",
"@wjjj/utils": "^0.1.2",
"axios": "0.18.1", "axios": "0.18.1",
"babel-polyfill": "6.26.0", "babel-polyfill": "6.26.0",
"echarts": "^5.2.2", "echarts": "^5.2.2",

@ -233,7 +233,7 @@
/> />
<checkDatasource <checkDatasource
ref="checkDatasource" ref="checkDatasource"
:reasonList="reasonList" :reason-list="reasonList"
/> />
<component <component
:is="componentData.component" :is="componentData.component"
@ -466,7 +466,6 @@ export default {
this.$refs.checkDatasource.checkDatasourceVisible = true this.$refs.checkDatasource.checkDatasourceVisible = true
} }
}) })
}, },
// //
toPreview (id, type, name, typeId) { toPreview (id, type, name, typeId) {

@ -8,10 +8,12 @@
:before-close="handleClose" :before-close="handleClose"
class="bs-dialog-wrap bs-el-dialog" class="bs-dialog-wrap bs-el-dialog"
> >
<div class="text-style">
<div <div
style="padding-right: 80px;" v-for="(item,index) in reasonList"
:key="index"
class="item"
> >
<div class="item" v-for="(item,index) in reasonList" :key="index">
<span v-if="reasonList.length>1"> {{ index+1 }}</span>{{ item }} <span v-if="reasonList.length>1"> {{ index+1 }}</span>{{ item }}
</div> </div>
</div> </div>
@ -39,7 +41,7 @@ export default {
}, },
data () { data () {
return { return {
checkDatasourceVisible: false, checkDatasourceVisible: false
} }
}, },
methods: { methods: {
@ -59,4 +61,8 @@ export default {
.item{ .item{
padding: 8px 0; padding: 8px 0;
} }
.text-style{
padding-right: 80px;
color: var(--bs-el-text);
}
</style> </style>

@ -130,7 +130,7 @@
/> />
<checkDatasource <checkDatasource
ref="checkDatasource" ref="checkDatasource"
:reasonList="reasonList" :reason-list="reasonList"
/> />
</div> </div>
</template> </template>
@ -297,7 +297,6 @@ export default {
this.$refs.checkDatasource.checkDatasourceVisible = true this.$refs.checkDatasource.checkDatasourceVisible = true
} }
}) })
}, },
sourceLinkTest (row) { sourceLinkTest (row) {
this.testBtnLoading.push(row.id) this.testBtnLoading.push(row.id)

Loading…
Cancel
Save