This commit is contained in:
ChenQiuYu 2025-04-24 13:21:46 +08:00
parent 9d7947ef87
commit c0f4613829
17 changed files with 48 additions and 51 deletions

View File

@ -5,18 +5,21 @@ import { CloseBold } from '@element-plus/icons-vue'
let _width = ref(0); let _width = ref(0);
let _height = ref(0); let _height = ref(0);
let _isShow = ref(false); let _isShow = ref(false);
const { width, height, isShow,title } = defineProps(['width', 'height', 'isShow','title']); let _close = ref(true);
const {width, height, isShow, title, close} = defineProps(['width', 'height', 'isShow', 'title', 'close']);
_isShow.value = isShow == null ? false : isShow; _isShow.value = isShow == null ? false : isShow;
_width.value = width == null ? 1200 : width; _width.value = width == null ? 1200 : width;
_height.value = height == null ? 800 : height; _height.value = height == null ? 800 : height;
_close.value = close == null ? true : close;
console.log(_width, _height, _isShow); console.log(_width, _height, _isShow);
watch(() => isShow, (newVal) => { watch(() => isShow, (newVal) => {
_isShow.value = newVal == null ? false : newVal; _isShow.value = newVal == null ? false : newVal;
}); });
const emit = defineEmits(['close']); const emit = defineEmits(['close']);
const close = () => { const closeBtn = () => {
emit('close', false); emit('close', false);
}; };
</script> </script>
@ -29,7 +32,11 @@ const close = () => {
<el-scrollbar height="100%"> <el-scrollbar height="100%">
<div class="header"> <div class="header">
<div class="title">{{ title }}</div> <div class="title">{{ title }}</div>
<div class="close" @click="close"><el-icon><CloseBold/></el-icon></div> <div class="close" @click="closeBtn" v-if="_close">
<el-icon>
<CloseBold/>
</el-icon>
</div>
</div> </div>
<slot></slot> <slot></slot>
</el-scrollbar> </el-scrollbar>
@ -61,10 +68,12 @@ const close = () => {
overflow: hidden; overflow: hidden;
max-height: 90vh; max-height: 90vh;
z-index: 1999; z-index: 1999;
.header { .header {
position: relative; position: relative;
height: 72px; height: 72px;
padding: 0 4px; padding: 0 4px;
.title { .title {
position: absolute; position: absolute;
top: 50%; top: 50%;
@ -75,6 +84,7 @@ const close = () => {
font-style: normal; font-style: normal;
transform: translateY(-50%); transform: translateY(-50%);
} }
.close { .close {
position: absolute; position: absolute;
top: 50%; top: 50%;
@ -82,6 +92,7 @@ const close = () => {
color: #6e6e6e; color: #6e6e6e;
font-size: 32px; font-size: 32px;
transform: translateY(-50%); transform: translateY(-50%);
&:hover { &:hover {
color: #409eff; color: #409eff;
} }

View File

@ -1,8 +1,5 @@
<template> <template>
<div class="container_grant"> <div class="container_grant">
<div class="title_grant">
积分兑换
</div>
<div class="content_grant"> <div class="content_grant">
<div class="head"> <div class="head">
<div class="name"> <div class="name">

View File

@ -1,9 +1,5 @@
<template> <template>
<div class="container"> <div class="container">
<div class="title" style="background-color: #fff">
<CloseBtn @click="close"></CloseBtn>
<span>积分流水</span>
</div>
<div class="body"> <div class="body">
<div class="body_info"> <div class="body_info">
<span class="name">{{props.info.realName}}</span> <span class="name">{{props.info.realName}}</span>

View File

@ -1,8 +1,5 @@
<template> <template>
<div class="container_grant"> <div class="container_grant">
<div class="title_grant">
积分发放
</div>
<div class="content_grant"> <div class="content_grant">
<div class="head"> <div class="head">
<div class="name"> <div class="name">

View File

@ -1,6 +1,5 @@
<template> <template>
<Mask :width="600" :height="500" :is-show="show"> <Mask :width="600" :height="500" :is-show="show" @close="show=false" :title="id?'会员编辑':'会员建档'">
<CloseBtn @click="close"></CloseBtn>
<div class="content"> <div class="content">
<el-form <el-form
:model="ruleForm" :model="ruleForm"

View File

@ -1,7 +1,7 @@
<template> <template>
<Mask :width="600" :height="500" :is-show="show"> <Mask :width="600" :height="500" :is-show="show" @close="show=false" :title="levelId?'编辑等级':'添加等级'">
<el-select v-model="levelId"> <el-select v-model="levelId">
<el-option <el-option
v-for="item in options" v-for="item in options"

View File

@ -1,5 +1,5 @@
<template> <template>
<Mask :width="1000" :height="560" :is-show="show"> <Mask :width="1000" :height="560" :is-show="show" @close="show = false">
<div class="container"> <div class="container">
<div class="title"> <div class="title">
<CloseBtn @click="show = false"></CloseBtn> <CloseBtn @click="show = false"></CloseBtn>

View File

@ -1,6 +1,5 @@
<template> <template>
<Mask :is-show="isShow"> <Mask :is-show="isShow" @close="isShow = false" title="添加子项目">
<CloseBtn @click="isShow = false" style="height: 60px"></CloseBtn>
<div style="display: flex"> <div style="display: flex">
<el-form <el-form
:model="form" :model="form"
@ -37,7 +36,7 @@
</div> </div>
</div> </div>
</Mask> </Mask>
<Mask :is-show="isShowAdd"> <Mask :is-show="isShowAdd" @close="isShowAdd = false" title="子项目列表">
<ListChild @close="isShowAdd=false" @selected="selected"></ListChild> <ListChild @close="isShowAdd=false" @selected="selected"></ListChild>
</Mask> </Mask>
</template> </template>

View File

@ -1,6 +1,5 @@
<template> <template>
<Mask :width="800" :height="600" :is-show="show" :top="100"> <Mask :width="800" :height="600" :is-show="show" :top="100" @close="show=false" title="项目列表">
<CloseBtn @click="show=false" style="height: 60px"></CloseBtn>
<div class="search_content_wrapper"> <div class="search_content_wrapper">
<div class="search_wrapper"> <div class="search_wrapper">
<span>药品名称:</span> <span>药品名称:</span>

View File

@ -12,7 +12,7 @@
<div class="business"> <div class="business">
<BusinessOverview></BusinessOverview> <BusinessOverview></BusinessOverview>
</div> </div>
<PanmentDetail></PanmentDetail> <PaymentDetails></PaymentDetails>
</div> </div>
<div class="right"> <div class="right">
<Card></Card> <Card></Card>
@ -26,12 +26,11 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import {ref, onMounted, nextTick} from "vue" import {ref, onMounted, nextTick} from "vue"
import ExpireWarnDetail from "@/components/home/index/Dialog/ExpireWarnDetail.vue";
import Card from "@/components/home/index/Card.vue"; import Card from "@/components/home/index/Card.vue";
import CustomerService from "@/components/home/index/CustomerService.vue"; import CustomerService from "@/components/home/index/CustomerService.vue";
import SystemMessage from "@/components/home/index/SystemMessage.vue"; import SystemMessage from "@/components/home/index/SystemMessage.vue";
import Banner from "@/components/home/index/Banner.vue"; import Banner from "@/components/home/index/Banner.vue";
import PanmentDetail from "@/components/home/index/PanmentDetail.vue"; import PaymentDetails from "@/components/home/index/PaymentDetails.vue";
import BusinessOverview from "@/components/home/index/BusinessOverview.vue"; import BusinessOverview from "@/components/home/index/BusinessOverview.vue";
import InventoryAlert from "@/components/home/index/InventoryAlert.vue"; import InventoryAlert from "@/components/home/index/InventoryAlert.vue";
import ValidityWarning from "@/components/home/index/ValidityWarning.vue"; import ValidityWarning from "@/components/home/index/ValidityWarning.vue";

View File

@ -28,10 +28,10 @@
/> />
</div> </div>
</div> </div>
<Mask :width="1200" :height="600" :top="100" :is-show="is_add"> <Mask :width="1200" :height="600" :top="100" :is-show="is_add" @close="is_add=false">
<AddApply @close="closeAddApply"/> <AddApply @close="closeAddApply"/>
</Mask> </Mask>
<Mask :width="1200" :height="600" :top="100" :is-show="is_detail"> <Mask :width="1200" :height="600" :top="100" :is-show="is_detail" @close="is_detail=false">
<DetailApply :id="id" @close="closeDetailApply"/> <DetailApply :id="id" @close="closeDetailApply"/>
</Mask> </Mask>
</div> </div>

View File

@ -31,10 +31,10 @@
</div> </div>
</div> </div>
</div> </div>
<Mask :width="1200" :height="500" :is-show="showAdd" :top="100"> <Mask :width="1200" :height="500" :is-show="showAdd" :top="100" @close="showAdd = false">
<Add @close="showAdd = false"/> <Add @close="showAdd = false"/>
</Mask> </Mask>
<Mask :width="1200" :height="500" :is-show="showDetail" :top="100"> <Mask :width="1200" :height="500" :is-show="showDetail" :top="100" @close="showDetail = false">
<Detail :id="id" @close="showDetail = false"/> <Detail :id="id" @close="showDetail = false"/>
</Mask> </Mask>
</template> </template>

View File

@ -148,14 +148,14 @@
</div> </div>
<VipEdit ref="refEdit" @close="init"></VipEdit> <VipEdit ref="refEdit" @close="init"></VipEdit>
<VipLevelEdit ref="levelEditRef" @close="init"></VipLevelEdit> <VipLevelEdit ref="levelEditRef" @close="init"></VipLevelEdit>
<Mask :width="600" :height="400" :is-show="isGrant"> <Mask :width="600" :height="400" :is-show="isGrant" @close="isGrant=false" :title="'发放积分'">
<Grant :info="listItem" @close="closeGrant()"></Grant> <Grant :info="listItem" @close="closeGrant()"></Grant>
</Mask> </Mask>
<Mask :width="600" :height="400" :is-show="isExchange"> <Mask :width="600" :height="400" :is-show="isExchange" @close="isExchange=false" title="兑换积分">
<Exchange :info="listItem" @close="closeExchange()"></Exchange> <Exchange :info="listItem" @close="closeExchange()"></Exchange>
</Mask> </Mask>
<Mask :is-show="isFlowingWater"> <Mask :is-show="isFlowingWater" @close="isFlowingWater = false" title="流水记录">
<FlowingWater :info="listItem" @close="isFlowingWater = false"></FlowingWater> <FlowingWater :info="listItem"></FlowingWater>
</Mask> </Mask>
<OrderDetail ref="orderDetailRef"></OrderDetail> <OrderDetail ref="orderDetailRef"></OrderDetail>
</template> </template>

View File

@ -74,7 +74,7 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<Mask :is-show="isShow"> <Mask :is-show="isShow" @close="initData()">
<ItemEdit :id="id" ref="ItemEditRef" @close="initData()"></ItemEdit> <ItemEdit :id="id" ref="ItemEditRef" @close="initData()"></ItemEdit>
</Mask> </Mask>
<SetMenu ref="setMenuRef"></SetMenu> <SetMenu ref="setMenuRef"></SetMenu>

View File

@ -30,7 +30,7 @@
v-model:current-page="current_page" @current-change="change_page"/> v-model:current-page="current_page" @current-change="change_page"/>
</div> </div>
</div> </div>
<Mask :is-show="loading" :width="300" height="150"> <Mask :is-show="loading" :width="300" height="150" title="更新版本" :close="false">
{{ uploadMsg }} {{ uploadMsg }}
<div class="demo-progress" style="margin-top: 20px"> <div class="demo-progress" style="margin-top: 20px">
<el-progress :percentage="percentage" :format="format"/> <el-progress :percentage="percentage" :format="format"/>

View File

@ -29,7 +29,7 @@
<List_3505 v-if="current_tab == 3505"></List_3505> <List_3505 v-if="current_tab == 3505"></List_3505>
</div> </div>
</div> </div>
<Mask :is-show="loading" :width="300" height="150"> <Mask :is-show="loading" :width="300" height="150" title="上传数据" :close="false">
{{uploadMsg}} {{uploadMsg}}
<div class="demo-progress" style="margin-top: 20px"> <div class="demo-progress" style="margin-top: 20px">
<el-progress :percentage="uploadNumber" /> <el-progress :percentage="uploadNumber" />