修改手机端的登录
This commit is contained in:
@@ -1877,4 +1877,9 @@ module.exports = {
|
|||||||
clickAndSelect:'Click and select',
|
clickAndSelect:'Click and select',
|
||||||
phoneCreationTime:'Creation Time',
|
phoneCreationTime:'Creation Time',
|
||||||
theCurrentFormatSupportPreview:'The current format does not support preview',
|
theCurrentFormatSupportPreview:'The current format does not support preview',
|
||||||
|
nearlyMonth:'Nearly a month',
|
||||||
|
nearlyThreeMonths:'Nearly Three Months',
|
||||||
|
nearlySixMonths:'Nearly Six Months',
|
||||||
|
nearlyYear:'Nearly a Year',
|
||||||
|
browsingTime:'Browsing time',
|
||||||
}
|
}
|
||||||
@@ -1978,4 +1978,9 @@ module.exports = {
|
|||||||
clickAndSelect:'点击选择',
|
clickAndSelect:'点击选择',
|
||||||
phoneCreationTime:'创建时间',
|
phoneCreationTime:'创建时间',
|
||||||
theCurrentFormatSupportPreview:'当前格式不支持预览',
|
theCurrentFormatSupportPreview:'当前格式不支持预览',
|
||||||
|
nearlyMonth:'近一个月',
|
||||||
|
nearlyThreeMonths:'近三个月',
|
||||||
|
nearlySixMonths:'近六个月',
|
||||||
|
nearlyYear:'近一年',
|
||||||
|
browsingTime:'浏览时间',
|
||||||
}
|
}
|
||||||
@@ -119,9 +119,11 @@ router.beforeEach((to, from, next) => {
|
|||||||
router.addRoutes(store.getters.addRouters)
|
router.addRoutes(store.getters.addRouters)
|
||||||
let redirect = decodeURIComponent(from.query.redirect || to.path)
|
let redirect = decodeURIComponent(from.query.redirect || to.path)
|
||||||
if (mobile) {
|
if (mobile) {
|
||||||
redirect = '/phoneSearch'
|
if (redirect == '/'){
|
||||||
|
redirect = '/phoneSearch'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log(redirect)
|
|
||||||
if (to.path === redirect) {
|
if (to.path === redirect) {
|
||||||
// hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
|
// hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
|
||||||
next({ ...to, replace: true })
|
next({ ...to, replace: true })
|
||||||
|
|||||||
@@ -22,6 +22,9 @@
|
|||||||
<div class="content-text-button">
|
<div class="content-text-button">
|
||||||
<span>{{item.browseTypeName}}</span>
|
<span>{{item.browseTypeName}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="content-text-button">
|
||||||
|
<span>{{$t('browsingTime')}}:{{item.createTime}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-text-right">
|
<div class="content-text-right">
|
||||||
<van-icon name="arrow"/>
|
<van-icon name="arrow"/>
|
||||||
|
|||||||
@@ -3,22 +3,21 @@
|
|||||||
<div class="fixed">
|
<div class="fixed">
|
||||||
<div class="header-search">
|
<div class="header-search">
|
||||||
<van-icon @click="iconClick" class="icon" name="arrow-left"/>
|
<van-icon @click="iconClick" class="icon" name="arrow-left"/>
|
||||||
<van-dropdown-menu v-if="activeTab == 'documentLibrary'">
|
<!-- <van-dropdown-menu v-if="activeTab == 'documentLibrary'">-->
|
||||||
<van-dropdown-item @change="selectModelChange" v-model="selectModel" :options="option"/>
|
<!-- <van-dropdown-item @change="selectModelChange" v-model="selectModel" :options="option"/>-->
|
||||||
</van-dropdown-menu>
|
<!-- </van-dropdown-menu>-->
|
||||||
<van-search v-model="value"
|
<!-- <van-search v-model="value"-->
|
||||||
class="search-text"
|
<!-- class="search-text"-->
|
||||||
v-if="activeTab == 'documentLibrary'"
|
<!-- v-if="activeTab == 'documentLibrary'"-->
|
||||||
show-action
|
<!-- show-action-->
|
||||||
left-icon="none"
|
<!-- left-icon="none"-->
|
||||||
@search="onSearch"
|
<!-- @search="onSearch"-->
|
||||||
@clear="onClear"
|
<!-- @clear="onClear"-->
|
||||||
@cancel="onClear"
|
<!-- @cancel="onClear"-->
|
||||||
:action-text="$t('reset')"
|
<!-- :action-text="$t('reset')"-->
|
||||||
:placeholder="$t('phoneSearch')"/>
|
<!-- :placeholder="$t('phoneSearch')"/>-->
|
||||||
<van-search v-model="value"
|
<van-search v-model="value"
|
||||||
show-action
|
show-action
|
||||||
v-else
|
|
||||||
@search="onSearch"
|
@search="onSearch"
|
||||||
@clear="onClear"
|
@clear="onClear"
|
||||||
@cancel="onClear"
|
@cancel="onClear"
|
||||||
@@ -37,8 +36,8 @@
|
|||||||
<div class="content-box">
|
<div class="content-box">
|
||||||
<div class="search-top">
|
<div class="search-top">
|
||||||
{{$t('searchScope')}}:
|
{{$t('searchScope')}}:
|
||||||
<span v-if="activeTab == 'documentLibrary' && searchValue">
|
<!-- <span v-if="activeTab == 'documentLibrary' && searchValue">-->
|
||||||
{{selectModelName}}:</span>
|
<!-- {{selectModelName}}:</span>-->
|
||||||
<span>{{searchValue}}</span>
|
<span>{{searchValue}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="fixed">
|
<div class="fixed">
|
||||||
<div class="header-search">
|
<div class="header-search">
|
||||||
<!-- <van-icon class="icon" name="arrow-left"/>-->
|
<!-- <van-icon class="icon" name="arrow-left"/>-->
|
||||||
<van-search v-model="value"
|
<van-search v-model="value"
|
||||||
@search="onSearch"
|
@search="onSearch"
|
||||||
@clear="onClear"
|
@clear="onClear"
|
||||||
@@ -152,23 +152,24 @@
|
|||||||
</template>
|
</template>
|
||||||
</van-field>
|
</van-field>
|
||||||
<van-field
|
<van-field
|
||||||
readonly
|
|
||||||
clickable
|
|
||||||
name="picker"
|
|
||||||
:value="form.value"
|
:value="form.value"
|
||||||
class="textarea"
|
class="textarea"
|
||||||
:label="$t('cutoffTime')"
|
:label="$t('cutoffTime')"
|
||||||
:placeholder="$t('clickAndSelect')"
|
:placeholder="$t('clickAndSelect')">
|
||||||
@click="showPicker = true"
|
<template #input>
|
||||||
/>
|
<van-dropdown-menu class="cutoffTimeClass">
|
||||||
<van-popup v-model="showPicker" position="bottom">
|
<van-dropdown-item v-model="form.selectModel" :options="columns"/>
|
||||||
<van-picker
|
</van-dropdown-menu>
|
||||||
show-toolbar
|
</template>
|
||||||
:columns="columns"
|
</van-field>
|
||||||
@confirm="onConfirm"
|
<!-- <van-popup v-model="showPicker" position="bottom">-->
|
||||||
@cancel="showPicker = false"
|
<!-- <van-picker-->
|
||||||
/>
|
<!-- show-toolbar-->
|
||||||
</van-popup>
|
<!-- :columns="columns"-->
|
||||||
|
<!-- @confirm="onConfirm"-->
|
||||||
|
<!-- @cancel="showPicker = false"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </van-popup>-->
|
||||||
<van-field name="checkboxGroup" class="textarea" :label="$t('treatmentMode')">
|
<van-field name="checkboxGroup" class="textarea" :label="$t('treatmentMode')">
|
||||||
<template #input>
|
<template #input>
|
||||||
<div class="Mode-text">
|
<div class="Mode-text">
|
||||||
@@ -200,14 +201,35 @@
|
|||||||
active: 'toDoCenter',
|
active: 'toDoCenter',
|
||||||
show: false,
|
show: false,
|
||||||
date: '',
|
date: '',
|
||||||
columns: ['近一个月', '近三个月', '近六个月', '近一年'],
|
columns: [
|
||||||
|
{
|
||||||
|
text: this.$t('pleaseSelect'),
|
||||||
|
value: '0'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: this.$t('nearlyMonth'),
|
||||||
|
value: '1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: this.$t('nearlyThreeMonths'),
|
||||||
|
value: '2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: this.$t('nearlySixMonths'),
|
||||||
|
value: '3'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: this.$t('nearlyYear'),
|
||||||
|
value: '4'
|
||||||
|
}],
|
||||||
showPicker: false,
|
showPicker: false,
|
||||||
value: '',
|
value: '',
|
||||||
activeTab: '',
|
activeTab: '',
|
||||||
language: localStorage.getItem('language'),
|
language: localStorage.getItem('language'),
|
||||||
form: {
|
form: {
|
||||||
checked: true,
|
checked: false,
|
||||||
flowType: []
|
flowType: [],
|
||||||
|
selectModel:'0'
|
||||||
},
|
},
|
||||||
toDoProcessList: [],
|
toDoProcessList: [],
|
||||||
toDoProcessLoading: false,
|
toDoProcessLoading: false,
|
||||||
@@ -237,10 +259,10 @@
|
|||||||
// this.getToDoProcess()
|
// this.getToDoProcess()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onSearch(){
|
onSearch() {
|
||||||
|
|
||||||
},
|
},
|
||||||
onClear(){
|
onClear() {
|
||||||
|
|
||||||
},
|
},
|
||||||
onChange(value) {
|
onChange(value) {
|
||||||
@@ -260,7 +282,8 @@
|
|||||||
},
|
},
|
||||||
resetClick() {
|
resetClick() {
|
||||||
this.form = {
|
this.form = {
|
||||||
checked: true
|
checked: false,
|
||||||
|
selectModel:'0'
|
||||||
}
|
}
|
||||||
this.show = false
|
this.show = false
|
||||||
if (this.activeTab == 'toDoProcess') {
|
if (this.activeTab == 'toDoProcess') {
|
||||||
@@ -826,4 +849,25 @@
|
|||||||
font-size: 0.38rem;
|
font-size: 0.38rem;
|
||||||
margin-left: 0.2rem;
|
margin-left: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cutoffTimeClass {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
::v-deep .cutoffTimeClass .van-dropdown-menu__item{
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
::v-deep .cutoffTimeClass .van-dropdown-menu__title--active {
|
||||||
|
color: #21c9cc;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .cutoffTimeClass .van-dropdown-item__option--active {
|
||||||
|
color: #21c9cc;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .cutoffTimeClass .van-dropdown-item__option--active .van-dropdown-item__icon {
|
||||||
|
color: #21c9cc;
|
||||||
|
}
|
||||||
|
::v-deep .cutoffTimeClass .van-dropdown-menu__bar{
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user