Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh-order-h5
Project
Project
Details
Activity
Releases
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
李俊赕
wxh-order-h5
Commits
9a668aa2
Commit
9a668aa2
authored
Mar 05, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择时间组件
parent
7bdee353
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
24 deletions
+24
-24
XhDate.vue
web/src/views/h5/shzhida/components/XhDate.vue
+15
-21
index.js
web/src/views/h5/shzhida/components/index.js
+2
-0
data.js
web/src/views/h5/shzhida/order/data.js
+1
-1
service.vue
web/src/views/h5/shzhida/order/service.vue
+6
-2
No files found.
web/src/views/h5/shzhida/components/XhDate.vue
View file @
9a668aa2
...
@@ -2,32 +2,22 @@
...
@@ -2,32 +2,22 @@
<div
class=
"input-item"
>
<div
class=
"input-item"
>
<div
class=
"label"
>
{{
item
.
label
}}
</div>
<div
class=
"label"
>
{{
item
.
label
}}
</div>
<div
class=
"required"
v-show=
"item.required"
>
*
</div>
<div
class=
"required"
v-show=
"item.required"
>
*
</div>
<div
class=
"input-box"
@
click=
"
popupVisible = true
"
>
<div
class=
"input-box"
@
click=
"
openShadow
"
>
<div
class=
"input"
:class=
"['input',!item.value ? 'grey' : '']"
>
{{
getName
(
item
.
value
)
||
'请选择'
}}
</div>
<!--
<input
class=
"input"
v-model=
"
{{
item
.
value
|
getName
}}
" readonly placeholder="请选择" /> -->
<div
class=
"input"
:class=
"['input',!item.value ? 'grey' : '']"
>
{{
getName
(
item
.
value
)
||
'请选择'
}}
</div>
<!--
<input
class=
"input"
v-model=
"
{{
item
.
value
|
getName
}}
" readonly placeholder="请选择" /> -->
</div>
</div>
<i
class=
"mint-cell-allow-right"
@
click=
"popupVisible = true"
></i>
<i
class=
"mint-cell-allow-right"
@
click=
"openShadow"
></i>
<mt-popup
<mt-datetime-picker
v-model=
"popupVisible"
ref=
"picker"
position=
"bottom"
>
type=
"date"
<div
class=
"select-con"
>
v-model=
"value"
<div
class=
"select-title"
>
@
confirm=
"handleConfirm"
>
<span
class=
"btn"
@
click=
"cancel"
>
取消
</span>
</mt-datetime-picker>
<span
class=
"btn confirm"
@
click=
"confirmSelect"
>
确定
</span>
</div>
<div
class=
"list"
>
<mt-radio
v-model=
"value"
:options=
"item.settings || []"
>
</mt-radio>
</div>
</div>
</mt-popup>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'Xh
Select
'
,
name
:
'Xh
Date
'
,
data
()
{
data
()
{
return
{
return
{
popupVisible
:
false
,
popupVisible
:
false
,
...
@@ -54,6 +44,10 @@ export default {
...
@@ -54,6 +44,10 @@ export default {
},
},
methods
:
{
methods
:
{
openShadow
()
{
this
.
popupVisible
=
true
this
.
$refs
.
picker
.
open
()
},
getName
(
value
)
{
getName
(
value
)
{
let
result
=
''
let
result
=
''
if
(
!
value
)
{
if
(
!
value
)
{
...
@@ -71,9 +65,9 @@ export default {
...
@@ -71,9 +65,9 @@ export default {
cancel
()
{
cancel
()
{
this
.
popupVisible
=
false
this
.
popupVisible
=
false
},
},
confirmSelect
()
{
handleConfirm
()
{
this
.
item
.
value
=
this
.
value
this
.
item
.
value
=
this
.
value
this
.
popupVisible
=
false
//
this.popupVisible = false
}
}
}
}
}
}
...
...
web/src/views/h5/shzhida/components/index.js
View file @
9a668aa2
...
@@ -5,3 +5,5 @@ export { default as XhMultipleSelect } from './XhMultipleSelect'
...
@@ -5,3 +5,5 @@ export { default as XhMultipleSelect } from './XhMultipleSelect'
export
{
default
as
XhFiles
}
from
'./XhFiles'
export
{
default
as
XhFiles
}
from
'./XhFiles'
export
{
default
as
XhSwitch
}
from
'./XhSwitch'
export
{
default
as
XhSwitch
}
from
'./XhSwitch'
export
{
default
as
XhServiceMore
}
from
'./XhServiceMore'
export
{
default
as
XhServiceMore
}
from
'./XhServiceMore'
export
{
default
as
XhDate
}
from
'./XhDate'
web/src/views/h5/shzhida/order/data.js
View file @
9a668aa2
...
@@ -188,7 +188,7 @@ const installData = [{
...
@@ -188,7 +188,7 @@ const installData = [{
},
{
},
{
fieldName
:
'installComfirmTime'
,
fieldName
:
'installComfirmTime'
,
label
:
'安装确认时间'
,
label
:
'安装确认时间'
,
inputType
:
'
select
'
,
inputType
:
'
date
'
,
required
:
true
,
required
:
true
,
settings
:
[{
label
:
'一致'
,
value
:
'Y'
},
{
label
:
'不一致'
,
value
:
'N'
}]
settings
:
[{
label
:
'一致'
,
value
:
'Y'
},
{
label
:
'不一致'
,
value
:
'N'
}]
},
{
},
{
...
...
web/src/views/h5/shzhida/order/service.vue
View file @
9a668aa2
...
@@ -48,7 +48,7 @@ import {
...
@@ -48,7 +48,7 @@ import {
XhInput
,
XhInput
,
XhSelect
,
XhSelect
,
XhMultipleSelect
,
XhMultipleSelect
,
XhFiles
,
XhSwitch
,
XhTextarea
,
XhServiceMore
XhFiles
,
XhSwitch
,
XhTextarea
,
XhServiceMore
,
XhDate
}
from
'../components/index.js'
}
from
'../components/index.js'
import
{
getData
}
from
'./data.js'
import
{
getData
}
from
'./data.js'
export
default
{
export
default
{
...
@@ -63,7 +63,8 @@ export default {
...
@@ -63,7 +63,8 @@ export default {
XhFiles
,
XhFiles
,
XhSwitch
,
XhSwitch
,
XhTextarea
,
XhTextarea
,
XhServiceMore
XhServiceMore
,
XhDate
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -138,6 +139,9 @@ export default {
...
@@ -138,6 +139,9 @@ export default {
case
'service-more'
:
case
'service-more'
:
result
=
'XhServiceMore'
result
=
'XhServiceMore'
break
break
case
'date'
:
result
=
'XhDate'
break
}
}
return
result
return
result
}
}
...
...
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