页面修改

This commit is contained in:
zzyuan 2025-07-30 09:14:35 +08:00
parent 2ce7696349
commit 937fdf799a
2 changed files with 5 additions and 4 deletions

View File

@ -146,7 +146,7 @@
<el-table-column label="菜品数量" align="center" prop="dishesCount" v-if="activeName=='pageRecipe'"/>
<el-table-column label="菜谱生效日期" align="center" prop="applyDateStringList" v-if="activeName=='pageRecipe'">
<template slot-scope="scope" v-if="activeName=='pageRecipe'">
<el-popover placement="top" width="400">
<el-popover placement="top" width="400" v-if="scope.row.applyDateStringList&&scope.row.applyDateStringList.length>0">
<div style="width: 100%;padding: 10px;border-bottom: 1px solid #ccc;margin-bottom: 10px;">
{{currentMonth}}
</div>
@ -154,10 +154,11 @@
<div v-for="(item,index) in currentWeekList" :key="index" style="width: 14%;text-align: center;">{{item}}</div>
</div>
<div style="width: 100%;display: flex;align-items: center;margin-bottom: 10px;flex-wrap: wrap;">
<div v-for="(item,index) in monthDaysList" :key="index" :class="scope.row.applyDateStringList.findIndex(v=>v==item)>-1 ? 'dateTable2' : 'dateTable'" class="" >{{item}}</div>
<div v-for="(item,index) in monthDaysList" :key="index" :class="scope.row.applyDateStringList.findIndex(v=>v==item)>-1 ? 'dateTable2' : 'dateTable'">{{item}}</div>
</div>
<div style="color: #1890ff;cursor: pointer;" slot="reference">查看详情</div>
<div style="color: #1890ff;cursor: pointer;" slot="reference">查看详情</div>
</el-popover>
<span v-else></span>
</template>
</el-table-column>
<!-- <el-table-column label="用户范围" align="center" prop="effName" v-if="activeName=='pageRecipe'"/> -->

View File

@ -410,7 +410,7 @@
<el-input
v-model="form.userCode"
placeholder="请输入用户编码"
maxlength="30"
maxlength="30" @input="(v)=>(form.userCode=v.replace(/[^\d]/g,''))"
/>
</el-form-item>
</el-col>