Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
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
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
1f57e8b1
Commit
1f57e8b1
authored
Apr 20, 2018
by
杨柠瑞
Browse files
Options
Browse Files
Download
Plain Diff
coding
parents
a3e39a05
b14b9dd1
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
620 additions
and
195 deletions
+620
-195
HmFullCalendar.vue
src/views/haomo/components/calendar/HmFullCalendar.vue
+366
-39
index.vue
src/views/haomo/components/calendar/index.vue
+86
-3
HmComplexForm.vue
src/views/haomo/components/forms/HmComplexForm.vue
+161
-150
index.vue
src/views/haomo/components/forms/index.vue
+3
-3
HmComplexTable.vue
src/views/haomo/components/tables/HmComplexTable.vue
+4
-0
No files found.
src/views/haomo/components/calendar/HmFullCalendar.vue
View file @
1f57e8b1
This diff is collapsed.
Click to expand it.
src/views/haomo/components/calendar/index.vue
View file @
1f57e8b1
<
template
>
<
template
>
<div
class=
"app-container calendar-list-container"
>
<div
class=
"app-container calendar-list-container"
>
<hm-full-calendar></hm-full-calendar>
<hm-full-calendar
:width=
"width"
:schedules=
"schedules"
@
dateChange=
"datechange"
@
monthChange=
"monthchange"
></hm-full-calendar>
<div
v-if=
"show"
class=
"incident"
>
<p>
{{
currentDate
}}
</p>
<span>
{{
event
}}
</span>
<span
class=
"close"
@
click=
"closeEvent"
>
X
</span>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -15,7 +25,13 @@
...
@@ -15,7 +25,13 @@
'hm-full-calendar'
:
HmFullCalendar
'hm-full-calendar'
:
HmFullCalendar
},
},
data
()
{
data
()
{
return
{}
return
{
show
:
false
,
width
:
'300px'
,
currentDate
:
''
,
event
:
''
,
schedules
:
[{
date
:
1524043625000
,
title
:
'个梵蒂是的舞蹈服可接受的看似简单计算的话束带结发会计师对海口市记得回复是框架的看就好山东矿机会计师发送的甲方是看得见看见的说法开始冈地方'
},
{
date
:
1523955299000
,
title
:
'个梵蒂冈地方'
}]
}
},
},
filters
:
{
filters
:
{
...
@@ -23,7 +39,74 @@
...
@@ -23,7 +39,74 @@
created
()
{
created
()
{
},
},
methods
:
{}
methods
:
{
datechange
(
data
)
{
this
.
show
=
true
console
.
log
(
data
)
if
(
data
.
schedule
)
{
const
currentTime
=
this
.
timestampToTime
(
data
.
schedule
.
date
)
console
.
log
(
currentTime
)
this
.
currentDate
=
currentTime
this
.
event
=
data
.
schedule
.
title
}
},
closeEvent
()
{
this
.
show
=
false
},
monthchange
(
data
)
{
console
.
log
(
data
,
'--------'
)
},
timestampToTime
(
timestamp
)
{
var
date
=
new
Date
(
timestamp
)
// 时间戳为10位需*1000,时间戳为13位的话不需乘1000
const
Y
=
date
.
getFullYear
()
+
'年'
const
M
=
(
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
)
+
'月'
const
D
=
date
.
getDate
()
+
'日'
return
Y
+
M
+
D
}
}
}
}
</
script
>
</
script
>
<
style
>
.calendar-list-container
.incident
{
top
:
-350px
;
left
:
270px
;
display
:
inline-block
;
position
:
relative
;
background-color
:
#202020
;
width
:
180px
;
padding
:
20px
;
color
:
#CCC
;
text-align
:
center
;
font-size
:
14px
;
font-family
:
微软雅黑
;
border-radius
:
10px
;
margin
:
50px
;
box-shadow
:
1px
1px
2px
#202020
;
-o-box-shadow
:
1px
1px
2px
#202020
;
-moz-box-shadow
:
1px
1px
2px
#202020
;
-webkit-border-shadow
:
1px
1px
2px
#202020
;
}
.close
{
position
:
absolute
;
top
:
0
;
cursor
:
pointer
;
right
:
0
;
}
.incident
span
{
font-size
:
10px
;
padding
:
10px
20px
;
}
.incident
:before
{
content
:
''
;
position
:
absolute
;
width
:
0
;
height
:
0
;
border
:
15px
solid
;
color
:
transparent
;
border-right-color
:
#202020
;
left
:
-30px
;
top
:
50%
;
margin-top
:
-15px
;
}
</
style
>
src/views/haomo/components/forms/HmComplexForm.vue
View file @
1f57e8b1
This diff is collapsed.
Click to expand it.
src/views/haomo/components/forms/index.vue
View file @
1f57e8b1
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
],
// default: 1
],
// default: 1
change
:
this
.
inputChange
},
change
:
this
.
inputChange
},
// 8文件 change: this.uploadChange
// 8文件 change: this.uploadChange
{
name
:
'选择头像'
,
codeCamel
:
'avatar'
,
widgetType
:
8
,
url
:
'/api/upload'
}
// url是后台接口地址
{
name
:
'选择头像'
,
codeCamel
:
'avatar'
,
widgetType
:
8
,
url
:
'/api/upload'
,
param
:
'picture'
,
accept
:
'image/*'
}
// url是后台接口地址
],
],
// CcSubject示例
// CcSubject示例
showUserColumns2
:
[
showUserColumns2
:
[
...
@@ -188,8 +188,8 @@
...
@@ -188,8 +188,8 @@
console
.
log
(
125
,
object
)
console
.
log
(
125
,
object
)
return
object
// 将数据返回
return
object
// 将数据返回
},
},
method1
()
{
method1
(
formModel
)
{
console
.
log
(
'
method1
'
)
console
.
log
(
'
formModel
'
)
},
},
method2
()
{
method2
()
{
console
.
log
(
'method2'
)
console
.
log
(
'method2'
)
...
...
src/views/haomo/components/tables/HmComplexTable.vue
View file @
1f57e8b1
...
@@ -137,7 +137,11 @@
...
@@ -137,7 +137,11 @@
<!-- 弹窗 -->
<!-- 弹窗 -->
<!-- @TODO 补充详情弹窗 -->
<!-- @TODO 补充详情弹窗 -->
<
<<<<<<
HEAD
=
======
>
>>>>>> b14b9dd1366e279bb016eabe5d84271fe8fbc513
<el-dialog
:title=
"dialogName"
:visible
.
sync=
"dialogFormVisible"
:close-on-click-modal=
"closeOnClickModal"
width=
"45%"
v-if=
"dialogFormVisible"
>
<el-dialog
:title=
"dialogName"
:visible
.
sync=
"dialogFormVisible"
:close-on-click-modal=
"closeOnClickModal"
width=
"45%"
v-if=
"dialogFormVisible"
>
<hm-complex-form
:schema=
"HmComplexForm.formSchema"
<hm-complex-form
:schema=
"HmComplexForm.formSchema"
:columns=
"HmComplexForm.showUserColumns"
:columns=
"HmComplexForm.showUserColumns"
...
...
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