Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
national_museum_vod-H5
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
fubaole
national_museum_vod-H5
Commits
f0cd73ba
Commit
f0cd73ba
authored
Apr 26, 2021
by
xulili
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.203.232.171:8888/fubaole/national_museum_vod-h5
parents
1c20e09a
70bd1d21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
form.vue
src/views/setTopBoxManage/components/form.vue
+20
-6
opt.vue
src/views/setTopBoxManage/opt.vue
+1
-1
No files found.
src/views/setTopBoxManage/components/form.vue
View file @
f0cd73ba
...
...
@@ -5,13 +5,16 @@
class=
"field-form-item"
readonly
clickable
required
name=
"organName"
:value=
"boxInfo.organName"
label=
"机顶盒所属单位"
placeholder=
"请选择组织单位"
:right-icon=
"showOrg ? 'arrow-up' : 'arrow-down'"
@
click=
"showOrg = true"
:rules=
"[
{ required: true }]"
:rules=
"[
{ required: true, message: '请选择组织单位', trigger: 'change'}
]"
/>
<van-popup
v-model=
"showOrg"
position=
"bottom"
>
<van-picker
...
...
@@ -24,10 +27,14 @@
<van-field
class=
"field-form-item"
v-model=
"boxInfo.macURL"
required
name=
"macURL"
label=
"机顶盒Mac地址"
placeholder=
"请填写机顶盒Mac地址"
:rules=
"[
{ required: true }]"
:rules=
"[
{ required: true, message: '请填写机顶盒Mac地址', trigger: ['blur', 'change'] },
{ pattern: /^[A-F0-9]{2}([-:]?[A-F0-9]{2})([-:.]?[A-F0-9]{2})([-:]?[A-F0-9]{2})([-:.]?[A-F0-9]{2})([-:]?[A-F0-9]{2})$/, message: '请填写正确的Mac地址', trigger: ['blur', 'change']}
]"
/>
<div
class=
"form-page-button"
>
<van-button
type=
"default"
native-type=
"submit"
v-if=
"actived === '1'"
...
...
@@ -52,7 +59,6 @@ export default {
showUser
:
false
,
};
},
watch
:
{},
mounted
()
{
this
.
getorganName
();
},
...
...
@@ -67,8 +73,13 @@ export default {
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
resultCode
===
"200"
)
{
vm
.
orgList
=
res
.
data
.
data
;
vm
.
orgNameList
=
res
.
data
.
data
.
map
((
item
)
=>
item
.
organName
);
if
(
this
.
actived
===
'1'
){
this
.
orgList
=
res
.
data
.
data
.
filter
(
item
=>
item
.
status
!==
2
)
}
if
(
this
.
actived
===
'2'
){
this
.
orgList
=
res
.
data
.
data
.
filter
(
item
=>
item
.
status
===
2
)
}
vm
.
orgNameList
=
this
.
orgList
.
map
((
item
)
=>
item
.
organName
);
}
})
.
catch
(
function
(
err
)
{
...
...
@@ -138,6 +149,10 @@ export default {
margin-right
:
12px
;
}
}
.
van-cell--required
:
:
before
{
left
:
-10px
;
color
:
#A4151D
;
}
}
.form-page-button
{
text-align
:
center
;
...
...
@@ -181,7 +196,6 @@ export default {
font-weight
:
normal
;
}
}
.van-tabs__nav--card
{
margin
:
0
;
}
...
...
src/views/setTopBoxManage/opt.vue
View file @
f0cd73ba
...
...
@@ -3,7 +3,7 @@
<div
class=
"opt-page"
>
<van-tabs
type=
"card"
v-model=
"activeName"
>
<van-tab
title=
"机顶盒激活"
name=
"1"
>
<custom-form
actived=
"1"
></custom-form>
<custom-form
actived=
"1"
></custom-form>
</van-tab>
<van-tab
title=
"故障上报"
name=
"2"
>
<custom-form
actived=
"2"
></custom-form>
...
...
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