Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sup-server
Project
Project
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
Administrator
sup-server
Commits
29bc4b39
Commit
29bc4b39
authored
Nov 18, 2022
by
liaoxingda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改类型
parent
15f7f112
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
16 deletions
+35
-16
register.vue
dsk-srm-server/src/register.vue
+35
-16
No files found.
dsk-srm-server/src/register.vue
View file @
29bc4b39
...
...
@@ -14,15 +14,17 @@
<div
class=
"title"
>
<span>
请选择经营类型
</span>
<el-input
v-model=
"typeSearch"
placeholder=
"请输入"
@
input=
"getTypeSearch()"
></el-input>
<div
class=
"typeList"
>
<div
class=
"typeRows"
>
<span
class=
"typeTitle"
>
外观
</span>
<span
class=
"typeParent"
>
1>2
</span>
</div>
<div
class=
"typeRows"
>
<span
class=
"typeTitle"
>
外观
</span>
<span
class=
"typeParent"
>
1>2
</span>
</div>
<div
class=
"typeList"
v-if=
"typeListShow && typeListSearch.length > 0"
>
<template
v-for=
"item in typeListSearch"
>
<template
v-for=
"itemChild in item.children"
>
<template
v-for=
"itemChildThree in itemChild.children"
>
<div
class=
"typeRows"
@
click=
"getCatIdName(itemChildThree.name,itemChildThree.catId)"
>
<span
class=
"typeTitle"
>
{{
itemChildThree
.
name
}}
</span>
<span
class=
"typeParent"
>
{{
item
.
name
}}
>
{{
itemChild
.
name
}}
</span>
</div>
</
template
>
</template>
</template>
</div>
</div>
<div
class=
"content"
>
...
...
@@ -340,9 +342,11 @@
timer
:
null
,
activeName
:
''
,
typeList
:
[],
typeListSearch
:[],
catIdName
:
''
,
filePlaceCodeList
:
''
,
typeSearch
:
''
,
typeSearch
:
''
,
typeListShow
:
false
};
},
computed
:
{
...
...
@@ -387,7 +391,8 @@
},
1000
);
}
let
param
=
{
phone
:
this
.
form
.
phone
phone
:
this
.
form
.
phone
,
type
:
0
}
checkUser
(
param
).
then
(
res
=>
{
//if (res.code == 200) {
...
...
@@ -453,8 +458,8 @@
getCategoryList
(
param
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
)
this
.
typeList
=
res
.
data
.
data
this
.
activeName
=
res
.
data
.
data
[
0
].
children
[
0
].
name
this
.
typeList
=
res
.
data
this
.
activeName
=
res
.
data
[
0
].
children
[
0
].
name
console
.
log
(
this
.
typeList
)
}
})
...
...
@@ -542,9 +547,12 @@
window
.
open
(
word
,
'_blank'
)
},
//获取选中类型名称
getCatIdName
(
val
)
{
getCatIdName
(
val
,
catId
=
''
)
{
console
.
log
(
val
)
this
.
catIdName
=
val
if
(
catId
)
{
this
.
ruleForm
.
catId
=
catId
}
},
//获取地区
addressListfn
()
{
...
...
@@ -605,7 +613,10 @@
}
getCategoryList
(
param
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
typeListShow
=
true
this
.
typeListSearch
=
res
.
data
}
})
}
},
...
...
@@ -1153,18 +1164,22 @@
width
:
212px
;
box-sizing
:
border-box
;
z-index
:
9
;
display
:none
;
height
:
200px
;
overflow-y
:
auto
;
.typeRows
{
padding
:
4px
16px
;
border-bottom
:
1px
solid
#eeeeee
;
display
:
flex
;
flex-wrap
:
wrap
;
cursor
:
pointer
;
span
{
width
:
100%
;
}
/*
/*
span:first-child {
margin-bottom: 2px;
}*/
...
...
@@ -1173,6 +1188,10 @@
color
:
#C0C4CC
;
}
}
.typeRows
:hover
{
background
:
#eeeeee
;
}
}
}
...
...
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