显示点位前需要隐藏弹窗
This commit is contained in:
@@ -9,7 +9,9 @@
|
|||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-model="item.statusStore[item.statusKey].show"
|
v-model="item.statusStore[item.statusKey].show"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
@change="item.callback(item.statusStore[item.statusKey].show)"
|
@change="
|
||||||
|
changeStatus(item.statusStore[item.statusKey].show, item.callback)
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -17,6 +19,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { useLoadingInformationStore } from '@/stores/useLoadingInformation';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
constrolShowList: {
|
constrolShowList: {
|
||||||
name: string;
|
name: string;
|
||||||
@@ -25,6 +29,18 @@
|
|||||||
callback: (...args: unknown[]) => unknown;
|
callback: (...args: unknown[]) => unknown;
|
||||||
}[];
|
}[];
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
// 状态改变执行
|
||||||
|
const changeStatus = (
|
||||||
|
status: boolean,
|
||||||
|
callback: (...args: unknown[]) => unknown
|
||||||
|
) => {
|
||||||
|
// 重置信息框状态,隐藏显示
|
||||||
|
useLoadingInformationStore().resetStatue();
|
||||||
|
|
||||||
|
// 调用回调函数
|
||||||
|
callback(status);
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user