fix(richedit): 移除移动端判断条件并修复编辑状态切换功能
移除DetailDrawer组件中多余的移动端宽度判断,统一显示编辑按钮 在indexMobile组件中添加缺失的handleEditStatus方法实现 调整日期选择器样式,增加最大高度限制
This commit is contained in:
parent
aae623288b
commit
8932f1e8f4
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="drawer-header">
|
<div class="drawer-header">
|
||||||
<div class="title">{{ readOnly ? '资讯信息浏览' : type == 1 ? '资讯信息编辑' : '资讯信息创建' }}</div>
|
<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)"
|
<el-button type="text" v-if="!form.deleted && (data.status == 0 || data.status == 1)"
|
||||||
@click="handleEditStatus(!readOnly)">{{ readOnly ?
|
@click="handleEditStatus(!readOnly)">{{ readOnly ?
|
||||||
'编辑' : '浏览' }}</el-button>
|
'编辑' : '浏览' }}</el-button>
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,9 @@
|
||||||
<el-button style="width: 20%" type="text" @click="restData">清空条件</el-button>
|
<el-button style="width: 20%" type="text" @click="restData">清空条件</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-date-picker style="margin-top: 20px;width: 100%" v-model="daterange" type="daterange" range-separator="至"
|
<el-date-picker style="margin-top: 20px;width: 100%;max-height: 40px" v-model="daterange" type="daterange"
|
||||||
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间" @change="handleSearch" />
|
range-separator="至" value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
|
||||||
|
@change="handleSearch" />
|
||||||
|
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<div class="r_tabs">
|
<div class="r_tabs">
|
||||||
|
|
@ -326,7 +327,9 @@ function restData() {
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleEditStatus(val: boolean) {
|
||||||
|
readOnly.value = val;
|
||||||
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
changeTab(0)
|
changeTab(0)
|
||||||
// getData();
|
// getData();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue