fix(richedit): 移除移动端判断条件并修复编辑状态切换功能

移除DetailDrawer组件中多余的移动端宽度判断,统一显示编辑按钮
在indexMobile组件中添加缺失的handleEditStatus方法实现
调整日期选择器样式,增加最大高度限制
This commit is contained in:
34701892@qq.com 2025-08-04 10:06:56 +08:00
parent aae623288b
commit 8932f1e8f4
2 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<div class="drawer-header">
<div class="title">{{ readOnly ? '资讯信息浏览' : type == 1 ? '资讯信息编辑' : '资讯信息创建' }}</div>
<div class="btn" v-if="type == 1 && !isMobileByWidth()">
<div class="btn" v-if="type == 1">
<el-button type="text" v-if="!form.deleted && (data.status == 0 || data.status == 1)"
@click="handleEditStatus(!readOnly)">{{ readOnly ?
'编辑' : '浏览' }}</el-button>

View File

@ -11,8 +11,9 @@
<el-button style="width: 20%" type="text" @click="restData">清空条件</el-button>
</div>
<el-date-picker style="margin-top: 20px;width: 100%" v-model="daterange" type="daterange" range-separator=""
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间" @change="handleSearch" />
<el-date-picker style="margin-top: 20px;width: 100%;max-height: 40px" v-model="daterange" type="daterange"
range-separator="至" value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
@change="handleSearch" />
<div class="filter">
<div class="r_tabs">
@ -326,7 +327,9 @@ function restData() {
getData();
}
function handleEditStatus(val: boolean) {
readOnly.value = val;
}
onMounted(() => {
changeTab(0)
// getData();