mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
refactor: 优化过滤组件置顶等问题
This commit is contained in:
@@ -529,7 +529,7 @@ public class DataVisualizationServer implements DataVisualizationApi {
|
||||
* */
|
||||
Long dvId = request.getId();
|
||||
DataVisualizationInfo visualizationInfo = new DataVisualizationInfo();
|
||||
visualizationInfo.setStatus(request.getStatus());
|
||||
visualizationInfo.setMobileLayout(request.getMobileLayout());
|
||||
visualizationInfo.setId(dvId);
|
||||
visualizationInfo.setName(request.getName());
|
||||
visualizationInfo.setStatus(request.getStatus());
|
||||
|
||||
@@ -193,6 +193,7 @@ const publishStatusChange = status => {
|
||||
updatePublishStatus({
|
||||
id: dvInfo.value.id,
|
||||
name: dvInfo.value.name,
|
||||
mobileLayout: dvInfo.value.mobileLayout,
|
||||
status,
|
||||
type: 'dashboard'
|
||||
}).then(() => {
|
||||
@@ -726,7 +727,7 @@ const initOpenHandler = newWindow => {
|
||||
<el-dropdown popper-class="menu-outer-dv_popper" trigger="hover">
|
||||
<el-button
|
||||
@click="publishStatusChange(1)"
|
||||
:disabled="dvInfo.status === 1"
|
||||
:disabled="dvInfo.status === 1 || !dvInfo.id"
|
||||
style="float: right; margin: 0 12px 0 0"
|
||||
type="primary"
|
||||
>
|
||||
|
||||
@@ -309,6 +309,7 @@ const publishStatusChange = status => {
|
||||
updatePublishStatus({
|
||||
id: dvInfo.value.id,
|
||||
name: dvInfo.value.name,
|
||||
mobileLayout: dvInfo.value.mobileLayout,
|
||||
status,
|
||||
type: 'dataV'
|
||||
}).then(() => {
|
||||
@@ -476,7 +477,7 @@ const fullScreenPreview = () => {
|
||||
<el-dropdown effect="dark" popper-class="menu-outer-dv_popper" trigger="hover">
|
||||
<el-button
|
||||
@click="publishStatusChange(1)"
|
||||
:disabled="dvInfo.status === 1"
|
||||
:disabled="dvInfo.status === 1 || !dvInfo.id"
|
||||
style="float: right; margin: 0 12px 0 0"
|
||||
type="primary"
|
||||
>
|
||||
|
||||
@@ -137,7 +137,7 @@ const menuDisabledCheck = ele => {
|
||||
color: var(--ed-text-color-disabled) !important;
|
||||
}
|
||||
.de-hidden-drop-item {
|
||||
display: none;
|
||||
display: none !important;
|
||||
}
|
||||
.menu-more-dv_popper {
|
||||
width: 120px;
|
||||
|
||||
@@ -140,6 +140,7 @@ const onFreezeChange = newVal => {
|
||||
item.freeze = false
|
||||
}
|
||||
})
|
||||
snapshotStore.recordSnapshotCache('onFreezeChange')
|
||||
})
|
||||
.catch(() => {
|
||||
element.value.freeze = false
|
||||
@@ -150,7 +151,10 @@ const onFreezeChange = newVal => {
|
||||
item.freeze = false
|
||||
}
|
||||
})
|
||||
snapshotStore.recordSnapshotCache('onFreezeChange')
|
||||
}
|
||||
} else {
|
||||
snapshotStore.recordSnapshotCache('onFreezeChange')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -673,7 +673,7 @@ eventBus.on('tabSort', tabSort)
|
||||
:canvas-data-preview="componentData"
|
||||
:canvas-style-preview="canvasStyleData"
|
||||
:canvas-view-info-preview="canvasViewInfo"
|
||||
:dv-info="dvInfo"
|
||||
:dv-info="{ ...dvInfo, status: 1 }"
|
||||
></dv-preview>
|
||||
<custom-tabs-sort ref="customTabsSortRef"></custom-tabs-sort>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user