Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
233ebbfc
Commit
233ebbfc
authored
Dec 08, 2022
by
liuguorong93
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keepAlive 的 添加
parent
e468f1ba
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
src/router/modules/index.js
+3
-0
src/utils/rules2.js
+1
-1
src/views/sy/index.vue
+4
-1
No files found.
src/router/modules/index.js
View file @
233ebbfc
...
@@ -98,6 +98,7 @@ export default [
...
@@ -98,6 +98,7 @@ export default [
meta
:
{
meta
:
{
title
:
'技术单位管理'
,
title
:
'技术单位管理'
,
isOneMenu
:
false
,
isOneMenu
:
false
,
keepAlive
:
true
,
oneMenuName
:
'jqjsgzgl'
,
oneMenuName
:
'jqjsgzgl'
,
paixu
:
1
,
paixu
:
1
,
routeNames
:
[
'teUnitManageEdit'
,
'teUnitManageAdd'
],
routeNames
:
[
'teUnitManageEdit'
,
'teUnitManageAdd'
],
...
@@ -158,6 +159,7 @@ export default [
...
@@ -158,6 +159,7 @@ export default [
title
:
'警犬技术人员管理'
,
title
:
'警犬技术人员管理'
,
iconfont
:
'icon-renyuanguanli_jingquan'
,
iconfont
:
'icon-renyuanguanli_jingquan'
,
isOneMenu
:
true
,
isOneMenu
:
true
,
keepAlive
:
true
,
routeNames
:
[
'artisanManageEdit'
,
'artisanManageAdd'
]
routeNames
:
[
'artisanManageEdit'
,
'artisanManageAdd'
]
}
}
},
},
...
@@ -217,6 +219,7 @@ export default [
...
@@ -217,6 +219,7 @@ export default [
meta
:
{
meta
:
{
title
:
'警用工作犬信息管理'
,
title
:
'警用工作犬信息管理'
,
isOneMenu
:
false
,
isOneMenu
:
false
,
keepAlive
:
true
,
oneMenuName
:
'poDogManage'
,
oneMenuName
:
'poDogManage'
,
paixu
:
2
,
paixu
:
2
,
routeNames
:
[
'poDogJobManageEdit'
,
'poDogJobManageAdd'
],
routeNames
:
[
'poDogJobManageEdit'
,
'poDogJobManageAdd'
],
...
...
src/utils/rules2.js
View file @
233ebbfc
...
@@ -148,7 +148,7 @@ var rules = {
...
@@ -148,7 +148,7 @@ var rules = {
},
},
// 身份证号码(必填)
// 身份证号码(必填)
sfzhRulesRequired
:
(
rule
,
value
,
callback
)
=>
{
sfzhRulesRequired
:
(
rule
,
value
,
callback
)
=>
{
let
myreg
=
/
(
^
\d{15}
$
)
|
(
^
\d{18}
$
)
|
(
^
\d{17}(\d
|X|x
)
$
)
/
let
myreg
=
/
^
([
1-6
][
1-9
]
|50
)\d{4}(
18|19|20
)\d{2}((
0
[
1-9
])
|10|11|12
)(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
/
if
(
!
value
)
{
if
(
!
value
)
{
callback
(
new
Error
(
'请输入身份证号码'
))
callback
(
new
Error
(
'请输入身份证号码'
))
}
else
{
}
else
{
...
...
src/views/sy/index.vue
View file @
233ebbfc
...
@@ -91,7 +91,10 @@
...
@@ -91,7 +91,10 @@
</span>
</span>
</div>
</div>
</div>
</div>
<router-view></router-view>
<keep-alive>
<router-view
v-if=
"$route.meta.keepAlive"
></router-view>
</keep-alive>
<router-view
v-if=
"!$route.meta.keepAlive"
></router-view>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment